Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
18 Canned Sequences of Commands........................................................................................289
18.1 User-defined commands.................................................................................289
18.2 User-defined command hooks.........................................................................290
18.3 Command files.............................................................................................291
18.4 Commands for controlled output.....................................................................292
19 Using GDB under gnu Emacs..............................................................................................294
20 GDB Annotations..............................................................................................................297
20.1 What is an annotation?.................................................................................297
20.2 The server prefix...........................................................................................297
20.3 Values.........................................................................................................298
20.4 Frames........................................................................................................299
20.5 Displays......................................................................................................301
20.6 Annotation for GDB input..............................................................................301
20.7 Errors..........................................................................................................302
20.8 Information on breakpoints............................................................................302
20.9 Invalidation notices.......................................................................................303
20.10 Running the program...................................................................................303
20.11 Displaying source........................................................................................304
20.12 Annotations We Might Want in the Future......................................................305
21 The GDB/MI Interface........................................................................................................306
21.1 GDB/MI Command Syntax.............................................................................306
21.1.1 GDB/MI Input syntax...............................................................................306
21.1.2 GDB/MI Output syntax...........................................................................307
21.1.3 Simple examples of GDB/MI interaction....................................................309
21.2 GDB/MI compatibility with CLI.......................................................................309
21.3 GDB/MI output records..................................................................................310
21.3.1 GDB/MI result records............................................................................310
21.3.2 GDB/MI stream records..........................................................................310
21.3.3 GDB/MI out-of-band records...................................................................310
21.4 GDB/MI command description format..............................................................311
21.5 GDB/MI breakpoint table commands..............................................................311
21.6 GDB/MI Data manipulation...........................................................................319
21.7 GDB/MI program control...............................................................................329
21.8 Miscellaneous GDB commands in GDB/MI......................................................339
21.9 GDB/MI Stack Manipulation Commands.........................................................340
21.10 GDB/MI Symbol query commands.................................................................345
21.11 GDB/MI Target Manipulation Commands........................................................348
21.12 GDB/MI thread commands...........................................................................352
21.13 GDB/MI tracepoint commands......................................................................354
21.14 GDB/MI variable objects..............................................................................354
12 Contents