On Sun, Jun 20, 2004 at 05:07:56PM -0700, Julian Elischer wrote:
> this is a question for marcel,
> but basically "this may change". In current code the thread_id of the
> first thread is set to be equal to the PID. Marcel and I have discussed
> reworking the thread_id code and in the new code this will possibly not
> be true.

Yes. We need to be sure however that we don't break core file
creation. Historically the PRSTATUS note in the core file has
the process ID. The current thread LWP allocation allows us
to put the Thread ID in the note and have as many notes as there
are threads. Non-threaded processes will create core files that
are compatible with older tools.

If we change the LWP allocation, we will break this and should
probably use LWPSTATUS notes for the thread states and use the
PRSTATUS note for the process state. In any case, this requires
modifications to binutils, so needs to be coordinated.

-- 
 Marcel Moolenaar         USPA: A-39004          [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to