10.7 Automatic Display If you find that you want to print the
value of an expression frequently (to see how it changes), you
might want to add it to the automatic display list so that gdb
prints its value each time your program stops. Each expression
added to the list is given a number to identify it; to remove an
expression from the list, you specify that number. The automatic
display looks like this: 2: foo = 38 3: bar = (struct hack *)
0x3804 This display shows item numbers, expressions and their
current values. As with displays you request manually using
print, you can specify the output format you prefer; in fact,
whether to use x depending your format x if you specify either
the ‘i’ or ‘s’ format, or a unit size; otherwise it uses - Add
the expression expr to the list of expressions to display each
time your program stops. See Expressions. display does not
repeat if you press <RET> again after using it. - For fmt
specifying only a display format and not a size or count, add
the expression expr to the au