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

set inferior suspended when we attach.

This commit is contained in:
Alain Magloire 2002-09-17 21:20:50 +00:00
parent 4477c66df6
commit 1f28f7bff2

View file

@ -73,7 +73,7 @@ public class MIPlugin extends Plugin {
String ttyName = pty.getSlaveName();
args = new String[]{"gdb", "-q", "-nw", "-tty", ttyName, "-i", "mi", program};
} catch (IOException e) {
e.printStackTrace();
//e.printStackTrace();
pty = null;
args = new String[]{"gdb", "-q", "-nw", "-i", "mi", program};
}
@ -129,6 +129,10 @@ public class MIPlugin extends Plugin {
if (info == null) {
throw new IOException("No answer");
}
//@@@ We have to manually set the suspended state when we attach
//(assuming the attach works) as a safeguard since GDB man not
//notice the attach (the behaviour in gdb 5.0).
session.getMIInferior().setSuspended();
} catch (MIException e) {
throw new IOException("Failed to attach");
}