This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc, frame] Always check for unsaved PC


> Date: Sun, 20 Aug 2006 13:05:08 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> > This doesn't fly for architectures where the return address is
> > computed though, like on sparc.
> 
> I see that gdb doesn't use dwarf2 unwind tables on sparc.  Does GCC
> generate them?  How does GCC deal with the extra +8?  It looks like
> it doesn't; it uses %o7 to handle unwinding and just looks at the
> location of the call site.

We use them on Linux, but I haven't enabled the DWARF CFI frame
unwinder on all SPARC platforms yet because the StackGhost
complication on OpenBSD/sparc and OpenBSD/sparc64.

The extra +8 is handled by sparc{32|64}_dwarf2_frame_init_reg().

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]