This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Using frame to switch stacks
- From: Niklas Reiners <niklas dot reiners at gmx dot de>
- To: gdb at sourceware dot org
- Date: Wed, 28 Feb 2018 19:05:03 +0100
- Subject: Using frame to switch stacks
- Authentication-results: sourceware.org; auth=none
Hello everyone,
I'm debugging a library which uses multiple stacks. The documentation
states that frame / select-frame can be used for this. However I can
only seem to get it to work with stack and pc address of frames that are
with in the current stack. Parameter pairs outside the stack (composing
another stack) yield an invalid frame.
To show this behavior and how I invoke frame I prepared a minimal
example, containing a program with two stacks and a python script for
gdb. It can be found here: https://github.com/NotAC0W/gdb-switch-stacks
The repository also contains a more detailed description of the program
and the output of an example run.
Am I using frame correctly or should I be using different commands?
Thank you very much for your help,
Niklas