aboutsummaryrefslogtreecommitdiff
path: root/gold/gdb-index.h
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2012-09-10 19:16:33 +0000
committerSterling Augustine <saugustine@google.com>2012-09-10 19:16:33 +0000
commitc891b3f924c4fb5fd06b71cabe74ffe74dcffa48 (patch)
tree000f9a73bef7fb5dd006e16d93046ea82252458a /gold/gdb-index.h
parent09be558e1074c285df631d3d8fa680135b4bd284 (diff)
downloadfsf-binutils-gdb-c891b3f924c4fb5fd06b71cabe74ffe74dcffa48.zip
fsf-binutils-gdb-c891b3f924c4fb5fd06b71cabe74ffe74dcffa48.tar.gz
fsf-binutils-gdb-c891b3f924c4fb5fd06b71cabe74ffe74dcffa48.tar.bz2
2012-09-10 Sterling Augustine <saugustine@google.com>
* gdb-index.cc (Gdb_index::pubnames_read): New parameter. (Gdb_index::pubtypes_read): New parameter. (Gdb_index_info_reader::read_pubnames_and_pubtypes): Add parameters to calls. * gdb-index.h (Gdb_index): New fields pubnames_object_ and pubtypes_object_.
Diffstat (limited to 'gold/gdb-index.h')
-rw-r--r--gold/gdb-index.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/gold/gdb-index.h b/gold/gdb-index.h
index 1ca38cc..14c1583 100644
--- a/gold/gdb-index.h
+++ b/gold/gdb-index.h
@@ -91,15 +91,15 @@ class Gdb_index : public Output_section_data
void
add_symbol(int cu_index, const char* sym_name);
- // Return TRUE if we have already processed the pubnames set at
- // OFFSET in section SHNDX
+ // Return TRUE if we have already processed the pubnames set for
+ // OBJECT at OFFSET in section SHNDX
bool
- pubnames_read(unsigned int shndx, off_t offset);
+ pubnames_read(const Relobj* object, unsigned int shndx, off_t offset);
- // Return TRUE if we have already processed the pubtypes set at
- // OFFSET in section SHNDX
+ // Return TRUE if we have already processed the pubtypes set for
+ // OBJECT at OFFSET in section SHNDX
bool
- pubtypes_read(unsigned int shndx, off_t offset);
+ pubtypes_read(const Relobj* object, unsigned int shndx, off_t offset);
// Print usage statistics.
static void
@@ -200,10 +200,12 @@ class Gdb_index : public Output_section_data
off_t symtab_offset_;
off_t cu_pool_offset_;
off_t stringpool_offset_;
- // Section index and offset of last read pubnames section.
+ // Object, section index and offset of last read pubnames section.
+ const Relobj* pubnames_object_;
unsigned int pubnames_shndx_;
off_t pubnames_offset_;
- // Section index and offset of last read pubtypes section.
+ // Object, section index and offset of last read pubtypes section.
+ const Relobj* pubtypes_object_;
unsigned int pubtypes_shndx_;
off_t pubtypes_offset_;
};