Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: will schmidt via Gdb-patches <gdb-patches@sourceware.org>
To: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Cc: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
	Tom de Vries <tdevries@suse.de>,
	gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/testsuite] Fix gdb.dwarf2/dw2-dir-file-name.exp
Date: Mon, 15 Aug 2022 16:33:05 -0500	[thread overview]
Message-ID: <3dafb824c71ea8543581549bc278204095db0f6f.camel@vnet.ibm.com> (raw)
In-Reply-To: <87r11h483h.fsf@linaro.org>

On Mon, 2022-08-15 at 19:31 +0000, Thiago Jung Bauermann wrote:
> Hello,
> 
> will schmidt via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> > On Mon, 2022-08-15 at 09:54 -0700, Carl Love wrote:
> > > Tom:
> > > 
> > > OK, I took a look at how the test used to work and how it is now
> > > working and I see what the issue is. 
> > > 
> > > PowerPC has two entry points, local and global.  The test used to
> > > set
> > > the breakpoint for the function at the local entry point.  With
> > > your
> > > changes, the breakpoint is now being set at the global breakpoint
> > > which
> > > is before the local breakpoint.  The function is actually entered
> > > at
> > > the local breakpoint thus gdb never "sees" the breakpoint that
> > > was
> > > set.
> 
> [ <snip> ]
> 
> > > It looks to me that we need to make sure we set the breakpoint at
> > > the
> > > local address.  
> > > 
> > > Off hand, I am not sure how to get your changes to "proc
> > > gdb_continue_to_breakpoint" to select the local entry point not
> > > the
> > > global entry point.  Perhaps Ulrich has some ideas???
> > 
> > From a glance that the patch that updated dw2-dir-file-name.exp;
> > ( commit cd919f5533cc8aa495acd75a6f059e5fcf2e6af9 )
> > the change there was effectively
> > 
> > -       gdb_breakpoint $func
> > +       gdb_breakpoint *$func
> > 
> > with assorted regexp changes to match.
> > 
> > The patch description goes into detail, but I interpret the gist of
> > it
> > as avoiding the aarch64 architecture prologue skipper, since that
> > prologue skipper does something wrong, with entanglements in the
> > line
> > table info.
> > 
> > The powerpc prologue skipper (wherever it is) was presumably
> > handling
> > the local/global entry points properly.  Since the test now species
> > a
> > specific address (*$func), the prologue skipper is no longer
> > involved.
> > 
> > The patch should probably be reverted, but I defer to others if
> > I've
> > misunderstood part of this issue.. 
> 
> Is it possible to force the compiler to use the global entry point?

No.  :-)

> Perhaps by calling the function via a function pointer rather than as
> a
> regular function call? That would allow preserving the change to the
> testcase and making it work on ppc64le.
> 


  reply	other threads:[~2022-08-15 21:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-11 11:58 Tom de Vries via Gdb-patches
2022-08-12  9:33 ` Luis Machado via Gdb-patches
2022-08-15 16:01   ` Carl Love via Gdb-patches
2022-08-15 16:54     ` Carl Love via Gdb-patches
2022-08-15 19:12       ` will schmidt via Gdb-patches
2022-08-15 19:31         ` Thiago Jung Bauermann via Gdb-patches
2022-08-15 21:33           ` will schmidt via Gdb-patches [this message]
2022-08-16  7:43         ` Luis Machado via Gdb-patches
2022-08-16 16:00           ` will schmidt via Gdb-patches
2022-08-17 12:01       ` Ulrich Weigand via Gdb-patches
2022-09-01 14:40         ` Tom de Vries via Gdb-patches
2022-09-01 14:16       ` Tom de Vries via Gdb-patches

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=3dafb824c71ea8543581549bc278204095db0f6f.camel@vnet.ibm.com \
    --to=gdb-patches@sourceware.org \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=tdevries@suse.de \
    --cc=thiago.bauermann@linaro.org \
    --cc=will_schmidt@vnet.ibm.com \
    /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