Support for GDB output-radix setting

Fixes a crasher when the radix setting is not decimal and also respects the current setting for output.