mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 548281: Add SEGGER J-Link definitions
Change-Id: If832ddcfcdb4cadd629afe6c9e1ca48528a17d54 Signed-off-by: John Dallaway <john@dallaway.org.uk>
This commit is contained in:
parent
0b9b9890ee
commit
bce75b4595
4 changed files with 62 additions and 2 deletions
|
@ -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.2.100.qualifier
|
||||
Bundle-Version: 9.3.0.qualifier
|
||||
Bundle-Activator: org.eclipse.cdt.debug.gdbjtag.core.Activator
|
||||
Bundle-Localization: plugin
|
||||
Require-Bundle: org.eclipse.core.runtime,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2007, 2018 QNX Software Systems and others
|
||||
# Copyright (c) 2007, 2019 QNX Software Systems and others
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are made available under the terms of the Eclipse Public License 2.0
|
||||
|
@ -12,6 +12,7 @@
|
|||
# QNX Software Systems - initial API and implementation
|
||||
# IBM Corporation
|
||||
# John Dallaway - migrate device extensions to core plugin, bug 538282
|
||||
# John Dallaway - SEGGER J-Link extension, bug 548281
|
||||
###############################################################################
|
||||
launchConfig.name=GDB Hardware Debugging
|
||||
pluginName=Eclipse GDB Hardware Debug Core Plug-in
|
||||
|
@ -24,6 +25,7 @@ MacraigorUsb2Demon.name=Macraigor USB2Demon
|
|||
GenericSerial.name=Generic Serial
|
||||
OpenOCDPipe.name=OpenOCD (via pipe)
|
||||
OpenOCDSocket.name=OpenOCD (via socket)
|
||||
SeggerJLink.name=SEGGER J-Link
|
||||
Generic.name=Generic TCP/IP
|
||||
|
||||
launchDelegate.jtag.name=Legacy GDB Hardware Debugging
|
||||
|
|
|
@ -73,4 +73,12 @@
|
|||
name="%OpenOCDSocket.name">
|
||||
</device>
|
||||
</extension>
|
||||
<extension
|
||||
point="org.eclipse.cdt.debug.gdbjtag.core.JTagDevice">
|
||||
<device
|
||||
class="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink"
|
||||
id="org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.SeggerJLink"
|
||||
name="%SeggerJLink.name">
|
||||
</device>
|
||||
</extension>
|
||||
</plugin>
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2008, 2019 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 - SEGGER J-Link extension, bug 548281
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.debug.gdbjtag.core.jtagdevice;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* @since 9.3
|
||||
*/
|
||||
public class SeggerJLink extends DefaultGDBJtagDeviceImpl {
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl#getDefaultPortNumber()
|
||||
*/
|
||||
@Override
|
||||
public String getDefaultPortNumber() {
|
||||
return "2331"; //$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$
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.gdbjtag.core.jtagdevice.DefaultGDBJtagDeviceImpl#doReset(java.util.Collection)
|
||||
*/
|
||||
@Override
|
||||
public void doReset(Collection<String> commands) {
|
||||
addCmd(commands, "monitor reset"); //$NON-NLS-1$
|
||||
addCmd(commands, "monitor go"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue