* infttrace.c (update_thread_state_after_attach): Pass address
authorFred Fish <fnf@specifix.com>
Thu, 21 Sep 2000 16:17:49 +0000 (16:17 +0000)
committerFred Fish <fnf@specifix.com>
Thu, 21 Sep 2000 16:17:49 +0000 (16:17 +0000)
of ttstate_t object, not the object itself.

gdb/ChangeLog
gdb/infttrace.c

index 92bbe8e30111bf6a466e99c0e072295b09c301ec..c8dacffbdaae92f33ad6b428acf4beac39823414 100644 (file)
@@ -1,3 +1,8 @@
+2000-09-06  Fred Fish  <fnf@cygnus.com>
+
+       * infttrace.c (update_thread_state_after_attach): Pass address
+       of ttstate_t object, not the object itself.
+
 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
 
        * lin-lwp.c (stop_wait_callback): Remove bogus assertions in the
index 9168ce3113764b84f60b5ad17052f9e8a63b9e87..09e78f4cc69098ad5b77bb464aa9bd620b1aa69c 100644 (file)
@@ -4711,7 +4711,7 @@ update_thread_state_after_attach (int pid, attach_continue_t kind_of_go)
       if (NULL == p)           /* ?We just added it! */
        error ("Internal error adding a thread on attach.");
 
-      copy_ttstate_t (&p->last_stop_state, thread_state);
+      copy_ttstate_t (&p->last_stop_state, &thread_state);
       p->have_state = 1;
 
       if (DO_ATTACH_CONTINUE == kind_of_go)