]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Fix handling of DW_LNE_end_sequence
authorPetr Machata <pmachata@redhat.com>
Fri, 20 Mar 2009 15:01:37 +0000 (16:01 +0100)
committerPetr Machata <pmachata@redhat.com>
Fri, 20 Mar 2009 14:57:52 +0000 (15:57 +0100)
src/dwarflint.c

index d2654c7afe48df9822366ec73b96fa4c749a4c65..e168f0846c6bc03826bceb5953c9349f08f87a2e 100644 (file)
@@ -5118,9 +5118,6 @@ check_line_structural (struct section_data *data,
 
          if (opcode != 0 || extended != DW_LNE_end_sequence)
            seen_opcode = true;
-
-         if (terminated)
-           break;
        }
 
       for (size_t i = 0; i < include_directories.size; ++i)
@@ -5149,7 +5146,7 @@ check_line_structural (struct section_data *data,
                                       &WHERE (sec_line, NULL)))
        wr_message_padding_n0 (mc_line, &WHERE (sec_line, NULL),
                               read_ctx_get_offset (&sub_ctx),
-                              sub_ctx.end - sub_ctx.begin - 1);
+                              sub_ctx.end - sub_ctx.ptr - 1);
       }
 
       /* XXX overlaps in defined addresses are probably OK, one