From 967af18d0dd9f6ce0fd75f0e08865cbeae771c69 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 31 Jul 2007 23:08:22 +0000 Subject: [PATCH] 2007-07-31 Michael Snyder * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'. True and false paths are mutually exclusive. --- gdb/ChangeLog | 3 +++ gdb/breakpoint.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cedaf0e64c3..2c178b1100f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2007-07-31 Michael Snyder + * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'. + True and false paths are mutually exclusive. + * event-top.c (command_line_handler): Add pedantic return. * f-valprint.c (info_common_command): Bail out to prevent null diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 2c67b53b5d3..8c27a24ae94 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1729,7 +1729,7 @@ breakpoint_init_inferior (enum inf_context context) /* Likewise for watchpoints on local expressions. */ if (b->exp_valid_block != NULL) delete_breakpoint (b); - if (context == inf_starting) + else if (context == inf_starting) { /* Reset val field to force reread of starting value in insert_breakpoints. */ -- 2.30.2