Using the WDB GUI · Using the Command View Home and Help Icons Keyword Index Home Using Help
Line Graphic
Line Graphic

Contents

Keyword Index

Using the WDB GUI
Starting and Exiting the WDB GUI
Loading a Program and Changing Program Settings
Opening Source Files
Changing the Working Directory
Saving and Restoring Debug Sessions
Setting Source Paths
Setting Object Paths
Viewing Your Code
Browsing Functions
Setting Signal Handling
Finding Specific Text in Your Code
{short description of image} Using the Command View
Using the Watch View
Using Quick Watch
Using the Local Variables View
Using the Call Stack View
Using the Threads View
Using the Registers View
Examining Memory Use
Using the Program Console
Using Breakpoints
Advancing Through Your Program
Fixing Code from within the Debugger
Starting and Stopping the Debug Process
Setting Debugger Preferences
Customizing Colors and Fonts

Reference Information

Troubleshooting

Using Help



Bullet Overview
Bullet Issuing WDB Commands
Bullet Shell Commands
Bullet Using the Command History
Bullet Getting Help on WDB Commands
Bullet Tips
Bullet See Also

Line Graphic

Overview

The Command view lets you send commands directly to WDB and view the output from these commands. It also displays messages and warnings associated with the debug process. If you issue a command that has a corresponding GUI action, the command results are reflected in the GUI. For example, if you set a breakpoint in the Command view, a breakpoint marker (a solid red octagon) appears in the left column of the GUI's Source and Disassembly views.

A history of commands you have executed during the current debug session is available from a drop-down list or by scrolling with the keyboard. You can repeat these commands as well as edit them.

NOTE:
  • WDB settings that you specify using the Command view do not appear in the Load Program dialog box.
  • When you click OK in the Load Program dialog box or use the Restart command, any WDB settings that you have specified in the Command view are overridden.
  • If you use the display command to specify variables to watch, the variables are displayed in the Command view but not in the Watch view.
Line Graphic

Issuing WDB Commands

To issue a WDB command

  1. In the main window, click the Command tab.
  2. In the Command input area, type a WDB command, and then press Enter. For example, to print the value of expression "a", type:
    print a
  3. View the echoed command and its output in the Command output area, directly above the input area.
Line Graphic

Shell Commands

With this version of WDB GUI , when you issue the shell command with no parameters a new window pops up, depending on the TERM environment variable. If the value of TERM is not set to dtterm, hpterm or xterm, then the default value of xterm is passed to the shell command. The TERM value used is displayed in the Command window:

(gdb) shell xterm

In this shell window, you can perform all shell operations. When you issue the exit command, the shell window closes and the prompt returns to WDB GUI windows.

While the shell window is active, any debugger actions requested will be queued and executed when the shell window exits. The (gdb) command prompt will also be disabled while the shell window is active.

Line Graphic

Using the Command History

A history of commands you have executed during the current debug session is available in a drop-down list. You can traverse the list and repeat a command. You can also use key combinations to edit a command or scroll through previous commands on the command line.

To view the command history with the drop-down list:

To view and edit commands from the input area:

Line Graphic

Getting Help on WDB Commands

You can list the available WDB commands (and command classes) and access help on these commands. This is useful if you need to explore the functionality of WDB, find the correct syntax for a command, or understand the correct command usage.

To view a list of debugger commands

  1. In the Command input area, type help, and then press Enter. A list of topic classes appears in the output area.
  2. Type help class name, and then press Enter. A list of commands in that class appears in the output area.

To get help on a specific debugger topic

  • In the Command input area, type help command name, and then press Enter. Help on correct command format and usage appears in the output area.
NOTE: For more information about WDB commands, refer to the WDB documentation.
Line Graphic

Tips

  • You cannot display the Command view in a separate window.
  • Use the scroll bars to see all of the information in the output area.
  • On the View menu, click Command to quickly bring the Command view to the top.
  • Use the pop-up menu Clear to quickly clear the output area.
Line Graphic

See Also

Line Graphic

Return to Top