Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How To Update Thread Names in the Debug View
How To Update Thread Names in the Debug View [message #1076080] Tue, 30 July 2013 13:22 Go to next message
Eclipse UserFriend
Hello,

We are using CDT/CDI and are trying to update thread names for local applications.

We have figured out how to update the thread names after the target is suspended, but we are not sure how/if we can trigger an update so that the Debug View shows the new names.

The new names do show up after we resume.

Is there a way to force the Debug View refresh while we are still in suspended state?

Thank you,
Carmen
Re: How To Update Thread Names in the Debug View [message #1080828 is a reply to message #1076080] Tue, 06 August 2013 08:23 Go to previous message
Eclipse UserFriend
Hello,

I've managed to find a solution for my problem. The idea is to fire a ChangeEvent for each thread within the target thread list, while in suspended state. This will refresh the thread info in the debug view.

CDebugTarget cTarget = (CDebugTarget) target;
IThread[] iThreadList =  cTarget.getThreads();

for (int i =0; i < iThreadList .length; i++)
{
   ((CThread)iThreadList[i]).fireChangeEvent( DebugEvent.CONTENT );
}

Here target is of IDebugTarget type.

Previous Topic:How to configure eclipse to compile/run 32bit code under 64bit linux environment
Next Topic:Custom Project using CDT indexing
Goto Forum:
  


Current Time: Sun May 11 22:33:41 EDT 2025

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

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

Back to the top