I’ve disassemble in GDB and in inside of the sscanf function I get:
at vfscanf.c:603
_IO_vsscanf (string=string@entry=0x804b760 "1 \\233 200",
format=format@entry=0x804a21e "%d %c %d",
args=args@entry=0xbffff0a8 "\304\360\377\277\277\360\377\277\300\360\377\277\224\361\377\277\310\360\377\277\201\222\004\\\351") at iovsscanf.c:47
I’m trying to get the information in args but I’m not sure how to translate that string to something readable. What I’m really trying to get is the addresses that sscanf is saving to. I assume these addresses are represented in this string. This is what I got when looking up the charset:
(gdb) show charset
The host character set is "auto; currently ANSI_X3.4-1968".
The target character set is "auto; currently ANSI_X3.4-1968".
The target wide character set is "auto; currently UTF-32".
I’m using Linux, IA-32.
Then you can inspect the contents by:
or with gdb’s internal printf command
or even by calling printf in your program under debug (if linked)
Likewise, using directly the string (I’ll use argv[0]):