* infttrate.c (child_acknowledge_created_inferior): Pass
authorJeff Law <law@redhat.com>
Wed, 19 Dec 2001 19:16:50 +0000 (19:16 +0000)
committerJeff Law <law@redhat.com>
Wed, 19 Dec 2001 19:16:50 +0000 (19:16 +0000)
        correct argument to add_thread.
        (update_thread_state_after_attach): Likewise.

gdb/ChangeLog
gdb/infttrace.c

index ddb8c8418935ca2a8db167853e4a38975686d1ef..69fa7641fcec845912c50d83c7bc1d7d9ff931a3 100644 (file)
@@ -1,3 +1,9 @@
+Wed Dec 19 12:18:57 2001  Jeffrey A Law  (law@redhat.com)
+
+       * infttrate.c (child_acknowledge_created_inferior): Pass
+       correct argument to add_thread.
+       (update_thread_state_after_attach): Likewise.
+
 2001-12-19  Fernando Nasser  <fnasser@redhat.com>
 
        * config/arm/tm-arm.h: Properly define SOFTWARE_SINGLE_STEP_P.
index a920ead03c8cd6fadeb9c295fad4744320b8e472..c3216a5f0e02543b48a5956f25f757df98ba6ee3 100644 (file)
@@ -3123,7 +3123,7 @@ child_acknowledge_created_inferior (int pid)
    *    the process safely to ask what it is.  Anyway, we'll
    *    add it when it gets the EXEC event.
    */
-  add_thread (pid);            /* in thread.c */
+  add_thread (pid_to_ptid (pid));              /* in thread.c */
 
   /* We can now set the child's ttrace event mask.
    */
@@ -4764,7 +4764,7 @@ update_thread_state_after_attach (int pid, attach_continue_t kind_of_go)
            }
        }
 
-      add_thread (tid);                /* in thread.c */
+      add_thread (pid_to_ptid (pid));          /* in thread.c */
     }
 
 #ifdef PARANOIA