summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2008-10-20 02:45:27 +0000
committerHui Zhu <teawater@gmail.com>2008-10-20 02:45:27 +0000
commit4879fcb5e952a0a7ff70d0264f59332acb747261 (patch)
tree4f6d704841c87200a8a550302fc9aaa38acd068b
parent9a5590f36f7249d136fbbb87593182effa21faae (diff)
downloadgdb-4879fcb5e952a0a7ff70d0264f59332acb747261.tar.gz
2008-10-19 Hui Zhu <teawater@gmail.com>
* infrun.c (handle_inferior_event): Set "stop_pc" when TARGET_WAITKIND_NO_HISTORY.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 79382ee45e0..af41068ed34 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-19 Hui Zhu <teawater@gmail.com>
+
+ * infrun.c (handle_inferior_event): Set "stop_pc" when
+ TARGET_WAITKIND_NO_HISTORY.
+
2008-10-18 Hui Zhu <teawater@gmail.com>
Remove "to_support_record_wait".
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 4bac5ea5663..fc388a7ab5a 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2162,6 +2162,7 @@ handle_inferior_event (struct execution_control_state *ecs)
case TARGET_WAITKIND_NO_HISTORY:
/* Reverse execution: target ran out of history info. */
+ stop_pc = read_pc ();
print_stop_reason (NO_HISTORY, 0);
stop_stepping (ecs);
return;