Bug 324836 - [pretty printers] Disable cast-to-type action for expression with a dynamic ancestor
Summary: [pretty printers] Disable cast-to-type action for expression with a dynamic a...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on: 302121
Blocks:
  Show dependency tree
 
Reported: 2010-09-09 06:44 EDT by Jens Elmenthaler CLA
Modified: 2020-09-04 15:21 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 Jens Elmenthaler CLA 2010-09-09 06:44:02 EDT
Build Identifier: CDT HEAD

This feature requires the ability on gdb side to evaluate the full
expression for the associated varobj. The gdb can't do that for varobjs that have a dynamic ancestor. Thus we should (ideally) disable it for such expressions.

(Note that it still works for a dynamic varobj that doesn't have a
dynamic ancestor).

Background:
The action is handled in org.eclipse.cdt.debug.internal.ui.actions.CastToTypeActionHandler, and I don't
see a way to control its enabled state.

Another approach could be ti check for
CastedExpressionDMC in MIExpressions and add special handling, like no
children, the values like "N/A (child of pretty-printed object)" as value, etc.


Reproducible: Always