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

Table Of Contents
NOTE: If the program expects unbuffered input or uses curses, termcap, or terminfo,
or otherwise transmits escape or control sequences to the terminal, you must use one of
the following methods to run Visual Interface for HP WDB:
Start the process in one terminal and attach to it with Visual Interface for HP WDB.
Use the tty command at the debugger prompt so the program's input and output
are directed to another terminal.
NOTE: If the underlying GDB terminates abnormally when you are using Visual Interface
for HP WDB, do not close the Visual Interface for HP WDB window. Wait for a minute
or two. Visual Interface for HP WDB captures the stack trace and the debugging session
details and sends you an email. You can then forward this to HP when you report the
problem. This is helpful to HP in reconstructing the crash scenario.
14.32.1 Starting and stopping Visual Interface for HP WDB
You can use Visual Interface for HP WDB in either of two modes:
X-window-based graphical interface: Supports mouse and keyboard commands.
Terminal interface: Supports keyboard commands only.
Visual Interface for HP WDB accepts the same command line arguments as GDB so you
can add options to the startup command. See the man page for GDB for the list of
arguments.
To start Visual Interface for HP WDB in graphical mode with mouse support, run
Visual Interface for HP WDB with the command:
/opt/langtools/bin/vdb
To start Visual Interface for HP WDB in terminal user interface mode, run Visual
Interface for HP WDB with the command:
/opt/langtools/bin/vdb -tui
To stop Visual Interface for HP WDB, type quit on the HP WDB command line:
(wdb) quit
14.32.2 Navigating the Visual Interface for HP WDB display
The Visual Interface for HP WDB window consists of two areas:
Source pane at the top
Debugger pane at the bottom
14.32 Visual Interface for HP WDB 235