This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, MIPS] Extract PID from core file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]