From e09763e58171ab8cf00f25940d75d5e9801689d3 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Thu, 6 May 2010 18:55:56 +0000 Subject: [PATCH] Fixed warnings --- .../cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java | 1 + .../org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDebugger.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 b3434430248..e83f410b223 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 @@ -373,6 +373,7 @@ public class GDBJtagDSFFinalLaunchSequence extends Sequence { * Hook up to remote target */ new Step() { + @SuppressWarnings("deprecation") @Override public void execute(RequestMonitor rm) { ILaunchConfiguration config = fLaunch.getLaunchConfiguration(); diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDebugger.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDebugger.java index 0dbfc111028..845370eec7c 100644 --- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDebugger.java +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDebugger.java @@ -73,6 +73,7 @@ public class GDBJtagDebugger extends AbstractGDBCDIDebugger { return new GDBJtagCommandFactory(miVersion); } + @SuppressWarnings("deprecation") protected void doStartSession(ILaunch launch, Session session, IProgressMonitor monitor) throws CoreException { SubMonitor submonitor = SubMonitor.convert(monitor, 100); @@ -125,10 +126,11 @@ public class GDBJtagDebugger extends AbstractGDBCDIDebugger { submonitor.subTask(Messages.getString("GDBJtagDebugger.2")); //$NON-NLS-1$ try { if (gdbJtagDevice instanceof IGDBJtagConnection) { - URI connection = new URI(config.getAttribute(IGDBJtagConstants.ATTR_CONNECTION, "")); //$NON-NLS-1$ + URI connection = new URI(config.getAttribute(IGDBJtagConstants.ATTR_CONNECTION, IGDBJtagConstants.DEFAULT_CONNECTION)); IGDBJtagConnection device = (IGDBJtagConnection)gdbJtagDevice; device.doRemote(connection.getSchemeSpecificPart(), commands); } else { + // use deprecated methods tied to TCP/IP String ipAddress = config.getAttribute(IGDBJtagConstants.ATTR_IP_ADDRESS, ""); //$NON-NLS-1$ int portNumber = config.getAttribute(IGDBJtagConstants.ATTR_PORT_NUMBER, 0); gdbJtagDevice.doRemote(ipAddress, portNumber, commands);