forked from Imagelibrary/binutils-gdb
gold/
* dwarf_reader.cc (Dwarf_ranges_table::read_range_list): Call Dwarf_info_reader::read_from_pointer. (Dwarf_pubnames_table::read_header): Likewise. (Dwarf_pubnames_table::next_name): Likewise. (Dwarf_die::read_attributes): Likewise. (Dwarf_die::skip_attributes): Likewise. (Dwarf_info_reader::read_from_pointer): New function template. * dwarf_reader.h (Dwarf_ranges_table): Add dwinfo_. (Dwarf_pubnames_table): Likewise. (Dwarf_info_reader::read_from_pointer): New function template. * gdb-index.cc (Gdb_index_info_reader): Adjust call to Dwarf_pubnames_table ctor.
This commit is contained in:
@@ -869,7 +869,7 @@ Gdb_index_info_reader::read_pubnames_and_pubtypes(Dwarf_die* die)
|
||||
ret = true;
|
||||
else
|
||||
{
|
||||
Dwarf_pubnames_table pubnames(false);
|
||||
Dwarf_pubnames_table pubnames(this, false);
|
||||
if (!pubnames.read_section(this->object(), pubnames_shndx))
|
||||
return false;
|
||||
if (!pubnames.read_header(pubnames_offset))
|
||||
@@ -896,7 +896,7 @@ Gdb_index_info_reader::read_pubnames_and_pubtypes(Dwarf_die* die)
|
||||
ret = true;
|
||||
else
|
||||
{
|
||||
Dwarf_pubnames_table pubtypes(true);
|
||||
Dwarf_pubnames_table pubtypes(this, true);
|
||||
if (!pubtypes.read_section(this->object(), pubtypes_shndx))
|
||||
return false;
|
||||
if (!pubtypes.read_header(pubtypes_offset))
|
||||
|
||||
Reference in New Issue
Block a user