2007-07-31 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 23:08:22 +0000 (23:08 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 23:08:22 +0000 (23:08 +0000)
* breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
True and false paths are mutually exclusive.

gdb/ChangeLog
gdb/breakpoint.c

index cedaf0e64c343ef274addcb1e96bb5edc35ec82a..2c178b1100f6fd9a4df924944d462af5b86d819d 100644 (file)
@@ -1,5 +1,8 @@
 2007-07-31  Michael Snyder  <msnyder@access-company.com>
 
+       * 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
index 2c67b53b5d33a6df32240015d60e864f743a24e5..8c27a24ae94ccb400af8d5fe5148f712712ab56f 100644 (file)
@@ -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.  */