Debugging a Program With dbx

Using the examine or x Command

Use the examine command, or its alias x, to display memory contents or addresses.

Use the following syntax to display the contents of memory starting at addr for count items in format fmt. The default addr is the next one after the last address previously displayed. The default count is 1. The default fmt is the same as was used in the previous examine command, or X if this is the first command given.

The syntax for the examine command is:


examine [addr]
[/ [count] [fmt
]]

To display the contents of memory from addr1 through addr2 inclusive, in format fmt:


examine addr1, addr2
 [/ [fmt]]

Display the address, instead of the contents of the address in the given format:


examine addr =
[fmt]

To print the value stored at the next address after the one last displayed by examine:


examine +/ i

To print the value of an expression, enter the expression as an address:


examine addr=format
examine addr=