]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Always emit error about missing DW_LNE_end_sequence
authorPetr Machata <pmachata@redhat.com>
Tue, 8 Sep 2009 15:44:42 +0000 (17:44 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Aug 2010 12:55:09 +0000 (14:55 +0200)
* ... even if there were no opcodes, because the no-opcodes message can
  be filtered out.

src/dwarflint.c

index 1a6fb71e2238b373b466498b68791af85f48f455..c594c44188f074d28172dfded81ed4c6634da5e4 100644 (file)
@@ -5195,11 +5195,8 @@ check_line_structural (struct elf_file *file,
        wr_message (mc_line | mc_acc_bloat | mc_impact_3, &where,
                    ": empty line number program.\n");
       if (!terminated)
-       {
-         if (seen_opcode)
-           wr_error (&where,
-                     ": sequence of opcodes not terminated with DW_LNE_end_sequence.\n");
-       }
+       wr_error (&where,
+                 ": sequence of opcodes not terminated with DW_LNE_end_sequence.\n");
       else if (sub_ctx.ptr != sub_ctx.end
               && !check_zero_padding (&sub_ctx, mc_line,
                                       &WHERE (sec_line, NULL)))