PERFORCE change 49563 for review
Marcel Moolenaar
marcel at FreeBSD.org
Mon Mar 22 19:15:06 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=49563
Change 49563 by marcel at 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 */
More information about the p4-projects
mailing list