This is the mail archive of the gdb-patches@sources.redhat.com 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] Teach dwarf2-frame.c about StackGhost


On Sun, Apr 03, 2005 at 12:18:42AM +0200, Mark Kettenis wrote:
> One of the things that still keeps me from enabling the DWARF2
> unwinder on SPARC is the fact that it doesn't play nice with
> StackGhost.  Here is an attempt to make dwarf2-frame.c deal with it by
> introducing yet another register rule.  People might object since this
> is only sort of architecture independent code.  However it seems that
> this is the cleanest way to solve this.

Ewww... this isn't even vaguely architecture independent code.  It
seems like it's in the wrong place; there's no reason StackGhost
must be restricted to register windows.

Here's an alternative that I think is cleaner (and will work... I
hope): create a sparc-specific unwinder.  Its sniffer can call the
dwarf2 sniffer; similarly for this_id and prev_register.  Then you can
handle the StackGhost cookie when you are requested to unwind the PC.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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