Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Dec 2006 20:07:34 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        "Kevin Sanders" <newroswell@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Tools for FreeBSD development
Message-ID:  <20061203200734.4a678cdc@Magellan.Leidinger.net>
In-Reply-To: <375baf50612030823p189d30f8j88507c058ce03e1f@mail.gmail.com>
References:  <eb7c8e2e0612021224x13598151ya58e471c9dfaa3b4@mail.gmail.com> <eb7c8e2e0612021528h47239e5cl3cf0c1e08e399329@mail.gmail.com> <20061202210741.02e0728a@kan.dnsalias.net> <375baf50612022005i6b9a174w5d251e710d8cefc@mail.gmail.com> <20061203064956.GB2405@kobe.laptop> <45728A19.7050300@u.washington.edu> <20061203101352.K40536@fledge.watson.org> <375baf50612030823p189d30f8j88507c058ce03e1f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting "Kevin Sanders" <newroswell@gmail.com> (Sun, 3 Dec 2006 08:23:24 -0800):

> On 12/3/06, Robert Watson <rwatson@freebsd.org> wrote:
> > If using FreeBSD on i386/amd64 boxes, use PXE.  There are quite a few "instant
> > setup" web pages out there that tell you how to get it running.  pxeboot makes
> > life incredibly easy, as you can load kernels, modules, configurations, etc,
> > over NFS.
> >
> > Robert N M Watson
> > Computer Laboratory
> > University of Cambridge
> 
> Thanks for th tips everyone.  My shop has all the VMware tools, and
> I've used QEMU, but I prefer to develop on a real box and debug over a
> serial port on a second box.  I'll give pxeboot a shot tomorrow.
> 
> While we're on this topic, what is the best way to debug kernel
> modules.  I would like the ability to kldload my kernel module, set a
> couple break points and single step through a section of code (at
> least).

cd <your kernel build directory>  # I'm using the old way of building
make gdbinit

In kgdb you can now use "getsyms" if you debug remotely (I haven't
tested this) or "kldsyms" if you debug locally to load the debug
symbols.

Bye,
Alexander.

-- 
Groundskeepers stole the root password
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061203200734.4a678cdc>