How can I get the ASCII
representation of hexadecimal values in the memory by examining in gdb
?
The gdb command x/[repeatCount] [memoryAddress]
gives me hexadecimal 32-bit values starting at memoryAddress
repeatCount
times but I want the readable text/String which is represented by this data. How do I do that? This page doesn't seem to tell.
For instance I get the following by examining:
0x41414141
What I want to see instead or as well is this:
AAAA
Like an ordinary Hex <-> ASCII converter.
Nevermind, I need to use the format letter
s
for String
.
x/[repeatCount]s [memoryAddress]
Found by typing
help x
and reading the help documentation. <_<
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With