Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [cdt-dev] My debug launch configuration is not terminating

Hey JP,

I encountered similar behaviour and found that this is simply an update problem of the debug view. Try switching to the C/C++ perspective and then back again to Debug and see whether the process is now shown as terminated.

If that is the case you need force the Debug view to update. Like this:

		// Force an update in the debug view
		// The update request must be in a separate runnable
		// and the update request be posted to the UI thread.
		Runnable refresher = new Runnable() {
			public void run() {
				// Look up the debug view, if it is opened
				IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow() ; 
				IWorkbenchPage page = window.getActivePage();
				IViewReference[] viewRefs =  page.getViewReferences();
				IViewPart view = null ;
				for (int i = 0; i < viewRefs.length; i++) {
					if (viewRefs[i].getId().equals("org.eclipse.debug.ui.DebugView")) {
						// Retrieve the viewer for this view and force refresh
						view = viewRefs[i].getView(true);
						if (view instanceof AbstractDebugView) {
							AbstractDebugView launchView = (AbstractDebugView) view;
							Viewer viewer = launchView.getViewer();
							viewer.refresh();
						}
						break ;
					}
				}
			}
		};
		PlatformUI.getWorkbench().getDisplay().syncExec(refresher);

Does this help?


Norbert 

-----Ursprüngliche Nachricht-----
Von: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] Im Auftrag von Logantha, Jayaprakash (STSD)
Gesendet: Montag, 26. September 2005 11:50
An: CDT General developers list.
Betreff: [cdt-dev] My debug launch configuration is not terminating

Hi,

We have written a launch configuration which starts debug session on
target system using remote shell. It is working fine. The problem is
when I terminate it, it is stopping. 

One of the java processes is not terminating. This problem is happening
only on Linux. The gdb process is terminating but the debuggee is not
terminating.  I have attached a snapshot of the problem.

It is working fine on Windows.

What could be the problem?

Sorry for the wide distribution.

Thanks,
JP


Back to the top