Debugging with GDB (September 2007)

Chapter 15: The HP-UX Terminal User Interface 197
15.2 Automatically running a program at startup
WDB does not start running the target executable at startup as do xdb and HP DDE.
This makes it easy to set break points before the target program’s main function.
To make WDB automatically start running the target program add these lines to your
startup file, .gdbinit’:
break main
run
15.3 Screen Layouts
The TUI supports four panes within the terminal window, in various combinations:
Command
Source
Disassembly
Register
The Command pane is always present. The possible configurations of the other panes
are:
Source
Disassembly
Source/Disassembly
Disassembly/Register
Source/Register
The layout command (abbreviated la) enables you to change from one window config-
uration to another.
Note: You can abbreviate any command to its shortest unambiguous form.
15.3.1 Source pane
The Source pane, Figure 1, appears by default when you invoke the debugger. You can
also make it appear by issuing the command
la src
15.3.2 Disassembly pane
The Disassembly pane appears when you issue the command
la asm
The pane looks like this: