From owner-freebsd-hackers Sun Feb 5 22:19:19 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id WAA00256 for hackers-outgoing; Sun, 5 Feb 1995 22:19:19 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id WAA00250 for ; Sun, 5 Feb 1995 22:18:56 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id RAA31927; Mon, 6 Feb 1995 17:14:43 +1100 Date: Mon, 6 Feb 1995 17:14:43 +1100 From: Bruce Evans Message-Id: <199502060614.RAA31927@godzilla.zeta.org.au> To: freebsd-hackers@FreeBSD.org, hasty@netcom.com Subject: Re: kernel breakpoints? Sender: hackers-owner@FreeBSD.org Precedence: bulk >I am trying to debug the sound driver and would like to set a >breakpoint in the driver. If type : >break _sndopen > or >break sndopen >The kernel debugger comes back saying symbol not found?? With current kernels and bootstraps, you have to give the -D flag to the bootstrap to load the symbols, and not use lkm's for the parts that you want to debug. > So what is the magic incantation? :) >P.S.: I did compile the sound driver with -g ... -g is mostly wasted for the kernel debugger, and may not work. Old kernels and bootstraps only allowed about 100K for symbols, so all the symbols produced by -g couldn't possibly fit. Now a full symbol table may just take longer to load and waste a few MB of memory. Bruce