summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2010-10-12 13:37:53 +0200
committerPetr Machata <pmachata@redhat.com>2010-10-12 13:37:53 +0200
commit75b2d5e6468c52ac542b9bc862fa22b2be13c568 (patch)
tree9565f48d9c73edb388b9295136ca0a251f5ea786
parent11c4e5441e2fbebb41258818080f902e9dab3e96 (diff)
downloadelfutils-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.bz2bin0 -> 2686 bytes
-rwxr-xr-xdwarflint/tests/run-check_debug_info_refs.sh8
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
new file mode 100644
index 00000000..04749292
--- /dev/null
+++ b/dwarflint/tests/check_debug_info_refs-2.bz2
Binary files differ
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