bool
program_space::multi_objfile_p () const
{
- return (!objfiles_list.empty ()
- && std::next (objfiles_list.begin ()) != objfiles_list.end ());
+ return (!m_objfiles_list.empty ()
+ && std::next (m_objfiles_list.begin ()) != m_objfiles_list.end ());
}
/* See progspace.h. */
for (const solib &so : this->solibs ())
gdb_assert (so.objfile == NULL);
- while (!objfiles_list.empty ())
- this->remove_objfile (&objfiles_list.front ());
+ while (!m_objfiles_list.empty ())
+ this->remove_objfile (&m_objfiles_list.front ());
}
/* See progspace.h. */
struct objfile *before)
{
if (before == nullptr)
- objfiles_list.push_back (std::move (objfile));
+ m_objfiles_list.push_back (std::move (objfile));
else
{
gdb_assert (before->is_linked ());
- objfiles_list.insert (objfiles_list.iterator_to (*before),
- std::move (objfile));
+ m_objfiles_list.insert (m_objfiles_list.iterator_to (*before),
+ std::move (objfile));
}
}
symfile_object_file = NULL;
gdb_assert (objfile->is_linked ());
- objfiles_list.erase (objfiles_list.iterator_to (*objfile));
+ m_objfiles_list.erase (m_objfiles_list.iterator_to (*objfile));
}
/* See progspace.h. */
for (objfile *objf : pspace->objfiles ()) { ... } */
objfiles_range objfiles ()
{
- return objfiles_range (objfiles_iterator (objfiles_list.begin ()));
+ return objfiles_range (objfiles_iterator (m_objfiles_list.begin ()));
}
using objfiles_safe_range = basic_safe_range<objfiles_range>;
objfiles_safe_range objfiles_safe ()
{
return objfiles_safe_range
- (objfiles_range (objfiles_iterator (objfiles_list.begin ())));
+ (objfiles_range (objfiles_iterator (m_objfiles_list.begin ())));
}
/* Add OBJFILE to the list of objfiles, putting it just before
(e.g. the argument to the "symbol-file" or "file" command). */
struct objfile *symfile_object_file = NULL;
- /* All known objfiles are kept in a linked list. */
- owning_intrusive_list<objfile> objfiles_list;
-
/* List of shared objects mapped into this space. Managed by
solib.c. */
owning_intrusive_list<solib> so_list;
registry<program_space> registry_fields;
private:
+ /* All known objfiles are kept in a linked list. */
+ owning_intrusive_list<objfile> m_objfiles_list;
+
/* The set of target sections matching the sections mapped into
this program space. Managed by both exec_ops and solib.c. */
std::vector<target_section> m_target_sections;