Supported on windows
Supported on linux
Supported on embedded
Supported on android

info symbol command

Displays the name of the symbol residing at a given address


info symbol [Address]
info symbol [Expression]


Specifies the address that will be searched for a symbol.
Specifies an expression that will be evaluated to get the address. The expression can contain pseudo-registers (e.g. $pc for program counter).


If the specified address points inside the found symbol (e.g. function) and not to the beginning of it, the info symbol command will also show the offset from the beginning of the symbol.

Note that you don't need to start your program in order to use the info symbol command.

To perform a reverse operation (display the address of a given symbol), use the info address command.


We will demonstrate the use of the info symbol command using a basic C++ program with a main() function. We will start the program and use the info symbol command to find the function at a currently executed address:

(gdb) start
Temporary breakpoint 1 at 0x80483f0: file test.cpp, line 5.
Starting program: /home/bazis/test

Temporary breakpoint 1, main (argc=1, argv=0xbffff064) at test.cpp:5
5 return 0;
(gdb) info symbol $pc
main + 3 in section .text of /home/bazis/test
(gdb) print $pc
$1 = (void (*)(void)) 0x80483f0 <main(int, char**)+3>
(gdb) info symbol 0x80483f0
main + 3 in section .text of /home/bazis/test

Compatibility with VisualGDB

You can execute the info symbol command under VisualGDB using the GDB Session window in Visual Studio.

See also