mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Remove redundant test in update_inserted_breakpoint_locations
Remove a redundant test in update_inserted_breakpoint_locations. gdb/ChangeLog 2018-09-21 Yacov Simhony <ysimhony@gmail.com> * breakpoint.c (update_inserted_breakpoint_locations): Remove redundant condition.
This commit is contained in:
committed by
Tom Tromey
parent
0192e8aeeb
commit
4daf19021f
@@ -2898,7 +2898,7 @@ update_inserted_breakpoint_locations (void)
|
||||
/* We only want to update locations that are already inserted
|
||||
and need updating. This is to avoid unwanted insertion during
|
||||
deletion of breakpoints. */
|
||||
if (!bl->inserted || (bl->inserted && !bl->needs_update))
|
||||
if (!bl->inserted || !bl->needs_update)
|
||||
continue;
|
||||
|
||||
switch_to_program_space_and_thread (bl->pspace);
|
||||
|
||||
Reference in New Issue
Block a user