Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2013-03-28 19:01:51 +0000
committerMikhail Khodjaiants2013-04-01 19:54:54 +0000
commit378965a29035edfb90a1cceff9e17a78e6f420a1 (patch)
treee0b848006ab47820e08221275d320bfb68a2b88b /dsf-gdb
parentd4bb0bba4d448dc6c8e69d1202795545860a668d (diff)
downloadorg.eclipse.cdt-378965a29035edfb90a1cceff9e17a78e6f420a1.tar.gz
org.eclipse.cdt-378965a29035edfb90a1cceff9e17a78e6f420a1.tar.xz
org.eclipse.cdt-378965a29035edfb90a1cceff9e17a78e6f420a1.zip
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 <marc.khouzam@ericsson.com> Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com> IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com> Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/command/GDBControl.java11
1 files changed, 10 insertions, 1 deletions
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;
+ }
}

Back to the top