]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: remove duplicate check in disable_breakpoints_in_freed_objfile
authorAndrew Burgess <aburgess@redhat.com>
Wed, 28 Aug 2024 16:02:44 +0000 (17:02 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 30 Aug 2024 20:24:07 +0000 (21:24 +0100)
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 <tom@tromey.com>
gdb/breakpoint.c

index f06c3c26d8504a95089117a6e52d1e7f12bb5d0b..b3bb7da0737fcb36090d6637655add71657a1015 100644 (file)
@@ -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;