From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 6 06:47:32 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5573216A401 for ; Tue, 6 Mar 2007 06:47:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id DB83413C467 for ; Tue, 6 Mar 2007 06:47:31 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l266lUgm001201; Tue, 6 Mar 2007 17:47:30 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l266lUnx001200; Tue, 6 Mar 2007 17:47:30 +1100 (EST) (envelope-from peter) Date: Tue, 6 Mar 2007 17:47:30 +1100 From: Peter Jeremy To: Dave Arsenault Message-ID: <20070306064730.GB875@turion.vk2pj.dyndns.org> References: <20070303102954.GE9421@turion.vk2pj.dyndns.org> <2f029c1c0703051231k7bc917d3ybb4bd236a242e6c1@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jho1yZJdad60DJr+" Content-Disposition: inline In-Reply-To: <2f029c1c0703051231k7bc917d3ybb4bd236a242e6c1@mail.gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org Subject: Re: How should i start working on kernel programming? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2007 06:47:32 -0000 --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 = 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+--