diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-09-27 16:39:36 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-02 11:53:21 -0400 |
commit | bd93891c9ae1adda01631459eb8da8309a2f9d60 (patch) | |
tree | dcbc56b5c79270ca82f2ced23a5b89b666582747 /gdb/breakpoint.c | |
parent | dc63d5682e48ab64724a2da2ee803cd13bf5f0c0 (diff) | |
download | fsf-binutils-gdb-bd93891c9ae1adda01631459eb8da8309a2f9d60.zip fsf-binutils-gdb-bd93891c9ae1adda01631459eb8da8309a2f9d60.tar.gz fsf-binutils-gdb-bd93891c9ae1adda01631459eb8da8309a2f9d60.tar.bz2 |
gdb: remove solib::pspace field
This backlink is not necessary, we always know the program space from
the context. Pass it down the solib_unloaded observer.
Change-Id: I45a503472dc791f517558b8141901472634e0556
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f9b20a7..f378edf 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -8018,7 +8018,7 @@ disable_breakpoints_in_shlibs (void) disabled ones can just stay disabled. */ static void -disable_breakpoints_in_unloaded_shlib (struct so_list *solib) +disable_breakpoints_in_unloaded_shlib (program_space *pspace, so_list *solib) { bool disabled_shlib_breaks = false; @@ -8027,7 +8027,7 @@ disable_breakpoints_in_unloaded_shlib (struct so_list *solib) /* ALL_BP_LOCATIONS bp_location has LOC->OWNER always non-NULL. */ struct breakpoint *b = loc->owner; - if (solib->pspace == loc->pspace + if (pspace == loc->pspace && !loc->shlib_disabled && (((b->type == bp_breakpoint || b->type == bp_jit_event |