Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jtag
diff options
context:
space:
mode:
authorAlena Laskavaia2010-05-10 10:06:21 -0400
committerAlena Laskavaia2010-05-10 10:06:21 -0400
commit95d7620fd15dcb31af8c168d9f0e66baadcbb202 (patch)
tree5e3f7ddda097715c57cd5722fdb252353502d362 /jtag
parent1a2fce25eccb946015ed9ca48aacd833e7543bc8 (diff)
downloadorg.eclipse.cdt-95d7620fd15dcb31af8c168d9f0e66baadcbb202.tar.gz
org.eclipse.cdt-95d7620fd15dcb31af8c168d9f0e66baadcbb202.tar.xz
org.eclipse.cdt-95d7620fd15dcb31af8c168d9f0e66baadcbb202.zip
Fixed bug with using wrong launch constant in dsf jtag devices that support new connection interface
Diffstat (limited to 'jtag')
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
index 8503233e3b..9345b81dd5 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
@@ -437,13 +437,13 @@ public class GDBJtagDSFFinalLaunchSequence extends Sequence {
if (config.getAttribute(IGDBJtagConstants.ATTR_USE_REMOTE_TARGET, IGDBJtagConstants.DEFAULT_USE_REMOTE_TARGET)) {
List<String> commands = new ArrayList<String>();
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;
device.doRemote(uri.getSchemeSpecificPart(), commands);
} else {
// Handle legacy network device contributions that don't understand URIs
- String ipAddress = config.getAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, "");
- int portNumber = config.getAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, 0);
+ String ipAddress = config.getAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, IGDBJtagConstants.DEFAULT_IP_ADDRESS);
+ int portNumber = config.getAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, IGDBJtagConstants.DEFAULT_PORT_NUMBER);
fGdbJtagDevice.doRemote(ipAddress, portNumber, commands);
}
queueCommands(commands, rm);

Back to the top