8.11 Printing Floating Point Values....................................................................................
99
8.12 Floating point hardware..............................................................................................
9 Using GDB with Different Languages........................................................................................
101
9.1 Switching between source languages..........................................................................
9.1.1 List of filename extensions and languages.........................................................
9.1.2 Setting the working language.............................................................................
102
9.1.3 Having GDB infer the source language..............................................................
9.2 Displaying the language..............................................................................................
103
9.3 Type and range checking.............................................................................................
9.3.1 An overview of type checking............................................................................
9.3.2 An overview of range checking..........................................................................
104
9.4 Supported languages...................................................................................................
105
9.4.1 C and C++............................................................................................................
106
9.4.1.1 C and C++ operators....................................................................................
9.4.1.2 C and C++ constants....................................................................................
108
9.4.1.3 C++ expressions...........................................................................................
109
9.4.1.4 C and C++ defaults......................................................................................
110
9.4.1.5 C and C++ type and range checks...............................................................
9.4.1.6 GDB and C..................................................................................................
111
9.4.1.7 GDB features for C++..................................................................................
9.4.2 Fortran.................................................................................................................
112
9.4.2.1 Fortran types...............................................................................................
9.4.2.2 Fortran operators.........................................................................................
113
9.4.2.3 Fortran special issues..................................................................................
114
10 Examining the Symbol Table..................................................................................................
115
11 Altering Execution.................................................................................................................
119
11.1 Assignment to variables............................................................................................
11.2 Continuing at a different address..............................................................................
120
11.3 Giving your program a signal...................................................................................
121
11.4 Returning from a function.........................................................................................
11.5 Calling program functions........................................................................................
122
11.6 Patching programs.....................................................................................................
12 GDB Files.............................................................................................................................
125
12.1 Commands to specify files........................................................................................
12.2 Specifying shared library locations...........................................................................
130
12.3 Errors reading symbol files.......................................................................................
131
Table of Contents
5