This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] 2nd thinko in infttrace.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH] 2nd thinko in infttrace.c
- From: fnf at ninemoons dot com
- Date: Wed, 6 Sep 2000 19:09:01 -0700 (MST)
- Cc: fnf at ninemoons dot com
- Reply-To: fnf at ninemoons dot com
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.
Index: infttrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infttrace.c,v
retrieving revision 1.3
diff -c -p -r1.3 infttrace.c
*** infttrace.c 2000/07/30 01:48:25 1.3
--- infttrace.c 2000/09/07 00:30:19
*************** update_thread_state_after_attach (int pi
*** 4711,4717 ****
if (NULL == p) /* ?We just added it! */
error ("Internal error adding a thread on attach.");
! copy_ttstate_t (&p->last_stop_state, thread_state);
p->have_state = 1;
if (DO_ATTACH_CONTINUE == kind_of_go)
--- 4711,4717 ----
if (NULL == p) /* ?We just added it! */
error ("Internal error adding a thread on attach.");
! copy_ttstate_t (&p->last_stop_state, &thread_state);
p->have_state = 1;
if (DO_ATTACH_CONTINUE == kind_of_go)