可能重复:
How do I print the full value of a long string in gdb?
我正在使用命令
(gdb) p/d *data@256
这给了我结果
$11 = {9591, 0, 3194, -2, -1411, 0, -3713, 1, 383, -1, 3966, -1, 3839, 0, 766,
-1, -641, -1, -641, -1, 509, 0, 382, 0, 1150, -1, 1790, 0, 2430, 0, 1022, 0,
-2304, 0, -1538, 0, 638, -1, 4093, -1, 3070, 0, -641, -1, -2946, 0, -1024,
0, 2687, 0, 4606, -1, 1150, 0, -1410, 0, -1665, 0, 1792, 0, 2816, -1, 1152,
0, 384, 1, -3, 1, 1279, 0, 128, 0, -128, 1, 640, 1, 1791, 0, 2046, 0, 383,
0, -1024, -1, -130, 1, 1663, -1, 2814, 0, 896, 0, -898, 0, -1153, -1, 255,
0, 1663, 0, 1024, 0, -129, 1, -897, 0, -384, 1, 896, 0, 896, 0, -1, 0, -129,
0, 127, 0, 639, 0, -128, 1, 128, 0, 0, 0, 895, -1, 639, 0, -256, 0, -129,
-1, 255, 0, 1023, 1, 1150, 0, 257, 0, -129, 0, 1, 0, 511, -1, 640, 0, 128,
1, -128, 1, -256, 0, 0, 0, 129, -1, 128, 0, -1, 0, 0, -1, -1, 1, 128, -1,
-1, 0, 0, 0, 0, -1, 128, 0, 0, -1, -128, 0, -1, 0, -1, 0, 255, -1, 127, 1,
-1, 1, 0, 1, 0, 1, 128, 0, 128, 1...}
如何让它向我显示所有256个值而不是仅显示一些值,然后显示最后显示的省略号?值1不重复。