lkml.org 
[lkml]   [2000]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux/MANOS Kernel Debugger
On Tue, Sep 05, 2000 at 05:20:53PM -0600, Jeff V. Merkey wrote:
> I think it would not be hard to put this in. My problem is time and
> "debugging the debugger" in Linux. The codes at our site and anyone who
> wants to put it in is welcome to.

I looked at the Manos code and it seems to require a functional file system
to read the source code during debugging. When the kernel is stopped
in the debugger it is definitely not safe to access anything like a file
system in Linux (e.g. due to locking issues)

Without accessing the file system the debugger couldn't
do much more than assembly level debugging like KDB, which already works
fine. Precaching source is not practical. Developing a separate independent
file system module that works safely even from a stopped kernel (and would
still be functional enough so that you can compile and edit files on it)
would also be major work. I guess Manos solved it by using DOS for that,
but this is simply not possible in Linux.

The only sane way to do source level kernel debugging IMHO is to do
it from a second machine (sane =~ without being in deadlock country), which
also already works nicely using remote gdb + kgdb stub.


-Andi

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

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.255 / U:0.000 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site