# HG changeset patch # User stechong # Date 1276534829 18000 # Node ID 5844e41d8bc733244ef6f1c2e7927e80d155b806 # Parent 48201eb479999d1af825832a4ecd7bd0d1b7d35b Fixed errors in com.nokia.cdt.debug.cw.symbian due to ISymbianSDK refactoring. diff -r 48201eb47999 -r 5844e41d8bc7 debuggercdi/com.nokia.cdt.debug.cw.symbian/src/com/nokia/cdt/debug/cw/symbian/SettingsData.java --- a/debuggercdi/com.nokia.cdt.debug.cw.symbian/src/com/nokia/cdt/debug/cw/symbian/SettingsData.java Mon Jun 14 11:07:11 2010 -0500 +++ b/debuggercdi/com.nokia.cdt.debug.cw.symbian/src/com/nokia/cdt/debug/cw/symbian/SettingsData.java Mon Jun 14 12:00:29 2010 -0500 @@ -262,16 +262,7 @@ configuration.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, mainExeHostPath == null ? "" : mainExeHostPath.toOSString()); if (isEmulatorRequired(buildConfig, mainExeHostPath, mainExeWorkspaceRelativeMMPPath)) { - ISymbianSDK sdk = buildConfig.getSDK(); - ISBSv1BuildInfo sbsv1BuildInfo = (ISBSv1BuildInfo)sdk.getBuildInfo(ISymbianBuilderID.SBSV1_BUILDER); - IPath releaseRoot; - if (sbsv1BuildInfo != null) { - releaseRoot = sbsv1BuildInfo.getReleaseRoot(sdk); - } else { - releaseRoot = new Path(sdk.getEPOCROOT()).append("epoc32/release"); - } - String winscwudeb = releaseRoot.toOSString() + File.separator + "WINSCW" + File.separator + buildConfig.getTargetString(); //$NON-NLS-1$ //$NON-NLS-2$ - + String winscwudeb = buildConfig.getSDK().getReleaseRoot().toOSString() + File.separator + "WINSCW" + File.separator + buildConfig.getTargetString(); //$NON-NLS-1$ //$NON-NLS-2$ String emulatorPath = winscwudeb + File.separator + "epoc.exe"; //$NON-NLS-1$ configuration.setAttribute(DebuggerCommonData.Host_App_Path, getCanonicalPath(emulatorPath)); } @@ -801,8 +792,8 @@ // Apparently this only works correctly with the S60 emulator. ISBSv1BuildInfo sbsv1BuildInfo = (ISBSv1BuildInfo)currSDK.getBuildInfo(ISymbianBuilderID.SBSV1_BUILDER); if (sbsv1BuildInfo != null) { - if (!sbsv1BuildInfo.isS60(currSDK) && - !sbsv1BuildInfo.getFamily(currSDK).equalsIgnoreCase(ISBSv1BuildInfo.TECHVIEW_FAMILY_ID)) + if (!sbsv1BuildInfo.isS60() && + !currSDK.getFamily().equalsIgnoreCase(ISBSv1BuildInfo.TECHVIEW_FAMILY_ID)) return true; }