-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/c does not work and add \n to the ascii_char function? #17
Comments
x/c is internal gdb function and afaik it means only the length of the hex display and never displays the correspondent ascii character. |
thx but why is gdb showing without your config the current ascii character?
I want the same behaviour with your config. How can I fix this? |
I have no idea, probably some setting conflict. |
I got the setting conflict... just uncomment the following lines:
This fixed it for me thx.. |
Ah, those would be my two strongest bets on the source of the problem. |
I can confirm it: With the .gdbinit config, x/c is same as x/x. I counldn't reproduce any problems with the hex/dec calculations: gdb$ x/c 0x8048540 0x8048540: 68 'D' gdb$ x/10c 0x8048540 0x8048540: 68 'D' 111 'o' 32 ' ' 105 'i' 116 't' 0 '\000' 66 'B' 117 'u' 0x8048548: 102 'f' 102 'f' gdb$ x/10x 0x8048540 0x8048540: 0x44 0x6f 0x20 0x69 0x74 0x00 0x42 0x75 0x8048548: 0x66 0x66 gdb$ p 0x44 $1 = 68 gdb$ p 68 $2 = 68 gdb$ p/x 68 $3 = 0x44 gdb$ p/x 0x10+0x10 $4 = 0x20 gdb$ p 0x10+0x10 $5 = 32 |
Hey,
Your gdbinit file is nice! Thx.
But I have a problem with it:
x/c 0x80484c0 should show: 0x48 'H' ... where is the char output?
I can't find something about it in your config.
...........................................................................................................................
The second Issue:
This is reallly ugly.. why no adding "\n"?
nice greetings from Germany and thx for your gdbinit 👍
Chris
The text was updated successfully, but these errors were encountered: