From: Andrew Cagney <cagney@gnu.org>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc,6.1?] Use right frame ID in step_over_function
Date: Fri, 19 Mar 2004 00:09:00 -0000 [thread overview]
Message-ID: <404290D7.5060300@gnu.org> (raw)
In-Reply-To: <20040229171801.GK15749@nevyn.them.org>
>>The bug apepars when trying to step over nested shared library non-debug
>>> info functions (making sense?).
>
>
> No, not really. Could you give us a testcase? What platform have you
> seen this behavior on?
PPC/NetBSD.
> On Sat, Feb 28, 2004 at 11:33:51PM -0500, Andrew Cagney wrote:
>
>>> Hello,
>>>
>>> This goes into the "how did it ever work" category. The idea of
>>> step_over_function is that it:
>>>
>>> - finds the caller's resume address
>>> - finds the caller's frame ID
>>>
>>> and then sets a breakpoint for that caller instance of the function.
>>> The current code:
>>>
>>> - finds the caller's resume address
>>> - finds the _callee_ frame ID
>>>
>>> and then uses that to set the breakpoint. Now that is plain weird! It
>>> only works because either:
>>>
>>> - the step_frame_id patches up the bug
>>>
>>> - the values match as GDB is using the inner-most, rather than
>>> outer-most frame address as part of the frame ID
The NetBSD/PPC case, the old code does this:
/* NOTE: cagney/2002-04-14: The ->frame points to the inner-most
address of the current frame. Things might be easier if the
->frame pointed to the outer-most address of the frame. In the
mean time, the address of the prev frame is used as the base
address of this frame. */
>>> The bug apepars when trying to step over nested shared library non-debug
>>> info functions (making sense?).
So I suspect it applied to all PPC, just that NetBSD's are a bit wierd.
Andrew
WARNING: multiple messages have this Message-ID
From: Andrew Cagney <cagney@gnu.org>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc,6.1?] Use right frame ID in step_over_function
Date: Mon, 01 Mar 2004 01:24:00 -0000 [thread overview]
Message-ID: <404290D7.5060300@gnu.org> (raw)
Message-ID: <20040301012400.p98wBExVpIHc58ny8N5h80UqBULPabj9JotitdP5W0U@z> (raw)
In-Reply-To: <20040229171801.GK15749@nevyn.them.org>
>>The bug apepars when trying to step over nested shared library non-debug
>>> info functions (making sense?).
>
>
> No, not really. Could you give us a testcase? What platform have you
> seen this behavior on?
PPC/NetBSD.
> On Sat, Feb 28, 2004 at 11:33:51PM -0500, Andrew Cagney wrote:
>
>>> Hello,
>>>
>>> This goes into the "how did it ever work" category. The idea of
>>> step_over_function is that it:
>>>
>>> - finds the caller's resume address
>>> - finds the caller's frame ID
>>>
>>> and then sets a breakpoint for that caller instance of the function.
>>> The current code:
>>>
>>> - finds the caller's resume address
>>> - finds the _callee_ frame ID
>>>
>>> and then uses that to set the breakpoint. Now that is plain weird! It
>>> only works because either:
>>>
>>> - the step_frame_id patches up the bug
>>>
>>> - the values match as GDB is using the inner-most, rather than
>>> outer-most frame address as part of the frame ID
The NetBSD/PPC case, the old code does this:
/* NOTE: cagney/2002-04-14: The ->frame points to the inner-most
address of the current frame. Things might be easier if the
->frame pointed to the outer-most address of the frame. In the
mean time, the address of the prev frame is used as the base
address of this frame. */
>>> The bug apepars when trying to step over nested shared library non-debug
>>> info functions (making sense?).
So I suspect it applied to all PPC, just that NetBSD's are a bit wierd.
Andrew
next prev parent reply other threads:[~2004-03-01 1:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-29 4:33 Andrew Cagney
2004-02-29 17:18 ` Daniel Jacobowitz
2004-03-19 0:09 ` Andrew Cagney [this message]
2004-03-01 1:24 ` Andrew Cagney
2004-03-05 23:02 ` Andrew Cagney
2004-03-05 23:39 ` Daniel Jacobowitz
2004-03-06 0:08 ` Andrew Cagney
2004-03-19 0:09 ` Andrew Cagney
2004-03-19 0:09 ` Daniel Jacobowitz
2004-03-19 0:09 ` Andrew Cagney
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=404290D7.5060300@gnu.org \
--to=cagney@gnu.org \
--cc=drow@false.org \
--cc=gdb-patches@sources.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