/******************************************************************************* * This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * Synopsys, Inc. - ARC GNU Toolchain support *******************************************************************************/ package com.arc.embeddedcdt.dsf.gdb.server; import org.eclipse.cdt.dsf.service.DsfSession; import org.eclipse.debug.core.ILaunchConfiguration; import com.arc.embeddedcdt.dsf.GdbServerBackend; import com.arc.embeddedcdt.dsf.utils.ConfigurationReader; public class ExternallyStartedGdbServerBackend extends GdbServerBackend { public ExternallyStartedGdbServerBackend(DsfSession session, ILaunchConfiguration launchConfiguration) { super(session, launchConfiguration); } @Override public String getCommandLine() { return null; } @Override public String getProcessLabel() { return null; } // Process is already running, so we don't need to launch it from the plug-in @Override public boolean doLaunchProcess() { return false; } @Override protected String getHostAddress() { ConfigurationReader cfgReader = new ConfigurationReader(launchConfiguration); return cfgReader.getHostAddress(); } }