Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
5.1.5 Break conditions........................................................................................................45
5.1.6 Breakpoint command lists............................................................................................46
5.1.7 Breakpoint menus.......................................................................................................47
5.1.8 Cannot insert breakpoints...........................................................................................48
5.2 Continuing and stepping...................................................................................................48
5.3 Signals............................................................................................................................50
5.4 Stopping and starting multi-thread programs........................................................................52
6 Examining the Stack.................................................................................55
6.1 Stack frames.....................................................................................................................55
6.2 Stacks Without frames.......................................................................................................55
6.3 Commands for Examining the Stack....................................................................................55
6.4 Backtraces.......................................................................................................................56
6.5 Selecting a frame..............................................................................................................56
6.6 Information about a frame.................................................................................................57
7 Examining Source Files.............................................................................59
7.1 Printing source lines...........................................................................................................59
7.2 Searching source files........................................................................................................60
7.3 Specifying source directories...............................................................................................60
7.4 Source and machine code..................................................................................................61
8 Examining Data.......................................................................................63
8.1 Expressions......................................................................................................................63
8.2 Program variables.............................................................................................................63
8.3 Artificial arrays.................................................................................................................65
8.4 Output formats.................................................................................................................65
8.5 Examining memory...........................................................................................................66
8.6 Automatic display.............................................................................................................67
8.7 Print settings.....................................................................................................................68
8.8 Value history....................................................................................................................72
8.9 Convenience variables......................................................................................................73
8.10 Registers.........................................................................................................................74
8.11 Printing Floating Point Values.............................................................................................75
8.12 Floating point hardware...................................................................................................75
8.13 Functions........................................................................................................................75
9 Using GDB with Different Languages...........................................................77
9.1 Switching between source languages...................................................................................77
9.1.1 List of filename extensions and languages......................................................................77
9.1.2 Setting the working language......................................................................................77
9.1.3 Having GDB infer the source language.........................................................................78
9.2 Displaying the language....................................................................................................78
9.3 Type and range checking...................................................................................................78
9.3.1 An overview of type checking......................................................................................79
9.3.2 An overview of range checking...................................................................................79
9.4 Supported languages........................................................................................................80
9.4.1 C and C++...............................................................................................................80
9.4.1.1 C and C++ operators..........................................................................................80
9.4.1.2 C and C++ constants..........................................................................................82
9.4.1.3 C++ expressions.................................................................................................83
9.4.1.4 C and C++ defaults............................................................................................84
4 Contents