开发者

How to check bytes toward the other direction in gdb?

x/4x xxx will c开发者_运维问答heck bytes at higher address than xxx.

How to check bytes at lower address ?


Just subtract the number of preceding bytes you want from 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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜