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.
This commit is contained in:
Michael Snyder
2007-07-31 23:08:22 +00:00
parent 40742ab60a
commit 967af18d0d
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2007-07-31 Michael Snyder <msnyder@access-company.com> 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. * event-top.c (command_line_handler): Add pedantic return.
* f-valprint.c (info_common_command): Bail out to prevent null * f-valprint.c (info_common_command): Bail out to prevent null

View File

@ -1729,7 +1729,7 @@ breakpoint_init_inferior (enum inf_context context)
/* Likewise for watchpoints on local expressions. */ /* Likewise for watchpoints on local expressions. */
if (b->exp_valid_block != NULL) if (b->exp_valid_block != NULL)
delete_breakpoint (b); delete_breakpoint (b);
if (context == inf_starting) else if (context == inf_starting)
{ {
/* Reset val field to force reread of starting value /* Reset val field to force reread of starting value
in insert_breakpoints. */ in insert_breakpoints. */