From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Berlin To: Andrew Cagney Cc: Subject: Re: Integrating DWARF2 CFA info Date: Thu, 10 May 2001 11:07:00 -0000 Message-id: References: <3AFAC8BB.7040306@cygnus.com> X-SW-Source: 2001-05/msg00232.html 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 > > > > 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 >