summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 14:26:19 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 14:26:19 +0000
commitccc6c392f6b7e0cae9166041fb48cc2d43c1e83e (patch)
tree758a8776d1a6165eb37e93f938e750a6fdc8a5b4 /tools
parentab2983f291cfbb4858a6b8a7484d17b4816066f2 (diff)
downloadchromium_src-ccc6c392f6b7e0cae9166041fb48cc2d43c1e83e.zip
chromium_src-ccc6c392f6b7e0cae9166041fb48cc2d43c1e83e.tar.gz
chromium_src-ccc6c392f6b7e0cae9166041fb48cc2d43c1e83e.tar.bz2
Don't skip the <not in a module> frames while printing the Dr. Memory reports
TBR=bruening Review URL: http://codereview.chromium.org/7474017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-xtools/valgrind/drmemory_analyze.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/valgrind/drmemory_analyze.py b/tools/valgrind/drmemory_analyze.py
index 4742b3c..c2b257c 100755
--- a/tools/valgrind/drmemory_analyze.py
+++ b/tools/valgrind/drmemory_analyze.py
@@ -78,12 +78,11 @@ class DrMemoryAnalyze:
match_binary_fname = re.search("0x[0-9a-fA-F]+ <(.*)> .*!([^+]*)"
"(?:\+0x[0-9a-fA-F]+)?\n", tmp_line)
- self.ReadLine()
- match_src_line = re.search("\s*(.*):([0-9]+)(?:\+0x[0-9a-fA-F]+)?",
- self.line_)
- if match_src_line:
+ if match_binary_fname:
self.ReadLine()
- if match_binary_fname:
+ match_src_line = re.search("\s*(.*):([0-9]+)(?:\+0x[0-9a-fA-F]+)?",
+ self.line_)
+ if match_src_line:
binary, fname = match_binary_fname.groups()
if re.search(CUT_STACK_BELOW, fname):
break
@@ -102,6 +101,13 @@ class DrMemoryAnalyze:
report_line += ":%i" % int(lineno)
result.append(report_line + "\n")
cnt = cnt + 1
+ else:
+ match_other = re.search("0x[0-9a-fA-F]+ (<.*>)(.*)\n", tmp_line)
+ if match_other:
+ module, other = match_other.groups()
+ result.append(" #%2i %-50s %s\n" % (cnt, module, other))
+ cnt = cnt + 1
+ self.ReadLine()
return result
def ParseReportFile(self, filename):