HP gnu source-level debugger 5992-4701 User Manual

Page 4

Advertising
background image

4.9 Debugging programs with multiple threads................................................................46
4.10 Debugging programs with multiple processes...........................................................49

5 Stopping and Continuing..........................................................................................................51

5.1 Breakpoints....................................................................................................................51

5.1.1 Setting breakpoints...............................................................................................52
5.1.2 Setting catchpoints................................................................................................56
5.1.3 Deleting breakpoints.............................................................................................58
5.1.4 Disabling breakpoints...........................................................................................58
5.1.5 Break conditions....................................................................................................59
5.1.6 Breakpoint command lists....................................................................................61
5.1.7 Breakpoint menus.................................................................................................62
5.1.8 “Cannot insert breakpoints”.................................................................................63

5.2 Continuing and stepping..............................................................................................64
5.3 Signals...........................................................................................................................67
5.4 Stopping and starting multi-thread programs..............................................................69

6 Examining the Stack.................................................................................................................71

6.1 Stack frames..................................................................................................................71
6.2 Stacks Without frames...................................................................................................72
6.3 Commands for Examining the Stack.............................................................................72
6.4 Backtraces......................................................................................................................72
6.5 Selecting a frame...........................................................................................................73
6.6 Information about a frame............................................................................................74

7 Examining Source Files.............................................................................................................77

7.1 Printing source lines......................................................................................................77
7.2 Searching source files....................................................................................................78
7.3 Specifying source directories........................................................................................79
7.4 Source and machine code..............................................................................................80

8 Examining Data.......................................................................................................................83

8.1 Expressions....................................................................................................................83
8.2 Program variables.........................................................................................................84
8.3 Artificial arrays.............................................................................................................85
8.4 Output formats..............................................................................................................86
8.5 Examining memory.......................................................................................................87
8.6 Automatic display.........................................................................................................89
8.7 Print settings..................................................................................................................90
8.8 Value history.................................................................................................................95
8.9 Convenience variables...................................................................................................96
8.10 Registers......................................................................................................................98

4

Table of Contents

Advertising