From 79b1f157dd9f51a535f23f7930ae3518feb526e3 Mon Sep 17 00:00:00 2001 From: John Dallaway Date: Tue, 20 Jul 2021 17:46:26 +0100 Subject: [PATCH] Bug 574928: Add PyOCD definitions Change-Id: I3181d807d3ff33fd3b2cf7e2f764ed2cd3d174f5 --- .../META-INF/MANIFEST.MF | 2 +- .../plugin.properties | 4 +- .../plugin.xml | 6 +++ .../debug/gdbjtag/core/jtagdevice/PyOCD.java | 40 +++++++++++++++++++ 4 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/PyOCD.java 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 3ffdfbc30db..57c7badda7b 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: 10.3.0.qualifier +Bundle-Version: 10.4.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 fbf074475c7..5e79da7e0f9 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, 2020 QNX Software Systems and others +# Copyright (c) 2007, 2021 QNX Software Systems and others # # This program and the accompanying materials # are made available under the terms of the Eclipse Public License 2.0 @@ -15,6 +15,7 @@ # John Dallaway - SEGGER J-Link extension, bug 548281 # John Dallaway - PEmicro extension, bug 552597 # John Dallaway - ST-LINK extension, bug 558266 +# John Dallaway - PyOCD extension, bug 574928 ############################################################################### launchConfig.name=GDB Hardware Debugging pluginName=Eclipse GDB Hardware Debug Core Plug-in @@ -28,6 +29,7 @@ GenericSerial.name=Generic Serial OpenOCDPipe.name=OpenOCD (via pipe) OpenOCDSocket.name=OpenOCD (via socket) PEMicro.name=PEmicro +PyOCD.name=PyOCD SeggerJLink.name=SEGGER J-Link STLink.name=ST-LINK Generic.name=Generic TCP/IP diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml b/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml index c9f69fa0503..a581dca10ce 100644 --- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/plugin.xml @@ -67,6 +67,12 @@ id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.PEMicro" name="%PEMicro.name"> + + commands) { + /* not supported */ + } + + @Override + public void doReset(Collection commands) { + addCmd(commands, "monitor reset"); //$NON-NLS-1$ + } + + @Override + public void doResetAndHalt(Collection commands) { + addCmd(commands, "monitor reset halt"); //$NON-NLS-1$ + } + +}