From: Jean-Marc Saffroy <saffroy@gmail.com>
To: Vivek Goyal <vgoyal@in.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [announce] kdump2gdb: analyze kdumps with gdb (well, almost)
Date: Tue, 10 Oct 2006 20:57:47 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0610091958170.9250@erda.mds> (raw)
In-Reply-To: <20061009132855.GA25559@in.ibm.com>
Hello Vivek,
On Mon, 9 Oct 2006, Vivek Goyal wrote:
> On Fri, Oct 06, 2006 at 06:42:00PM +0200, Jean-Marc Saffroy wrote:
>> Hello folks,
>>
>> Following earlier discussions on how nice it would be to use gdb on kdump
>> cores, I took some time and wrote a small tool to do just that:
>> http://jeanmarc.saffroy.free.fr/kdump2gdb/
>>
>> The main limitation is that there is absolutely no backtrace of
>> non-running tasks yet, but I will try to see how it can be done. Also, it
>> works only on x86-64, but people are welcome to contribute ports. :)
>
> Hi Jean,
>
> Interesting stuff. Documentation/kdump/gdbmacros.txt already seems to
> be containing various macros for seeing the back traces of non-running
> threads. Won't these help?
Not quite, they need an update for 2.6.18:
(gdb) source kernel/linux-2.6.18/Documentation/kdump/gdbmacros.txt
(gdb) btt
There is no member named pid_list.
BTW I think these macro could use the $task->thread_group list to find
threads in a process (at least it seems to work for my own "ps" macro).
Anyway, genuine gdb backtraces would be worlds better, so I'll take some
time to see how to add it. Given a proper thread context, gdb can display
function params and locals in each frame (if they are not optimized out).
The macros you mention remain useful in adverse conditions (I used similar
tricks in the past, with lcrash), but I suspect that on average gdb will
do its job as expected.
Cheers,
--
saffroy@gmail.com
prev parent reply other threads:[~2006-10-10 18:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-06 16:42 Jean-Marc Saffroy
2006-10-09 13:28 ` Vivek Goyal
2006-10-10 18:57 ` Jean-Marc Saffroy [this message]
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=Pine.LNX.4.64.0610091958170.9250@erda.mds \
--to=saffroy@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vgoyal@in.ibm.com \
/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
all inboxes | Powered by JetHome®