diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2018-04-11 11:19:58 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-27 14:36:56 -0700 |
commit | 2bf1a34ed9bed661399740582ee6b8738599182b (patch) | |
tree | 521ad627ff51a0d361115b334e47d73bc619b15e /debug_info_test/debug_info_test.py | |
parent | feb442e92538196083a7bb9b19265c7dd65b84cd (diff) | |
download | toolchain-utils-2bf1a34ed9bed661399740582ee6b8738599182b.tar.gz |
debug_info_test: add a test to check DW_AT_producer
This patch introduces two tests, one to check whether debug info section
exists in the elf file, the other to check whether DW_AT_producer exists
in each compile unit of debug info.
BUG=chromium:813271
TEST=debug_info_test /build/kip/usr/lib/debug
Change-Id: I3c207abe05c55182ddcc1910073c15a40b0844bf
Reviewed-on: https://chromium-review.googlesource.com/1007968
Commit-Ready: Zhizhou Yang <zhizhouy@chromium.org>
Tested-by: Zhizhou Yang <zhizhouy@chromium.org>
Reviewed-by: Ting-Yuan Huang <laszio@chromium.org>
Diffstat (limited to 'debug_info_test/debug_info_test.py')
-rwxr-xr-x | debug_info_test/debug_info_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debug_info_test/debug_info_test.py b/debug_info_test/debug_info_test.py index cf3148db..99b8e010 100755 --- a/debug_info_test/debug_info_test.py +++ b/debug_info_test/debug_info_test.py @@ -9,8 +9,10 @@ import subprocess import sys import check_cus +import check_exist -elf_checks = [check_cus.check_compile_units] +elf_checks = [check_exist.check_exist_all, + check_cus.check_compile_units] def scanelf(root): """find ELFs in root |