From: Michael Snyder Date: Tue, 31 Jul 2007 23:08:22 +0000 (+0000) Subject: 2007-07-31 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=967af18d0dd9f6ce0fd75f0e08865cbeae771c69;p=binutils-gdb.git 2007-07-31 Michael Snyder * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'. True and false paths are mutually exclusive. --- 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. */