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:
parent
b28d409cb4
commit
5c5f660b7b
1 changed files with 14 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue