Re: -lthr vs. -pthread

From: Marcel Moolenaar <marcel_at_xcllnt.net>
Date: Sun, 20 Jun 2004 17:26:51 -0700
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		 marcel_at_xcllnt.net
Received on Sun Jun 20 2004 - 22:27:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:58 UTC