diff options
author | Petr Machata <pmachata@redhat.com> | 2010-10-12 13:37:53 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2010-10-12 13:37:53 +0200 |
commit | 75b2d5e6468c52ac542b9bc862fa22b2be13c568 (patch) | |
tree | 9565f48d9c73edb388b9295136ca0a251f5ea786 | |
parent | 11c4e5441e2fbebb41258818080f902e9dab3e96 (diff) | |
download | elfutils-75b2d5e6468c52ac542b9bc862fa22b2be13c568.tar.gz |
dwarflint: Add a test case for no aranges table associated with CU
- for CU that has a zero address range
-rw-r--r-- | dwarflint/tests/check_debug_info_refs-2.bz2 | bin | 0 -> 2686 bytes | |||
-rwxr-xr-x | dwarflint/tests/run-check_debug_info_refs.sh | 8 |
2 files changed, 7 insertions, 1 deletions
diff --git a/dwarflint/tests/check_debug_info_refs-2.bz2 b/dwarflint/tests/check_debug_info_refs-2.bz2 Binary files differnew file mode 100644 index 00000000..04749292 --- /dev/null +++ b/dwarflint/tests/check_debug_info_refs-2.bz2 diff --git a/dwarflint/tests/run-check_debug_info_refs.sh b/dwarflint/tests/run-check_debug_info_refs.sh index a1f80a8f..88cdcb04 100755 --- a/dwarflint/tests/run-check_debug_info_refs.sh +++ b/dwarflint/tests/run-check_debug_info_refs.sh @@ -27,7 +27,7 @@ srcdir=$srcdir/tests -testfiles check_debug_info_refs-1 +testfiles check_debug_info_refs-{1,2} testrun_compare ./dwarflint --check=check_debug_info_refs check_debug_info_refs-1 <<EOF error: .debug_aranges: table 48 (CU DIE 95): there has already been arange section for this CU. @@ -37,3 +37,9 @@ testrun_compare ./dwarflint --strict --check=check_debug_info_refs check_debug_i error: .debug_aranges: table 48 (CU DIE 95): there has already been arange section for this CU. warning: .debug_info: CU 0: no aranges table is associated with this CU. EOF + +testrun_compare ./dwarflint --strict --check=check_debug_info_refs check_debug_info_refs-2 <<EOF +warning: .debug_line: table 0: empty line number program. +error: .debug_line: table 0: sequence of opcodes not terminated with DW_LNE_end_sequence. +warning: .debug_info: CU 0: no aranges table is associated with this CU. +EOF |