kdb
[Top] [All Lists]

Re: KDB enhancements

To: linas@xxxxxxxxxxxxxx
Subject: Re: KDB enhancements
From: Keith Owens <kaos@xxxxxxx>
Date: Tue, 22 Jul 2003 07:35:35 +1000
Cc: kdb@xxxxxxxxxxx
In-reply-to: Your message of "Mon, 21 Jul 2003 11:13:18 EST." <20030721111318.B44292@xxxxxxxxxxxxxxxxxxxx>
Sender: kdb-bounce@xxxxxxxxxxx
On Mon, 21 Jul 2003 11:13:18 -0500, 
linas@xxxxxxxxxxxxxx wrote:
>On Sat, Jul 19, 2003 at 11:38:12AM +1000, Keith Owens wrote:
>> See skdb.c in an earlier post. It works (for given values of "works")
>> and lets you use gdb on a second machine into kdb instead of kgdb.  The
>> biggest problem was reliably connecting to a kernel that had already
>> entered kdb.
>
>Hmm. I presume some good handshaking protocol would solve the connection
>problem, right?

gdb 4 did not cope with kernels that had already entered the debugger
and removed breakpoints.  gdb thought that it was in control and did
not like kdb beinbg in control.

>What are the philosophical distinctions between kdb and kgdb?  

kgdb is gdb + a small kernel stub, with all the smarts in gdb.  kgdb
always requires a second machine, with a copy of the kernel objects.

kdb is a full blown kernel debugger, gdb is an optional add on to get
source level debugging.  kdb can work in the same machine or from a
second machine.

>Alternately: why is it a better idea to add gdb to kdb instead 
>of kdb features to kgdb?

Adding gdb to kdb gives source level debugging.  kdb knows about all
the special asm code in the kernel, gdb alone cannot backtrace through
a lot of the kernel asm code.


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