From 378965a29035edfb90a1cceff9e17a78e6f420a1 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Thu, 28 Mar 2013 15:01:51 -0400 Subject: [PATCH] Bug 404586 - Allow to customize the wait time for "gdb-exit" Change-Id: I2bbc1b5c41df612962e963a3c2bea139cfe48fd2 Reviewed-on: https://git.eclipse.org/r/11555 Reviewed-by: Marc Khouzam Reviewed-by: Mikhail Khodjaiants IP-Clean: Mikhail Khodjaiants Tested-by: Mikhail Khodjaiants --- .../cdt/dsf/gdb/service/command/GDBControl.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl.java index dbd6dc9cac3..67d50b65495 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl.java @@ -263,7 +263,7 @@ public class GDBControl extends AbstractMIControl implements IGDBControl { return false; } }, - 2, TimeUnit.SECONDS); + getGDBExitWaitTime(), TimeUnit.SECONDS); queueCommand( getCommandFactory().createMIGDBExit(fControlDmc), @@ -660,4 +660,13 @@ public class GDBControl extends AbstractMIControl implements IGDBControl { protected boolean isInitialized() { return fInitialized; } + + /** + * Returns the time (in seconds) the debugger will wait for "gdb-exit" to complete. + * + * @since 4.2 + */ + protected int getGDBExitWaitTime() { + return 2; + } }