summaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorqiyao <qiyao>2012-11-20 03:10:18 +0000
committerqiyao <qiyao>2012-11-20 03:10:18 +0000
commit74a9b3249510beaf4afa1641b473b94e27323914 (patch)
treed522085acb137268bfc85ee21f81755b4b6ff583 /gdb/infrun.c
parenta38d9b1ea39dac6917c310e5a42847c9e907556c (diff)
downloadgdb-74a9b3249510beaf4afa1641b473b94e27323914.tar.gz
gdb/
2012-11-20 Yao Qi <yao@codesourcery.com> * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid' to deprecated_context_hook.
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 b29fd2ff345..e7c20e165b3 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3783,7 +3783,7 @@ handle_inferior_event (struct execution_control_state *ecs)
context_switch (saved_singlestep_ptid);
if (deprecated_context_hook)
- deprecated_context_hook (pid_to_thread_id (ecs->ptid));
+ deprecated_context_hook (pid_to_thread_id (saved_singlestep_ptid));
resume (1, GDB_SIGNAL_0);
prepare_to_wait (ecs);