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: [SH][PATCH] Disable ABI frame sniffer


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).


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