aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-06-22 19:46:40 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-06-22 19:46:40 +0000
commit46587c4207a56d8b3011c2ccb640bf31fedfbe58 (patch)
tree830b1e4565fea0e25df3d909ade83f2de1a4346b /gdb/infrun.c
parentaef68c486969aee4fa8ce103c4aea2fe5c02c389 (diff)
downloadfsf-binutils-gdb-46587c4207a56d8b3011c2ccb640bf31fedfbe58.zip
fsf-binutils-gdb-46587c4207a56d8b3011c2ccb640bf31fedfbe58.tar.gz
fsf-binutils-gdb-46587c4207a56d8b3011c2ccb640bf31fedfbe58.tar.bz2
2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
* infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint to -1. * breakpoint.c (bpstat_stop_status): Move check for ignoring untriggered watchpoints to a separate if clause. Update function comment regarding STOPPED_BY_WATCHPOINT argument.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 4581646..e7af5d9 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1252,7 +1252,7 @@ handle_inferior_event (struct execution_control_state *ecs)
defined in the file "config/pa/nm-hppah.h", accesses the variable
indirectly. Mutter something rude about the HP merge. */
int sw_single_step_trap_p = 0;
- int stopped_by_watchpoint = 0;
+ int stopped_by_watchpoint = -1; /* Mark as unknown. */
/* Cache the last pid/waitstatus. */
target_last_wait_ptid = ecs->ptid;