lkml.org 
[lkml]   [2005]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[Questions] About experience of using kgdb for 2.6.10 kernel
Hello, All

Recently I use kgdb for 2.6.10 kernel to debug driver modules. I got
the kgdb patch from kgdb CVS server. Here I have some experience of
using it with questions.

1. I use gdbmod-2.2 which is claimed to support automatically load
module symbol to correct address, but it don't do as that. I have to
manually add .text/.data/.bss sections address as add-symbol-file
parameters in gdb commands. Does anybody meet this?
2. I can't add one breakpiont for codes in symbol unless I stop in
sys_init_module and use "step" into module_init routine. It's not
convenient for module debugging, because every time I has to add
breakpoints in module_init, even I don't want to debug it. :(
3. The connection often hangs with printing "error packet" message
especially adding breakpoints or strike "n" quickly for multiple
times. And then the debug can't continue without restart.

Anyway, kgdb is a very good tool for kernel debugging. But from my
experience, it's not stable -- or my usage faults? Is anybody willing
to share with me his experience/knowledge?

Thanks much,
Kent
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-09-19 16:49    [W:0.020 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site