aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-05-03 07:29:17 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-05-03 07:29:17 +0000
commitd07205c2f7de1d447e2cad21372b113e694765ce (patch)
tree1ecd885ffd9a9068594f5d40cac807c6356f5104 /gdb
parent1e718ff1cc2a3eb7e63da14ae8c425570fbfa270 (diff)
downloadgdb-d07205c2f7de1d447e2cad21372b113e694765ce.zip
gdb-d07205c2f7de1d447e2cad21372b113e694765ce.tar.gz
gdb-d07205c2f7de1d447e2cad21372b113e694765ce.tar.bz2
gdb/
Fix false GCC warning. * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c3
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)