diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-08-28 17:02:44 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-08-30 21:24:07 +0100 |
commit | c201bc6e933f169157a7dd561bea1b303f70698c (patch) | |
tree | 807c9a28a61a0c0b8a4f63b2b10acdacfeaa4983 | |
parent | e5afccc7e45964ed2f339c8f3ff7186a80a2bdb0 (diff) | |
download | binutils-c201bc6e933f169157a7dd561bea1b303f70698c.zip binutils-c201bc6e933f169157a7dd561bea1b303f70698c.tar.gz binutils-c201bc6e933f169157a7dd561bea1b303f70698c.tar.bz2 |
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 <tom@tromey.com>
-rw-r--r-- | gdb/breakpoint.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index f06c3c2..b3bb7da 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; |