From: Andrew Cagney <ac131313@cygnus.com>
To: Daniel Berlin <dan@dberlin.org>
Cc: gdb@sources.redhat.com
Subject: Re: think-o: dwarf2 CFA != frame->frame (x86-64)
Date: Tue, 09 Apr 2002 11:52:00 -0000 [thread overview]
Message-ID: <3CB3385F.10209@cygnus.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0204091358180.11863-100000@dberlin.org>
> So you can't say that it should use DW_AT_frame_base. It can't.
>> > DW_AT_frame_base is a completely different concept. It is not intended to
>> > have anything to do with unwinding the stack. It also has nothing
>> > necessarily to do with a real frame base. See 3.3.5. This is why it's in
>> > quotes. Most compiler use it in way 1 described in that section, to
>> > simplify location descriptions.
>
>>
>> (Didn't I point you at 3.3.5? :-).
>>
>> Location expressions use DW_OP_fbreg when they need to refer to the
>> stack. DW_OP_fpreg is defined in terms of DW_AT_frame_base. Can you
>> please point me to the section where a location expression OP directly
>> (not indirectly as in a register) refers to the CFA?
>
>
> No, why would I need to?
> For all intents and purposes, you could severe the CFA sections of the
> dwarf2 spec, and place them into something called "the CFA spec".
> It doesn't change the fact that frame->base with CFA info can't use
> DW_AT_frame_base.
There are two concepts here (frame_base and CFA). GDB's frame->frame
can only correspond to one. My point is that GDB's concept of a
frame->frame best fits DW_AT_frame_base (the high level language frame
pointer) and not CFA (something for reverse engineering register locations).
Perhaphs GDB's concept is wrong. Given it is for debugging high level
languages I don't think so.
Andrew
prev parent reply other threads:[~2002-04-09 18:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-08 22:45 Andrew Cagney
2002-04-08 23:43 ` Daniel Berlin
2002-04-09 9:12 ` Andrew Cagney
2002-04-09 10:03 ` Daniel Berlin
2002-04-09 10:32 ` Andrew Cagney
2002-04-09 10:58 ` Daniel Berlin
2002-04-09 12:17 ` Andrew Cagney
2002-04-09 12:42 ` Daniel Berlin
2002-04-09 10:58 ` Andrew Cagney
2002-04-09 11:00 ` Daniel Berlin
2002-04-09 11:52 ` Andrew Cagney [this message]
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=3CB3385F.10209@cygnus.com \
--to=ac131313@cygnus.com \
--cc=dan@dberlin.org \
--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