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
This commit is contained in:
Simon Marchi
2024-07-15 13:54:45 +00:00
parent d21176c014
commit 134a0a106c
16 changed files with 49 additions and 44 deletions

View File

@@ -1495,7 +1495,7 @@ ada_tasks_clear_pspace_data (program_space *pspace)
static void
ada_tasks_new_objfile_observer (objfile *objfile)
{
ada_tasks_clear_pspace_data (objfile->pspace);
ada_tasks_clear_pspace_data (objfile->pspace ());
}
/* The qcs command line flags for the "task apply" commands. Keep