[SH][PATCH] Disable ABI frame sniffer

Jim Blandy jimb@red-bean.com
Sun Nov 13 23:58:00 GMT 2005


On 11/13/05, Daniel Jacobowitz <drow@false.org> wrote:
> Instead of whatever C language routine you use to start threads, start
> them using an assembly wrapper.  Have it set up a non-unwindable frame
> using DWARF2 CFI as mentioned in one of my earlier postings in this
> thread.  You can do this easily by marking the return address column as
> undefined.  Then have it call the C thread start routine.  GDB will
> cleanly terminate the backtrace right there  You'll have one more frame
> in your stack, but it will be a real frame.

There's an example of how to do this in libgloss/m32c/crt0.S (and
other places, I'm sure).



More information about the Gdb-patches mailing list