Red Hat ENTERPRISE LINUX 3 - DEBUGGING WITH GDB Manual page 4

Debugging with gdb
Hide thumbs Also See for ENTERPRISE LINUX 3 - DEBUGGING WITH GDB:
Table of Contents

Advertisement

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.
12.2.2.
12.2.3.
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
.......................................................................................................... 97
tfind
n
.............................................................................................................. 99
.................................................................. 100

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 3 - DEBUGGING WITH GDB and is the answer not in the manual?

Questions and answers

Table of Contents