From de9f1b683d9c03145db04e403be2410aea6d3186 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 20 Nov 2012 03:10:24 +0000 Subject: [PATCH] gdb/ 2012-11-20 Yao Qi * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid' to deprecated_context_hook. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 613bf2e328..5d3760c757 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-11-20 Yao Qi + + * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid' + to deprecated_context_hook. + 2012-11-19 Yao Qi * infrun.c (infwait_state): Add static. diff --git a/gdb/infrun.c b/gdb/infrun.c index b29fd2ff34..e7c20e165b 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); -- 2.34.1