mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 547881 - Allow targets to set ATTR_REMOTE_TCP
Adds support for this attribute in the ILaunchTarget attributes and then convert it to the boolean attribute on the launch config. Change-Id: Ieefa6892641517ff0fa6a0a04f63a6a8dbc35bf4
This commit is contained in:
parent
6a27da170f
commit
83792f71bd
2 changed files with 14 additions and 4 deletions
|
@ -551,8 +551,13 @@ public class GDBProcesses_7_2 extends GDBProcesses_7_1 implements IMultiTerminat
|
|||
ILaunchTarget target = ((ITargetedLaunch) launch).getLaunchTarget();
|
||||
if (target != null) {
|
||||
attributes.putAll(target.getAttributes());
|
||||
attributes.put(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP,
|
||||
target.getTypeId().equals(GDBRemoteTCPLaunchTargetProvider.TYPE_ID));
|
||||
String tcp = target.getAttribute(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP, ""); //$NON-NLS-1$
|
||||
if (!tcp.isEmpty()) {
|
||||
attributes.put(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP, Boolean.parseBoolean(tcp));
|
||||
} else {
|
||||
attributes.put(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP,
|
||||
target.getTypeId().equals(GDBRemoteTCPLaunchTargetProvider.TYPE_ID));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -443,8 +443,13 @@ public class GDBControl extends AbstractMIControl implements IGDBControl {
|
|||
ILaunchTarget target = ((ITargetedLaunch) launch).getLaunchTarget();
|
||||
if (target != null) {
|
||||
attributes.putAll(target.getAttributes());
|
||||
attributes.put(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP,
|
||||
target.getTypeId().equals(GDBRemoteTCPLaunchTargetProvider.TYPE_ID));
|
||||
String tcp = target.getAttribute(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP, ""); //$NON-NLS-1$
|
||||
if (!tcp.isEmpty()) {
|
||||
attributes.put(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP, Boolean.parseBoolean(tcp));
|
||||
} else {
|
||||
attributes.put(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP,
|
||||
target.getTypeId().equals(GDBRemoteTCPLaunchTargetProvider.TYPE_ID));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue