diff options
author | Cary Coutant <ccoutant@google.com> | 2012-10-23 21:41:37 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2012-10-23 21:41:37 +0000 |
commit | ed5d6712b825edd0c4de10d7e7907d3332e6fe7e (patch) | |
tree | 3fb3691c937ea92d48736fc59c35f3002c2d4389 /gold/gdb-index.cc | |
parent | 8787852de14e445e04bfb644c2c0d9178f807ec2 (diff) | |
download | gdb-ed5d6712b825edd0c4de10d7e7907d3332e6fe7e.zip gdb-ed5d6712b825edd0c4de10d7e7907d3332e6fe7e.tar.gz gdb-ed5d6712b825edd0c4de10d7e7907d3332e6fe7e.tar.bz2 |
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.
Diffstat (limited to 'gold/gdb-index.cc')
-rw-r--r-- | gold/gdb-index.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/gdb-index.cc b/gold/gdb-index.cc index 51d0816..d3c9d61 100644 --- a/gold/gdb-index.cc +++ b/gold/gdb-index.cc @@ -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)) |