Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

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