Subject: Re: debuging NetBSD
To: None <pete@RockyMountain.rahul.net>
From: David S. Miller <davem@caip.rutgers.edu>
List: netbsd-ports
Date: 10/11/1995 20:57:57
   Date: Wed, 11 Oct 1995 14:08:17 -0700
   From: Pete Delaney <pete@RockyMountain.Rahul.Net>

   Know anything about using kgdb. I found it a Most Excellent tool 
   for kernel debuging. It would be nice if L1-A breaks could be cascaded
   as OBP does with kgdb. So with DDB and kgdb installed, the first break
   going into the kgdb stub, from their breaking into DDB, and from their
   breaking into OBP.

	   OBP <- DDB <- KGDB

Note that since kadb and kgdb use different break point software
traps, debugging using them simultaneously is possible (I have done
this under Linux).  Although it does get a bit hairy.  Whats this is
useful for is that it is easier to debug low-level assembly code using
kadb, and then debug your c-algorithms using kgdb.

I'm also starting to learn that using debuggers on kernels begins to
make one dependant upon those tools and sometimes you end up coding
much sloppier.  I get more done just staring at and verifying my code
over a weekend than 24hrs a day of kgdb can do me for a month ;-)

Later,
David S. Miller
davem@caip.rutgers.edu