diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-06-16 17:16:15 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-06-16 17:16:15 +0000 |
commit | 473b7be660cd74ee0de5c231f7be8569efc08cc9 (patch) | |
tree | 4317e39324212acb4587ad4ce04c380b2269fd32 /gdb/dwarf2read.c | |
parent | 9d9030bc8f2fa4beddf67cd72a9d502155e40376 (diff) | |
download | ppe42-binutils-473b7be660cd74ee0de5c231f7be8569efc08cc9.tar.gz ppe42-binutils-473b7be660cd74ee0de5c231f7be8569efc08cc9.zip |
PR gdb/1658
* dwarf2read.c (dwarf_decode_lines): Read the length of the extended
operation as a uleb128. Found by Michael Coulter.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 632ae4a2bc..b07d07c9ba 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) |