mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
2012-05-03 Tristan Gingold <gingold@adacore.com>
* dwarf2.c (decode_line_info): Ignore DW_LNE_HP_source_file_correlation.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-05-03 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* dwarf2.c (decode_line_info): Ignore
|
||||||
|
DW_LNE_HP_source_file_correlation.
|
||||||
|
|
||||||
2012-05-01 Nick Clifton <nickc@redhat.com>
|
2012-05-01 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR binutils/13121
|
PR binutils/13121
|
||||||
|
@ -1401,6 +1401,7 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
|
|||||||
unsigned int i, bytes_read, offset_size;
|
unsigned int i, bytes_read, offset_size;
|
||||||
char *cur_file, *cur_dir;
|
char *cur_file, *cur_dir;
|
||||||
unsigned char op_code, extended_op, adj_opcode;
|
unsigned char op_code, extended_op, adj_opcode;
|
||||||
|
unsigned int exop_len;
|
||||||
bfd_size_type amt;
|
bfd_size_type amt;
|
||||||
|
|
||||||
if (! read_section (abfd, &stash->debug_sections[debug_line],
|
if (! read_section (abfd, &stash->debug_sections[debug_line],
|
||||||
@ -1604,8 +1605,8 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
|
|||||||
else switch (op_code)
|
else switch (op_code)
|
||||||
{
|
{
|
||||||
case DW_LNS_extended_op:
|
case DW_LNS_extended_op:
|
||||||
/* Ignore length. */
|
exop_len = read_unsigned_leb128 (abfd, line_ptr, &bytes_read);
|
||||||
line_ptr += 1;
|
line_ptr += bytes_read;
|
||||||
extended_op = read_1_byte (abfd, line_ptr);
|
extended_op = read_1_byte (abfd, line_ptr);
|
||||||
line_ptr += 1;
|
line_ptr += 1;
|
||||||
|
|
||||||
@ -1658,6 +1659,9 @@ decode_line_info (struct comp_unit *unit, struct dwarf2_debug *stash)
|
|||||||
(void) read_unsigned_leb128 (abfd, line_ptr, &bytes_read);
|
(void) read_unsigned_leb128 (abfd, line_ptr, &bytes_read);
|
||||||
line_ptr += bytes_read;
|
line_ptr += bytes_read;
|
||||||
break;
|
break;
|
||||||
|
case DW_LNE_HP_source_file_correlation:
|
||||||
|
line_ptr += exop_len - 1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
(*_bfd_error_handler) (_("Dwarf Error: mangled line number section."));
|
(*_bfd_error_handler) (_("Dwarf Error: mangled line number section."));
|
||||||
bfd_set_error (bfd_error_bad_value);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
|
Reference in New Issue
Block a user