DDD(debugger)图形显示格式
DDD(debugger) graphic display format
例如,当我给出 graph display B[576] @576
时,我可以看到数组值,数组 B[576] 中的 576 个值。但是我无法理解下面看到的显示结果。第一个元素0 <225x>
是什么意思?这是否意味着 225 个零值?
是的,它显示该值重复了 225 次。
Using GDB, an array value that is repeated 10 or more times is
displayed only once. The value is shown with a 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. (source)
例如,当我给出 graph display B[576] @576
时,我可以看到数组值,数组 B[576] 中的 576 个值。但是我无法理解下面看到的显示结果。第一个元素0 <225x>
是什么意思?这是否意味着 225 个零值?
是的,它显示该值重复了 225 次。
Using GDB, an array value that is repeated 10 or more times is displayed only once. The value is shown with a 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. (source)