Prints the contents of the specified memory address.
address, address/[mode] [pset set_name | set_definition] address | register/[count][mode]
Use this command to print the contents of memory or of a register. If two addresses are separated by commas, Prism prints the contents of memory starting at the first address and continuing to the second address. If you specify a count, Prism prints count locations, starting from the address you specify.
If the address is . (period), Prism prints the address that follows the most recently printed address.
Specify a symbolic address by preceding the name with an &. For example,
&x/
prints the contents of memory for variable x.
The address you specify can be an expression made up of other addresses and the operators +, -, and indirection (unary *). For example,
0x1000+100/
prints the contents of the location 100 addresses above address 0x1000.
Specify a register by preceding its name with a dollar sign. For example,
$f0/
prints the contents of the f0 register. See Table 1-4 for a list of supported registers. If you specify count with a register, that number of registers is printed, starting with the specified register.
The mode argument specifies how memory is to be printed; if it is omitted, Prism uses the previous mode that you specified. The initial mode is X. Supported modes are listed below.
Table 1-3 Mode Argument
Mode |
Description |
---|---|
d |
Print a short word in decimal. |
D |
Print a long word in decimal. |
o |
Print a short word in octal. |
O |
Print a long word in octal. |
x |
Print a short word in hexadecimal. |
X |
Print a long word in hexadecimal. |
b |
Print a byte in octal. |
c |
Print a byte as a character. |
s |
Print a string of characters terminated by a null byte. |
f |
Print a single-precision real number. |
F |
Print a double-precision real number. |
i |
Print the machine instruction. |
Supported UltraSPARC(TM) registers are listed below.
Table 1-4 Sun UltraSPARC Registers
Name |
Register |
---|---|
$g0-$g7 |
Global registers (64 bits) |
$o0-$o7 |
Output registers (64 bits) |
$l0-$l7 |
Local registers |
$i0-$i7 |
Input registers |
$psr |
Processor state register |
$pc |
Program counter |
$npc |
Next program counter |
$y |
Y register |
$wim |
Window invalid mask |
$tbr |
Trap base register |
$f0-$f31 |
Floating-point registers |
$fsr |
Floating status register (64 bits) |
$f0f1-$f62f63 |
Floating-point registers |
$xg0-$xg7 |
Upper 32 bits of $g0-$g7 (SPARC V8 plus only, or higher) |
$xo0-$xo7 |
Upper 32 bits of $o0-$o7 (SPARC V8 plus only, or higher) |
$xfsr |
Upper 32 bits of $fsr (SPARC V8 plus only, or higher) |
$fprs |
Floating-point registers state (SPARC V8 plus only, or higher) |
$tstate |
Trap state register (SPARC V8 plus only, or higher) |
$fp |
Frame pointer (synonym for $i6) |
$sp |
Stack pointer (synonym for $o6) |
When issued in MP Prism, this command can take a pset qualifier. If used with a qualifier, it applies to the pset you specify. If used without a qualifier, it applies to the current pset. See " Using Pset Qualifiers" for more information on pset qualifiers.