diff options
-rw-r--r-- | plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java index 2ac48f8..cd27a61 100644 --- a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java +++ b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java @@ -259,12 +259,14 @@ public class YoctoSDKUtils { String sPath = getEnvValue(project, "PATH"); String sDebugName = getEnvValue(project, "GDB"); String sysroot_str = elem.getStrSysrootLoc(); + String target_prefix_str = getEnvValue(project,"TARGET_PREFIX"); + String target_str = target_prefix_str.substring(0, target_prefix_str.length() - 1); if (configType == null || debug_configType == null) { throw new YoctoGeneralException("Failed to get program or remote debug launcher!"); } - createRemoteDebugLauncher(project, lManager, debug_configType, elem.getStrTarget(), sPath, sDebugName, sysroot_str); - + + createRemoteDebugLauncher(project, lManager, debug_configType, target_str, sPath, sDebugName, sysroot_str); ArrayList<String> listValue = new ArrayList<String>(); listValue.add(new String("org.eclipse.ui.externaltools.launchGroup")); |