Skip to content
systemcoding.dev
Topic

Debugging

GDB and LLDB, JTAG and SWD with OpenOCD, Valgrind and sanitizers, core dumps, tracing and logic analysers: finding the bug instead of the symptom.

Flat illustration of a debugger stopped at a breakpoint beside the register values, with the GNU, C and LLVM logos.
Debugging

Print Variables, Arrays and Structs in GDB

Use GDB's print, display, ptype and info locals to read scalars, arrays, structs and pointers, and change output with format letters, @ slices and set print.

6 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.