I'm trying to use info symbol $frameptr
but in a gdb script. Is there an equivalent in the gdb python API?
Asked
Active
Viewed 193 times
2

BurntToast
- 21
- 1
-
Worst case you can parse the output with Python (`gdb.execute(..., to_string=True)`), or use GDB/MI. ■ Probably somewhere near [Symbol Tables In Python (Debugging with GDB)](https://sourceware.org/gdb/current/onlinedocs/gdb/Symbol-Tables-In-Python.html#Symbol-Tables-In-Python) – user202729 Dec 07 '21 at 07:57
-
There's [GDB Python API: Getting symbol name from address - Stack Overflow](https://stackoverflow.com/questions/47916564/gdb-python-api-getting-symbol-name-from-address?noredirect=1&lq=1) but I'm not sure if it supports the frame pointer or similar. – user202729 Dec 19 '21 at 02:30