1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-17 05:55:22 +02:00

[239050] IProcesses.runNewProcess() and IProcesses.debugNewProcess() should take a context as a parameter to know which command control the command affects.

This commit is contained in:
Marc Khouzam 2008-10-02 18:24:00 +00:00
parent 546864ed77
commit 81d3982175
3 changed files with 8 additions and 6 deletions

View file

@ -123,10 +123,11 @@ public interface IProcesses extends IDMService {
/** /**
* Starts a new process. * Starts a new process.
* @param dmc The processor or core on which we want to run a new process.
* @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 filled in with the process context. * @param rm Request completion monitor, to be filled in with the process context.
*/ */
void runNewProcess(String file, DataRequestMonitor<IProcessDMContext> rm); void runNewProcess(IDMContext dmc, String file, DataRequestMonitor<IProcessDMContext> rm);
/** /**
* Checks whether it is possible to start a new process with the debugger attached * Checks whether it is possible to start a new process with the debugger attached
@ -137,11 +138,12 @@ public interface IProcesses extends IDMService {
/** /**
* Starts a new process with the debugger attached. * Starts a new process with the debugger attached.
* @param dmc The processor or core on which we want to start and debug the new process.
* @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 filled in with the * @param rm Request completion monitor, to be filled in with the
* debugging context that can now be used to characterize the process * debugging context that can now be used to characterize the process
*/ */
void debugNewProcess(String file, DataRequestMonitor<IDMContext> rm); void debugNewProcess(IDMContext dmc, 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

@ -568,7 +568,7 @@ public class GDBProcesses_7_0 extends AbstractDsfService implements IMIProcesses
rm.done(); rm.done();
} }
public void debugNewProcess(String file, DataRequestMonitor<IDMContext> rm) { public void debugNewProcess(IDMContext dmc, 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();
@ -684,7 +684,7 @@ public class GDBProcesses_7_0 extends AbstractDsfService implements IMIProcesses
rm.setData(false); rm.setData(false);
rm.done(); rm.done();
} }
public void runNewProcess(String file, DataRequestMonitor<IProcessDMContext> rm) { public void runNewProcess(IDMContext dmc, String file, DataRequestMonitor<IProcessDMContext> 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

@ -538,7 +538,7 @@ public class MIProcesses extends AbstractDsfService implements IMIProcesses, ICa
rm.done(); rm.done();
} }
public void debugNewProcess(String file, DataRequestMonitor<IDMContext> rm) { public void debugNewProcess(IDMContext dmc, 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();
@ -601,7 +601,7 @@ public class MIProcesses extends AbstractDsfService implements IMIProcesses, ICa
rm.setData(false); rm.setData(false);
rm.done(); rm.done();
} }
public void runNewProcess(String file, DataRequestMonitor<IProcessDMContext> rm) { public void runNewProcess(IDMContext dmc, String file, DataRequestMonitor<IProcessDMContext> 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();