GDB Specifics
The above walkthrough hits on the major things you can do with gdb in command-line mode:
See program listings
See the stack trace and move around in the stack looking at the variables in various functions
Set and disable breakpoints
Display data
Change data
Change execution flow
What follows is a survey of different commands that could be useful. This is still a very small subset of what gdb is capable of.
Get Advanced Mac OS X Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.