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:
Yacov Simhony
2018-09-21 07:53:51 -06:00
committed by Tom Tromey
parent 0192e8aeeb
commit 4daf19021f
2 changed files with 6 additions and 1 deletions

View File

@@ -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);