Version: 3.0.0 (using KDE 3.2.0 RC1, SuSE) Compiler: gcc version 3.3.1 (SuSE Linux) OS: Linux (i686) release 2.4.21-166-default It would be very nice if the number format of variables in the watch window could be specified. For example, some times I need to display the contents of a variable as a hexdecimal value. Thank you!
probably a duplicate of BR60670
Yes. Dupe. *** This bug has been marked as a duplicate of 60670 ***
As a workaround use /x varname in the watch window. This used to be documented somewhere. There are two parts to fixing this. 1/ global setting using set radix-output 16 (?hmmm - check this) just send this command at startup if the user wants this settings. Add this option to the gdb settings. Probably a couple of hours work. Anyone? 2/ individual settings Right click on variable in variable window (watch or local) and select the format. Then hook into the getExpandedItems method (I forget the actual name) and use the gdb format options to get the format you want. Needs to store the format on the item as well. A bit more work but not huge. I don't know when I can do this (I've been keeping quiet) but anyone is welcome to submit the changes.