diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 32c6491..484ace5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> + + Fix false GCC warning. + * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state. + 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com> * breakpoint.c (update_watchpoint): Move code to change diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index e265135..d8eb891 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -11468,7 +11468,8 @@ do_enable_breakpoint (struct breakpoint *bpt, enum bpdisp disposition) if (is_watchpoint (bpt)) { - enum enable_state orig_enable_state; + /* Initialize it just to avoid a GCC false warning. */ + enum enable_state orig_enable_state = 0; struct gdb_exception e; TRY_CATCH (e, RETURN_MASK_ALL) |