mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[291754] gdbserver is always started on the localhost.
This commit is contained in:
parent
94e929ae01
commit
8eafa2bdd7
1 changed files with 5 additions and 2 deletions
|
@ -122,15 +122,18 @@ public class BaseTestCase {
|
|||
public static void baseAfterClassMehod() throws Exception {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method start gdbserver on the localhost.
|
||||
* If the user specified a different host, things won't work.
|
||||
*/
|
||||
private static void launchGdbServer() {
|
||||
if (attrs.get(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE)
|
||||
.equals(IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE)) {
|
||||
if (attrs.get(IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP).equals(Boolean.TRUE)) {
|
||||
String server = (String)attrs.get(ATTR_DEBUG_SERVER_NAME);
|
||||
String host = (String)attrs.get(IGDBLaunchConfigurationConstants.ATTR_HOST);
|
||||
String port = (String)attrs.get(IGDBLaunchConfigurationConstants.ATTR_PORT);
|
||||
String program = (String)attrs.get(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME);
|
||||
String commandLine = server + " " + host + ":" + port + " " + program;
|
||||
String commandLine = server + " :" + port + " " + program;
|
||||
try {
|
||||
System.out.println("Staring gdbserver with command: " + commandLine);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue