Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)

17 Controlling GDB...................................................................................225
17.1 Setting the GDB Prompt..................................................................................................225
17.2 Setting Command Editing Options in GDB........................................................................225
17.3 Setting Command History Feature in GDB.........................................................................225
17.4 Setting the GDB Screen Size...........................................................................................226
17.5 Supported Number Formats............................................................................................227
17.6 Optional warnings and messages....................................................................................227
17.7 Optional messages about internal happenings..................................................................228
17.8 Configuring the Current Application Binary Interface (ABI) .................................................228
18 Canned Sequences of Commands...........................................................229
18.1 User-defined commands.................................................................................................229
18.2 User-defined command hooks.........................................................................................230
18.3 Command files.............................................................................................................230
18.4 Commands for controlled output.....................................................................................231
19 Using GDB under gnu Emacs.................................................................233
20 GDB Annotations.................................................................................235
20.1 What is an annotation?.................................................................................................235
20.2 The server prefix...........................................................................................................235
20.3 Values.........................................................................................................................235
20.4 Frames........................................................................................................................237
20.5 Displays......................................................................................................................238
20.6 Annotation for GDB input..............................................................................................238
20.7 Errors..........................................................................................................................239
20.8 Information on breakpoints............................................................................................239
20.9 Invalidation notices.......................................................................................................240
20.10 Running the program...................................................................................................240
20.11 Displaying source.........................................................................................................240
20.12 Annotations We Might Want in the Future.......................................................................241
21 The GDB/MI Interface...........................................................................243
21.1 GDB/MI Command Syntax.............................................................................................243
21.1.1 GDB/MI Input syntax...............................................................................................243
21.1.2 GDB/MI Output syntax............................................................................................244
21.1.3 Simple examples of GDB/MI interaction....................................................................245
21.2 GDB/MI compatibility with CLI........................................................................................245
21.3 GDB/MI output records..................................................................................................246
21.3.1 GDB/MI result records............................................................................................246
21.3.2 GDB/MI stream records..........................................................................................246
21.3.3 GDB/MI out-of-band records...................................................................................246
21.4 GDB/MI command description format..............................................................................246
21.5 GDB/MI breakpoint table commands...............................................................................247
21.6 GDB/MI Data manipulation............................................................................................253
21.7 GDB/MI program control...............................................................................................261
21.8 Miscellaneous GDB commands in GDB/MI......................................................................269
21.9 GDB/MI Stack Manipulation Commands..........................................................................271
21.10 GDB/MI Symbol query commands.................................................................................274
21.11 GDB/MI Target Manipulation Commands........................................................................277
21.12 GDB/MI thread commands............................................................................................281
21.13 GDB/MI tracepoint commands.......................................................................................282
10 Contents