Re: [PATCH -mm 42/43] x86 core dump TLS

From: Tom Horsley
Date: Wed Oct 20 2010 - 10:37:22 EST


Way back in 2007 this patch started wending its way into the
kernel:

http://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg242889.html

That adds the NT_386_TLS NOTE segment entries to core files, which
are quite handy for recovering the pthread_self() values for
multiple threads in a core file from a 32 bit x86 threaded program.

Does anyone know why there doesn't appear to be any similar info
dumped for the thread info in 64 bit x86_64 threaded programs?
The pthread library uses the arch_prctl() service to setup the
segment registers there, and it would be handy for debuggers
to be able to recover the thread info in 64 bit core files as well.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/