User`s guide

42
Chapter 5: Examining and Changing Data
dbx prints the value of each element in the array:
{
[0] struct list {
next = (nil)
value = 1034
}
[1] struct list {
next = 0x10012258
value = 1031
}
[2] struct list {
next = 0x10012270
value = 1028
}
[3] struct list {
next = 0x10012288
value = 1025
}
[4] struct list {
next = 0x100122a0
value = 1022
}
[5] struct list {
next = 0x100122b8
value = 1019
}
...
}
To print an individual element, enter a command such as:
(dbx) print array[5]
struct list {
next = 0x100122b8
value = 1019
}
No simple method exists for examining a portion of an array with the print
command. However, if your array consists of simple elements such as
integers or floating point values, you can directly examine the contents of
memory using the / (examine forward) command described in “Examining
Memory and Disassembling Code” on page 85.