aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-31 23:08:22 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-31 23:08:22 +0000
commit967af18d0dd9f6ce0fd75f0e08865cbeae771c69 (patch)
treef24c1f6150b37ed3127e4cbb302108463b76b16f
parent40742ab60acd9f4e347ee28d7087348b8b6c9912 (diff)
downloadgdb-967af18d0dd9f6ce0fd75f0e08865cbeae771c69.zip
gdb-967af18d0dd9f6ce0fd75f0e08865cbeae771c69.tar.gz
gdb-967af18d0dd9f6ce0fd75f0e08865cbeae771c69.tar.bz2
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.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/breakpoint.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cedaf0e..2c178b1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2c67b53..8c27a24 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. */