From e5fafb114f2cade920969a5aa239b03b00ea46a1 Mon Sep 17 00:00:00 2001 From: Marta Navarro Date: Mon, 13 Jul 2020 17:44:12 +0200 Subject: [PATCH] Add openipc runner for debugging Adding openipc runner on debug configuration to launch openipc through west debugserver Signed-off-by: Marta Navarro --- .../plugin.xml | 5 +++ .../core/debug/jtagdevice/OpenIPCDevice.java | 35 +++++++++++++++++++ .../tabs/CommonDebugLaunchDebuggerTab.java | 3 ++ 3 files changed, 43 insertions(+) create mode 100644 plugins/org.zephyrproject.ide.eclipse.core/src/org/zephyrproject/ide/eclipse/core/debug/jtagdevice/OpenIPCDevice.java diff --git a/plugins/org.zephyrproject.ide.eclipse.core/plugin.xml b/plugins/org.zephyrproject.ide.eclipse.core/plugin.xml index 261f6d7..404d8a2 100644 --- a/plugins/org.zephyrproject.ide.eclipse.core/plugin.xml +++ b/plugins/org.zephyrproject.ide.eclipse.core/plugin.xml @@ -193,6 +193,11 @@ class="org.zephyrproject.ide.eclipse.core.debug.jtagdevice.Nios2Device" id="org.zephyrproject.ide.eclipse.core.debug.jtagdevice.nios2Device" name="Nios II GDB Server"> + + commands) { + addCmd(commands, "monitor sleep " + String.valueOf(delay * 1000)); //$NON-NLS-1$ + } + + @Override + public void doResetAndHalt(Collection commands) { + addCmd(commands, "monitor reset halt"); //$NON-NLS-1$ + } + +} \ No newline at end of file diff --git a/plugins/org.zephyrproject.ide.eclipse.ui/src/org/zephyrproject/ide/eclipse/ui/internal/launch/tabs/CommonDebugLaunchDebuggerTab.java b/plugins/org.zephyrproject.ide.eclipse.ui/src/org/zephyrproject/ide/eclipse/ui/internal/launch/tabs/CommonDebugLaunchDebuggerTab.java index b5f2e56..7b42e79 100644 --- a/plugins/org.zephyrproject.ide.eclipse.ui/src/org/zephyrproject/ide/eclipse/ui/internal/launch/tabs/CommonDebugLaunchDebuggerTab.java +++ b/plugins/org.zephyrproject.ide.eclipse.ui/src/org/zephyrproject/ide/eclipse/ui/internal/launch/tabs/CommonDebugLaunchDebuggerTab.java @@ -55,6 +55,9 @@ public abstract class CommonDebugLaunchDebuggerTab new JTagDeviceDesc("openocd", //$NON-NLS-1$ "org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.OpenOCDSocket", //$NON-NLS-1$ JTagDeviceDesc.IP_ADDR_LOCALHOST, 3333), + new JTagDeviceDesc("openipc", //$NON-NLS-1$ + "org.zephyrproject.ide.eclipse.core.debug.jtagdevice.openIPCDevice", //$NON-NLS-1$ + JTagDeviceDesc.IP_ADDR_LOCALHOST, 8086), }; @Override