Sun Studio 12: Debugging a Program With dbx

examine Command

The examine command shows memory contents. It is valid only in native mode.

Syntax

examine [address] [ / [count] [format]]

Display the contents of memory starting at address for count items in format format.

examine address1, address2 [ / [format]]

Display the contents of memory from address1 through address2 inclusive, in format format.

examine address= [format]

Display the address (instead of the contents of the address) in the given format.

The address may be +, which indicates the address just after the last one previously displayed (the same as omitting it).

x is a predefined alias for examine.

where:

address is the address at which to start displaying memory contents. The default value of address is the address after the address whose contents were last displayed. This value is shared by the dis command (see dis Command).

address1 is the address at which to start displaying memory contents.

address2 is the address at which to stop displaying memory contents.

count is the number of addresses from which to display memory contents. The default value of count is 1.

format is the format in which to display the contents of memory addresses. The default format is X (hexadecimal) for the first examine command, and the format specified in the previous examine command for subsequent examine commands. The following values are valid for format:

o,O

octal (2 or 4 bytes)

x,X

hexadecimal (2 or 4 bytes)

b

octal (1 byte)

c

character

w

wide character

s

string

W

wide character string

f

hexadecimal and floating point (4 bytes, 6 digit precision)

F

hexadecimal and floating point (8 bytes, 14 digit precision )

g

same as F

E

hexadecimal and floating point (16 bytes, 14 digit precision)

ld,lD

decimal (4 bytes, same as D)

lo,lO

octal 94 bytes, same as O

lx,lX

hexadecimal (4 bytes, same as X)

Ld,LD

decimal (8 bytes)

Lo,LO

octal (8 bytes)

Lx,LX

hexadecimal (8 bytes)