9. Examining Source Files ................................................................................................................ 59
9.1. Printing source lines......................................................................................................... 59
9.2. Editing source files........................................................................................................... 60
9.2.1. Choosing your editor......................................................................................... 61
9.3. Searching source files ...................................................................................................... 61
9.4. Specifying source directories........................................................................................... 62
9.5. Source and machine code................................................................................................. 63
10. Examining Data........................................................................................................................... 65
10.1. Expressions .................................................................................................................... 65
10.2. Program variables .......................................................................................................... 66
10.3. Artificial arrays .............................................................................................................. 67
10.4. Output formats ............................................................................................................... 68
10.5. Examining memory........................................................................................................ 69
10.6. Automatic display .......................................................................................................... 71
10.7. Print settings .................................................................................................................. 72
10.8. Value history .................................................................................................................. 77
10.9. Convenience variables ................................................................................................... 78
10.10. Registers....................................................................................................................... 79
10.11. Floating point hardware ............................................................................................... 80
10.12. Vector Unit................................................................................................................... 81
10.13. Memory region attributes............................................................................................. 81
10.13.1. Attributes....................................................................................................... 82
10.14. Copy between memory and a file................................................................................. 83
10.15. Character Sets .............................................................................................................. 84
11. C Preprocessor Macros............................................................................................................... 89
12. Tracepoints .................................................................................................................................. 93
12.1. Commands to Set Tracepoints ....................................................................................... 93
12.1.1. Create and Delete Tracepoints ........................................................................ 93
12.1.2. Enable and Disable Tracepoints...................................................................... 94
12.1.3. Tracepoint Passcounts..................................................................................... 94
12.1.4. Tracepoint Action Lists................................................................................... 95
12.1.5. Listing Tracepoints ......................................................................................... 96
12.1.6. Starting and Stopping Trace Experiment........................................................ 96
12.2. Using the collected data................................................................................................. 97
12.2.1.
tfind
n
.......................................................................................................... 97
12.2.2.
tdump
.............................................................................................................. 99
12.2.3.
save-tracepoints
filename
.................................................................. 100
12.3. Convenience Variables for Tracepoints........................................................................ 100
13. Debugging Programs That Use Overlays................................................................................ 103
13.1. How Overlays Work..................................................................................................... 103
13.2. Overlay Commands ..................................................................................................... 104
13.3. Automatic Overlay Debugging .................................................................................... 106
13.4. Overlay Sample Program............................................................................................. 107
14. Using gdb with Different Languages....................................................................................... 109
14.1. Switching between source languages........................................................................... 109
14.1.1. List of filename extensions and languages.................................................... 109
14.1.2. Setting the working language........................................................................ 110
14.1.3. Having gdb infer the source language .......................................................... 110
14.2. Displaying the language............................................................................................... 110
14.3. Type and range checking.............................................................................................. 111
14.3.1. An overview of type checking ...................................................................... 111
14.3.2. An overview of range checking .................................................................... 112
14.4. Supported languages .................................................................................................... 113
Summary of Contents for ENTERPRISE LINUX 4 - DEVELOPER TOOLS GUIDE
Page 1: ...Red Hat Enterprise Linux 4 Debugging with gdb ...
Page 12: ...2 Chapter 1 Debugging with gdb ...
Page 28: ...18 Chapter 4 Getting In and Out of gdb ...
Page 34: ...24 Chapter 5 gdb Commands ...
Page 44: ...34 Chapter 6 Running Programs Under gdb ...
Page 68: ...58 Chapter 8 Examining the Stack ...
Page 98: ...88 Chapter 10 Examining Data ...
Page 112: ...102 Chapter 12 Tracepoints ...
Page 118: ...108 Chapter 13 Debugging Programs That Use Overlays ...
Page 138: ...128 Chapter 14 Using gdb with Different Languages ...
Page 144: ...134 Chapter 15 Examining the Symbol Table ...
Page 170: ...160 Chapter 19 Debugging remote programs ...
Page 198: ...188 Chapter 21 Controlling gdb ...
Page 204: ...194 Chapter 22 Canned Sequences of Commands ...
Page 206: ...196 Chapter 23 Command Interpreters ...
Page 216: ...206 Chapter 25 Using gdb under gnu Emacs ...
Page 296: ...286 Chapter 27 gdb Annotations ...
Page 300: ...290 Chapter 28 Reporting Bugs in gdb ...
Page 322: ...312 Chapter 30 Using History Interactively ...
Page 362: ...352 Appendix D gdb Remote Serial Protocol ...
Page 380: ...370 Appendix F GNU GENERAL PUBLIC LICENSE ...
Page 386: ...376 Appendix G GNU Free Documentation License ...
Page 410: ......