From: Fred Fish Date: Thu, 21 Sep 2000 16:17:49 +0000 (+0000) Subject: * infttrace.c (update_thread_state_after_attach): Pass address X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c6b089eed6ce82a6569fb5ccd53e587d803b8ea;p=binutils-gdb.git * infttrace.c (update_thread_state_after_attach): Pass address of ttstate_t object, not the object itself. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 92bbe8e3011..c8dacffbdaa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-09-06 Fred Fish + + * infttrace.c (update_thread_state_after_attach): Pass address + of ttstate_t object, not the object itself. + 2000-09-18 Mark Kettenis * lin-lwp.c (stop_wait_callback): Remove bogus assertions in the diff --git a/gdb/infttrace.c b/gdb/infttrace.c index 9168ce31137..09e78f4cc69 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -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)