mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 07:15:39 +02:00
[239050] IProcesses interface enhancement for runNewProcess() and debugNewProcess() to also take a Map of attributes to allow for flexibility in starting a new process.
This commit is contained in:
parent
ed0ecf374a
commit
352badaaf3
3 changed files with 23 additions and 6 deletions
|
@ -11,6 +11,8 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.dd.dsf.debug.service;
|
package org.eclipse.dd.dsf.debug.service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import org.eclipse.dd.dsf.concurrent.DataRequestMonitor;
|
import org.eclipse.dd.dsf.concurrent.DataRequestMonitor;
|
||||||
import org.eclipse.dd.dsf.concurrent.RequestMonitor;
|
import org.eclipse.dd.dsf.concurrent.RequestMonitor;
|
||||||
import org.eclipse.dd.dsf.datamodel.IDMContext;
|
import org.eclipse.dd.dsf.datamodel.IDMContext;
|
||||||
|
@ -125,9 +127,13 @@ 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 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 attributes Attributes that give information on the process to be debugged
|
||||||
* @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(IDMContext dmc, String file, DataRequestMonitor<IProcessDMContext> rm);
|
void runNewProcess(IDMContext dmc,
|
||||||
|
String file,
|
||||||
|
Map<String, Object> attributes,
|
||||||
|
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
|
||||||
|
@ -140,10 +146,14 @@ 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 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 attributes Attributes that give information on the process to be debugged
|
||||||
* @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(IDMContext dmc, String file, DataRequestMonitor<IDMContext> rm);
|
void debugNewProcess(IDMContext dmc,
|
||||||
|
String file,
|
||||||
|
Map<String, Object> attributes,
|
||||||
|
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.
|
||||||
|
|
|
@ -568,7 +568,8 @@ public class GDBProcesses_7_0 extends AbstractDsfService implements IMIProcesses
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void debugNewProcess(IDMContext dmc, String file, DataRequestMonitor<IDMContext> rm) {
|
public void debugNewProcess(IDMContext dmc, String file,
|
||||||
|
Map<String, Object> attributes, 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 +685,9 @@ public class GDBProcesses_7_0 extends AbstractDsfService implements IMIProcesses
|
||||||
rm.setData(false);
|
rm.setData(false);
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
public void runNewProcess(IDMContext dmc, String file, DataRequestMonitor<IProcessDMContext> rm) {
|
|
||||||
|
public void runNewProcess(IDMContext dmc, String file,
|
||||||
|
Map<String, Object> attributes, 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();
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.dd.mi.service;
|
package org.eclipse.dd.mi.service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.Status;
|
import org.eclipse.core.runtime.Status;
|
||||||
import org.eclipse.dd.dsf.concurrent.DataRequestMonitor;
|
import org.eclipse.dd.dsf.concurrent.DataRequestMonitor;
|
||||||
|
@ -538,7 +540,8 @@ public class MIProcesses extends AbstractDsfService implements IMIProcesses, ICa
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void debugNewProcess(IDMContext dmc, String file, DataRequestMonitor<IDMContext> rm) {
|
public void debugNewProcess(IDMContext dmc, String file,
|
||||||
|
Map<String, Object> attributes, 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 +604,8 @@ public class MIProcesses extends AbstractDsfService implements IMIProcesses, ICa
|
||||||
rm.setData(false);
|
rm.setData(false);
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
public void runNewProcess(IDMContext dmc, String file, DataRequestMonitor<IProcessDMContext> rm) {
|
public void runNewProcess(IDMContext dmc, String file,
|
||||||
|
Map<String, Object> attributes, 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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue