summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/scripts
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-06-02 09:04:45 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-06-02 09:04:45 +0000
commit4c04a8aaf1b72bfa38241410b595e6554d71ac59 (patch)
treea1978b5eaf851184b3feeb4f7e68727bbdd9bc38 /lib/sanitizer_common/scripts
parent6e9d9fdc6c50c45e5e792643af444fe0f1311250 (diff)
[sancov] Remove debug leftovers and update usage text.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@210009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/scripts')
-rwxr-xr-xlib/sanitizer_common/scripts/sancov.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sanitizer_common/scripts/sancov.py b/lib/sanitizer_common/scripts/sancov.py
index dfb65b2db..0f4d28e20 100755
--- a/lib/sanitizer_common/scripts/sancov.py
+++ b/lib/sanitizer_common/scripts/sancov.py
@@ -15,7 +15,8 @@ def Usage():
print >> sys.stderr, "Usage: \n" + \
" " + prog_name + " merge file1 [file2 ...] > output\n" \
" " + prog_name + " print file1 [file2 ...]\n" \
- " " + prog_name + " unpack file1 [file2 ...]\n"
+ " " + prog_name + " unpack file1 [file2 ...]\n" \
+ " " + prog_name + " rawunpack file1 [file2 ...]\n"
exit(1)
def ReadOneFile(path):
@@ -91,7 +92,6 @@ def UnpackOneRawFile(path, map_path):
mem_map.sort(key=lambda m : m[0])
mem_map_keys = [m[0] for m in mem_map]
- print mem_map
with open(path, mode="rb") as f:
print >> sys.stderr, "%s: unpacking %s" % (prog_name, path)
@@ -109,8 +109,6 @@ def UnpackOneRawFile(path, map_path):
if pc == 0: continue
map_idx = bisect.bisect(mem_map_keys, pc) - 1
(start, end, base, module_path) = mem_map[map_idx]
- print pc
- print start, end, base, module_path
assert pc >= start
if pc >= end:
print >> sys.stderr, "warning: %s: pc %x outside of any known mapping" % (prog_name, pc)