Displaying a C++ Structure
The
Dive in All command can also display the elements of a C array of structures as arrays.
Figure 69 shows a unified array of structures and a multidimensional nested array in a structure.
Here, the array of structures foo contains a nested array of structures b, visually represented like so:
The array
strucArray[:].foo visually represents an array composed of every
foo element in each of the 20
strucArray objects.
Drilling further, the array
strucArray[:].foo[:].b visually represents an array composed of every
b element in the array of structures
strucArray[:].foo.