mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Don't create pty when using gdbserver.
This commit is contained in:
parent
04be564ed0
commit
b21c75453d
3 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-04-21 Mikhail Khodjaiants
|
||||
Don't create pty when using gdbserver.
|
||||
* AbstractGDBCDIDebugger.java
|
||||
* GDBServerCDIDebugger2.java
|
||||
|
||||
2006-04-21 Mikhail Khodjaiants
|
||||
Close the pty if the session creation failed.
|
||||
* MIPlugin.java
|
||||
|
|
|
@ -104,7 +104,7 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
|
|||
ILaunchConfiguration config = launch.getLaunchConfiguration();
|
||||
CommandFactory factory = getCommandFactory( config );
|
||||
String[] extraArgs = getExtraArguments( config );
|
||||
boolean usePty = config.getAttribute( ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, true );
|
||||
boolean usePty = usePty( config );
|
||||
try {
|
||||
session = MIPlugin.getDefault().createSession( getSessionType( config ), gdbPath.toOSString(), factory, executable, extraArgs, usePty, monitor );
|
||||
ICDISessionConfiguration sessionConfig = getSessionConfiguration( session );
|
||||
|
@ -139,6 +139,10 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
|
|||
return new String[0];
|
||||
}
|
||||
|
||||
protected boolean usePty( ILaunchConfiguration config ) throws CoreException {
|
||||
return config.getAttribute( ICDTLaunchConfigurationConstants.ATTR_USE_TERMINAL, true );
|
||||
}
|
||||
|
||||
abstract protected CommandFactory getCommandFactory( ILaunchConfiguration config ) throws CoreException;
|
||||
|
||||
protected void doStartSession( ILaunch launch, Session session, IProgressMonitor monitor ) throws CoreException {
|
||||
|
|
|
@ -124,4 +124,11 @@ public class GDBServerCDIDebugger2 extends GDBCDIDebugger2 {
|
|||
}
|
||||
return new String[]{ "remote", remote }; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger#usePty(org.eclipse.debug.core.ILaunchConfiguration)
|
||||
*/
|
||||
protected boolean usePty( ILaunchConfiguration config ) throws CoreException {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue