aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorOrjan Friberg <orjanf@axis.com>2004-04-26 09:02:41 +0000
committerOrjan Friberg <orjanf@axis.com>2004-04-26 09:02:41 +0000
commit7270d8f229f13ef08e41cc754a94dff18a6ada53 (patch)
treeb4cdfda3b7fd8b77d1b9c5968b591ab7b6400474 /gdb/remote.c
parent02d6293280974ac9f597c049a62b3b183cd36fa1 (diff)
downloadgdb-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/remote.c')
-rw-r--r--gdb/remote.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 1e173d2..384f011 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -4640,10 +4640,13 @@ remote_stopped_by_watchpoint (void)
return remote_stopped_by_watchpoint_p;
}
+extern int stepped_after_stopped_by_watchpoint;
+
static CORE_ADDR
remote_stopped_data_address (void)
{
- if (remote_stopped_by_watchpoint ())
+ if (remote_stopped_by_watchpoint ()
+ || stepped_after_stopped_by_watchpoint)
return remote_watch_data_address;
return (CORE_ADDR)0;
}