From: Petr Machata Date: Fri, 20 Mar 2009 15:01:37 +0000 (+0100) Subject: dwarflint: Fix handling of DW_LNE_end_sequence X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=756f1151f400afd45299873921cf0baa70862cee;p=thirdparty%2Felfutils.git dwarflint: Fix handling of DW_LNE_end_sequence --- diff --git a/src/dwarflint.c b/src/dwarflint.c index d2654c7af..e168f0846 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -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