xfs
[Top] [All Lists]

Re: Possible use of kgdb on XFS?

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Possible use of kgdb on XFS?
From: Zhihui Zhang <bf20761@xxxxxxxxxxxxxx>
Date: Thu, 24 Apr 2003 21:33:02 -0400 (EDT)
Cc: Steve Lord <lord@xxxxxxx>, Andi Kleen <ak@xxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
> I know that XFS has a built-in KDB. However, KDB seems to be an assembly
> language debugger and I am not familar with it.  Is there a XFS patch
> that I can use along with patches available at
> http://kgdb.sourceforge.net without any conflict? I have tried to apply
> split patches of XFS. I still
> got rejections when I apply the kgdb patch last.

I started with linux 2.4.20 and applied the following patches:

patch -p1 < ../xfs-2.4.20-split-only
patch -p1 < ../xfs-2.4.20-split-quota32
patch -p1 < ../xfs-2.4.20-split-kernel

Then I applied the kgdb patch for 2.4.20 found on the web:

patching file include/asm-i386/ioctls.h
Hunk #1 FAILED at 67.
1 out of 1 hunk FAILED -- saving rejects to file
include/asm-i386/ioctls.h.rej

I manually add the rejected line:

+ #define TIOCGDB         0x547F  /* enable GDB stub mode on this tty */

Then I can comiple the kernel and use gdb on it. Only when I start gdb, I
got:

warning: shared libarary handler failed to enable breakpoint.

Anyway, it seems working.  Thanks for your suggestions!

-Zhihui



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