(gdb) break *0x972 (gdb) break *0x972 Debugging, GNU± Linux and WebHosting and ... and ... GDB, please set a breakpoint on all my functions Friday, February 10, 2017 - No comments For studying a piece of code, a colleague of mine wanted to set a breakpoint on all the functions of its applications. All but those in shared libraries, so not the libc, libpthread, etc. We agreed that this means all the functions defined in files compiled with -g. TL;DR; ==> breakpoint_all.py <== and from GDB: (gdb) source breakpoint_all.py I don't claim it's the best way to do, nor the most efficient tracing, I just highlight a possibility of gdb+python. Feel free to update the last step (or the others) to let it do what ever you need! In the command line, GDB can list the functions with info functions: (gdb) info functions File ../../gdb/gdb/compile/compile.c:     void _initialize_compile(void);     int compile_register_name_demangle(struct gdbarch *, const char *);     char *compile_register_name_mangled(struct gdbarch *, int);     void eval_compile_command(struct command_line *, char *, enum compile_i_scope_types);     static int check_raw_argument(char **);