[PATCH, MIPS] Extract PID from core file
Maciej W. Rozycki
macro@linux-mips.org
Fri Jul 3 13:19:00 GMT 2015
On Fri, 26 Jun 2015, Michael Eager wrote:
> MIPS BFD support for parsing the psinfo note record in
> a core file does not extract the PID value. Other targets
> (eg., x86) do extract the PID. MIPS Linux is different from
> other targets, in that it saves the PID as a 64-bit number
> (__kernel_pid_t is defined as ulong, although I can't find where).
The typedef is in linux/include/uapi/asm-generic/posix_types.h:
typedef int __kernel_pid_t;
so your change can't be right -- have you tried it with a big-endian core
file?
> Tested on MIPS32 (N32).
Hmm, n32 is MIPS64. MIPS32 is o32 only.
Maciej
More information about the Binutils
mailing list