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:
parent
4477c66df6
commit
1f28f7bff2
1 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue