August 2011
Intermediate to advanced
552 pages
23h 48m
English
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 reverseIt12 #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 ...
Read now
Unlock full access