检查 ASCII
Examining ASCII
如何获得 ASCII
representation of hexadecimal values in the memory by examining in gdb
?
gdb 命令 x/[repeatCount] [memoryAddress]
给我从 memoryAddress
repeatCount
次开始的十六进制 32 位值,但我想要可读的 text/String 由该数据表示。我怎么做? This页面好像没说。
例如,我通过检查得到以下内容:
0x41414141
我想看到的是:
AAAA
像普通人一样Hex <-> ASCII converter.
没关系,我需要为 String
使用 format letter
s
。
x/[repeatCount]s [memoryAddress]
通过输入找到
help x
并阅读帮助文档。 <_<
如何获得 ASCII
representation of hexadecimal values in the memory by examining in gdb
?
gdb 命令 x/[repeatCount] [memoryAddress]
给我从 memoryAddress
repeatCount
次开始的十六进制 32 位值,但我想要可读的 text/String 由该数据表示。我怎么做? This页面好像没说。
例如,我通过检查得到以下内容:
0x41414141
我想看到的是:
AAAA
像普通人一样Hex <-> ASCII converter.
没关系,我需要为 String
使用 format letter
s
。
x/[repeatCount]s [memoryAddress]
通过输入找到
help x
并阅读帮助文档。 <_<