Ling's changes for better testing.
diff --git a/org.eclipse.cdt.debug.edc.linux.x86/src/org/eclipse/cdt/debug/edc/linux/x86/GdbserverAgentDescriptor.java b/org.eclipse.cdt.debug.edc.linux.x86/src/org/eclipse/cdt/debug/edc/linux/x86/GdbserverAgentDescriptor.java
index a694002..615fb8c 100644
--- a/org.eclipse.cdt.debug.edc.linux.x86/src/org/eclipse/cdt/debug/edc/linux/x86/GdbserverAgentDescriptor.java
+++ b/org.eclipse.cdt.debug.edc.linux.x86/src/org/eclipse/cdt/debug/edc/linux/x86/GdbserverAgentDescriptor.java
@@ -33,6 +33,7 @@
public class GdbserverAgentDescriptor implements ITCFAgentLauncher {
private static final String NAME = "Gdbserver TCF Agent";
+ private static final String FILENAME = "GdbserverAgent.jar";
private Process agentProcess;
@@ -66,7 +67,7 @@
try {
URL url = FileLocator.find(LinuxDebugger.getDefault().getBundle(),
- new Path("$os$/GdbserverAgent.jar"), null); //$NON-NLS-1$
+ new Path("$os$/"+FILENAME), null); //$NON-NLS-1$
if (url != null) {
url = FileLocator.resolve(url);
path = new Path(url.getPath());
@@ -76,10 +77,10 @@
}
if (path == null)
- return;
-
+ throw new Exception(FILENAME + " file does not exist for this os and architecture");
+
if (!path.toFile().exists())
- throw new Exception("GdbserverAgent.jar file does not exist at " + path.toOSString());
+ throw new Exception(FILENAME + " file does not exist at " + path.toOSString());
final CommandLauncher launcher = new CommandLauncher();
String[] cmdarray = new String[] { "-jar", path.toOSString() };