Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)
• The left and right arrow keys move the cursor in the debugger window.
• Two rows of labeled softkeys at the bottom of the display give you quick access to common
commands.
Visual Interface for HP WDB GUI display
33 #include <stdlib.h>
34 #include "Deck.h"
35 #include "Player.h"
36 #include "House.h"
37
38 int main ()
39 {
*> 40 srand ((int) time(0));
41
42 Deck theDeck;
43 Player thePlayer (100);
44 House theHouse (16);
45
46 theHouse.Instructions();
47 }
File: BlackJack.C Function: main Line: 40 Pc: 0x3ea0
(wdb) b main
Breakpoint 1 at 0x3ea0: file BlackJack.C, line 40.
(wdb) run
Starting program: /work/wdb/blackjack/blackjack
Breakpoint 1, main () at BlackJack.C:40
40 srand ((int) time(0));
(wdb)
Run Resume Stop Up Visual Finish Print Type List
Interface for
WDB
Faq Stop Next Down Prompt Print* Edit Credits
You can click the softkey or press a function key on the keyboard to invoke the command.
The function keys F1 through F8 correspond to the bottom row of softkeys. The function keys F9
and up correspond to the top row.
Specifying foreground and background colors
To change the foreground and background colors, update the `.Xdefaults' file in the home directory.
The resources are the same as for `hpterm'.
Here is a sample entry:
HPterm*foreground: white
HPterm*background: rgb:68/90/C4
Using the X-window graphical interface
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
Visual Interface for HP WDB opens an `hpterm' window, ignoring the value of the TERM environment
variable, for debugging a program.
178 HP-UX Configuration-Specific Information