aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-03 22:20:22 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-05 13:20:50 -0400
commite0322c6a7b99dcb2096585ab39268502802e90d7 (patch)
treeefb904dd45a28cec767be7f7abdeb2402f7d960a /gdb/breakpoint.c
parent74daa597e743462d272522512efbe3f65659c4c0 (diff)
downloadfsf-binutils-gdb-e0322c6a7b99dcb2096585ab39268502802e90d7.zip
fsf-binutils-gdb-e0322c6a7b99dcb2096585ab39268502802e90d7.tar.gz
fsf-binutils-gdb-e0322c6a7b99dcb2096585ab39268502802e90d7.tar.bz2
gdb: remove unnecessary nullptr check in free_objfile observers
The free_objfile observable is never called with a nullptr objfile. Change-Id: I1e990edeb45bc38009ccb129c623911097ab65fe Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index f378edf..db7d2e6 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -8065,9 +8065,6 @@ disable_breakpoints_in_unloaded_shlib (program_space *pspace, so_list *solib)
static void
disable_breakpoints_in_freed_objfile (struct objfile *objfile)
{
- if (objfile == NULL)
- return;
-
/* OBJF_SHARED|OBJF_USERLOADED objfiles are dynamic modules manually
managed by the user with add-symbol-file/remove-symbol-file.
Similarly to how breakpoints in shared libraries are handled in