When using x/100c, the output shows the both ascii and decimal.
0x111111: 40 '(' 40 '('
How can gdb show the ascii and hex at the same time ?
like
0x111111: 0x28 'C' 0x28 'C'
This format is better:
0x111111: 0x28 0x28 ... 'CC...'
When using x/100c, the output shows the both ascii and decimal.
0x111111: 40 '(' 40 '('
How can gdb show the ascii and hex at the same time ?
like
0x111111: 0x28 'C' 0x28 'C'
This format is better:
0x111111: 0x28 0x28 ... 'CC...'
Unfortunately there is no built-in way. I think that would be a nice addition to gdb.
Meanwhile, you can roll your own by writing a new dumping command in Python. I think this would not be very hard.
You can do this with a macro. Iterate through the characters, and call appropriate printfs.