PR gdb/1658

* dwarf2read.c (dwarf_decode_lines): Read the length of the extended
	operation as a uleb128.  Found by Michael Coulter.
This commit is contained in:
Daniel Jacobowitz 2004-06-16 17:16:15 +00:00
parent 9d9030bc8f
commit 473b7be660
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-06-16 Daniel Jacobowitz <dan@debian.org>
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 <Hilfinger@gnat.com>
* ada-tasks.c: Rename build_task_list to ada_build_task_list, and

View File

@ -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)