HPlogo HP/DDE Debugger User's Guide: HP 9000 Series 700/800 Computers > Chapter 4 Viewing and Manipulating Target Program Data

Examining Registers

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

Select one of the Show:Registers menu items to display a dialog box that shows the contents of a group of hardware registers. Figure 4-2 “Show Registers Dialog Box (General) ” shows a dialog box displaying general registers. You can also display floating point and special registers.

From the Show Registers dialog box, you can:

  1. View register contents.

    Register values that change during execution are highlighted.

  2. Specify how the the register values are updated (similar to setting a watchpoint's granularity).

    You can also temporarily suspend updating, which allows the target program to run faster. When register tracing is activated and set to anything other than Every Stop, the debugger creates an implicit watchpoint to check the register values at the appropriate granularity.

  3. Change from the default hexadecimal display format.

    The floating point register dialog box allows you to specify whether the registers are displayed as two 4-byte values (single precision) or one 8-byte value (double precision).

Figure 4-2 Show Registers Dialog Box (General)

[Show Registers Dialog Box (General)]

Using Register Commands

Use the following commands to display the contents of groups of registers in the debugger output area:

Title not available (Using Register Commands )

regs

General registers

cregs

Control registers

fregs

Double-precision floating-point registers

fsregs

Single-precision floating-point registers

fdregs

Double-precision floating-point registers

sregs

Space registers

The commands listed above are aliases for the dump command. They are defined in the target manager startup file (described in “Using Startup Command Files ”), which is in:

/opt/langtools/dde/tgt/tgt_hpux_pa.startup

(See “Solaris SPARC Target Manager ” for information on the register dumping macros on Solaris systems.)

To display a single register, use dump -from address. Specify a register name for address. For example:

dump -from r8
r8: 40006110

See Appendix C “Target Managers ” for more information on register names.