(ddd.info)Repeated Values


Next: Arrays as Tables Prev: Array Slices Up: Arrays
Enter node , (file) or (file)node

7.3.2.2 Repeated Values
.......................

Using GDB, an array value that is repeated 10 or more times is displayed
only once.  The value is shown with a `<Nx>' postfix added, where N is
the number of times the value is repeated.  Thus, the display `0x0
<30x>' stands for 30 array elements, each with the value `0x0'.  This
saves a lot of display space, especially with homogeneous arrays.

   The default GDB threshold for repeated array values is 10.  You can
change it via `Edit => GDB Settings => Threshold for repeated print
elements'.  Setting the threshold to `0' will cause GDB (and DDD) to
display each array element individually.  Be sure to refresh the data
window via `Data => Refresh Displays' after a change in GDB settings.

   You can also configure DDD to display each array element
individually:

 -- Resource: expandRepeatedValues (class ExpandRepeatedValues)
     GDB can print repeated array elements as `VALUE <repeated N
     times>'.  If `expandRepeatedValues' is `on', DDD will display N
     instances of VALUE instead.  If `expandRepeatedValues' is `off'
     (default), DDD will display VALUE with `<Nx>' appended to indicate
     the repetition.


automatically generated by info2www version 1.2.2.9