aboutsummaryrefslogtreecommitdiff
path: root/gdb
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 /gdb
parent0192e8aeeb1f54ba10318d1b5a838749e20d233b (diff)
downloadgdb-4daf19021fef36767e70845608a8a2c3b4d72f99.zip
gdb-4daf19021fef36767e70845608a8a2c3b4d72f99.tar.gz
gdb-4daf19021fef36767e70845608a8a2c3b4d72f99.tar.bz2
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.
Diffstat (limited to 'gdb')
-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 88d752b..2d824bd 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 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);