aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcompiler-test.sh5
-rw-r--r--debug_info_test/check_cus.py2
-rw-r--r--debug_info_test/check_exist.py2
3 files changed, 3 insertions, 6 deletions
diff --git a/compiler-test.sh b/compiler-test.sh
index 8083e2d2..fe552a51 100755
--- a/compiler-test.sh
+++ b/compiler-test.sh
@@ -10,9 +10,6 @@
# each compiler. It writes out these statistics when it is done.
#
# For a locally-built ChromeOS image, the debug directory is usually:
-# ${chromeos_root}/chroot/build/${board}/usr/lib/debug (from outside
-# chroot)
-# or
# /build/${board}/usr/lib/debug (from inside chroot)
#
# For a buildbot-built image you can usually download the debug tree
@@ -44,7 +41,7 @@ fi
cd ${DEBUG_TREE}
for f in `find . -name "*.debug" -type f` ; do
- at_producer=`readelf --debug-dump=info $f | head -25 | grep AT_producer `;
+ at_producer=`llvm-dwarfdump $f | head -25 | grep AT_producer `;
if echo ${at_producer} | grep -q 'GNU C' ; then
((gcc_count++))
elif echo ${at_producer} | grep -q 'clang'; then
diff --git a/debug_info_test/check_cus.py b/debug_info_test/check_cus.py
index d3cd6365..41123259 100644
--- a/debug_info_test/check_cus.py
+++ b/debug_info_test/check_cus.py
@@ -49,7 +49,7 @@ def check_compile_units(dso_path):
comp_path = ''
readelf = subprocess.Popen(
- ['readelf', '--debug-dump=info', '--dwarf-depth=1', dso_path],
+ ['llvm-dwarfdump', '--recurse-depth=0', dso_path],
stdout=subprocess.PIPE,
stderr=open(os.devnull, 'w'),
encoding='utf-8')
diff --git a/debug_info_test/check_exist.py b/debug_info_test/check_exist.py
index f2cc7c6b..898dae45 100644
--- a/debug_info_test/check_exist.py
+++ b/debug_info_test/check_exist.py
@@ -85,7 +85,7 @@ def check_exist_all(dso_path):
"""
readelf = subprocess.Popen(
- ['readelf', '--debug-dump=info', '--dwarf-depth=1', dso_path],
+ ['llvm-dwarfdump', '--recurse-depth=0', dso_path],
stdout=subprocess.PIPE,
stderr=open(os.devnull, 'w'),
encoding='utf-8')