mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user