From: "Jim Blandy" <jimb@red-bean.com>
To: "Michael Snyder" <msnyder@redhat.com>
Cc: "Mark Kettenis" <mark.kettenis@xs4all.nl>,
fnf@specifix.com, drow@false.org, gdb-patches@sourceware.org
Subject: Re: [PATCH] Fix problem with scope.exp test, skipping past init0 call
Date: Thu, 02 Mar 2006 06:09:00 -0000 [thread overview]
Message-ID: <8f2776cb0603012209y5bab7cbai73eaf637af291f@mail.gmail.com> (raw)
In-Reply-To: <440635D0.1050704@redhat.com>
On 3/1/06, Michael Snyder <msnyder@redhat.com> wrote:
> Jim Blandy wrote:
> > Actually, having seen other's responses here, I'm inclined to say that
> > the proper fix is to simply drop the code in scope.exp for getting
> > from the opening brace to the first line. Setting a breakpoint on
> > main simply shouldn't leave you on the opening brace, and that test
> > suite logic has always been papering over a bug.
> >
> > If prologues contain calls to __main, then the prologue analyzers
> > should skip them.
>
> Are you sure? If skipping __main involves overhead,
> do you want to incur that overhead every time we want
> to skip a prologue?
Do you mean overhead in the analysis of the prologue to find its end,
or overhead in allowing the program to continue to the end of a
prologue that contains a call to __main?
If the first, I don't think it's a big deal. If we don't see a jsr,
we won't incur any overhead.
If the second, the skip_prologue gdbarch method gets used in the
following situations:
- When we're stepping into a function. Here, we use the step-resume
breakpoint to step when we get to the end of the prologue, so there's
no overhead that I see to skipping over __main. We're not
single-stepping over the call.
- When we're setting a breakpoint at a function start. Obviously, no
special run-time overhead here; you can set the breakpoint anywhere
you like.
- When we're trying to decide if a given address is in a prologue.
Again, I don't see any impact.
I think this is a correctness issue anyway, not a performance issue.
If a prologue contains a call to __main, it's our job to make sure
that works efficiently; we shouldn't change the behavior of
skip_prologue.
next prev parent reply other threads:[~2006-03-02 6:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-12 20:10 Fred Fish
2006-02-13 6:16 ` Jim Blandy
2006-02-13 15:39 ` Daniel Jacobowitz
2006-02-13 15:47 ` Fred Fish
2006-02-13 15:53 ` Daniel Jacobowitz
2006-02-13 16:05 ` Mark Kettenis
2006-02-13 16:08 ` Daniel Jacobowitz
2006-02-13 16:19 ` Fred Fish
2006-02-13 16:49 ` Mark Kettenis
2006-02-13 17:47 ` Jim Blandy
2006-02-13 17:54 ` Jim Blandy
2006-02-13 17:57 ` Jim Blandy
2006-02-13 18:08 ` Mark Kettenis
2006-03-02 0:01 ` Michael Snyder
2006-03-02 6:09 ` Jim Blandy [this message]
2006-02-13 18:39 ` Fred Fish
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=8f2776cb0603012209y5bab7cbai73eaf637af291f@mail.gmail.com \
--to=jimb@red-bean.com \
--cc=drow@false.org \
--cc=fnf@specifix.com \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
--cc=msnyder@redhat.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