From: Pedro Alves <palves@redhat.com>
To: Abhijit Ray Chaudhury <abhijit.ray.chaudhury@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Fwd: Question regarding core dump debugging using gdb on armv4
Date: Mon, 08 Apr 2013 16:56:00 -0000 [thread overview]
Message-ID: <5162F6B8.7080101@redhat.com> (raw)
In-Reply-To: <CAACKNgW8d3qiYb1ao6+V3XpOJc7hnxY9oDAhUPD5LXjoxEYeyQ@mail.gmail.com>
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
next prev parent reply other threads:[~2013-04-08 16:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAACKNgWzC9t=OeO1N=EpoDGHtb5L6HssehYmEBJEuLC71O9hmQ@mail.gmail.com>
[not found] ` <CAACKNgVpk_JE_vOnB+3D3XVh=mE7Gww8nKpWQ3JOYwzmnXsApQ@mail.gmail.com>
2013-04-04 3:30 ` Abhijit Ray Chaudhury
2013-04-04 9:19 ` Pedro Alves
2013-04-08 3:27 ` Abhijit Ray Chaudhury
2013-04-08 16:37 ` Pedro Alves
2013-04-08 16:56 ` Pedro Alves [this message]
2013-04-08 3:54 ` Abhijit Ray Chaudhury
2013-04-08 16:48 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5162F6B8.7080101@redhat.com \
--to=palves@redhat.com \
--cc=abhijit.ray.chaudhury@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox