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

info functions command

Dislays the list of functions in the debugged program


info functions
info functions [Regex]


If specified, the info functions command will list the functions matching the regex. If omitted, the command wil list all functions in all loaded modules (main program and shared libraries).


Note that running the info functions command without arguments can produce a lot of output as the list of all functions in all loaded shared libraries is typically very long.


Below is a sample use of the info functions for a very basic program containing only the main() function:

(gdb) help info functions
All function names, or those matching REGEXP.
(gdb) info functions
All defined functions:

File test.cpp:
int main(int, char**);
static void _GLOBAL__sub_I_main();
static void __static_initialization_and_destruction_0(int, int);

Non-debugging symbols:
0x080484fc _init
0x08048530 __cxa_atexit@plt
0x08048540 __gmon_start__@plt
0x08048550 _ZNSt8ios_base4InitC1Ev@plt
0x08048560 __libc_start_main@plt
0x08048570 _ZNSt8ios_base4InitD1Ev@plt
0x08048580 _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@plt
0x08048590 _ZNSolsEPFRSoS_E@plt
0x080485a0 _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@plt
0x080485b0 _start
0x080485e0 __x86.get_pc_thunk.bx
0x080485f0 deregister_tm_clones
0x08048620 register_tm_clones
0x08048660 __do_global_dtors_aux
0x08048680 frame_dummy
0x08048740 __libc_csu_init
0x080487b0 __libc_csu_fini
0x080487b4 _fini
(gdb) info functions ^main
All functions matching regular expression "^main":

File test.cpp:
int main(int, char**);

Compatibility with VisualGDB

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

See also