Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Communication Framework » Expression Evaluation in DSF/TCF
Expression Evaluation in DSF/TCF [message #1748636] Fri, 25 November 2016 14:13 Go to next message
Serge Lamikhov is currently offline Serge LamikhovFriend
Messages: 26
Registered: May 2016
Junior Member

I have been working on a module that interacts with the Eclipse debugger programmatically.

So far I have been able to perform all the required actions I have needed without having to invoke any implementation specific code, and this has worked with the CDT/DSF/TCF debugger.

However, I am now attempting to access expressions vie the IExpressionsManager interface and this seems to be problematic with the TCF debugger.

While I am able to add IExpression objects to the "expressions" view via the IExpressionsManager, and the values in the view are displayed properly, The IExpression object I have has a null value and context.

I found the following code in TCFNodeExpression.Java which seems to attempt to deal with this, however after observing execution, it seems that Object returned by the getDebugContext() method is a TCFNodeExecContext, which does not implement IDebugElement or ILaunch, and as such the IExpression context remains null.


Is there some other way for me to get an expression's value without having to specifically invoke a TCFTask?

  • Attachment: image001.png
    (Size: 12.56KB, Downloaded 309 times)
Re: Expression Evaluation in DSF/TCF [message #1748799 is a reply to message #1748636] Mon, 28 November 2016 19:02 Go to previous message
Eugene Tarassov is currently offline Eugene TarassovFriend
Messages: 17
Registered: July 2009
Junior Member
In TCF, IExpression.getValue(), IValue, IVariable are not supported. setExpressionContext() call appears to be result of sloppy copy/pasting. You have to use ITCFExpression.getValue() method to get value of the expression.
Previous Topic:TCF Versions for Luna
Next Topic:How to extend a new service to Tcf,like windriver gopher?
Goto Forum:

Current Time: Sat Dec 05 02:40:47 GMT 2020

Powered by FUDForum. Page generated in 0.02058 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top