On 2011-10-18 15:08, Christoph Hellwig wrote:
> On Tue, Oct 18, 2011 at 02:47:39PM +0200, Jan Kiszka wrote:
>>>> Crash can also do live system analysis. :)
>>>
>>> crash in fact is gdb - with a lot of additional commands.
>>
>> Is there a trick to make it work against a gdbserver?
> 
> No idea.  I just noticed that crash was built around a gdb source
> tree and additional files when I had to hack it for a new kernel
> version a while ago.
> 
> The optimum would be if all the crash changes were merged back
> into upstream gdb, but I'm not sure the gdb community would like
> to see all that very linux kernel specific code (especially given that it's
> very version dependent)

That's why I'm advocating gdb scripts, maybe maintained inside the
kernel tree.

But I need to look closer as well to see if vanilla gdb is already able
to provide all registers used by crash so far (surely not all required
for perfect debugging, but that's a long-known issue).

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

Reply via email to