From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: Re: RFA: DW_AT_frame_base fix for complicated frames
Date: Thu, 09 Oct 2003 14:26:00 -0000 [thread overview]
Message-ID: <20031009142637.GC29621@nevyn.them.org> (raw)
In-Reply-To: <vt23cebikyv.fsf@zenia.home>
On Thu, Oct 02, 2003 at 12:54:32PM -0500, Jim Blandy wrote:
>
> Daniel Jacobowitz <drow@mvista.com> writes:
> > Does anyone remember a specific reason why this code was there? I don't,
> > and I rewrote all of this stuff... I am 99.99% sure it's based on the unwind
> > handling for saved registers, where we get either a register number or the
> > address of a stack slot. But for frame bases that's not true:
> >
> > A subroutine or entry point entry may also have a DW_AT_frame_base
> > attribute, whose value is a location description that computes the "frame
> > base" for the subroutine or entry point.
> >
> > i.e. it computes the frame base. Not the address of the frame base. This
> > memory read tends to find (on x86) the return address, and then we think the
> > stack is at <main+34>. Oopsie.
> >
> > OK? With this patch and some code Daniel Berlin and Joseph are working on,
> > location lists actually work. I can see all the arguments in an
> > -fomit-frame-pointer function from the beginning. It's really quite cool.
>
> I think you're right, there's no reason for that memory fetch to be
> there. Please commit.
Thanks. I've committed this to trunk and branch. I also moved this to
the branch:
2003-10-09 Daniel Jacobowitz <drow@mvista.com>
Merge from mainline:
2003-07-31 Daniel Jacobowitz <drow@mvista.com>
* dwarf2read.c (new_symbol): Use var_decode_location for parameters.
Location expressions and lists should work reasonably well on both now.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-10-09 14:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-02 16:56 Daniel Jacobowitz
2003-10-02 17:54 ` Jim Blandy
2003-10-09 14:26 ` Daniel Jacobowitz [this message]
2003-10-09 15:14 ` Andrew Cagney
2003-11-24 4:34 ` Daniel Jacobowitz
2003-11-24 16:02 ` Andrew Cagney
2003-11-24 17:03 ` Daniel Jacobowitz
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=20031009142637.GC29621@nevyn.them.org \
--to=drow@mvista.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