This is the mail archive of the gdb@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]

Python API: Getting symbol by address


Hello,
I have collection in C++ that stores pointers to functions and methods. I
want to pretty-print pointed method and functions names.

It is possible using GDB shell, for example:

(gdb) info symbol 0x405ece

top::test_thread() in section .text of test_procs


However I found no way to do the same using Python API.  Why such
limitation?

P/S Same question on stackoverflow :
https://stackoverflow.com/questions/47916564/gdb-python-api-getting-symbol-name-from-address

Thanks,
Roman


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