# HG changeset patch # User wpaul # Date 1278944567 18000 # Node ID da256abf7b0a0d6f4e0231626ff9a80fa0a2ca0c # Parent c72b1d908826ad528e7e5049da326baa27798f21# Parent ba5f9ad4d844a16ed0fff0706321ad5eedad2a73 erged diff -r ba5f9ad4d844 -r da256abf7b0a debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/ExecutablesTab.java --- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/ExecutablesTab.java Mon Jul 12 09:19:44 2010 -0500 +++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/ExecutablesTab.java Mon Jul 12 09:22:47 2010 -0500 @@ -418,7 +418,14 @@ IPath launchExeTargetPath = new Path(new File(launchExeName).getCanonicalPath()).removeLastSegments(2); for (Executable executable : ExecutablesManager.getExecutablesManager().getExecutables(true)) { IPath exePath = executable.getPath(); - if (launchExeTargetPath.isPrefixOf(exePath)) + // remove last two segments here also (ignore urel, udeb, lib on executables) + // this is so we can match down to the compiler but not beyond: + // y:\epoc32\release\armv5.\... (for a variant build in raptor) will match + // y:\epco32\release\armv5\... for a non-variant built executable + IPath exePathShort = exePath.removeLastSegments(2); + String sLaunchExeTargetPath = launchExeTargetPath.toOSString(); + String sExePath = exePathShort.toOSString(); + if (sExePath.startsWith(sLaunchExeTargetPath) || sLaunchExeTargetPath.startsWith(sExePath)) files.add(new ExeFileToDebug(exePath.toOSString(), true)); } } catch (Exception e) {