*BSD News Article 24776


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!mel.dit.csiro.au!its.csiro.au!dmssyd.syd.dms.CSIRO.AU!metro!basser.cs.su.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!news.kei.com!uuspew.uu.net!uunet!think.com!spdcc!das-news.harvard.edu!garage!dm
From: maziere1@das.harvard.edu (David Mazieres)
Subject: SunOS + gdb <====> BSD 4.4 + kgdb_stubs on Sparc ?
Message-ID: <1993Dec8.071711.19809@das.harvard.edu>
Originator: dm@garage
Sender: usenet@das.harvard.edu (Network News)
Organization: Division of Applied Sciences, Harvard University
Date: Wed, 8 Dec 1993 07:17:11 GMT
Lines: 26

Does anyone out there have version of gdb that can run under SunOS and
debug a BSD 4.4 kernel over a serial line?

BSD came with two versions of gdb, version 4.7 (/usr/bin/gdb) and
version 4.4 (/usr/contrib/bin/gdb-4.4.lbl).  Version 4.7 seems to have
serious trouble reading the values of global variables.  Version 4.4
seems to work well.  However, I could only find source to version 4.7
on the distribution tape.

I tried configuring the version of 4.7 included as
                ./configure sparc-sun-sunos -target=sparc-sun-bsd
but the build ran into serious problems, for instance with the
sparcbsd-tdep.c file, which seemed to require a mixture of sunos and
bsd header files.  Moreover, I don't want to waste to much time compiling
gdb 4.7, since it seems to have other problems anyway.

If anyone out there is debugging BSD kernels from a sunos machine, could
you tell me what you are doing?  If not, can someone tell me where I can
ftp source code for gdb-4.4.lbl (an archie search turns up blank)?

Any help or advice would be greatly appreciated.  Thank you.
-- 
    ===================================================================
    Please don't send me e-mail at the address in the header.  I cannot
    receive mail at that address.  My correct E-mail address is
                         maziere1@das.harvard.edu