import org.eclipse.ui.dialogs.TwoPaneElementSelector;
import org.tizen.common.connection.ConnectionPlugin;
+import org.tizen.common.connection.debugtools.DebugTool;
import org.tizen.common.util.LocalPortChecker;
import org.tizen.nativecommon.build.CommonConfigurationManager;
public class TizenDebianLaunchDelegate extends AbstractCLaunchDelegate {
protected static final String PACKAGE_EXTENSION = ".deb";
protected static final String CMD_RESULT_CHECK = "; echo $?;";
- protected static final String GDBSERVER_COMMAND = "gdbserver";
+ protected static final String GDBSERVER_DIR = "gdbserver";
+ protected static final String GDBSERVER_BIN = "gdbserver";
protected IConfiguration selectedConfig;
protected IDevice currentDevice;
protected String executeResult = "";
monitor.beginTask(TizenLaunchMessages.LAUNCH_APPLICATION_WITH_GDBSERVER, 1);
monitor.subTask(TizenLaunchMessages.LAUNCH_APPLICATION_WITH_GDBSERVER);
String gdbserverPort = config.getAttribute(TizenLaunchConfigurationConstants.ATTR_GDBSERVER_PORT, TizenLaunchConfigurationConstants.ATTR_GDBSERVER_PORT_DEFAULT);
- String gdbserverCmd = GDBSERVER_COMMAND + " :" + gdbserverPort;
+ String gdbserverCmd = DebugTool.TOOLS_TARGET_PATH + "/" + GDBSERVER_DIR + "/" + GDBSERVER_BIN + " :" + gdbserverPort;
String execArg = setArguments(config);
String envCmd = setEnvironments(config);
String command = envCmd + gdbserverCmd + " " + execArg;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.TwoPaneElementSelector;
+import org.tizen.common.connection.debugtools.DebugTool;
import org.tizen.nativecommon.launch.TizenDeviceProcessList;
import org.tizen.nativecommon.launch.TizenLaunchConfigurationConstants;
import org.tizen.nativecommon.launch.TizenLaunchMessages;
String gdbserverPort = config.getAttribute(TizenLaunchConfigurationConstants.ATTR_GDBSERVER_PORT, TizenLaunchConfigurationConstants.ATTR_GDBSERVER_PORT_DEFAULT);
String commandArguments = ":" + gdbserverPort + ATTACH_OPTION + pid;
- String gdbserverCmd = GDBSERVER_COMMAND + " " + commandArguments;
+ String gdbserverCmd = DebugTool.TOOLS_TARGET_PATH + "/" + GDBSERVER_DIR + "/" + GDBSERVER_BIN + " " + commandArguments;
String envCmd = setEnvironments(config);
String command = envCmd + gdbserverCmd;
currentDevice.executeShellCommand(command);