This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Integrating DWARF2 CFA info
- To: Daniel Berlin <dan at www dot cgsoftware dot com>
- Subject: Re: Integrating DWARF2 CFA info
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 10 May 2001 12:58:35 -0400
- Cc: gdb at sources dot redhat dot com
- References: <Pine.LNX.4.33.0105101151430.9863-100000@www.cgsoftware.com>
> Well, actually, IMHO, it is.
> The CFA info gives us the location of all saved registers for the entire
> procedure.
> It's always correct, even in the presence of optimization.
> Given the pc for the frame, it can tell you exactly where all the saved
> registers are, at that particular point in time.
> Therefore, it is strictly better to use the CFA info, than scan the
> instructions.
>
> So I see a strict hiearchy of what to use:
> Dwarf2 CFA Info
> <whatever else>
This assumes that dwarf2 info is more correct than some other sort of info.
Andrew