diff options
author | John Dallaway | 2018-01-21 16:35:50 +0000 |
---|---|---|
committer | John Dallaway | 2018-01-21 16:35:50 +0000 |
commit | 573af6187b2f89d4d2b6a843ad93e366736503ef (patch) | |
tree | 913dfbaf573731a9bf946afc292a342ad149d3b9 /jtag/org.eclipse.cdt.debug.gdbjtag.core | |
parent | 746993c9eed534783dbaf563d6ba8280e27a84f4 (diff) | |
download | org.eclipse.cdt-573af6187b2f89d4d2b6a843ad93e366736503ef.tar.gz org.eclipse.cdt-573af6187b2f89d4d2b6a843ad93e366736503ef.tar.xz org.eclipse.cdt-573af6187b2f89d4d2b6a843ad93e366736503ef.zip |
Bug 494059: Add OpenOCD extensions
Change-Id: I0a2820f40c641a85aac11e8d72b6aca65f599b6e
Signed-off-by: John Dallaway <john@dallaway.org.uk>
Diffstat (limited to 'jtag/org.eclipse.cdt.debug.gdbjtag.core')
3 files changed, 71 insertions, 1 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 941e4bdb3b8..32004182441 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.1.1.qualifier +Bundle-Version: 9.2.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/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/OpenOCDPipe.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/OpenOCDPipe.java new file mode 100644 index 00000000000..cd81d0bd1a7 --- /dev/null +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/OpenOCDPipe.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2008, 2018 QNX Software Systems and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * QNX Software Systems - Initial API and implementation + * Andy Jin - Hardware debugging UI improvements, bug 229946 + * John Dallaway - OpenOCD extensions, bug 494059 + *******************************************************************************/ +package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice; + +import java.util.Collection; + + +/** + * @since 9.2 + */ +public class OpenOCDPipe extends DefaultGDBJtagConnectionImpl { + + /* (non-Javadoc) + * @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagConnectionImpl#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$ + } + +} diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/OpenOCDSocket.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/OpenOCDSocket.java new file mode 100644 index 00000000000..169b5fb2641 --- /dev/null +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/jtagdevice/OpenOCDSocket.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2008, 2018 QNX Software Systems and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * QNX Software Systems - Initial API and implementation + * Andy Jin - Hardware debugging UI improvements, bug 229946 + * John Dallaway - OpenOCD extensions, bug 494059 + *******************************************************************************/ +package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice; + +import java.util.Collection; + + +/** + * @since 9.2 + */ +public class OpenOCDSocket extends DefaultGDBJtagDeviceImpl { + + /* (non-Javadoc) + * @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl#getDefaultPortNumber() + */ + @Override + public String getDefaultPortNumber() { + return "3333"; //$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$ + } + +} |