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

Table Of Contents
13 Specifying a Debugging Target............................................................................................126
13.1 Active targets................................................................................................126
13.2 Commands for managing targets....................................................................126
13.3 Choosing target byte order.............................................................................129
14 HP-UX Configuration-Specific Information...............................................................................130
14.1 Summary of HP Enhancements to GDB.............................................................130
14.2 HP-UX dependencies.....................................................................................133
14.2.1 Linker Dependencies...............................................................................133
14.2.2 Dependent Standard Library Routines for Run Time Checking......................133
14.3 Supported Platforms and Modes.....................................................................135
14.4 HP-UX targets...............................................................................................136
14.5 Support for Alternate root...............................................................................136
14.6 Specifying object file directories......................................................................137
14.7 Fix and continue debugging...........................................................................139
14.7.1 Fix and Continue compiler dependencies...................................................139
14.7.2 Fix and Continue restrictions....................................................................140
14.7.3 Using Fix and Continue..........................................................................140
14.7.4 Example Fix and Continue session............................................................141
14.8 Inline Support...............................................................................................143
14.8.1 Inline Debugging in HP 9000 Systems......................................................143
14.8.2 Inline Debugging in Integrity Systems.......................................................144
14.8.2.1 Debugging Inline Functions in Integrity Systems..................................145
14.9 Debugging Macros.......................................................................................146
14.9.1 Viewing and Evaluating Macro Definitions.................................................147
14.9.1.1 Compiler Options to Enable Macro Debugging...................................147
14.9.2 Examples for Macro Debugging..............................................................148
14.10 Debugging Memory Problems.......................................................................151
14.10.1 When to suspect a memory leak.............................................................151
14.10.2 Memory debugging restrictions..............................................................151
14.10.3 Memory Debugging Methodologies.......................................................152
14.10.4 Debugging Memory in Interactive Mode.................................................153
14.10.4.1 Commands for interactive memory debugging..................................153
14.10.4.2 Example for interactive debugging session.......................................156
14.10.5 Debugging Memory in Batch Mode........................................................157
14.10.5.1 Setting Configuration Options for Batch Mode..................................157
14.10.5.2 Environment variable setting for Batch mode debugging....................161
14.10.5.3 Example for Batch Mode RTC.........................................................163
14.10.6 Debugging Memory Interactively After Attaching to a Running Process........165
14.10.7 Open-files reporting.............................................................................167
14.10.8 Configuring memory debugging settings.................................................167
14.10.8.1 Specifying the stack depth..............................................................167
14.10.8.2 Specifying minimum leak size.........................................................168
6 Contents