Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)
Debugging optimized code....................................................................................................172
Debugging Optimized Code at Various Optimization Levels..................................................173
+O0 and +O1...........................................................................................................174
+O2/+O3/+O4/-ipo.................................................................................................174
Debugging with ARIES..........................................................................................................175
Debugging the application using GDB under ARIES.............................................................175
Limitations of GDB Support under ARIES........................................................................176
Attaching GDB to an already running emulated process.......................................................176
Detecting memory leaks using GDB under ARIES.................................................................176
Visual Interface for HP WDB..................................................................................................176
Starting and stopping Visual Interface for HP WDB..............................................................177
Navigating the Visual Interface for HP WDB display.............................................................177
Specifying foreground and background colors.....................................................................178
Using the X-window graphical interface..............................................................................178
Using the TUI mode..........................................................................................................179
Changing the size of the source or debugger pane..............................................................179
Using commands to browse through source files...................................................................180
Loading source files..........................................................................................................180
Editing source files...........................................................................................................180
Editing the command line and command-line history............................................................180
Saving the contents of a debugging session to a file.............................................................180
Support for ddd....................................................................................................................181
Support for XDB commands...................................................................................................181
stop in/at dbx commands.................................................................................................181
GDB Logging Commands......................................................................................................181
Support for command line calls in a stripped executable............................................................181
Support for command line calls in a stripped executable on PA-RISC systems...........................181
Additional support for command line calls in a stripped executable........................................182
For 32-bit applications:................................................................................................182
For 64-bit applications.................................................................................................182
Support for debugging stripped binaries.............................................................................182
Printing of locals and globals in a stripped module..........................................................182
Backtrace on stripped frames........................................................................................183
Command line calls to non-stripped library.....................................................................183
Setting breakpoints in unstripped shared library..............................................................183
Displaying the current block scope information.........................................................................183
Linux support........................................................................................................................183
Source level debugging ........................................................................................................183
Support for using old DW-VIRTUALITY values............................................................................184
Additional support for examining registers...............................................................................184
Printing or changing the values of CFM and PFS registers......................................................184
Printing and setting NaT registers.......................................................................................185
15 The HP-UX Terminal User Interface...........................................................186
Starting the TUI....................................................................................................................186
Automatically running a program at startup..............................................................................187
Screen Layouts.....................................................................................................................187
Source pane...................................................................................................................187
Disassembly pane............................................................................................................188
Source/Disassembly pane.................................................................................................188
Disassembly/Register pane...............................................................................................189
Source/Register pane.......................................................................................................189
Cycling through the panes.....................................................................................................190
Changing pane focus............................................................................................................190
Scrolling panes....................................................................................................................192
8 Contents