mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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>
This commit is contained in:
@ -1739,7 +1739,7 @@ remove_user_added_objfile (struct objfile *objfile)
|
|||||||
{
|
{
|
||||||
if (objfile != 0 && objfile->flags & OBJF_USERLOADED)
|
if (objfile != 0 && objfile->flags & OBJF_USERLOADED)
|
||||||
{
|
{
|
||||||
for (struct so_list *so : current_program_space->solibs ())
|
for (struct so_list *so : objfile->pspace->solibs ())
|
||||||
if (so->objfile == objfile)
|
if (so->objfile == objfile)
|
||||||
so->objfile = NULL;
|
so->objfile = NULL;
|
||||||
}
|
}
|
||||||
|
@ -3749,7 +3749,7 @@ static void
|
|||||||
symfile_free_objfile (struct objfile *objfile)
|
symfile_free_objfile (struct objfile *objfile)
|
||||||
{
|
{
|
||||||
/* Remove the target sections owned by this 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".
|
/* Wrapper around the quick_symbol_functions expand_symtabs_matching "method".
|
||||||
|
Reference in New Issue
Block a user