Printf-style debugging using GDB, Part 2

2 · Red Hat · Oct. 13, 2021, 7:03 a.m.
The first article in this series introduced the GNU debugger, GDB, and in particular its dprintf command, which displays variables from programs in a fashion similar to C-language printf statements. This article expands on the rich capabilities of printf-style debugging by showing how to save commands for reuse and how to save the output from the program and GDB for later examination. Listing currently defined breakpoints The dprintf command creates a special type of breakpoint. The info breakpo...