mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +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:
parent
f327ccd103
commit
8667f5a5ae
1 changed files with 11 additions and 1 deletions
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -8,6 +8,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Wind River Systems - initial API and implementation
|
* Wind River Systems - initial API and implementation
|
||||||
* Eugene Ostroukhov (NVIDIA) - new done(IStatus) method
|
* 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;
|
package org.eclipse.cdt.dsf.concurrent;
|
||||||
|
|
||||||
|
@ -296,6 +297,15 @@ public class RequestMonitor extends DsfExecutable {
|
||||||
fParentRequestMonitor.removeCancelListener(fCanceledListener);
|
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 {
|
try {
|
||||||
fExecutor.execute(new DsfRunnable() {
|
fExecutor.execute(new DsfRunnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue