diff options
author | John Dallaway | 2021-07-20 16:46:26 +0000 |
---|---|---|
committer | John Dallaway | 2021-07-20 16:46:26 +0000 |
commit | 79b1f157dd9f51a535f23f7930ae3518feb526e3 (patch) | |
tree | 08dd0d2d52d495e8d51f5862c46686309c7e33dc | |
parent | d27126df9a4b87d19674725d0fd7e3c1979ac435 (diff) | |
download | org.eclipse.cdt-79b1f157dd9f51a535f23f7930ae3518feb526e3.tar.gz org.eclipse.cdt-79b1f157dd9f51a535f23f7930ae3518feb526e3.tar.xz org.eclipse.cdt-79b1f157dd9f51a535f23f7930ae3518feb526e3.zip |
Bug 574928: Add PyOCD definitions
Change-Id: I3181d807d3ff33fd3b2cf7e2f764ed2cd3d174f5
4 files changed, 50 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 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 @@ -68,6 +68,12 @@ name="%PEMicro.name"> </device> <device + class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.PyOCD" + default_connection="localhost:3333" + id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.PyOCD" + name="%PyOCD.name"> + </device> + <device class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink" default_connection="localhost:2331" id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink" diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/PyOCD.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/PyOCD.java new file mode 100644 index 00000000000..6c0a857b44e --- /dev/null +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/PyOCD.java @@ -0,0 +1,40 @@ +/******************************************************************************* + * Copyright (c) 2008, 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 + * 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 - PyOCD extension, bug 574928 + *******************************************************************************/ +package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice; + +import java.util.Collection; + +/** + * @since 10.4 + */ +public class PyOCD extends DefaultGDBJtagConnectionImpl { + + @Override + public void doDelay(int delay, Collection<String> commands) { + /* not supported */ + } + + @Override + public void doReset(Collection<String> commands) { + addCmd(commands, "monitor reset"); //$NON-NLS-1$ + } + + @Override + public void doResetAndHalt(Collection<String> commands) { + addCmd(commands, "monitor reset halt"); //$NON-NLS-1$ + } + +} |