From: Mark Kettenis <kettenis@chello.nl>
To: ac131313@redhat.com
Cc: gdb@sources.redhat.com
Subject: Re: Unwinding dummy frames on the i386
Date: Sat, 08 Mar 2003 11:42:00 -0000 [thread overview]
Message-ID: <200303081142.h28Bg1BL035199@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <3E691984.4030207@redhat.com> (message from Andrew Cagney on Fri, 07 Mar 2003 17:13:24 -0500)
Date: Fri, 07 Mar 2003 17:13:24 -0500
From: Andrew Cagney <ac131313@redhat.com>
> For now I've worked around this by having my own do-nothing
> i386_save_dummy_frame_tos(), and having i386_unwind_dummy_id() return
> contents of the (saved) frame pointer register for the frame's base.
> Is there a better way to solve this?
Can i386_save_dummy_frame_tos() save the `frame pointer register' that
the unwind_dummy_id() method later returns?
If reading the current value of FP_REGNUM from current_regcache is OK
the answer is yes. Hmm, in that case it's probably an even better
idea to actually set the frame pointer register to the top-of-stack in
i386_save_dummy_frame_tos(). That way, we won't have a problem when
there are several frameless function calls in a row. Is writing into
current_regcache acceptable?
While the TOS in save_dummy_frame_tos() might have once stood for
top-of-stack, there isn't anything saying that it has to be the stack
top. A better name for tha functioin's successor would be
save_dummy_frame_id()
Agreed.
Mark
next prev parent reply other threads:[~2003-03-08 11:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-07 20:59 Mark Kettenis
2003-03-07 22:13 ` Andrew Cagney
2003-03-08 11:42 ` Mark Kettenis [this message]
2003-03-08 15:20 ` Andrew Cagney
2003-03-08 17:32 ` Mark Kettenis
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=200303081142.h28Bg1BL035199@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--cc=ac131313@redhat.com \
--cc=gdb@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