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:
parent
d4bb0bba4d
commit
378965a290
1 changed files with 10 additions and 1 deletions
|
@ -263,7 +263,7 @@ public class GDBControl extends AbstractMIControl implements IGDBControl {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
2, TimeUnit.SECONDS);
|
getGDBExitWaitTime(), TimeUnit.SECONDS);
|
||||||
|
|
||||||
queueCommand(
|
queueCommand(
|
||||||
getCommandFactory().createMIGDBExit(fControlDmc),
|
getCommandFactory().createMIGDBExit(fControlDmc),
|
||||||
|
@ -660,4 +660,13 @@ public class GDBControl extends AbstractMIControl implements IGDBControl {
|
||||||
protected boolean isInitialized() {
|
protected boolean isInitialized() {
|
||||||
return fInitialized;
|
return fInitialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the time (in seconds) the debugger will wait for "gdb-exit" to complete.
|
||||||
|
*
|
||||||
|
* @since 4.2
|
||||||
|
*/
|
||||||
|
protected int getGDBExitWaitTime() {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue