[RFA] fix dwarf2 unwind of pc

Mark Kettenis kettenis@chello.nl
Sun Jun 1 09:44:00 GMT 2003


Richard Henderson <rth@redhat.com> writes:

> On Sat, May 31, 2003 at 10:48:01PM -0400, Andrew Cagney wrote:
> > The loss of control is likely from a dud return address (used for 
> > setting the return breakpoint) being computed when the the code is first 
> > stepped into dummy().
> 
> Indeed, a problem with the new dwarf2 unwinder.  Neither of the
> targets Mark tested have the return address in a register.  Ok?
> 
> r~
> 
> 	* dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
> 	not overlapping PC_REGNUM.

Ah, GCC is trying to be economical here.  From reading the DWARF
standard I would have expected the compiler to have emitted CFA
instructions that actually put something in the return address column.
Anyway, this shouldn't hurt.

Approved.

Mark



More information about the Gdb mailing list