Python API: Getting symbol by address

Roman Popov <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAATAM3Ep+Wr-UhM6OKTSmhxwVM3r7vWfHpfSRW=ruc=GsuZ5ng@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.