[Title] Do not get default target when attach debugging, get target
authordonghyuk.yang <donghyuk.yang@samsung.com>
Tue, 25 Jun 2013 06:44:32 +0000 (15:44 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Tue, 25 Jun 2013 06:44:32 +0000 (15:44 +0900)
which configuration has

org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/PlatformLaunchDelegateForAttach.java

index def9890..48ef236 100644 (file)
@@ -120,16 +120,8 @@ public class PlatformLaunchDelegateForAttach extends PlatformLaunchDelegate {
             newCoreException(TizenLaunchMessages.CANNOT_LAUNCH_APPLICATION_WITH_GDBSERVER, null);
         }
         IConfiguration buildConfig = ProjectUtil.getDefaultConfiguration(proj);
-        String targetID = "";
-        String rootstrapPath = "";
-        try {
-            targetID = PlatformConfigurationManager.getDefaultBuildTargetName(buildConfig);
-            String path = SmartBuildInterface.getInstance().getRootstrapPath(targetID);
-            rootstrapPath = SmartBuildInterface.getInstance().getPlatformRootstrapPath(path);
-        } catch (SBIException e) {
-            newCoreException(TizenLaunchMessages.CANNOT_LAUNCH_APPLICATION_WITH_GDBSERVER, null);
-        }
-
+        String path = PlatformConfigurationManager.getRootstrapPath(buildConfig);
+        String rootstrapPath = SmartBuildInterface.getInstance().getPlatformRootstrapPath(path);
         IPath debugProjPath = new Path(rootstrapPath + File.separatorChar + "usr"
                 + File.separatorChar + "lib" + File.separatorChar + "debug" + File.separatorChar
                 + appPath);