From f338f9ba56ce3f53138e1ab477c2ede44810d3fa Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Tue, 8 Mar 2011 23:25:51 +0100 Subject: dwarflint: Don't let sibling address mismatches to high-level --- dwarflint/check_debug_info.cc | 1 + dwarflint/tests/garbage-4.bz2 | Bin 0 -> 2765 bytes dwarflint/tests/run-bad.sh | 6 +++++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 dwarflint/tests/garbage-4.bz2 diff --git a/dwarflint/check_debug_info.cc b/dwarflint/check_debug_info.cc index 7b936cb9..31d65ac4 100644 --- a/dwarflint/check_debug_info.cc +++ b/dwarflint/check_debug_info.cc @@ -571,6 +571,7 @@ namespace << "this DIE claims that its sibling is " << pri::hex (sibling_addr) << " but it's actually " << pri::hex (die_off) << '.' << std::endl; + retval = -2; } sibling_addr = 0; } diff --git a/dwarflint/tests/garbage-4.bz2 b/dwarflint/tests/garbage-4.bz2 new file mode 100644 index 00000000..20e75d88 Binary files /dev/null and b/dwarflint/tests/garbage-4.bz2 differ diff --git a/dwarflint/tests/run-bad.sh b/dwarflint/tests/run-bad.sh index 0219340e..779ec27d 100755 --- a/dwarflint/tests/run-bad.sh +++ b/dwarflint/tests/run-bad.sh @@ -27,7 +27,7 @@ srcdir=$srcdir/tests -testfiles hello.bad-1 hello.bad-3 garbage-1 garbage-2 garbage-3 +testfiles hello.bad-1 hello.bad-3 garbage-1 garbage-2 garbage-3 garbage-4 testrun_compare ./dwarflint hello.bad-1 <