From: Yacov Simhony Date: Fri, 21 Sep 2018 13:53:51 +0000 (-0600) Subject: Remove redundant test in update_inserted_breakpoint_locations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4daf19021fef36767e70845608a8a2c3b4d72f99;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 88d752b2bfe..2d824bd94ae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-09-21 Yacov Simhony + + * breakpoint.c (update_inserted_breakpoint_locations): Remove + redundant condition. + 2018-09-20 Rainer Orth * proc-utils.h (PROC_CTL_WORD_TYPE): Remove. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 7591648f5eb..eb408d75471 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);