Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314111

Summary: Enum can not be Formatted as Hex
Product: [Tools] CDT Reporter: James Blackburn <jamesblackburn+eclipse>
Component: cdt-debug-cdi-gdbAssignee: Project Inbox <cdt-debug-cdi-gdb-inbox>
Status: RESOLVED WONTFIX QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: pawel.1.piech
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description James Blackburn CLA 2010-05-24 09:40:26 EDT
#include <stdio.h>
#include <stdlib.h>
typedef enum IpSocketFlag { closed = 0 , opening , open } IpSocketFlag;
int main(void) {
	IpSocketFlag flag = closed;
	printf("!!!Hello World!!! %d", flag); /* prints !!!Hello World!!! */
	flag = opening;
	printf("!!!Hello World!!! %d", flag); /* prints !!!Hello World!!! */
	return EXIT_SUCCESS;
}

There seems to  be no way to display 'flag' as hex using CDI. Format as Hex still shows the enum as naturally formatted.
Comment 1 Jonah Graham CLA 2017-10-23 13:43:56 EDT
(this is part of a batch change)

The CDI debug implementation has been removed in CDT 9.0. Please see bug 484900 and the entry on the New and Noteworthy page https://wiki.eclipse.org/CDT/User/NewIn90#API_modifications