aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-objfile.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-07-15 13:54:45 +0000
committerSimon Marchi <simon.marchi@efficios.com>2024-07-15 13:55:00 +0000
commit134a0a106c944234e9e4f0dd95af96986117d7d9 (patch)
tree4e6f91d3cea33a40d9e941739a5b2b8ba14d4a15 /gdb/python/py-objfile.c
parentd21176c014a4696e667b8567df90364939269170 (diff)
downloadbinutils-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/python/py-objfile.c')
-rw-r--r--gdb/python/py-objfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c
index 60a1483..6e8d5b5 100644
--- a/gdb/python/py-objfile.c
+++ b/gdb/python/py-objfile.c
@@ -183,7 +183,7 @@ objfpy_get_progspace (PyObject *self, void *closure)
objfile_object *obj = (objfile_object *) self;
if (obj->objfile)
- return pspace_to_pspace_object (obj->objfile->pspace).release ();
+ return pspace_to_pspace_object (obj->objfile->pspace ()).release ();
Py_RETURN_NONE;
}