From: Mark Kettenis <kettenis@chello.nl>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfc; rfa:i386] Eliminate save_dummy_frame_tos
Date: Fri, 13 Jun 2003 19:38:00 -0000 [thread overview]
Message-ID: <86brx1zs32.fsf@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: Andrew Cagney's message of "Fri, 13 Jun 2003 01:08:50 -0400"
Andrew Cagney <ac131313@redhat.com> writes:
> This is a multi-part message in MIME format.
> --------------050407020306070609080700
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
>
> Hello,
>
> This patch removes the need for setting the save_dummy_frame_tos method
> (d10v and i386). Instead the frame ID stack addr returned by
> push_dummy_call is saved (by generic_save_dummy_frame_tos) and used as
> the dummy breakpoint ID.
>
> The i386 and d10v don't show any regressions.
>
> Mark, look right?
Looks good to me. We can make similar changes to amd64, but if you
don't want to make those, I'll do a followup patch to yours.
> I'd like to add a comment to the ``return sp + 8'' only I'm not actually
> sure what's going on here :-/
It certainly deserves a comment. I'm just not sure. This "+ 8" is
all over the place (i386_frame_this_id, i386_sigtramp_frame_this_id,
i386_unwind_dummy_id). It's there, since all frame unwinders for a
given target have to agree (within a certain margin) on the defenition
of the stack address of a frame. Otherwise frame_id_inner() won't
work correctly. Since DWARF2/GCC uses the stack address *before* the
function call as a frame's CFA. On the i386, when %ebp is used as a
frame pointer, the offset between the contents %ebp and the CFA as
defined by GCC.
Mark
next prev parent reply other threads:[~2003-06-13 19:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-13 5:08 Andrew Cagney
2003-06-13 19:38 ` Mark Kettenis [this message]
2003-06-13 20:36 ` 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=86brx1zs32.fsf@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--cc=ac131313@redhat.com \
--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