aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYacov Simhony <ysimhony@gmail.com>2018-09-21 07:53:51 -0600
committerTom Tromey <tom@tromey.com>2018-09-21 07:55:23 -0600
commit4daf19021fef36767e70845608a8a2c3b4d72f99 (patch)
tree6d9803c785018939df084dbc6fd5e37bde54d6a6
parent0192e8aeeb1f54ba10318d1b5a838749e20d233b (diff)
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c2
2 files changed, 6 insertions, 1 deletions
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 <ysimhony@gmail.com>
+
+ * breakpoint.c (update_inserted_breakpoint_locations): Remove
+ redundant condition.
+
2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* 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);