How to make gdb print out all values in hexadecimal mode?

Viewed 15825

By default, gdb always prints/displays all variables / arguments in base 10. Is there any way to ask gdb to always use base 16 while printing anything (and turn back to default settings when I don't need that) ? I know that it can be printed by supplying the '/x' argument to print/display, but I don't want to do it everytime....

2 Answers

In my machine, set output-radix 10 doesn't work, but set output-radix 0xA works.

Related