Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314111 - Enum can not be Formatted as Hex
Summary: Enum can not be Formatted as Hex
Status: RESOLVED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-cdi-gdb (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-24 09:40 EDT by James Blackburn CLA
Modified: 2017-10-23 13:43 EDT (History)
1 user (show)

See Also:


Attachments

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