summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
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/breakpoint.c
parent0192e8aeeb1f54ba10318d1b5a838749e20d233b (diff)
downloadbinutils-gdb-4daf19021fef36767e70845608a8a2c3b4d72f99.tar.gz
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/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
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);