This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] fix dwarf2 unwind of pc
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