Automatic display
For example, ‘
delete display
If a display expression refers to local variables, then it does not make sense
outside the lexical context for which it was set up. Such an expression is
disabled when execution enters a context where one of its variables is not
defined. For example, if you give the command,
3: bar[5] = (struct hack *) 0x3804
Add the expression, exp, to the list of expressions to display each time your program stops. See Expressions.
For fmt specifying only a display format and not a size or count, add the expression exp to the auto-display list but arrange to display it each time in the specified
format, fmt. See Output formats.
For fmt ‘i’ or ‘s’, or including a unit-size or a number of units, add the expression, addr, as a memory address to be examined each time your program stops. Examining
means in effect doing ‘x/fmt addr’. See Examining memory.
Remove item numbers dnums from the list of expressions to display.
Disable the display of item numbers, dnums. A disabled display item is not printed automatically, but is not forgotten.
It may be enabled again later.
Enable display of item numbers, dnums. It becomes effective once again in auto display of its expression, until you
specify otherwise.
Display the current values of the expressions on the list, just as is done
when your program stops.
Print the list of expressions previously set up to display automatically, each
one with its item number, but without showing the values. This includes
disabled expressions, which are marked as such. It also includes expressions which
would not be displayed right now because they refer to automatic variables not
currently available.