mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Fixed bug with using wrong launch constant in dsf jtag devices that support new connection interface
This commit is contained in:
parent
1a2fce25ec
commit
95d7620fd1
1 changed files with 3 additions and 3 deletions
|
@ -437,13 +437,13 @@ public class GDBJtagDSFFinalLaunchSequence extends Sequence {
|
||||||
if (config.getAttribute(IGDBJtagConstants.ATTR_USE_REMOTE_TARGET, IGDBJtagConstants.DEFAULT_USE_REMOTE_TARGET)) {
|
if (config.getAttribute(IGDBJtagConstants.ATTR_USE_REMOTE_TARGET, IGDBJtagConstants.DEFAULT_USE_REMOTE_TARGET)) {
|
||||||
List<String> commands = new ArrayList<String>();
|
List<String> commands = new ArrayList<String>();
|
||||||
if (fGdbJtagDevice instanceof IGDBJtagConnection) {
|
if (fGdbJtagDevice instanceof IGDBJtagConnection) {
|
||||||
URI uri = new URI(config.getAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, ""));
|
URI uri = new URI(config.getAttribute(IGDBJtagConstants.ATTR_CONNECTION, IGDBJtagConstants.DEFAULT_CONNECTION));
|
||||||
IGDBJtagConnection device = (IGDBJtagConnection)fGdbJtagDevice;
|
IGDBJtagConnection device = (IGDBJtagConnection)fGdbJtagDevice;
|
||||||
device.doRemote(uri.getSchemeSpecificPart(), commands);
|
device.doRemote(uri.getSchemeSpecificPart(), commands);
|
||||||
} else {
|
} else {
|
||||||
// Handle legacy network device contributions that don't understand URIs
|
// Handle legacy network device contributions that don't understand URIs
|
||||||
String ipAddress = config.getAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, "");
|
String ipAddress = config.getAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, IGDBJtagConstants.DEFAULT_IP_ADDRESS);
|
||||||
int portNumber = config.getAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, 0);
|
int portNumber = config.getAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, IGDBJtagConstants.DEFAULT_PORT_NUMBER);
|
||||||
fGdbJtagDevice.doRemote(ipAddress, portNumber, commands);
|
fGdbJtagDevice.doRemote(ipAddress, portNumber, commands);
|
||||||
}
|
}
|
||||||
queueCommands(commands, rm);
|
queueCommands(commands, rm);
|
||||||
|
|
Loading…
Add table
Reference in a new issue