Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
9.4.1.5 C and C++ type and range checks.......................................................................84
9.4.1.6 GDB and C.......................................................................................................84
9.4.1.7 GDB features for C++.........................................................................................84
9.4.2 Fortran.....................................................................................................................85
9.4.2.1 Fortran types......................................................................................................85
9.4.2.2 Fortran operators...............................................................................................86
9.4.2.3 Fortran special issues.........................................................................................86
10 Examining the Symbol Table....................................................................87
11 Altering Execution...................................................................................91
11.1 Assignment to variables.....................................................................................................91
11.2 Continuing at a different address.......................................................................................92
11.3 Giving your program a signal............................................................................................92
11.4 Returning from a function..................................................................................................93
11.5 Calling program functions.................................................................................................93
11.6 Patching programs...........................................................................................................93
12 GDB Files..............................................................................................95
12.1 Commands to specify files.................................................................................................95
12.2 Specifying shared library locations....................................................................................98
12.3 Errors reading symbol files................................................................................................99
13 Specifying a Debugging Target..............................................................101
13.1 Active targets................................................................................................................101
13.2 Commands for managing targets....................................................................................101
13.3 Choosing target byte order.............................................................................................103
14 HP-UX Configuration-Specific Information..................................................105
14.1 Summary of HP Enhancements to GDB.............................................................................105
14.2 HP-UX dependencies.....................................................................................................107
14.2.1 Linker Dependencies...............................................................................................107
14.2.2 Dependent Standard Library Routines for Run Time Checking.......................................107
14.3 Supported Platforms and Modes......................................................................................108
14.4 HP-UX targets...............................................................................................................109
14.5 Support for Alternate root...............................................................................................109
14.6 Specifying object file directories......................................................................................110
14.7 Fix and continue debugging...........................................................................................111
14.7.1 Fix and Continue compiler dependencies...................................................................112
14.7.2 Fix and Continue restrictions....................................................................................112
14.7.3 Using Fix and Continue...........................................................................................112
14.7.4 Example Fix and Continue session............................................................................113
14.8 Inline Support...............................................................................................................114
14.8.1 Inline Debugging in HP 9000 Systems......................................................................115
14.8.2 Inline Debugging in Integrity Systems.......................................................................115
14.8.2.1 Debugging Inline Functions in Integrity Systems..................................................116
14.9 Debugging Macros.......................................................................................................117
14.9.1 Viewing and Evaluating Macro Definitions.................................................................117
14.9.1.1 Compiler Options to Enable Macro Debugging...................................................118
14.9.2 Examples for Macro Debugging..............................................................................118
14.10 Debugging Memory Problems.......................................................................................120
Contents 5