cvs commit: src/sys/kern imgact_elf.c

Scott Long scottl at freebsd.org
Mon Jul 19 02:39:42 PDT 2004


On Sun, 18 Jul 2004, Marcel Moolenaar wrote:
> marcel      2004-07-18 20:28:07 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             imgact_elf.c
>   Log:
>   After maintaining previous behaviour in writing out the core notes, it's
>   time now to break with the past: do not write the PID in the first note.
>   Rationale:
>   1.  [impact of the breakage] Process IDs in core files serve no immediate
>       purpose to the debugger itself. They are only useful to relate a core
>       file to a process. This can provide context to the person looking at
>       the core file, provided one keeps track of this. Overall, not having
>       the PID in the core file is only in very rare occasions unfortunate.
>   2.  [reason of the breakage] Having one PRSTATUS note contain the PID,
>       while all others contain the LWPID of the corresponding kernel thread
>       creates an irregularity for the debugger that cannot easily be worked
>       around. This is caused by libthread_db correlating user thread IDs to
>       kernel thread (aka LWP) IDs and thus aware of the actual LWPIDs.
>
>   Update comments accordingly.
>
>   Revision  Changes    Path
>   1.153     +5 -8      src/sys/kern/imgact_elf.c
>

I've seen concern (maybe in private email, can't check at the moment)
recently that loosing the PID info is undesirable.  Is there any way that
it can be included again, maybe in something other than a PRSTATUS object?
I'm not very familiar with how this stuff works, so forgive me if it's a
naive question.

Scott


More information about the cvs-src mailing list