1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

If we are attached suspending should work fine.

This commit is contained in:
Alain Magloire 2002-09-30 16:52:16 +00:00
parent b28d409cb4
commit 5c5f660b7b

View file

@ -119,16 +119,24 @@ public class Configuration implements ICDIConfiguration {
os = System.getProperty("os.name", "");
} catch (SecurityException e) {
}
// FIXME: bug in gdb whe using -tty sending a control-c
// to gdb does not work.
if (os.equals("SunOS")) {
return false;
}
Process gdb = miSession.getMIProcess();
if (gdb instanceof Spawner) {
// If we attached sending a control-c, seems to work.
if (fAttached) {
return true;
}
// If we have a pty, sending a control-c will work
// except for solaris.
MIInferior inferior = miSession.getMIInferior();
if (inferior.getPTY() != null) {
return true;
// FIXME: bug in Solaris gdb when using -tty, sending a control-c
// does not work.
if (os.equals("SunOS")) {
return false;
} else {
return true;
}
}
}
return false;