mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[252283] Allow to select a target using 'remote' or 'extended-remote'
This commit is contained in:
parent
34eb5e6986
commit
d427849218
2 changed files with 21 additions and 5 deletions
|
@ -398,14 +398,14 @@ public class FinalLaunchSequence extends Sequence {
|
||||||
|
|
||||||
fCommandControl.queueCommand(
|
fCommandControl.queueCommand(
|
||||||
new MITargetSelect(fCommandControl.getContext(),
|
new MITargetSelect(fCommandControl.getContext(),
|
||||||
fRemoteTcpHost, fRemoteTcpPort),
|
fRemoteTcpHost, fRemoteTcpPort, fAttach),
|
||||||
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
|
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
|
||||||
} else {
|
} else {
|
||||||
if (!getSerialDevice(requestMonitor)) return;
|
if (!getSerialDevice(requestMonitor)) return;
|
||||||
|
|
||||||
fCommandControl.queueCommand(
|
fCommandControl.queueCommand(
|
||||||
new MITargetSelect(fCommandControl.getContext(),
|
new MITargetSelect(fCommandControl.getContext(),
|
||||||
fSerialDevice),
|
fSerialDevice, fAttach),
|
||||||
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
|
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -489,7 +489,7 @@ public class FinalLaunchSequence extends Sequence {
|
||||||
DsfServicesTracker fTracker;
|
DsfServicesTracker fTracker;
|
||||||
|
|
||||||
public FinalLaunchSequence(DsfExecutor executor, GdbLaunch launch, SessionType sessionType, boolean attach, IProgressMonitor pm) {
|
public FinalLaunchSequence(DsfExecutor executor, GdbLaunch launch, SessionType sessionType, boolean attach, IProgressMonitor pm) {
|
||||||
super(executor, pm, "Configuring GDB", "Aborting configuring GDB");
|
super(executor, pm, "Configuring GDB", "Aborting configuring GDB"); //$NON-NLS-1$//$NON-NLS-2$
|
||||||
fLaunch = launch;
|
fLaunch = launch;
|
||||||
fSessionType = sessionType;
|
fSessionType = sessionType;
|
||||||
fAttach = attach;
|
fAttach = attach;
|
||||||
|
|
|
@ -18,12 +18,28 @@ import org.eclipse.dd.mi.service.command.output.MIInfo;
|
||||||
*/
|
*/
|
||||||
public class MITargetSelect extends MICommand<MIInfo> {
|
public class MITargetSelect extends MICommand<MIInfo> {
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public MITargetSelect(IDMContext ctx, String host, String port) {
|
public MITargetSelect(IDMContext ctx, String host, String port) {
|
||||||
super(ctx, "-target-select extended-remote", new String[] {host + ":" + port}); //$NON-NLS-1$ //$NON-NLS-2$
|
this(ctx, host, port, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public MITargetSelect(IDMContext ctx, String serialDevice) {
|
public MITargetSelect(IDMContext ctx, String serialDevice) {
|
||||||
super(ctx, "-target-select extended-remote", new String[] {serialDevice}); //$NON-NLS-1$
|
this(ctx, serialDevice, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
|
public MITargetSelect(IDMContext ctx, String host, String port, boolean extended) {
|
||||||
|
super(ctx, "-target-select", new String[] { extended ? "extended-remote" : "remote", host + ":" + port}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
|
public MITargetSelect(IDMContext ctx, String serialDevice, boolean extended) {
|
||||||
|
super(ctx, "-target-select", new String[] { extended ? "extended-remote" : "remote", serialDevice}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue