This is the mail archive of the
rda@sourceware.org
mailing list for the rda project.
[commit] Initialize `do_step' in lwp struct initialization
- From: Kevin Buettner <kevinb at redhat dot com>
- To: rda at sources dot redhat dot com
- Date: Thu, 14 Oct 2010 11:11:04 -0700
- Subject: [commit] Initialize `do_step' in lwp struct initialization
I've just committed the patch below.
* lwp-pool.c (hash_find): Initialize `do_step' in the newly allocated
lwp struct.
Index: lwp-pool.c
===================================================================
RCS file: /cvs/src/src/rda/unix/lwp-pool.c,v
retrieving revision 1.6
diff -u -p -r1.6 lwp-pool.c
--- lwp-pool.c 11 Nov 2005 20:29:57 -0000 1.6
+++ lwp-pool.c 14 Oct 2010 18:07:43 -0000
@@ -489,6 +489,7 @@ hash_find (pid_t lwp)
l->state = lwp_state_uninitialized;
l->next = l->prev = NULL;
l->status = 42;
+ l->do_step = 0;
hash[slot] = l;
hash_population++;