diff options
| author | Petr Machata <[email protected]> | 2011-03-07 17:30:15 +0100 |
|---|---|---|
| committer | Petr Machata <[email protected]> | 2011-03-07 17:30:15 +0100 |
| commit | 427f6c53451744b15dbac6a0a4a5d120053b1e56 (patch) | |
| tree | be1b0eba1b0978c5d03a5fe2cec44915f20929ca /dwarflint/tests | |
| parent | 43423ee7e421b01e23696692f8a30201cd1a3826 (diff) | |
dwarflint: Fail low-level cases if toplevel CU DIE has wrong tag
Diffstat (limited to 'dwarflint/tests')
| -rw-r--r-- | dwarflint/tests/garbage-2.bz2 | bin | 0 -> 2764 bytes | |||
| -rwxr-xr-x | dwarflint/tests/run-bad.sh | 6 |
2 files changed, 5 insertions, 1 deletions
diff --git a/dwarflint/tests/garbage-2.bz2 b/dwarflint/tests/garbage-2.bz2 Binary files differnew file mode 100644 index 00000000..3cd56192 --- /dev/null +++ b/dwarflint/tests/garbage-2.bz2 diff --git a/dwarflint/tests/run-bad.sh b/dwarflint/tests/run-bad.sh index 5dd64956..871fe551 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 +testfiles hello.bad-1 hello.bad-3 garbage-1 garbage-2 testrun_compare ./dwarflint hello.bad-1 <<EOF error: .debug_info: DIE 0x83: abbrev section at 0x0 doesn't contain code 83. @@ -46,3 +46,7 @@ error: Broken ELF: offset out of range. error: .debug_abbrev: data not found. error: .debug_info: data not found. EOF + +testrun_compare ./dwarflint garbage-2 <<EOF +error: .debug_info: CU 0: toplevel DIE must be either compile_unit or partial_unit. +EOF |
