*BSD News Article 32595


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!olivea!news.hal.COM!decwrl!tribune.usask.ca!sparkle!vineet
From: vineet@sparkle.usask.ca (Vineet Chikarmane)
Newsgroups: comp.unix.bsd
Subject: Source level kernel debugger for HP-UX
Date: 11 Jul 1994 03:27:59 GMT
Organization: University of Saskatchewan, Saskatoon, Canada
Lines: 44
Sender: vineet@sparkle (Vineet Chikarmane)
Distribution: world
Message-ID: <2vqe7v$go7@tribune.usask.ca>
NNTP-Posting-Host: sparkle.usask.ca
Keywords: debug, kernel, HP-UX

Hi,

I am making some kernel mods to HP-UX 8.0 running on a
cluster of series 400 (68030,40) machines. I am working
with the TCP/IP code and am handicapped by the apparent
lack of debugging support.  I currently use printfs (please!)
and I'd rather not. I am loathe to use adb.

I need something that will let me do source-level debugging of
the kernel in execution. Are there any of those thingies that
let you boot and debug a kernel on one machine while the debugger
itself runs on another?

I know there's something called kdb thats wired in, coz
nm /hp-ux| grep "kdb" spits the following:

mickey>% nm /hp-ux| grep "kdb"
0x00001516 T  _call_kdb
0x00149BA8 D  _call_kdb_on_break
0x00000DE6 T  _init_kdb
0x0011D110 D  _kdb_gets
0x00000910 T  _kdb_nop
0x0011D108 D  _kdb_printf
0x0011D10C D  _kdb_scanf

where hp-ux is the executable kernel file. However, I cant locate
the source for kdb in the sources we have, and there are'nt any
calls to it either. Obviously, its in the PROM or something.  So
whats this kdb?

I'd expect that when the kernel panics, and how often she does!,
I'd be dropped into the hands of a waiting kernel debugger. No
such luck. All I get is the PC, PS, and something like,

panic: Bus Error, couldnt dump core.

Thanks in advance,

Vineet
vineet@cs.usask.ca
vineet@weiner.trlabs.ca

P.S.: My dept has a bunch of source licenses from HP.