1
0
Fork 0
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:
Marc Khouzam 2016-08-02 16:11:25 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent cd563c3d00
commit 259f48a0b9

View file

@ -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();