> 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
|