Bug 312516 - [expressions] Support better casting of expressions
Summary: [expressions] Support better casting of expressions
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 7.0   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 20:16 EDT by Marc Khouzam CLA
Modified: 2020-09-04 15:26 EDT (History)
2 users (show)

See Also:


Attachments

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