Bug 73666 - Variables can not be displayed in hexadecimal number format in the watch window
Summary: Variables can not be displayed in hexadecimal number format in the watch window
Status: RESOLVED DUPLICATE of bug 60670
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: 3.0.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-28 09:09 UTC by Matthias Gr
Modified: 2004-01-28 19:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.