1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Bug 507950 - Deadlock when changing a variable value when reverse

debugging with full gdb console

Change-Id: I85618169e49a181a074417f132a4860cd9b7c026
This commit is contained in:
Alvaro Sanchez-Leon 2016-11-22 15:51:24 -05:00
parent 1d6cf48198
commit 3e770da279

View file

@ -11,6 +11,8 @@
package org.eclipse.cdt.dsf.debug.ui.viewmodel.variable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor;
import org.eclipse.cdt.dsf.concurrent.IDsfStatusConstants;
@ -268,13 +270,15 @@ public class SyncVariableDataAccess {
* Return value is irrelevant, any error would come through with an
* exception.
*/
query.get();
query.get(3000, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
assert false;
} catch (ExecutionException e) {
/*
* View must be shutting down, no need to show error dialog.
*/
} catch (TimeoutException e) {
assert false;
}
}