This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: Fwd: Question regarding core dump debugging using gdb on armv4


On 04/08/2013 04:27 AM, Abhijit Ray Chaudhury wrote:
> From your answer it looked like I need lot of ELF parsing , so I think
> I need to invoke user level program when core dump happens.

No big elf parsing, just browsing through some
structures:

  OS auxiliary vector (which the kernel has access to)
   -> find PT_DYNAMIC program header
     -> find DT_DEBUG dyntag
        -> find r_debug
           -> follow r_debug.

But I definitely agree a user level program would be better than
hacking this in the kernel, which IMO wouldn't be likely accepted
upstream.

-- 
Pedro Alves


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