diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/pom.xml b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/pom.xml
index 4579032c963..e8a8918a77f 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/pom.xml
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/pom.xml
@@ -24,6 +24,15 @@
-->
+
+
+ production
+
+ -Dcdt.tests.dsf.gdb.path=/opt/public/download-staging.priv/tools/cdt/gdb
+
+
+
+
@@ -32,7 +41,7 @@
${tycho-version}
true
- -Xms256m -Xmx512m -XX:MaxPermSize=256M
+ -Xms256m -Xmx512m -XX:MaxPermSize=256M ${gdbPathOption}
**/AutomatedSuite.*
diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java
index 8ba587e339c..c86d48d1e0e 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java
@@ -351,8 +351,15 @@ public class BaseTestCase {
public static void setGdbProgramNamesLaunchAttributes(String version) {
// See bugzilla 303811 for why we have to append ".exe" on Windows
boolean isWindows = Platform.getOS().equals(Platform.OS_WIN32);
- setGlobalLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUG_NAME, "gdb." + version + (isWindows ? ".exe" : ""));
- setGlobalLaunchAttribute(ATTR_DEBUG_SERVER_NAME, "gdbserver." + version + (isWindows ? ".exe" : ""));
+ String gdbPath = System.getProperty("cdt.tests.dsf.gdb.path");
+ String debugName = "gdb." + version + (isWindows ? ".exe" : "");
+ String debugServerName = "gdbserver." + version + (isWindows ? ".exe" : "");
+ if (gdbPath != null) {
+ debugName = gdbPath + "/" + debugName;
+ debugServerName = gdbPath + "/" + debugServerName;
+ }
+ setGlobalLaunchAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUG_NAME, debugName);
+ setGlobalLaunchAttribute(ATTR_DEBUG_SERVER_NAME, debugServerName);
}
protected void setGdbVersion() {