1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

ILaunch is added to the arguments list of "doStartSession".

This commit is contained in:
Mikhail Khodjaiants 2006-03-17 00:11:08 +00:00
parent 4cdd79f0b2
commit 2a30a9aa28
4 changed files with 15 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2006-03-16 Mikhail Khodjaiants
ILaunch is added to the arguments list of "doStartSession".
* AbstractGDBCDIDebugger.java
* CygwinGDBCDIDebugger2.java
* GDBCDIDebugger2.java
2006-03-13 Mikhail Khodjaiants 2006-03-13 Mikhail Khodjaiants
Added default implementation for "getExtraArguments". No need to force Added default implementation for "getExtraArguments". No need to force
clients to implement this method. clients to implement this method.

View file

@ -79,7 +79,7 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
} }
} }
try { try {
doStartSession( config, session, monitor ); doStartSession( launch, config, session, monitor );
} }
catch( CoreException e ) { catch( CoreException e ) {
failed = true; failed = true;
@ -130,7 +130,7 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
abstract protected CommandFactory getCommandFactory( ILaunchConfiguration config ) throws CoreException; abstract protected CommandFactory getCommandFactory( ILaunchConfiguration config ) throws CoreException;
protected void doStartSession( ILaunchConfiguration config, Session session, IProgressMonitor monitor ) throws CoreException { protected void doStartSession( ILaunch launch, ILaunchConfiguration config, Session session, IProgressMonitor monitor ) throws CoreException {
} }
protected String renderDebuggerProcessLabel( ILaunchConfiguration config ) { protected String renderDebuggerProcessLabel( ILaunchConfiguration config ) {

View file

@ -17,6 +17,7 @@ import org.eclipse.cdt.debug.mi.core.command.factories.win32.CygwinCommandFactor
import org.eclipse.cdt.debug.mi.core.output.MIInfo; import org.eclipse.cdt.debug.mi.core.output.MIInfo;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfiguration;
/** /**
@ -32,9 +33,9 @@ public class CygwinGDBCDIDebugger2 extends GDBCDIDebugger2 {
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.core.GDBCDIDebugger2#doStartSession(org.eclipse.debug.core.ILaunchConfiguration, org.eclipse.cdt.debug.mi.core.cdi.Session, org.eclipse.core.runtime.IProgressMonitor) * @see org.eclipse.cdt.debug.mi.core.GDBCDIDebugger2#doStartSession(org.eclipse.debug.core.ILaunch, org.eclipse.debug.core.ILaunchConfiguration, org.eclipse.cdt.debug.mi.core.cdi.Session, org.eclipse.core.runtime.IProgressMonitor)
*/ */
protected void doStartSession( ILaunchConfiguration config, Session session, IProgressMonitor monitor ) throws CoreException { protected void doStartSession( ILaunch launch, ILaunchConfiguration config, Session session, IProgressMonitor monitor ) throws CoreException {
// For windows we need to start the inferior in a new console window // For windows we need to start the inferior in a new console window
// to separate the Inferior std{in,out,err} from gdb std{in,out,err} // to separate the Inferior std{in,out,err} from gdb std{in,out,err}
MISession miSession = getMISession( session ); MISession miSession = getMISession( session );
@ -51,7 +52,7 @@ public class CygwinGDBCDIDebugger2 extends GDBCDIDebugger2 {
// We ignore this exception, for example // We ignore this exception, for example
// on GNU/Linux the new-console is an error. // on GNU/Linux the new-console is an error.
} }
super.doStartSession( config, session, monitor ); super.doStartSession( launch, config, session, monitor );
} }
/* (non-Javadoc) /* (non-Javadoc)

View file

@ -31,6 +31,7 @@ import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Path;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfiguration;
/** /**
@ -96,9 +97,9 @@ public class GDBCDIDebugger2 extends AbstractGDBCDIDebugger {
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger#doStartSession(org.eclipse.debug.core.ILaunchConfiguration, org.eclipse.cdt.debug.mi.core.cdi.Session, org.eclipse.core.runtime.IProgressMonitor) * @see org.eclipse.cdt.debug.mi.core.AbstractGDBCDIDebugger#doStartSession(org.eclipse.debug.core.ILaunch, org.eclipse.debug.core.ILaunchConfiguration, org.eclipse.cdt.debug.mi.core.cdi.Session, org.eclipse.core.runtime.IProgressMonitor)
*/ */
protected void doStartSession( ILaunchConfiguration config, Session session, IProgressMonitor monitor ) throws CoreException { protected void doStartSession( ILaunch launch, ILaunchConfiguration config, Session session, IProgressMonitor monitor ) throws CoreException {
initializeLibraries( config, session ); initializeLibraries( config, session );
if ( monitor.isCanceled() ) { if ( monitor.isCanceled() ) {
throw new OperationCanceledException(); throw new OperationCanceledException();