1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Bug 453618 - Trace unsuccessful DSF Request Monitor at done()

Change-Id: Ia0191fedc9e2dcbcfa244636fbff7b0a640044d1
Reviewed-on: https://git.eclipse.org/r/37320
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
Alvaro Sanchez-Leon 2014-11-29 21:19:36 -05:00
parent f327ccd103
commit 8667f5a5ae

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2011 Wind River Systems and others.
* Copyright (c) 2006, 2014 Wind River Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -8,6 +8,7 @@
* Contributors:
* Wind River Systems - initial API and implementation
* Eugene Ostroukhov (NVIDIA) - new done(IStatus) method
* Alvaro Sanchez-Leon (Ericsson) - Trace unsuccessful DSF Request Monitor at done() (Bug 453618)
*******************************************************************************/
package org.eclipse.cdt.dsf.concurrent;
@ -296,6 +297,15 @@ public class RequestMonitor extends DsfExecutable {
fParentRequestMonitor.removeCancelListener(fCanceledListener);
}
if (DEBUG_MONITORS && !isSuccess()) {
IStatus status = getStatus();
try {
throw new Exception();
} catch (Exception e) {
DsfPlugin.getDefault().getLog().log(new Status(status.getSeverity(), DsfPlugin.PLUGIN_ID, status.getCode(), status.getMessage() + "\n\nMonitor Back Trace:\n" + fMonitorBacktrace.toString(), e)); //$NON-NLS-1$
}
}
try {
fExecutor.execute(new DsfRunnable() {
@Override