Debugging with GDB (September 2007)

Chapter 15: The HP-UX Terminal User Interface 195
15 The HP-UX Terminal User Interface
By default, GDB runs in line mode. For users who prefer an interface similar (though
not identical) to that of the XDB debugger, HP provides a terminal user interface (TUI),
which appears when you invoke the gdb command with the -tui option.
Use the -xdb option to enable the use of a number of XDB commands. See the Chapter 16
[XDB to WDB Transition Guide], page 209.
15.1 Starting the TUI
Invoke the debugger using a command like the following:
gdb -xdb -tui a.out
These examples use the default terminal screen size of 24 by 80 characters. Figure 1
displays the terminal screen window:
Figure 1: The terminal w indow
|----------------------------------------------------------------------|
|30 { |
|31 /* Try two test cases. */ |
|32 print_average (my_list, first, last); |
|33 print_average (my_list, first, last - 3); |
|34 } |
|35 |
|36 |
|37 |
|38 |
|39 |
|40 |
|41 |
|42 |
|----------------------------------------------------------------------|
File: average.c Procedure: ?? Line: ?? pc: ??
Wildebeest is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions. There is
absolutely no warranty for Wildebeest. Type "show warranty" for details.
---Type <return> to continue, or q <return> to quit---
Wildebeest was built for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
..
(gdb)