linux-mips
[Top] [All Lists]

Re: how to get a process backtrace from kernel gdb?

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: how to get a process backtrace from kernel gdb?
From: Fuxin Zhang <fxzhang@ict.ac.cn>
Date: Wed, 22 Mar 2006 19:40:38 +0800
Cc: Srinivas Kommu <kommu@hotmail.com>, linux-mips@linux-mips.org
In-reply-to: <20060322113203.GA4544@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <4420940B.9030605@hotmail.com> <20060322105026.GA3129@linux-mips.org> <442130DA.8060407@ict.ac.cn> <20060322113203.GA4544@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 1.5 (Windows/20051201)
> 
>  a) Analyze the code with a simple frame unwinder along the lines of the
>     get_wchan implementation.  Simple but possibly fragile as compilers
>     continue to improve.
>  b) Bite the bullet and use the DWARD 2 frame unwind info and code.  More
>     complicated but will be a solid and correct solution albeit larger so
>     not acceptable for small embedded devices.
> 
> I fear we may have to do both, 2) as the prefered solution and 1) as the
> fallback solution.
OK, thanks. I will have a look at IA64's implementation and port it if
possible.
> 
>   Ralf
> 
> 
> 

<Prev in Thread] Current Thread [Next in Thread>