This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove redundant test in update_inserted_breakpoint_locations


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4daf19021fef36767e70845608a8a2c3b4d72f99

commit 4daf19021fef36767e70845608a8a2c3b4d72f99
Author: Yacov Simhony <ysimhony@gmail.com>
Date:   Fri Sep 21 07:53:51 2018 -0600

    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.

Diff:
---
 gdb/ChangeLog    | 5 +++++
 gdb/breakpoint.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]