gdb/
authorYao Qi <yao@codesourcery.com>
Tue, 20 Nov 2012 03:10:24 +0000 (03:10 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 20 Nov 2012 03:10:24 +0000 (03:10 +0000)
2012-11-20  Yao Qi  <yao@codesourcery.com>

* infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
to deprecated_context_hook.

gdb/ChangeLog
gdb/infrun.c

index 613bf2e328136b54f51ddf113fd176b6dfc70db4..5d3760c757eeead85347c640d7fd59cf64eaac5b 100644 (file)
@@ -1,3 +1,8 @@
+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.
index b29fd2ff345822ebc68918b2cc00506ee9d0a5b6..e7c20e165b36d4c1f29cd333b73b06bac190ccbd 100644 (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);