Skip to content

Commit 1e24c26

Browse files
committed
jlink - add semihosting console only with server
1 parent 6669784 commit 1e24c26

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

ilg.gnuarmeclipse.debug.gdbjtag.jlink/src/ilg/gnuarmeclipse/debug/gdbjtag/jlink/Backend.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public Backend(DsfSession session, ILaunchConfiguration lc) {
5858
ConfigurationAttributes.DO_START_GDB_SERVER,
5959
ConfigurationAttributes.DO_START_GDB_SERVER_DEFAULT);
6060

61-
doStartSemihostingConsole = fLaunchConfiguration
61+
doStartSemihostingConsole = doStartGdbServer && fLaunchConfiguration
6262
.getAttribute(
6363
ConfigurationAttributes.DO_GDB_SERVER_ALLOCATE_SEMIHOSTING_CONSOLE,
6464
ConfigurationAttributes.DO_GDB_SERVER_ALLOCATE_SEMIHOSTING_CONSOLE_DEFAULT);
@@ -600,10 +600,7 @@ protected IStatus run(IProgressMonitor monitor) {
600600
}
601601

602602
try {
603-
String host = fLaunchConfiguration
604-
.getAttribute(
605-
IGDBJtagConstants.ATTR_IP_ADDRESS,
606-
ConfigurationAttributes.REMOTE_IP_ADDRESS_DEFAULT);
603+
String host = "localhost";
607604

608605
int port = fLaunchConfiguration
609606
.getAttribute(

ilg.gnuarmeclipse.debug.gdbjtag.jlink/src/ilg/gnuarmeclipse/debug/gdbjtag/jlink/ui/TabDebugger.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,8 +955,7 @@ private void doStartGdbServerChanged() {
955955

956956
doGdbServerAllocateConsole.setEnabled(enabled);
957957

958-
// Keep this one enabled always
959-
// doGdbServerAllocateSemihostingConsole.setEnabled(enabled);
958+
doGdbServerAllocateSemihostingConsole.setEnabled(enabled);
960959

961960
// Disable remote target params when the server is started
962961
targetIpAddress.setEnabled(!enabled);

0 commit comments

Comments
 (0)