&pubnames_shndx);
if (pubnames_offset != -1)
{
- if (this->gdb_index_->pubnames_read(pubnames_shndx, pubnames_offset))
+ if (this->gdb_index_->pubnames_read(this->object(), pubnames_shndx,
+ pubnames_offset))
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))
&pubtypes_shndx);
if (pubtypes_offset != -1)
{
- if (this->gdb_index_->pubtypes_read(pubtypes_shndx, pubtypes_offset))
+ if (this->gdb_index_->pubtypes_read(this->object(),
+ pubtypes_shndx, pubtypes_offset))
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))
symtab_offset_(0),
cu_pool_offset_(0),
stringpool_offset_(0),
+ pubnames_object_(NULL),
pubnames_shndx_(0),
pubnames_offset_(0),
+ pubtypes_object_(NULL),
pubtypes_shndx_(0),
pubtypes_offset_(0)
{
// OFFSET in section SHNDX
bool
-Gdb_index::pubnames_read(unsigned int shndx, off_t offset)
+Gdb_index::pubnames_read(const Relobj* object, unsigned int shndx, off_t offset)
{
- bool ret = (this->pubnames_shndx_ == shndx
+ bool ret = (this->pubnames_object_ == object
+ && this->pubnames_shndx_ == shndx
&& this->pubnames_offset_ == offset);
+ this->pubnames_object_ = object;
this->pubnames_shndx_ = shndx;
this->pubnames_offset_ = offset;
return ret;
// OFFSET in section SHNDX
bool
-Gdb_index::pubtypes_read(unsigned int shndx, off_t offset)
+Gdb_index::pubtypes_read(const Relobj* object, unsigned int shndx, off_t offset)
{
- bool ret = (this->pubtypes_shndx_ == shndx
+ bool ret = (this->pubtypes_object_ == object
+ && this->pubtypes_shndx_ == shndx
&& this->pubtypes_offset_ == offset);
+ this->pubtypes_object_ = object;
this->pubtypes_shndx_ = shndx;
this->pubtypes_offset_ = offset;
return ret;