2012-11-20  Yao Qi  <yao@codesourcery.com>

	* infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
	to deprecated_context_hook.
This commit is contained in:
Yao Qi
2012-11-20 03:10:24 +00:00
parent 5c401a0ac6
commit de9f1b683d
2 changed files with 6 additions and 1 deletions

View File

@@ -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);