diff options
author | Orjan Friberg <orjanf@axis.com> | 2004-04-26 09:02:41 +0000 |
---|---|---|
committer | Orjan Friberg <orjanf@axis.com> | 2004-04-26 09:02:41 +0000 |
commit | 7270d8f229f13ef08e41cc754a94dff18a6ada53 (patch) | |
tree | b4cdfda3b7fd8b77d1b9c5968b591ab7b6400474 /gdb/infrun.c | |
parent | 02d6293280974ac9f597c049a62b3b183cd36fa1 (diff) | |
download | gdb-7270d8f229f13ef08e41cc754a94dff18a6ada53.zip gdb-7270d8f229f13ef08e41cc754a94dff18a6ada53.tar.gz gdb-7270d8f229f13ef08e41cc754a94dff18a6ada53.tar.bz2 |
2004-04-26 Orjan Friberg <orjanf@axis.com>
From Paul Koning <pkoning@equallogic.com>:
* breakpoint.c (free_valchain): New function.
(insert_bp_location, delete_breakpoint): Use free_valchain.
(remove_breakpoint): Do not remove the valchain.
(bpstat_stop_status): If not stopped by watchpoint, skip
watchpoints when generating stop status list.
* infrun.c (handle_inferior_event): Make
stepped_after_stopped_by_watchpoint a global variable.
* remote.c (remote_stopped_data_address): Return watch data
address rather than zero if stepped_after_stopped_by_watchpoint is
set.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 0b4f05a..f546602 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1356,6 +1356,8 @@ adjust_pc_after_break (struct execution_control_state *ecs) by an event from the inferior, figure out what it means and take appropriate action. */ +int stepped_after_stopped_by_watchpoint; + void handle_inferior_event (struct execution_control_state *ecs) { @@ -1364,7 +1366,6 @@ handle_inferior_event (struct execution_control_state *ecs) isn't used, then you're wrong! The macro STOPPED_BY_WATCHPOINT, defined in the file "config/pa/nm-hppah.h", accesses the variable indirectly. Mutter something rude about the HP merge. */ - int stepped_after_stopped_by_watchpoint; int sw_single_step_trap_p = 0; /* Cache the last pid/waitstatus. */ |