Bug 73666

Summary: Variables can not be displayed in hexadecimal number format in the watch window
Product: [Applications] kdevelop Reporter: Matthias Gr <grueni75>
Component: CPP DebuggerAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: 3.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matthias Gr 2004-01-28 09:09:39 UTC
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!
Comment 1 Amilcar do Carmo Lucas 2004-01-28 10:55:25 UTC
probably a duplicate of BR60670
Comment 2 Jens Dagerbo 2004-01-28 14:31:43 UTC
Yes. Dupe.

*** This bug has been marked as a duplicate of 60670 ***
Comment 3 John Birch 2004-01-28 19:40:13 UTC
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.