diff options
author | Yacov Simhony <ysimhony@gmail.com> | 2018-09-21 07:53:51 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-09-21 07:55:23 -0600 |
commit | 4daf19021fef36767e70845608a8a2c3b4d72f99 (patch) | |
tree | 6d9803c785018939df084dbc6fd5e37bde54d6a6 /gdb/breakpoint.c | |
parent | 0192e8aeeb1f54ba10318d1b5a838749e20d233b (diff) | |
download | binutils-4daf19021fef36767e70845608a8a2c3b4d72f99.zip binutils-4daf19021fef36767e70845608a8a2c3b4d72f99.tar.gz binutils-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/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |