[Title] Added solib-search-path for "/usr/bin" and "/usr/lib" when
authordonghyuk.yang <donghyuk.yang@samsung.com>
Fri, 19 Apr 2013 13:07:54 +0000 (22:07 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Fri, 19 Apr 2013 13:13:23 +0000 (22:13 +0900)
attach debugging

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

index 24547f1..58d06d4 100644 (file)
@@ -123,16 +123,38 @@ public class TizenDebianLaunchDelegateForAttach extends TizenDebianLaunchDelegat
                        newCoreException(TizenLaunchMessages.CANNOT_LAUNCH_APPLICATION_WITH_GDBSERVER, null);
                }
         
-        IPath debugPath = new Path(rootstrapPath + File.separatorChar
+        IPath debugProjPath = new Path(rootstrapPath + File.separatorChar
                        + "usr" + File.separatorChar
                        + "lib" + File.separatorChar
                        + "debug" + File.separatorChar
                        + appPath);
 
-        if (canAddLibrarySearchPath(config, debugPath)) {
-            values.add(debugPath.toOSString());
+        if (canAddLibrarySearchPath(config, debugProjPath)) {
+            values.add(debugProjPath.toOSString());
         }
+        
+        IPath debugBinPath = new Path(rootstrapPath + File.separatorChar
+                       + "usr" + File.separatorChar
+                       + "lib" + File.separatorChar
+                       + "debug" + File.separatorChar
+                       + "usr" + File.separatorChar
+                       + "bin");
+        
+        if (canAddLibrarySearchPath(config, debugBinPath)) {
+            values.add(debugBinPath.toOSString());
+        }
+        
+        IPath debugLibPath = new Path(rootstrapPath + File.separatorChar
+                       + "usr" + File.separatorChar
+                       + "lib" + File.separatorChar
+                       + "debug" + File.separatorChar
+                       + "usr" + File.separatorChar
+                       + "lib");                       
 
+        if (canAddLibrarySearchPath(config, debugLibPath)) {
+            values.add(debugLibPath.toOSString());
+        }
+        
         // set shared library search path
         if (values.size() > 0) {
             wc.setAttribute(IMILaunchConfigurationConstants.ATTR_DEBUGGER_SOLIB_PATH, values);