diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 13:54:45 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 13:55:00 +0000 |
commit | 134a0a106c944234e9e4f0dd95af96986117d7d9 (patch) | |
tree | 4e6f91d3cea33a40d9e941739a5b2b8ba14d4a15 /gdb/objfiles.c | |
parent | d21176c014a4696e667b8567df90364939269170 (diff) | |
download | binutils-134a0a106c944234e9e4f0dd95af96986117d7d9.zip binutils-134a0a106c944234e9e4f0dd95af96986117d7d9.tar.gz binutils-134a0a106c944234e9e4f0dd95af96986117d7d9.tar.bz2 |
gdb: make objfile::pspace private
Rename to m_pspace, add getter. An objfile's pspace never changes, so
no setter is necessary.
Change-Id: If4dfb300cb90dc0fb9776ea704ff92baebb8f626
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 368e129..3d50db4 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -308,7 +308,7 @@ build_objfile_section_table (struct objfile *objfile) objfile::objfile (gdb_bfd_ref_ptr bfd_, const char *name, objfile_flags flags_) : flags (flags_), - pspace (current_program_space), + m_pspace (current_program_space), obfd (std::move (bfd_)) { const char *expanded_name; @@ -568,7 +568,7 @@ objfile::~objfile () } /* Rebuild section map next time we need it. */ - get_objfile_pspace_data (pspace)->section_map_dirty = 1; + get_objfile_pspace_data (m_pspace)->section_map_dirty = 1; } @@ -646,7 +646,7 @@ objfile_relocate1 (struct objfile *objfile, objfile->section_offsets[i] = new_offsets[i]; /* Rebuild section map next time we need it. */ - get_objfile_pspace_data (objfile->pspace)->section_map_dirty = 1; + get_objfile_pspace_data (objfile->pspace ())->section_map_dirty = 1; /* Update the table in exec_ops, used to read memory. */ for (obj_section *s : objfile->sections ()) |