This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Learn function name by its address
- From: Dmitry Dzhus <dima at sphinx dot net dot ru>
- To: gdb at sources dot redhat dot com
- Date: Thu, 25 Jun 2009 19:42:42 +0400
- Subject: Learn function name by its address
GDB's CLI command for examining memory provides helpful
`<function+offset>` annotations in its output:
(gdb) x 0x80486cd
0x80486cd <main+25>: 0x0000000a
MI `-data-read-memory` command yields only addresses:
{addr="0x00001390",data=["0x00","0x01"]},
{addr="0x00001392",data=["0x02","0x03"]}
What way of finding out function name by address would you suggest?
--
Happy Hacking.
http://sphinx.net.ru
ã