public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug testsuite/29813] [gdb/testsuite, powerpc64le] FAIL: gdb.base/vla-optimized-out.exp: o1: printed size of optimized out vla
Date: Mon, 21 Nov 2022 12:56:02 +0000	[thread overview]
Message-ID: <bug-29813-4717-mNXj0F0djz@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29813-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=29813

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #0)
> I suppose the following happens.  The DW_OP_GNU_entry_value needs to be
> evaluated, and gdb looks for a call site matching this pc:
> ...
> (gdb) up
> #1  0x0000000010000690 in main () at
> gdb/testsuite/gdb.base/vla-optimized-out.c:42
> 42        j = f1 (i);
> (gdb)
> ...
> 
> There is a call site here:
> ...
>  <2><f6>: Abbrev Number: 5 (DW_TAG_GNU_call_site)
>     <f7>   DW_AT_low_pc      : 0x10000694
>     <ff>   DW_AT_abstract_origin: <0x110>
> ...
> which is not matched because it's 0x4 off.

That seems to be indeed the case:
...
(gdb) up
#1  0x00000000114d2d28 in throw_it (reason=RETURN_ERROR,
error=NO_ENTRY_VALUE_ERROR, 
    fmt=0x11597848 "DW_OP_entry_value resolving cannot find DW_TAG_call_site %s
in %s", 
    ap=0x7fffffffc6a0 "\244\006m\022")
    at /suse/tdevries/gdb/src/gdbsupport/common-exceptions.cc:200
...

BTW, looking at the gcc sources, the bl;nop in call_value_nonlocal_aix<mode>
disappears in gcc-9-branch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2022-11-21 12:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-21 12:49 [Bug testsuite/29813] New: " vries at gcc dot gnu.org
2022-11-21 12:56 ` vries at gcc dot gnu.org [this message]
2022-11-29  9:14 ` [Bug testsuite/29813] " vries at gcc dot gnu.org
2022-11-29  9:51 ` vries at gcc dot gnu.org
2022-11-29 13:33 ` vries at gcc dot gnu.org
2022-11-29 21:47 ` cvs-commit at gcc dot gnu.org
2022-11-30  8:25 ` vries at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29813-4717-mNXj0F0djz@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).