1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

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>
This commit is contained in:
Mikhail Khodjaiants 2013-03-28 15:01:51 -04:00
parent d4bb0bba4d
commit 378965a290

View file

@ -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;
}
}