aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-11-20 03:10:24 +0000
committerYao Qi <yao@codesourcery.com>2012-11-20 03:10:24 +0000
commitde9f1b683d9c03145db04e403be2410aea6d3186 (patch)
tree696a5c7c8121f399783e89a8ec28c4601685a573 /gdb/infrun.c
parent5c401a0ac67bc29de19af41e9fc898a68976805b (diff)
downloadgdb-de9f1b683d9c03145db04e403be2410aea6d3186.zip
gdb-de9f1b683d9c03145db04e403be2410aea6d3186.tar.gz
gdb-de9f1b683d9c03145db04e403be2410aea6d3186.tar.bz2
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 b29fd2f..e7c20e1 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);