如何在gdb中向另一个方向检查字节?

时间:2011-03-28 15:38:35

标签: gdb

x/4x xxx将检查地址高于xxx的字节。

如何检查较低地址的字节?

1 个答案:

答案 0 :(得分:0)

只需从xxx中减去你想要的前面字节数:

(gdb) x/4x 0x13b3da00
0x13b3da00: 0x004cc630  0x00000000  0x13af3ba0  0x00000000
(gdb) x/4x 0x13b3da00-4
0x13b3d9fc: 0x00000000  0x004cc630  0x00000000  0x13af3ba0
(gdb) x/4x 0x13b3da00-8
0x13b3d9f8: 0x00000000  0x00000000  0x004cc630  0x00000000