2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Sun, 2 Dec 2007 21:32:46 +0000 (21:32 +0000)
committerPierre Muller <muller@sourceware.org>
Sun, 2 Dec 2007 21:32:46 +0000 (21:32 +0000)
* win32-nat.c (win32_resume): Set the trace bit
in the thread identified by inferior_ptid.

gdb/ChangeLog
gdb/win32-nat.c
gdb/windows-nat.c

index f01a025e6ee3594b219b42623aef5b0c4ef89428..358dc6787cfc051bb3e70ec39c55270dde349abd 100644 (file)
@@ -1,6 +1,12 @@
 2007-12-02  Pierre Muller  <muller@ics.u-strasbg.fr>
 
-       *win32-nat.c (open_process_used): New static variable.
+       * win32-nat.c (win32_resume): Set the trace bit
+       in the thread identified by inferior_ptid.
+
+
+2007-12-02  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-nat.c (open_process_used): New static variable.
        (win32_init_thread_list): Remove call to CloseHandle for thread.
        (win32_delete_thread): Ditto.
        (fake_create_process): Set open_process_used if OpenProcess call is
index c6250519a534616d352522073eea51206bb09b3d..f389a0fbd91d04fb8ca87a7e41f8d9f78ca9bea4 100644 (file)
@@ -1232,7 +1232,7 @@ win32_resume (ptid_t ptid, int step, enum target_signal sig)
               pid, step, sig));
 
   /* Get context for currently selected thread */
-  th = thread_rec (current_event.dwThreadId, FALSE);
+  th = thread_rec (PIDGET (inferior_ptid), FALSE);
   if (th)
     {
       if (step)
index c6250519a534616d352522073eea51206bb09b3d..f389a0fbd91d04fb8ca87a7e41f8d9f78ca9bea4 100644 (file)
@@ -1232,7 +1232,7 @@ win32_resume (ptid_t ptid, int step, enum target_signal sig)
               pid, step, sig));
 
   /* Get context for currently selected thread */
-  th = thread_rec (current_event.dwThreadId, FALSE);
+  th = thread_rec (PIDGET (inferior_ptid), FALSE);
   if (th)
     {
       if (step)
This page took 0.029132 seconds and 4 git commands to generate.