Suppose I have a buffer buf whose c string representation is
buf
char* buf = \"Hello World \\x1c\"
When I print this buf in gdb using
You might use the x command to dump the memory your char-pointer points to:
x
char
(gdb) x/32xb buf
shows the first 32 bytes.
See
(gdb) help x
for details.