Use full section name in error messages.
This commit is contained in:
parent
3deb89d35e
commit
f5a3e38aff
2 changed files with 12 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-01-30 Philipp Thomas <pthomas@suse.de>
|
||||
|
||||
* dwarf2.c (read_abbrev): Use full section name in error message.
|
||||
(decode_line_info): Likewise.
|
||||
|
||||
2002-01-30 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elf64-ppc.c (func_desc_adjust): Only provide missing function
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* DWARF 2 support.
|
||||
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Adapted from gdb/dwarf2read.c by Gavin Koch of Cygnus Solutions
|
||||
|
@ -556,7 +556,7 @@ read_abbrevs (abfd, offset, stash)
|
|||
|
||||
if (offset >= stash->dwarf_abbrev_size)
|
||||
{
|
||||
(*_bfd_error_handler) (_("Dwarf Error: Abbrev offset (%u) greater than or equal to abbrev size (%u)."),
|
||||
(*_bfd_error_handler) (_("Dwarf Error: Abbrev offset (%u) greater than or equal to .debug_abbrev size (%u)."),
|
||||
offset, stash->dwarf_abbrev_size);
|
||||
bfd_set_error (bfd_error_bad_value);
|
||||
return 0;
|
||||
|
@ -949,7 +949,7 @@ decode_line_info (unit, stash)
|
|||
below. */
|
||||
if (unit->line_offset >= stash->dwarf_line_size)
|
||||
{
|
||||
(*_bfd_error_handler) (_("Dwarf Error: Line offset (%u) greater than or equal to line size (%u)."),
|
||||
(*_bfd_error_handler) (_("Dwarf Error: Line offset (%u) greater than or equal to .debug_line size (%u)."),
|
||||
unit->line_offset, stash->dwarf_line_size);
|
||||
bfd_set_error (bfd_error_bad_value);
|
||||
return 0;
|
||||
|
@ -1456,16 +1456,13 @@ parse_comp_unit (abfd, stash, unit_length, offset_size)
|
|||
unsigned int offset_size;
|
||||
{
|
||||
struct comp_unit* unit;
|
||||
|
||||
unsigned short version;
|
||||
unsigned int abbrev_offset = 0;
|
||||
unsigned char addr_size;
|
||||
struct abbrev_info** abbrevs;
|
||||
|
||||
unsigned int abbrev_number, bytes_read, i;
|
||||
struct abbrev_info *abbrev;
|
||||
struct attribute attr;
|
||||
|
||||
char *info_ptr = stash->info_ptr;
|
||||
char *end_ptr = info_ptr + unit_length;
|
||||
bfd_size_type amt;
|
||||
|
|
Loading…
Add table
Reference in a new issue