Switching between multiple stacks in gdb 6.3

Posted by flagmore on Stack Overflow See other posts from Stack Overflow or by flagmore
Published on 2009-09-17T11:56:56Z Indexed on 2010/04/05 5:03 UTC
Read the original article Hit count: 332

Hello! There are two stacks in the program: one is created by OS and the second is created by program itself to run some code with it.

When the program crashes in the second stack, I want to switch to the main stack in gdb and see the backtrace. Is it possible?

I tried to save the rsp to a variable and change it after the crash, but the resulting backtrace was not right. I think gdb cannot differentiate frames in stack.

© Stack Overflow or respective owner

Related posts about callstack

Related posts about multiplestacks