Currently, when I print the value of a variable v in GDB (print v) I get an integer.
v
print v
Is it possible to have GDB print such integer variables in hexadecimal or binary?
Sure it is. Try these:
# Hexadecimal p/x variable # Binary p/t variable
See output formats.
2.1m questions
2.1m answers
60 comments
57.0k users