Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jtag
diff options
context:
space:
mode:
authorJohn Dallaway2019-06-14 10:01:51 -0400
committerJohn Dallaway2019-06-14 10:02:14 -0400
commitbce75b4595d9fad0bb5207b966d9afc1e9f1c284 (patch)
tree7570940c144af4915b2e51ce287fe9aa59525886 /jtag
parent0b9b9890ee1bce79eed3a8b4d876e18ddff9be65 (diff)
downloadorg.eclipse.cdt-bce75b4595d9fad0bb5207b966d9afc1e9f1c284.tar.gz
org.eclipse.cdt-bce75b4595d9fad0bb5207b966d9afc1e9f1c284.tar.xz
org.eclipse.cdt-bce75b4595d9fad0bb5207b966d9afc1e9f1c284.zip
Bug 548281: Add SEGGER J-Link definitions
Change-Id: If832ddcfcdb4cadd629afe6c9e1ca48528a17d54 Signed-off-by: John Dallaway <john@dallaway.org.uk>
Diffstat (limited to 'jtag')
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.core/META-INF/MANIFEST.MF2
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.properties4
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml8
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/SeggerJLink.java50
4 files changed, 62 insertions, 2 deletions
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/META-INF/MANIFEST.MF b/jtag/org.eclipse.cdt.debug.gdbjtag.core/META-INF/MANIFEST.MF
index 54fd49eca3..4bacd77437 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/META-INF/MANIFEST.MF
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.debug.gdbjtag.core;singleton:=true
-Bundle-Version: 9.2.100.qualifier
+Bundle-Version: 9.3.0.qualifier
Bundle-Activator: org.eclipse.cdt.debug.gdbjtag.core.Activator
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime,
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.properties b/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.properties
index 6154171ee5..47099c2d51 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.properties
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2007, 2018 QNX Software Systems and others
+# Copyright (c) 2007, 2019 QNX Software Systems and others
#
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
@@ -12,6 +12,7 @@
# QNX Software Systems - initial API and implementation
# IBM Corporation
# John Dallaway - migrate device extensions to core plugin, bug 538282
+# John Dallaway - SEGGER J-Link extension, bug 548281
###############################################################################
launchConfig.name=GDB Hardware Debugging
pluginName=Eclipse GDB Hardware Debug Core Plug-in
@@ -24,6 +25,7 @@ MacraigorUsb2Demon.name=Macraigor USB2Demon
GenericSerial.name=Generic Serial
OpenOCDPipe.name=OpenOCD (via pipe)
OpenOCDSocket.name=OpenOCD (via socket)
+SeggerJLink.name=SEGGER J-Link
Generic.name=Generic TCP/IP
launchDelegate.jtag.name=Legacy GDB Hardware Debugging
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml b/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml
index 7bbff7dba6..1d18dfd600 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml
@@ -73,4 +73,12 @@
name="%OpenOCDSocket.name">
</device>
</extension>
+ <extension
+ point="org.eclipse.cdt.debug.gdbjtag.core.JTagDevice">
+ <device
+ class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink"
+ id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink"
+ name="%SeggerJLink.name">
+ </device>
+ </extension>
</plugin>
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/SeggerJLink.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/SeggerJLink.java
new file mode 100644
index 0000000000..1441305294
--- /dev/null
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/SeggerJLink.java
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2008, 2019 QNX Software Systems and others.
+ *
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * QNX Software Systems - Initial API and implementation
+ * Andy Jin - Hardware debugging UI improvements, bug 229946
+ * John Dallaway - SEGGER J-Link extension, bug 548281
+ *******************************************************************************/
+package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice;
+
+import java.util.Collection;
+
+/**
+ * @since 9.3
+ */
+public class SeggerJLink extends DefaultGDBJtagDeviceImpl {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl#getDefaultPortNumber()
+ */
+ @Override
+ public String getDefaultPortNumber() {
+ return "2331"; //$NON-NLS-1$
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl#doDelay(int, java.util.Collection)
+ */
+ @Override
+ public void doDelay(int delay, Collection<String> commands) {
+ addCmd(commands, "monitor sleep " + String.valueOf(delay * 1000)); //$NON-NLS-1$
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl#doReset(java.util.Collection)
+ */
+ @Override
+ public void doReset(Collection<String> commands) {
+ addCmd(commands, "monitor reset"); //$NON-NLS-1$
+ addCmd(commands, "monitor go"); //$NON-NLS-1$
+ }
+
+}

Back to the top