gdb/
Fix false GCC warning. * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
This commit is contained in:
parent
1e718ff1cc
commit
d07205c2f7
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
|
||||||
|
|
||||||
* breakpoint.c (update_watchpoint): Move code to change
|
* breakpoint.c (update_watchpoint): Move code to change
|
||||||
|
|
|
@ -11468,7 +11468,8 @@ do_enable_breakpoint (struct breakpoint *bpt, enum bpdisp disposition)
|
||||||
|
|
||||||
if (is_watchpoint (bpt))
|
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;
|
struct gdb_exception e;
|
||||||
|
|
||||||
TRY_CATCH (e, RETURN_MASK_ALL)
|
TRY_CATCH (e, RETURN_MASK_ALL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue