aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-03 22:20:23 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-05 13:20:50 -0400
commit0b6a94ecbc8b39d6ea86f4337aa23c73a178897e (patch)
tree86a57fc024afbada7cc9d61371938cd210d7a47e /gdb/symfile.c
parente0322c6a7b99dcb2096585ab39268502802e90d7 (diff)
downloadbinutils-0b6a94ecbc8b39d6ea86f4337aa23c73a178897e.zip
binutils-0b6a94ecbc8b39d6ea86f4337aa23c73a178897e.tar.gz
binutils-0b6a94ecbc8b39d6ea86f4337aa23c73a178897e.tar.bz2
gdb: use objfile->pspace in free_objfile observers
Use objfile->pspace instead of current_program_space. Change-Id: I127a1788e155b321563114452ed5b530f1d1f618 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index aca31e3..dc2f625 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3749,7 +3749,7 @@ static void
symfile_free_objfile (struct objfile *objfile)
{
/* Remove the target sections owned by this objfile. */
- current_program_space->remove_target_sections (objfile);
+ objfile->pspace->remove_target_sections (objfile);
}
/* Wrapper around the quick_symbol_functions expand_symtabs_matching "method".