* TLS info and core files?
@ 2007-03-27 13:20 Tom Horsley
2007-03-27 18:39 ` Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Tom Horsley @ 2007-03-27 13:20 UTC (permalink / raw)
To: linux-kernel; +Cc: bugsy
As a debugger developer, I find it quite handy when debugging
a real process to use the PTRACE_GET_THREAD_AREA or
PTRACE_GET_ARCH_PRCTL calls to dig up pthread IDs without
having to know too much about the internals of the pthread
library. (It would be even handier if the info was more
consistent across architectures :-).
In a core file, that information has all disappeared.
Should core files have NOTE entries added for some sort of
thread local storage info to be recorded? (Whatever the
kernel happens to know that won't be accessible anymore
after the process is gone, which would probably vary
from architecture to architecture.)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: TLS info and core files?
2007-03-27 13:20 TLS info and core files? Tom Horsley
@ 2007-03-27 18:39 ` Andi Kleen
0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2007-03-27 18:39 UTC (permalink / raw)
To: Tom Horsley; +Cc: linux-kernel, bugsy
Tom Horsley <tom.horsley@ccur.com> writes:
>
> Should core files have NOTE entries added for some sort of
> thread local storage info to be recorded? (Whatever the
> kernel happens to know that won't be accessible anymore
> after the process is gone, which would probably vary
> from architecture to architecture.)
I think that would be a good idea. Shouldn't be very hard
to implement. Please send a patch.
We also miss some other information in core files
I found useful in the past, like the CR3 and some other registers.
The printks on x86-64 actually give more information
than a core dump in some cases.
-Andi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-27 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-27 13:20 TLS info and core files? Tom Horsley
2007-03-27 18:39 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®