diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-05-16 16:13:20 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 14:34:12 -0400 |
commit | 4113c737bda3aa1ac6ae1c418288a11e810c995e (patch) | |
tree | 4f4cd1bef4c6e9e277f6d333fabcf3d8f8f5dfca /gdb | |
parent | b8c9d0de904198f73a39aa6bf9b27b4bc015e0f8 (diff) | |
download | gdb-4113c737bda3aa1ac6ae1c418288a11e810c995e.zip gdb-4113c737bda3aa1ac6ae1c418288a11e810c995e.tar.gz gdb-4113c737bda3aa1ac6ae1c418288a11e810c995e.tar.bz2 |
gdb: make `program_space::free_all_objfiles` use `this`
Use `this` instead of `current_program_space`. Presumably, the method
wants to check the solibs of "this" program space, not the current
global program space (although they are likely always the same at the
moment).
Change-Id: Iaf0534f36bfd47c04c53ed0657da332bdb8fb906
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/progspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c index 224b61e..28198c1 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -128,7 +128,7 @@ void program_space::free_all_objfiles () { /* Any objfile reference would become stale. */ - for (const solib &so : current_program_space->solibs ()) + for (const solib &so : this->solibs ()) gdb_assert (so.objfile == NULL); while (!objfiles_list.empty ()) |