Remove redundant test in update_inserted_breakpoint_locations
authorYacov Simhony <ysimhony@gmail.com>
Fri, 21 Sep 2018 13:53:51 +0000 (07:53 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 21 Sep 2018 13:55:23 +0000 (07:55 -0600)
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.

gdb/ChangeLog
gdb/breakpoint.c

index 88d752b2bfe0088d34a2d67a2b3fe61eec4fd3b3..2d824bd94ae87b6d96c1a707ef2d4e0539721f36 100644 (file)
@@ -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.
index 7591648f5eb4dea4ec075e4b014bb71e141847ce..eb408d7547180dad5cc762479bbb9f7e75657fbe 100644 (file)
@@ -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);
This page took 0.036703 seconds and 4 git commands to generate.