Date: Mon, 22 Mar 2004 19:15:05 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 49563 for review Message-ID: <200403230315.i2N3F5ud050242@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=49563 Change 49563 by marcel@marcel_nfs on 2004/03/22 19:14:06 Add td_tid to struct thread so that we can assign a thread ID to threads. This is needed by gdb. The kernel doesn't use thread IDs, so we need to assign them when we enter the debugger. Obviously you don't want to do that in the debugger, but I think that I'll end up wasting a lot of time trying to migrate the kernel to use thread IDs over process IDs. Affected files ... .. //depot/projects/gdb/sys/sys/proc.h#4 edit Differences ... ==== //depot/projects/gdb/sys/sys/proc.h#4 (text+ko) ==== @@ -274,6 +274,7 @@ int td_flags; /* (j) TDF_* flags. */ int td_inhibitors; /* (j) Why can not run. */ int td_pflags; /* (k) Private thread (TDP_*) flags. */ + int td_tid; /* XXX currently unused. */ struct kse *td_last_kse; /* (j) Previous value of td_kse. */ struct kse *td_kse; /* (j) Current KSE if running. */ int td_dupfd; /* (k) Ret value from fdopen. XXX */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403230315.i2N3F5ud050242>