Program Listings
You can see around where you are by using the list command. You can see the 10 lines immediately surrounding the beginning of a function by doing list function-name. To change the number of lines listed, use set listsize:
(gdb) set listsize 17
(gdb) list reverseIt
12 #import <string.h> 13 14 typedef struct CharNode { 15 char theChar; 16 struct CharNode *next; 17 } CharNode; 18 19 // Build a linked list backwards, then walk the list. 20 void reverseIt ...
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.