gdb print won't print out something readable from my char array

Posted by hatorade on Stack Overflow See other posts from Stack Overflow or by hatorade
Published on 2010-04-11T00:37:24Z Indexed on 2010/04/11 0:43 UTC
Read the original article Hit count: 742

Filed under:
|
|

i have a char buffer[100] and i'm trying to use gdb to read the contents out of it at various stages of runtime.

i use p buffer and i get

"/*\000\000\000\000\000\000????X?o\000\025\202\004\b", '\0' <repeats 12 times>, ".N=?", '\0' <repeats 24 times>, "`\203\004\b\000\000\000\000L\227\004\bX????\202\004\b?\017\204\000\f?\203\000\210???i\205\004\b??r"

how do i get p to convert it into a readable format???

© Stack Overflow or respective owner

Related posts about c

    Related posts about gdb