This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Integrating DWARF2 CFA info
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: Integrating DWARF2 CFA info
- From: Daniel Berlin <dan at www dot cgsoftware dot com>
- Date: Thu, 10 May 2001 14:07:02 -0400 (EDT)
- cc: <gdb at sources dot redhat dot com>
On Thu, 10 May 2001, Andrew Cagney wrote:
> > 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.
Which it is, as I've shown.
It will always be correct.
If not, the compiler is broken.
>
> Andrew
>