aboutsummaryrefslogtreecommitdiff
path: root/gdb/annotate.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/annotate.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/annotate.c')
-rw-r--r--gdb/annotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/annotate.c b/gdb/annotate.c
index 8818029..c1d4229 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -457,7 +457,7 @@ annotate_source_line (struct symtab *s, int line, int mid_statement,
/* Update the current symtab and line. */
symtab_and_line sal;
- sal.pspace = s->compunit ()->objfile ()->pspace;
+ sal.pspace = s->compunit ()->objfile ()->pspace ();
sal.symtab = s;
sal.line = line;
set_current_source_symtab_and_line (sal);