From: Daniel Jacobowitz Date: Wed, 16 Jun 2004 17:16:15 +0000 (+0000) Subject: PR gdb/1658 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=473b7be660cd74ee0de5c231f7be8569efc08cc9;p=binutils-gdb.git PR gdb/1658 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended operation as a uleb128. Found by Michael Coulter. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8d304f9bd9c..47f5e9326a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-06-16 Daniel Jacobowitz + + PR gdb/1658 + * dwarf2read.c (dwarf_decode_lines): Read the length of the extended + operation as a uleb128. Found by Michael Coulter. + 2004-06-16 Paul N. Hilfinger * ada-tasks.c: Rename build_task_list to ada_build_task_list, and diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 632ae4a2bce..b07d07c9baa 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -5986,7 +5986,8 @@ dwarf_decode_lines (struct line_header *lh, char *comp_dir, bfd *abfd, else switch (op_code) { case DW_LNS_extended_op: - line_ptr += 1; /* ignore length */ + read_unsigned_leb128 (abfd, line_ptr, &bytes_read); + line_ptr += bytes_read; extended_op = read_1_byte (abfd, line_ptr); line_ptr += 1; switch (extended_op)