aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-03-29 17:07:52 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-07 13:05:29 -0400
commit7678d1304a74922dee60fe7e1f6ee4c53feb04d4 (patch)
treec483af1e883cab5586f9aeec68296f67bbaff433 /gdb/source.c
parent3c86fae3d99bf7b5360b810cc5b19522430ce39d (diff)
downloadgdb-7678d1304a74922dee60fe7e1f6ee4c53feb04d4.zip
gdb-7678d1304a74922dee60fe7e1f6ee4c53feb04d4.tar.gz
gdb-7678d1304a74922dee60fe7e1f6ee4c53feb04d4.tar.bz2
gdb: remove symtab::pspace
Same idea as previous patch, but for symtab::pspace. Change-Id: I1023abe622bea75ef648c6a97a01b53775d4104d
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 24f53f6..e901657 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -311,7 +311,7 @@ select_source_symtab (struct symtab *s)
if (s)
{
current_source_location *loc
- = get_source_location (s->pspace ());
+ = get_source_location (s->compunit ()->objfile ()->pspace);
loc->set (s, 1);
return;
}