display (gdb mode only)

Add the specified item to the automatic display list.

Syntax

display[/format] { expr | addr }

Parameters

format

The output format. Use one of the following values

x  Regard the bits of the value as an integer, and print the integer in hexadecimal.

d  Print as integer in signed decimal.

u  Print as integer in unsigned decimal.

o  Print as integer in octal.

t  Print as integer in binary. The letter t stands for two.

a  Print as an address, both absolute in hexadecimal and as an offset from the nearest preceding symbol.

c  Regard as an integer and print it as a character constant.

f  Regard the bits of the value as a floating point number and print using typical floating point syntax.

i  instruction

s  string

expr

Expression to display.

addr

Address to display.

Description

This command adds the expression expr or the address addr to the automatic display list.

The debugger includes an automatic display list, which prints the value of an expression each time the debuggee stops.

Each expression or address in the list has an ID. Each line of the list displays the ID, the expression, and the current value of the expression. For example:

5: foo = 28
6: bar[5] = (struct mystruct *) 0x1234

You can specify the output format for the value of the expression. The debugger uses the same output formats as defined in the print and x commands.

Example

(idb) display \d foo 
(idb) display \x bar[5] 

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.