[Title] platform project source view fixed
authorjooyoul_lee <jy.exe.lee@samsung.com>
Mon, 11 Nov 2013 01:09:22 +0000 (10:09 +0900)
committerjooyoul_lee <jy.exe.lee@samsung.com>
Mon, 11 Nov 2013 01:09:22 +0000 (10:09 +0900)
[Desc.]
[Issue]

13 files changed:
org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/debuginfo.sh
org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/debuginfo.sh~ [new file with mode: 0755]
org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/find.sh [deleted file]
org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/rpm_extractor.sh [deleted file]
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/OpenTraceHandler.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/channel/control/BinaryInfo.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/communicator/Communicator30.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/platform/BinarySettingManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedChecker.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/profiling/ProfileDataMaker.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/opentrace/OpenTraceInputReader.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/utils/AnalyzerUtil.java

index 3f87661..48c7b28 100755 (executable)
@@ -12,8 +12,6 @@ print_usage()
 
 find_file()
 {
-       echo $1
-       echo $2
        cd $1
        find . -name $2
 }
diff --git a/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/debuginfo.sh~ b/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/debuginfo.sh~
new file mode 100755 (executable)
index 0000000..3f87661
--- /dev/null
@@ -0,0 +1,59 @@
+#!/bin/bash
+FIND=/usr/bin/find
+RPM_COMMAND=/usr/bin/rpm2cpio
+
+print_usage()
+{
+       echo "Usage: debuginfo [options] [arguments]"
+       echo "Options:"
+       echo "-r                        extract rpm package"
+       echo "-f                        find files"
+}
+
+find_file()
+{
+       echo $1
+       echo $2
+       cd $1
+       find . -name $2
+}
+
+extract()
+{
+       echo $1
+       echo $2
+       echo $3
+       cd $1
+       rpm2cpio $2 | cpio -imd
+       rpm2cpio $3 | cpio -imd
+}
+
+if [[ -n $1 ]]; then
+       case "$1" in
+               -f)
+                       if [[ "$#" -ne 3 ]]; then
+                               echo "find needs two arguments!"
+                               exit 1
+                       fi
+                       shift
+                       find_file $@
+                       ;;
+               -r)
+                       if [[ "$#" -ne 4 ]]; then
+                               echo "extract needs three arguments!"
+                               exit 1
+                       fi
+                       shift
+                       extract $@
+                       ;;
+               *)
+                       echo "unknown option!"
+                       print_usage
+                       ;;
+       esac
+else
+       print_usage
+fi
+
+
+
diff --git a/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/find.sh b/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/find.sh
deleted file mode 100644 (file)
index 0d384b0..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-cd $1
-find . -name $2
diff --git a/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/rpm_extractor.sh b/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/tool/rpm_extractor.sh
deleted file mode 100644 (file)
index abe7c61..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-echo $1
-echo $2
-echo $3
-
-cd $1
-rpm2cpio $2 | cpio -imd
-rpm2cpio $3 | cpio -imd
-
-
index e5b0474..5cf5444 100644 (file)
@@ -116,7 +116,10 @@ public class OpenTraceHandler extends AbstractHandler {
                int percent = OpenTraceProgressManager.getInstance().getPercent();\r
                if (loadInfos() && loadCallStackData() && loadCallStackApis()\r
                                && loadProfilingData() && loadProfilingChildData()\r
-                               && loadLeakData() && loadFailedData() && loadImageSet()) {\r
+                               && \r
+//                             loadLeakData() && \r
+//                             loadFailedData() && \r
+                               loadImageSet()) {\r
 \r
                        OpenTraceProgressManager.getInstance().setProgressPercent(\r
                                        AnalyzerLabels.OPEN_TRACE_PROGRESS_LOADING, percent += 60);\r
index 4b0afa6..9d35b8f 100644 (file)
@@ -54,6 +54,7 @@ import org.tizen.dynamicanalyzer.resources.ColorResources;
 import org.tizen.dynamicanalyzer.resources.FontResources;\r
 import org.tizen.dynamicanalyzer.resources.ImageResources;\r
 import org.tizen.dynamicanalyzer.swap.channel.control.BinaryInfo;\r
+import org.tizen.dynamicanalyzer.swap.channel.data.LibraryObject;\r
 import org.tizen.dynamicanalyzer.swap.channel.data.ProcessInfo;\r
 import org.tizen.dynamicanalyzer.swap.channel.data.ProcessInfoPackage;\r
 import org.tizen.dynamicanalyzer.swap.model.data.LogData;\r
@@ -200,6 +201,21 @@ public class TableTooltipListener implements Listener {
                tooltipShow(event.x, event.y);\r
        }\r
 \r
+       private String getSourcePath(GridItem item, SourceLine sourceLine) {\r
+               String filePath = null;\r
+               String libName = getLibPath(item);\r
+\r
+               if (!isLibrary(libName)) {\r
+                       filePath = sourceLine.getFilePath();\r
+               } else {\r
+                       BinarySettingData binData = BinarySettingManager.getInstance()\r
+                                       .getRealBinarySetting(libName);\r
+                       filePath = binData.getSourcePath() + sourceLine.getFilePath();\r
+               }\r
+\r
+               return filePath;\r
+       }\r
+\r
        private void createTooltip(Event event) {\r
                GridItem item = grid.getItem(new Point(event.x, event.y));\r
                if (null != item) {\r
@@ -232,24 +248,7 @@ public class TableTooltipListener implements Listener {
                        title.setBackground(ColorResources.TOOLTIP);\r
 \r
                        // Sets tooltip title text.\r
-                       String filePath = null;\r
-                       String libName = getLibPath(item);\r
-                       if (libName == null) {\r
-                               filePath = sl.getFilePath();\r
-                       } else {\r
-                               List<BinarySettingData> binarySettings = BinarySettingManager\r
-                                               .getInstance().getBinarySettings();\r
-                               for (int i = 0; i < binarySettings.size(); i++) {\r
-                                       if (binarySettings.get(i).isEqual(libName)) {\r
-                                               filePath = binarySettings.get(i).getSourcePath();\r
-                                               break;\r
-                                       }\r
-                               }\r
-                       }\r
-                       if (filePath == null) {\r
-                               filePath = sl.getFilePath();\r
-                       }\r
-\r
+                       String filePath = getSourcePath(item, sl);\r
                        int line = sl.getLineNumber();\r
                        title.setText(filePath + CommonConstants.SPACE\r
                                        + CommonConstants.SPACE + CommonConstants.NEW_LINE);\r
@@ -361,6 +360,7 @@ public class TableTooltipListener implements Listener {
                boolean isPieBuild = true;\r
                int pid = -1;\r
                long time = 0;\r
+               String libName = null;\r
 \r
                switch (tableData.getType()) {\r
                case AnalyzerConstants.TYPE_TABLE_CALLSTACK:\r
@@ -407,6 +407,8 @@ public class TableTooltipListener implements Listener {
                        time = data.getTime();\r
                }\r
 \r
+               libName = getLibPath(item);\r
+\r
                ProcessInfoPackage processInfoPkg = AnalyzerManager.getProject()\r
                                .getProcessInfo(pid);\r
                ProcessInfo processInfo = processInfoPkg.getProcessInfo(time);\r
@@ -418,20 +420,35 @@ public class TableTooltipListener implements Listener {
                }\r
                isPieBuild = (binInfo.getType() == 1) ? true : false;\r
 \r
-               String baseAddr = Long.toString(AnalyzerManager.getProject()\r
-                               .getBaseAddress(pid, time));\r
+               // String baseAddr = Long.toString(AnalyzerManager.getProject()\r
+               // .getBaseAddress(pid, time));\r
+               String baseAddr = null;\r
                String path = null;\r
+               // if (libName.equals(processInfo.getMainTargetBinaryPath())) {\r
+               if (!isLibrary(libName)) {\r
+                       baseAddr = Long.toString(processInfo.getLowestAddress());\r
+               } else {\r
+                       LibraryObject libObj = processInfo.getLibObjHash().get(libName);\r
+                       if (null != libObj) {\r
+                               baseAddr = Long.toString(libObj.getLowestAddress());\r
+                       } else {\r
+                               SourceLine sl = new SourceLine();\r
+                               sl.setError(AnalyzerConstants.SOURCELINE_NO_SOURCELINE_DATA);\r
+                               return sl;\r
+                       }\r
+               }\r
+\r
                BinarySettingData binData = BinarySettingManager.getInstance()\r
-                               .getBinarySetting(binInfo.getTargetBinaryPath());\r
+                               .getRealBinarySetting(binInfo.getTargetBinaryPath());\r
                if (null != binData) {\r
                        String debugPath = binData.getDebugFilePath();\r
                        if (null != debugPath && !debugPath.isEmpty()) {\r
                                path = debugPath;\r
                        } else {\r
-                               path = binInfo.getSourceBinaryPath();\r
+                               path = binInfo.getTempBinaryPath();\r
                        }\r
                } else {\r
-                       path = binInfo.getSourceBinaryPath();\r
+                       path = binInfo.getTempBinaryPath();\r
                }\r
                SourceLine sl = SymbolManager.addr2line(path, addr, isPieBuild,\r
                                baseAddr);\r
@@ -439,9 +456,7 @@ public class TableTooltipListener implements Listener {
        }\r
 \r
        private void openIDE(Event event) {\r
-\r
                SourceLine sl = null;\r
-\r
                GridItem item = grid.getItem(new Point(event.x, event.y));\r
                if (null == item) {\r
                        return;\r
@@ -454,8 +469,9 @@ public class TableTooltipListener implements Listener {
                        return;\r
                }\r
 \r
-               IDECommunicator.sendCodeInfoToIDE(sl.getFilePath(),\r
-                               Integer.toString(sl.getLineNumber()));\r
+               String filePath = getSourcePath(item, sl);\r
+               int lineNum = sl.getLineNumber();\r
+               IDECommunicator.sendCodeInfoToIDE(filePath, Integer.toString(lineNum));\r
        }\r
 \r
        private String getLibPath(GridItem item) {\r
@@ -491,4 +507,11 @@ public class TableTooltipListener implements Listener {
                }\r
                return libName;\r
        }\r
+\r
+       private boolean isLibrary(String binaryPath) {\r
+               if (binaryPath.contains(".so")) {\r
+                       return true;\r
+               }\r
+               return false;\r
+       }\r
 }\r
index a71279c..8c815d9 100755 (executable)
@@ -51,11 +51,11 @@ public class BinaryInfo implements SWAPModel {
                this.localBinaryPath = path;
        }
 
-       public String getSourceBinaryPath() {
+       public String getTempBinaryPath() {
                return this.tempBinaryPath;
        }
 
-       public void setSourceBinaryPath(String tempPath) {
+       public void setTempBinaryPath(String tempPath) {
                this.tempBinaryPath = tempPath;
        }
 
index 95841a7..da0934d 100755 (executable)
@@ -242,7 +242,7 @@ public class Communicator30 extends BaseCommunicator {
                BinaryInfo mainInfo = DACommunicator.getSelectedApp()
                                .getMainBinaryInfo();
                List<AddrSymbolPair> symbols = selectedApp.getSymbols(mainInfo
-                               .getSourceBinaryPath());
+                               .getTempBinaryPath());
                List<FunctionInst> functionInstList = appInst.getFunctionInstList();
 
                int size = (symbols == null) ? 0 : symbols.size();
@@ -316,26 +316,26 @@ public class Communicator30 extends BaseCommunicator {
                                        .split(CommonConstants.SLASH);
                        binInfo.setLocalBinaryPath(localBinaryPath);
                        // init source binary path
-                       binInfo.setSourceBinaryPath(localBinaryPath);
+                       binInfo.setTempBinaryPath(localBinaryPath);
                        if (null == splitLocalBinaryPath[0]
                                        || splitLocalBinaryPath[0].isEmpty()) {
                                localBinaryPath = AnalyzerPaths.TEMP_FOLDER_PATH
                                                + File.separator + getFileName(targetPath);
                                result = pullTheFile(targetPath, localBinaryPath);
                                if (result.isSuccess()) {
-                                       binInfo.setSourceBinaryPath(localBinaryPath);
+                                       binInfo.setTempBinaryPath(localBinaryPath);
                                }
                                index += ByteUtils.getStringLength(payload, index);
                                String md5sum = ByteUtils.getString(payload, index);
                                binInfo.setType(binaryType);
-                               binInfo.setSourceBinaryPath(localBinaryPath);
+                               binInfo.setTempBinaryPath(localBinaryPath);
                                binInfo.setMd5sumValue(md5sum);
                                return result;
                        } else {
                                index += ByteUtils.getStringLength(payload, index);
                                String md5sum = ByteUtils.getString(payload, index);
                                binInfo.setType(binaryType);
-                               binInfo.setSourceBinaryPath(localBinaryPath);
+                               binInfo.setTempBinaryPath(localBinaryPath);
                                binInfo.setMd5sumValue(md5sum);
                        }
 
@@ -347,7 +347,7 @@ public class Communicator30 extends BaseCommunicator {
                                                + File.separator + getFileName(targetPath);
                                result = pullTheFile(targetPath, localBinaryPath);
                                if (result.isSuccess()) {
-                                       binInfo.setSourceBinaryPath(localBinaryPath);
+                                       binInfo.setTempBinaryPath(localBinaryPath);
                                }
                                return result;
                        }
@@ -383,7 +383,7 @@ public class Communicator30 extends BaseCommunicator {
                                                + File.separator + getFileName(targetPath);
                                result = pullTheFile(targetPath, localBinaryPath);
                                if (result.isSuccess()) {
-                                       binInfo.setSourceBinaryPath(localBinaryPath);
+                                       binInfo.setTempBinaryPath(localBinaryPath);
                                }
                                return result;
                        }
@@ -820,7 +820,7 @@ public class Communicator30 extends BaseCommunicator {
                        if (null == binInfo) {
                                continue;
                        }
-                       String localPath = binInfo.getSourceBinaryPath();
+                       String localPath = binInfo.getTempBinaryPath();
 
                        ElfSymbolExtracter symbolExtractor = new ElfSymbolExtracter();
                        if (!symbolExtractor.makeSymbol(localPath)) {
@@ -935,7 +935,7 @@ public class Communicator30 extends BaseCommunicator {
                        index += INT_SIZE;
                        localBinaryPath = ByteUtils.getString(payload, index).trim();
                        binInfo.setLocalBinaryPath(localBinaryPath);
-                       binInfo.setSourceBinaryPath(localBinaryPath);
+                       binInfo.setTempBinaryPath(localBinaryPath);
                        String[] splitLocalBinaryPath = localBinaryPath
                                        .split(CommonConstants.SLASH);
                        if (splitLocalBinaryPath.length <= 0
@@ -948,7 +948,7 @@ public class Communicator30 extends BaseCommunicator {
                                        index += ByteUtils.getStringLength(payload, index);
                                        String md5sum = ByteUtils.getString(payload, index);
                                        binInfo.setType(binaryType);
-                                       binInfo.setSourceBinaryPath(localBinaryPath);
+                                       binInfo.setTempBinaryPath(localBinaryPath);
                                        binInfo.setMd5sumValue(md5sum);
                                        index += ByteUtils.getStringLength(payload, index);
                                }
@@ -957,7 +957,7 @@ public class Communicator30 extends BaseCommunicator {
                                index += ByteUtils.getStringLength(payload, index);
                                String md5sum = ByteUtils.getString(payload, index);
                                binInfo.setType(binaryType);
-                               binInfo.setSourceBinaryPath(localBinaryPath);
+                               binInfo.setTempBinaryPath(localBinaryPath);
                                binInfo.setMd5sumValue(md5sum);
                                index += ByteUtils.getStringLength(payload, index);
                        }
@@ -970,7 +970,7 @@ public class Communicator30 extends BaseCommunicator {
                                                + File.separator + getFileName(binPaths.get(i));
                                result = pullTheFile(binPaths.get(i), localBinaryPath);
                                if (result.isSuccess()) {
-                                       binInfo.setSourceBinaryPath(localBinaryPath);
+                                       binInfo.setTempBinaryPath(localBinaryPath);
                                }
                                continue;
                        }
@@ -1007,11 +1007,11 @@ public class Communicator30 extends BaseCommunicator {
                                                + File.separator + getFileName(binPaths.get(i));
                                result = pullTheFile(binPaths.get(i), localBinaryPath);
                                if (result.isSuccess()) {
-                                       binInfo.setSourceBinaryPath(localBinaryPath);
+                                       binInfo.setTempBinaryPath(localBinaryPath);
                                }
                                continue;
                        } else {
-                               binInfo.setSourceBinaryPath(localBinaryPath);
+                               binInfo.setTempBinaryPath(localBinaryPath);
                        }
                }
                BinarySettingManager.getInstance().addBinaryInfos(binInfoList);
index 3d84fc4..6dab6a9 100644 (file)
@@ -45,7 +45,6 @@ import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
 public class BinarySettingManager {
 
        private static BinarySettingManager instance = null;
-       private List<BinarySettingData> binarySettings = new ArrayList<BinarySettingData>();
        private HashMap<String, BinaryInfo> targetBinInfoMap = new HashMap<String, BinaryInfo>();
        private HashMap<String, BinaryInfo> localBinInfoMap = new HashMap<String, BinaryInfo>();
 
@@ -73,14 +72,6 @@ public class BinarySettingManager {
                }
        }
 
-       public List<BinarySettingData> getBinarySettings() {
-               return binarySettings;
-       }
-
-       public void clearData() {
-               binarySettings.clear();
-       }
-
        public void putRealBinarySettingData(List<BinarySettingData> data) {
                for (BinarySettingData binData : data) {
                        for (int i = 0; i < realBinarySettings.size(); i++) {
@@ -171,11 +162,11 @@ public class BinarySettingManager {
                                        }
                                }
 
-                               // extract rpm file
+                               // extract rpm file exists
                                if (null != debugRpmPath) {
                                        String toolPath = AnalyzerPaths.TOOL_FOLDER_PATH
-                                                       + File.separator + "rpm_extractor.sh";
-                                       String[] command = new String[] { toolPath, rpmPath,
+                                                       + File.separator + "debuginfo.sh";
+                                       String[] command = new String[] { toolPath, "-r", rpmPath,
                                                        debugRpmPath, debugRpmSourcePath };
                                        try {
                                                Runtime rt = Runtime.getRuntime();
@@ -198,7 +189,7 @@ public class BinarySettingManager {
                                                                        new InputStreamReader(
                                                                                        process.getErrorStream()));
                                                        String errorStr = error.readLine();
-                                                       System.out.println("host md5sum get failed : "
+                                                       System.out.println("debug info file extract failed... : "
                                                                        + errorStr);
                                                        continue;
                                                }
@@ -217,8 +208,8 @@ public class BinarySettingManager {
                                String libVersion = libPostFix
                                                .substring(4, libPostFix.length());
                                String debugCmd = AnalyzerPaths.TOOL_FOLDER_PATH
-                                               + File.separator + "find.sh " + rpmPath + " " + "*"
-                                               + libPostFix + ".debug";
+                                               + File.separator + "debuginfo.sh -f " + rpmPath + " "
+                                               + "*" + libPostFix + ".debug";
                                String debugFilePath = null;
                                try {
                                        Runtime rt = Runtime.getRuntime();
@@ -231,7 +222,7 @@ public class BinarySettingManager {
                                                BufferedReader error = new BufferedReader(
                                                                new InputStreamReader(process.getErrorStream()));
                                                String errorStr = error.readLine();
-                                               System.out.println("host md5sum get failed : "
+                                               System.out.println("debug source file extract failed... : "
                                                                + errorStr);
                                                continue;
                                        }
@@ -249,8 +240,8 @@ public class BinarySettingManager {
                                // check real source file path
                                String sourceFilePath = null;
                                String sourceCmd = AnalyzerPaths.TOOL_FOLDER_PATH
-                                               + File.separator + "find.sh " + rpmPath + " " + "*"
-                                               + libVersion;
+                                               + File.separator + "debuginfo.sh -f " + rpmPath + " "
+                                               + "*" + libVersion;
                                try {
                                        Runtime rt = Runtime.getRuntime();
                                        Process process = rt.exec(sourceCmd);
@@ -266,7 +257,7 @@ public class BinarySettingManager {
                                                                + errorStr);
                                                continue;
                                        }
-                                       sourceFilePath = rpmPath + line.substring(1, line.length());
+                                       sourceFilePath = rpmPath;
                                        System.out.println("SOURCE PATH : " + sourceFilePath);
                                } catch (IOException e) {
                                        e.printStackTrace();
@@ -369,8 +360,8 @@ public class BinarySettingManager {
                return localBinInfoMap;
        }
 
-       public BinarySettingData getBinarySetting(String targetBinaryPath) {
-               List<BinarySettingData> binaries = getBinarySettings();
+       public BinarySettingData getRealBinarySetting(String targetBinaryPath) {
+               List<BinarySettingData> binaries = getRealBinarySettings();
                int size = binaries.size();
 
                BinarySettingData binData = null;
@@ -395,8 +386,4 @@ public class BinarySettingManager {
                return removeBinarySettings;
        }
 
-       public void syncData() {
-               realBinarySettings.clear();
-               realBinarySettings.addAll(binarySettings);
-       }
 }
index 19c166a..66fd347 100644 (file)
@@ -29,7 +29,6 @@ package org.tizen.dynamicanalyzer.ui.summary.failed;
 import java.util.ArrayList;
 import java.util.List;
 
-import org.tizen.dynamicanalyzer.swap.callstack.BaseCallstackManager;
 import org.tizen.dynamicanalyzer.swap.model.data.LogData;
 import org.tizen.dynamicanalyzer.swap.model.data.ProbeCommonData;
 import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
index 51c1f5c..7fbbbe6 100644 (file)
@@ -274,7 +274,7 @@ public class ProfileDataMaker {
                        String pcStr = Long.toString(pcAddr);
                        BinaryInfo binInfo = DACommunicator.getSelectedApp()
                                        .getMainBinaryInfo();
-                       String localPath = binInfo.getSourceBinaryPath();
+                       String localPath = binInfo.getTempBinaryPath();
                        boolean isPieBuild = true;
                        if (binInfo.getType() != 1) {
                                isPieBuild = false;
@@ -346,7 +346,7 @@ public class ProfileDataMaker {
                                String path = libraryObject.getLibPath();
                                BinaryInfo binInfo = binInfoMap.get(path);
                                if (null != binInfo) {
-                                       String localPath = binInfo.getSourceBinaryPath();                                       
+                                       String localPath = binInfo.getTempBinaryPath();                                 
                                        String baseAddr = Long.toString(libraryObject
                                                        .getLowestAddress());
                                        String pcStr = Long.toString(pcAddr);
index f202dc5..46ea246 100644 (file)
@@ -135,6 +135,15 @@ public class OpenTraceInputReader implements Runnable {
                                        if (null != input && !input.isEmpty()) {
                                                logs.setLogs(input);
                                                logPackage.setLogs(id, logs);
+                                               for (LogData log : input) {
+                                                       if (id == DataChannelConstants.MSG_PROBE_FILE
+                                                                       || id == DataChannelConstants.MSG_PROBE_MEMORY) {
+                                                               AnalyzerManager.getLeakDetector()
+                                                                               .runLeakDectect(log);
+                                                       }
+
+                                                       AnalyzerManager.getFailedChecker().check(log);
+                                               }
                                        }
                                } // for
                                break;
index 40dcbc3..f06bb58 100755 (executable)
@@ -1072,7 +1072,7 @@ public class AnalyzerUtil {
                String localBinPath = AnalyzerUtil.getProcessLocalBinaryPath(pid, time);
                String key = getTargetPathKey(localBinPath);
                BinaryInfo binInfo = DACommunicator.getSelectedApp().getBinaryInfo(key);
-               String sourceBinPath = binInfo.getSourceBinaryPath();
+               String sourceBinPath = binInfo.getTempBinaryPath();
                return sourceBinPath;
        }
 
@@ -1171,7 +1171,7 @@ public class AnalyzerUtil {
                        String pcStr = Long.toString(pcAddr);
                        BinaryInfo binInfo = DACommunicator.getSelectedApp()
                                        .getMainBinaryInfo();
-                       String localPath = binInfo.getSourceBinaryPath();
+                       String localPath = binInfo.getTempBinaryPath();
                        input.setBuildType(binInfo.getType());
                        input.setBinaryPath(binInfo.getTargetBinaryPath());
                        boolean isPieBuild = true;
@@ -1220,7 +1220,7 @@ public class AnalyzerUtil {
                                String path = libraryObject.getLibPath();
                                BinaryInfo binInfo = binInfoMap.get(path);
                                if (null != binInfo) {
-                                       String localPath = binInfo.getSourceBinaryPath();
+                                       String localPath = binInfo.getTempBinaryPath();
                                        String baseAddr = Long.toString(libraryObject
                                                        .getLowestAddress());
                                        String pcStr = Long.toString(pcAddr);