Debugging a Program With dbx

Formats

The fmt is the address display format in which dbx displays the results of a query. The output produced depends on the current displayfmt. To change the display format, supply a different fmt code.

Set the fmt specifier to tell dbx how to display information associated with the addresses specified.

The default format set at the start of each dbx session is X, which displays an address/value as a 32-bit word in hexadecimal. The following memory display formats are legal.

Display as an assembly instruction 

Display as 16 bits (2 bytes) in decimal 

Display as 32 bits (4 bytes) in decimal 

Display as 16 bits (2 bytes) in octal. 

Display as 32 bits (4 bytes) in octal. 

Display as 16 bits (2 bytes) in hexadecimal. 

Display as 32 bits (4 bytes) in hexadecimal. (default format) 

Display as a byte in octal 

Display as a character 

Display as a wide character. 

Display as a string of characters terminated by a null byte. 

Display as a wide character. 

Display as a single-precision floating point number. 

F, g 

Display as a double-precision floating point number. 

Display as an extended-precision floating point number. 

ld, lD 

Display 32 bits (4 bytes) in decimal (same as D) 

lo, lO 

Display 32 bits (4 bytes) in octal (same as O) 

lx, LX 

Display 32 bits (4 bytes) in hexadecimal (same as X) 

Ld, LD 

Display 64 bits (8 bytes) in decimal 

Lo, LO 

Display 64 bits (8 bytes) in octal  

Lx, LX 

Display 64 bits (8 bytes) in hexadecimal