Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2007 17:47:30 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Dave Arsenault <cynical.nihilist@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: How should i start working on kernel programming?
Message-ID:  <20070306064730.GB875@turion.vk2pj.dyndns.org>
In-Reply-To: <2f029c1c0703051231k7bc917d3ybb4bd236a242e6c1@mail.gmail.com>
References:  <b8c16adc0703022051x35adb573g3de187aae7f310d9@mail.gmail.com> <20070303102954.GE9421@turion.vk2pj.dyndns.org> <2f029c1c0703051231k7bc917d3ybb4bd236a242e6c1@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--jho1yZJdad60DJr+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2007-Mar-05 15:31:09 -0500, Dave Arsenault <cynical.nihilist@gmail.com> =
wrote:
>How would I go about debugging a LKM. I am currently working on a simple
>kernel module that overwrites the open() syscall and sends the output
>through a parsing routine.

Have a read of /usr/src/tools/debugscripts/README
I haven't tried setting breakpoints but other kgdb functions work with KLDs.

--=20
Peter Jeremy

--jho1yZJdad60DJr+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFF7Q6C/opHv/APuIcRAi4QAJ9aS5C+oMDDYyQdkvrXXw7DMz20zwCfdyO6
ZwLQS40ODIt6sO/6v12PWv0=
=8W9d
-----END PGP SIGNATURE-----

--jho1yZJdad60DJr+--



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