Date: Mon, 30 Sep 1996 20:19:02 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Cc: ajones@ctron.com (Alexander Seth Jones) Subject: Re: device driver optimization Message-ID: <199609301819.UAA13084@uriah.heep.sax.de> In-Reply-To: <324FDFC8.150F@ctron.com> from Alexander Seth Jones at "Sep 30, 96 10:57:12 am"
next in thread | previous in thread | raw e-mail | index | archive | help
As Alexander Seth Jones wrote: > I'm writing a device driver that works as expected when I compile with > the "-g" option, but as soon as I compile with "-O" it no longer works > as expected. > > Is there a good, systematic way to approach solving this? I could > examine the assembly code between the two versions, I guess, but I was > hoping there was a better way. Compile with -g and -O, run strip -d on /kernel after installing it, read carefully the handbook section about kernel debugging, and do your best. (Recently, Julian Elischer has also sent a description on how to run gdb on-line on a kernel. This is not yet in the handbook.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609301819.UAA13084>