crashanalysercmd/Libraries/File Formats/Plugins/XmlFilePlugin/FileFormat/CXmlDataBlock.cs
changeset 3 045ade241ef5
parent 2 0c91f0baec58
--- a/crashanalysercmd/Libraries/File Formats/Plugins/XmlFilePlugin/FileFormat/CXmlDataBlock.cs	Wed Apr 21 09:51:02 2010 +0300
+++ b/crashanalysercmd/Libraries/File Formats/Plugins/XmlFilePlugin/FileFormat/CXmlDataBlock.cs	Fri Aug 27 12:21:46 2010 +0300
@@ -344,7 +344,16 @@
                     try //CCrashInfoHashBuilder.New throws an exception if there's not enough data for hash creation
                     {
                         MobileCrashHashBuilder builder = MobileCrashHashBuilder.New(config, primarySummary);
-                        iHash = builder.GetHash();
+                        
+                        if (builder != null)
+                            iHash = builder.GetHash();
+
+                        // Detailed hash
+                        config = MobileCrashHashBuilder.TConfiguration.EDetailed;
+                        builder = MobileCrashHashBuilder.New(config, primarySummary, MobileCrashHashBuilder.KDetailedNumberOfStackEntriesToCheckForSymbols);
+                        
+                        if (builder != null)
+                            iDetailedHash = builder.GetHash();
                     }
                     catch (Exception /* e */)
                     {
@@ -705,6 +714,11 @@
              return iHash;
          }
 
+        internal string DetailedHash()
+        {
+            return iDetailedHash;
+        }
+
         internal List<CXmlCallStack> CallStacks()
         {
              return iCallStacks;
@@ -787,6 +801,7 @@
         private uint? iReportParamValue3 = null;
         private string iReportComments = string.Empty;
         private string iHash = string.Empty;
+        private string iDetailedHash = string.Empty;
 
         private List<CXmlCallStack> iCallStacks = new List<CXmlCallStack>(); //Call stacks