mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
In case of a hang, cleanup any gdb that was started
After we start gdb we wait to read the gdb prompt "(gdb)". If we never get the prompt, we eventually timeout after 30 seconds. We then do some cleanup, but were not killing gdb if it was actually running. Change-Id: I4a84f1d9e07a358643e91d41d1ca30d876167aef
This commit is contained in:
parent
cd563c3d00
commit
259f48a0b9
1 changed files with 3 additions and 0 deletions
|
@ -549,6 +549,9 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend, IMIBa
|
|||
if (jobThread != null) {
|
||||
jobThread.interrupt();
|
||||
}
|
||||
|
||||
destroy();
|
||||
|
||||
requestMonitor.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID,
|
||||
DebugException.TARGET_REQUEST_FAILED, "Timed out trying to launch GDB.", null)); //$NON-NLS-1$
|
||||
requestMonitor.done();
|
||||
|
|
Loading…
Add table
Reference in a new issue