2012-11-20  Yao Qi  <yao@codesourcery.com>
	* infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
	to deprecated_context_hook.
+2012-11-20  Yao Qi  <yao@codesourcery.com>
+
+       * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
+       to deprecated_context_hook.
+
 2012-11-19  Yao Qi  <yao@codesourcery.com>
 
        * infrun.c (infwait_state): Add static.
 
 
          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);