summaryrefslogtreecommitdiff
path: root/lib/asan/scripts
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-07-19 12:01:07 +0000
committerAlexander Potapenko <glider@google.com>2012-07-19 12:01:07 +0000
commitc603ad2a1ce425d7f3f74102c9d9fd37b1aea847 (patch)
tree1bd4fea95ba97476225de83fc39d8d20093094e0 /lib/asan/scripts
parent75983dd851e39e5ba70edeeda19cfaedbd114cb3 (diff)
downloadcompiler-rt-c603ad2a1ce425d7f3f74102c9d9fd37b1aea847.tar.gz
compiler-rt-c603ad2a1ce425d7f3f74102c9d9fd37b1aea847.tar.bz2
compiler-rt-c603ad2a1ce425d7f3f74102c9d9fd37b1aea847.tar.xz
Suppress the stderr output from atos.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/scripts')
-rwxr-xr-xlib/asan/scripts/asan_symbolize.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/asan/scripts/asan_symbolize.py b/lib/asan/scripts/asan_symbolize.py
index 357593d5..14ec5bf5 100755
--- a/lib/asan/scripts/asan_symbolize.py
+++ b/lib/asan/scripts/asan_symbolize.py
@@ -105,8 +105,11 @@ def symbolize_atos(line):
load_addr = "0x0"
if DEBUG:
print "atos -o %s -arch %s -l %s" % (binary, arch, load_addr)
- pipes[binary] = subprocess.Popen(["atos", "-o", binary, "-arch", arch, "-l", load_addr],
- stdin=subprocess.PIPE, stdout=subprocess.PIPE,)
+ cmd = ["atos", "-o", binary, "-arch", arch, "-l", load_addr]
+ pipes[binary] = subprocess.Popen(cmd,
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
p = pipes[binary]
if filetype == "DYLIB":
print >>p.stdin, "%s" % offset