mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
ILaunch is added to the arguments list of "doStartSession".
This commit is contained in:
parent
4cdd79f0b2
commit
2a30a9aa28
4 changed files with 15 additions and 7 deletions
|
@ -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
|
||||
Added default implementation for "getExtraArguments". No need to force
|
||||
clients to implement this method.
|
||||
|
|
|
@ -79,7 +79,7 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
|
|||
}
|
||||
}
|
||||
try {
|
||||
doStartSession( config, session, monitor );
|
||||
doStartSession( launch, config, session, monitor );
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
failed = true;
|
||||
|
@ -130,7 +130,7 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
|
|||
|
||||
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 ) {
|
||||
|
|
|
@ -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.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.debug.core.ILaunch;
|
||||
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||
|
||||
/**
|
||||
|
@ -32,9 +33,9 @@ public class CygwinGDBCDIDebugger2 extends GDBCDIDebugger2 {
|
|||
}
|
||||
|
||||
/* (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
|
||||
// to separate the Inferior std{in,out,err} from gdb std{in,out,err}
|
||||
MISession miSession = getMISession( session );
|
||||
|
@ -51,7 +52,7 @@ public class CygwinGDBCDIDebugger2 extends GDBCDIDebugger2 {
|
|||
// We ignore this exception, for example
|
||||
// on GNU/Linux the new-console is an error.
|
||||
}
|
||||
super.doStartSession( config, session, monitor );
|
||||
super.doStartSession( launch, config, session, monitor );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.eclipse.core.runtime.IPath;
|
|||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.OperationCanceledException;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
import org.eclipse.debug.core.ILaunch;
|
||||
import org.eclipse.debug.core.ILaunchConfiguration;
|
||||
|
||||
/**
|
||||
|
@ -96,9 +97,9 @@ public class GDBCDIDebugger2 extends AbstractGDBCDIDebugger {
|
|||
}
|
||||
|
||||
/* (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 );
|
||||
if ( monitor.isCanceled() ) {
|
||||
throw new OperationCanceledException();
|
||||
|
|
Loading…
Add table
Reference in a new issue