From: Andrew Burgess Date: Wed, 28 Aug 2024 16:02:44 +0000 (+0100) Subject: gdb: remove duplicate check in disable_breakpoints_in_freed_objfile X-Git-Tag: gdb-16-branchpoint~1022 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c201bc6e933f169157a7dd561bea1b303f70698c;p=thirdparty%2Fbinutils-gdb.git gdb: remove duplicate check in disable_breakpoints_in_freed_objfile I spotted that we have a duplicate condition check in the function disable_breakpoints_in_freed_objfile. Lets remove it. There should be no user visible changes after this commit. Approved-By: Tom Tromey --- diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f06c3c26d85..b3bb7da0737 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -8091,10 +8091,6 @@ disable_breakpoints_in_freed_objfile (struct objfile *objfile) if (objfile->pspace () != loc.pspace) continue; - if (loc.loc_type != bp_loc_hardware_breakpoint - && loc.loc_type != bp_loc_software_breakpoint) - continue; - if (is_addr_in_objfile (loc_addr, objfile)) { loc.shlib_disabled = 1;