1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 303808 - Silence error changing thread in all-stop

In all-stop mode for a remote session, it's not possible to have the
target switch thread, while the target is running. At the moment, the
GDB focus synchronizer attempts to switch the thread in that case, when
the user switches thread in the Debug View, which can fail and ends-up
logging an error. 

This patch silences this error.

Change-Id: Ib21347fe9f4c31b3a42b4a83d289dbcd10b74a07
This commit is contained in:
Marc Dumais 2016-11-15 09:20:33 -05:00 committed by Marc Khouzam
parent 31f0cc6476
commit 2ae122963c

View file

@ -71,7 +71,13 @@ public class GdbDebugContextSyncManager implements IDebugContextListener {
tracker.dispose();
if (gdbSync != null) {
gdbSync.setFocus(new IDMContext[] {dmc}, new ImmediateRequestMonitor() {});
gdbSync.setFocus(new IDMContext[] {dmc}, new ImmediateRequestMonitor() {
@Override
protected void handleFailure() {
// do not set error - it's normal in some cases to fail to switch thread
// for example in a remote session with the inferior running and in all-stop mode
}
});
}
}
});