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

Bug 312516

Summary: [expressions] Support better casting of expressions
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Project Inbox <cdt-debug-dsf-gdb-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: aegges, pawel.1.piech
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Marc Khouzam CLA 2010-05-11 20:16:17 EDT
Currently, DSF-GDB allows to cast an expression by simply doing
(castType)(expression)
but we can do better by doing 
*(catType*)&(expression)
However this does not work for complex expressions (e.g., "x + 1")

The details of this can be found in
bug 306555 comment #10
bug 306555 comment #13
bug 306555 comment #14
bug 306555 comment #15
bug 306555 comment #20 and it's patch