Using GDB to get stack traces at particular program points

A while back I wrote how I sometimes use Valgrind to print a stack trace every time a particular program point is reached. I just learned how to do likewise with GDB. Here’s an example session that illustrates what to do. (gdb) break je_chunk_alloc_mmap # set a breakpoint Breakpoint 1 at 0x1aa32c0 (gdb) commands # … Continue reading Using GDB to get stack traces at particular program points