From ffd95a10c126e65c35703258493aed0279a0cdff Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Sun, 23 May 2021 16:01:32 -0700 Subject: 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 Reviewed-by: Manoj Gupta Tested-by: Caroline Tice Auto-Submit: Caroline Tice Commit-Queue: Manoj Gupta --- debug_info_test/check_cus.py | 2 +- debug_info_test/check_exist.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'debug_info_test') 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') -- cgit v1.2.3