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

Bug 351898

Summary: [expressions] Invalid expressions do not show errors in the value column.
Product: [Tools] CDT Reporter: Pawel Piech <pawel.1.piech>
Component: cdt-debug-dsfAssignee: Pawel Piech <pawel.1.piech>
Status: RESOLVED FIXED QA Contact: Pawel Piech <pawel.1.piech>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle, wlai
Version: 8.0Flags: pawel.1.piech: review? (Randy.Rohrbach)
Target Milestone: 8.0.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Additional patch. pawel.1.piech: iplog-

Description Pawel Piech CLA 2011-07-12 16:37:35 EDT
The expressions view and other views do not always report errors found when trying to evaluate expressions.  The errors are swallowed by the logic which tracks errors per individual properties in the properties update.  I introduced this bug with changes for bug 321932.
Comment 1 Pawel Piech CLA 2011-07-12 16:39:40 EDT
To reproduce: enter an invalid expression in the expressions view.
Comment 2 CDT Genie CLA 2011-07-12 21:29:32 EDT
*** cdt cvs genie on behalf of Pawel Piech ***
    Bug 351898 - [expressions] Invalid expressions do not show errors in the
    value column.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9970e94efa165f20e78a6db09968b707d83ab1d1

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=40ebd77d9dcf90938d864e7ea707cb385181c388
Comment 3 Pawel Piech CLA 2011-07-12 23:54:36 EDT
(In reply to comment #2)
> *** cdt cvs genie on behalf of Pawel Piech ***
Thank you git genie!  I was still figuring out how to make a retro-active patch for the commit I made :-)

I committed the to master and cdt_8_0
Comment 4 Pawel Piech CLA 2011-07-14 15:20:46 EDT
Created attachment 199698 [details]
Additional patch.

I added an additional guard to make sure that if a variable fails to evaluate with an error, the DMC's full expression is shown in the expressions column.  This is already the case for the names column.  
The problem does not show up with GDB, but it does with Wind River's debugger.
Comment 5 Pawel Piech CLA 2011-07-21 13:43:25 EDT
*** Bug 352788 has been marked as a duplicate of this bug. ***
Comment 6 Pawel Piech CLA 2011-07-21 16:33:07 EDT
*** Bug 352788 has been marked as a duplicate of this bug. ***