Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)

14.26.5 Support for debugging namespaces.......................................................................176
14.26.6 Command for evaluating the address of an expression.............................................176
14.27 Viewing Wide Character Strings...................................................................................176
14.28 Support for output logging...........................................................................................177
14.28.1 Support for dumping array in an ASCII file..............................................................177
14.28.2 Support for Fortran array slices..............................................................................177
14.28.3 Displaying enumerators........................................................................................178
14.28.4 Support for debugging typedefs............................................................................178
14.28.5 Support for steplast command for C and C++.........................................................178
14.29 Getting information from a non-debug executable............................................................179
14.30 Debugging optimized code..........................................................................................179
14.30.1 Debugging Optimized Code at Various Optimization Levels......................................181
14.30.1.1 +O0 and +O1..............................................................................................181
14.30.1.2 +O2/+O3/+O4/-ipo...................................................................................181
14.31 Debugging with ARIES.................................................................................................182
14.31.1 Debugging the application using GDB under ARIES..................................................182
14.31.1.1 Limitations of GDB Support under ARIES............................................................183
14.31.2 Attaching GDB to an already running emulated process............................................183
14.31.3 Detecting memory leaks using GDB under ARIES......................................................183
14.32 Visual Interface for HP WDB.........................................................................................184
14.32.1 Starting and stopping Visual Interface for HP WDB...................................................184
14.32.2 Navigating the Visual Interface for HP WDB display.................................................184
14.32.3 Specifying foreground and background colors.........................................................185
14.32.4 Using the X-window graphical interface..................................................................186
14.32.5 Using the TUI mode..............................................................................................186
14.32.6 Changing the size of the source or debugger pane..................................................187
14.32.7 Using commands to browse through source files.......................................................187
14.32.8 Loading source files..............................................................................................187
14.32.9 Editing source files...............................................................................................187
14.32.10 Editing the command line and command-line history...............................................187
14.32.11 Saving the contents of a debugging session to a file................................................187
14.33 Support for ddd..........................................................................................................188
14.34 Support for XDB commands..........................................................................................188
14.34.1 stop in/at dbx commands.....................................................................................188
14.35 GDB Logging Commands.............................................................................................188
14.36 Support for command line calls in a stripped executable..................................................189
14.36.1 Support for command line calls in a stripped executable on PA-RISC systems................189
14.36.2 Additional support for command line calls in a stripped executable............................189
14.36.2.1 For 32-bit applications:..................................................................................189
14.36.2.2 For 64-bit applications..................................................................................190
14.36.3 Support for debugging stripped binaries.................................................................190
14.36.3.1 Printing of locals and globals in a stripped module...........................................190
14.36.3.2 Backtrace on stripped frames.........................................................................190
14.36.3.3 Command line calls to non-stripped library......................................................190
14.36.3.4 Setting breakpoints in unstripped shared library...............................................190
14.37 Displaying the current block scope information................................................................190
14.38 Linux support..............................................................................................................191
14.39 Source level debugging ...............................................................................................191
14.40 Support for using old DW-VIRTUALITY values..................................................................191
14.41 Additional support for examining registers......................................................................191
14.41.1 Printing or changing the values of CFM and PFS registers...........................................191
14.41.2 Printing and setting NaT registers...........................................................................192
8 Contents