Skip to content

Commit

Permalink
Add openipc runner for debugging
Browse files Browse the repository at this point in the history
Adding openipc runner on debug configuration to launch openipc through
west debugserver

Signed-off-by: Marta Navarro <[email protected]>
  • Loading branch information
martanav authored and dcpleung committed Jul 20, 2020
1 parent b29882e commit e5fafb1
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/org.zephyrproject.ide.eclipse.core/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
</device>
<device
class="org.zephyrproject.ide.eclipse.core.debug.jtagdevice.OpenIPCDevice"
id="org.zephyrproject.ide.eclipse.core.debug.jtagdevice.openIPCDevice"
name="OpenIPC">
</device>
<device
class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagConnectionImpl"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2008, 2012 QNX Software Systems and others.
* Copyright (c) 2020 Intel Corporation
*
* SPDX-License-Identifier: EPL-2.0
*/

/*
* Originally from org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.GenericDevice
*/

package org.zephyrproject.ide.eclipse.core.debug.jtagdevice;

import java.util.Collection;

import org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl;

public class OpenIPCDevice extends DefaultGDBJtagDeviceImpl {

@Override
public String getDefaultPortNumber() {
return "8086"; //$NON-NLS-1$
}

@Override
public void doDelay(int delay, Collection<String> commands) {
addCmd(commands, "monitor sleep " + String.valueOf(delay * 1000)); //$NON-NLS-1$
}

@Override
public void doResetAndHalt(Collection<String> commands) {
addCmd(commands, "monitor reset halt"); //$NON-NLS-1$
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5fafb1

Please sign in to comment.