aboutsummaryrefslogtreecommitdiff
path: root/debug_info_test
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2021-05-23 16:01:32 -0700
committerCommit Bot <commit-bot@chromium.org>2021-05-24 18:30:10 +0000
commitffd95a10c126e65c35703258493aed0279a0cdff (patch)
treeb6e7ed986e3f55a2d950b5c1254546692b0c2670 /debug_info_test
parent51a2a9a0b172bda42782377599240aab1867be42 (diff)
downloadtoolchain-utils-ffd95a10c126e65c35703258493aed0279a0cdff.tar.gz
toolchain-utils: Remove uses of "readelf --debug-dump=info"
Now that we have switched to DWARF v5, using 'readelf --debug-dump=info' no longer works. This CL replaces such uses with llvm-dwarfdump instead. BUG=b:186027147 TEST=Verified manually that the commands are equivalent. Change-Id: Ib9ced19aad729c6e24bf5b0714b53c761f55d868 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2914600 Reviewed-by: Jordan R Abrahams <ajordanr@google.com> Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org> Auto-Submit: Caroline Tice <cmtice@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'debug_info_test')
-rw-r--r--debug_info_test/check_cus.py2
-rw-r--r--debug_info_test/check_exist.py2
2 files changed, 2 insertions, 2 deletions
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')