diff options
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index e8a8b5f..bf6e6a1 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -264,8 +264,8 @@ private: struct objfile_per_bfd_storage { - objfile_per_bfd_storage () - : minsyms_read (false) + objfile_per_bfd_storage (bfd *bfd) + : minsyms_read (false), m_bfd (bfd) {} ~objfile_per_bfd_storage (); @@ -287,6 +287,13 @@ struct objfile_per_bfd_storage return (const char *) string_cache.insert (str.c_str (), str.size () + 1); } + /* Get the BFD this object is associated to. */ + + bfd *get_bfd () const + { + return m_bfd; + } + /* The storage has an obstack of its own. */ auto_obstack storage_obstack; @@ -364,6 +371,11 @@ struct objfile_per_bfd_storage /* All the different languages of symbols found in the demangled hash table. */ std::bitset<nr_languages> demangled_hash_languages; + +private: + /* The BFD this object is associated to. */ + + bfd *m_bfd; }; /* An iterator that first returns a parent objfile, and then each |