From 4daf19021fef36767e70845608a8a2c3b4d72f99 Mon Sep 17 00:00:00 2001 From: Yacov Simhony Date: Fri, 21 Sep 2018 07:53:51 -0600 Subject: Remove redundant test in update_inserted_breakpoint_locations Remove a redundant test in update_inserted_breakpoint_locations. gdb/ChangeLog 2018-09-21 Yacov Simhony * breakpoint.c (update_inserted_breakpoint_locations): Remove redundant condition. --- gdb/breakpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/breakpoint.c') diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 7591648..eb408d7 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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); -- cgit v1.1