1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[239050] The method debugNewProcess() should actually return an

IContainerDMContext with the IProcessDMContext as its parent, since the debugger is attached to the process.

We had agreed to keep IRunControl contexts out of IProcesses, so this patch
simply allows debugNewProcess() to return any context (IDMContext.)
This commit is contained in:
Marc Khouzam 2008-09-22 19:43:11 +00:00
parent 1efdaf305a
commit 19db5c51b8
3 changed files with 5 additions and 4 deletions

View file

@ -138,9 +138,10 @@ public interface IProcesses extends IDMService {
/** /**
* Starts a new process with the debugger attached. * Starts a new process with the debugger attached.
* @param file Process image to use for the new process. * @param file Process image to use for the new process.
* @param rm Request completion monitor, to be willed in with the process context. * @param rm Request completion monitor, to be filled in with the
* debugging context that can now be used to characterize the process
*/ */
void debugNewProcess(String file, DataRequestMonitor<IProcessDMContext> rm); void debugNewProcess(String file, DataRequestMonitor<IDMContext> rm);
/** /**
* Retrieves the list of processes which are currently under debugger control. * Retrieves the list of processes which are currently under debugger control.

View file

@ -549,7 +549,7 @@ public class GDBProcesses_7_0 extends AbstractDsfService implements IMIProcesses
rm.done(); rm.done();
} }
public void debugNewProcess(String file, DataRequestMonitor<IProcessDMContext> rm) { public void debugNewProcess(String file, DataRequestMonitor<IDMContext> rm) {
rm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, rm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID,
NOT_SUPPORTED, "Not supported", null)); //$NON-NLS-1$ NOT_SUPPORTED, "Not supported", null)); //$NON-NLS-1$
rm.done(); rm.done();

View file

@ -534,7 +534,7 @@ public class MIProcesses extends AbstractDsfService implements IMIProcesses, ICa
rm.done(); rm.done();
} }
public void debugNewProcess(String file, DataRequestMonitor<IProcessDMContext> rm) { public void debugNewProcess(String file, DataRequestMonitor<IDMContext> rm) {
rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID, rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID,
NOT_SUPPORTED, "Not supported", null)); //$NON-NLS-1$ NOT_SUPPORTED, "Not supported", null)); //$NON-NLS-1$
rm.done(); rm.done();