Date: Fri, 27 Mar 2009 16:23:26 -0400 From: Alexander Sack <pisymbol@gmail.com> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Building a DDB friendly kernel/drivers? Message-ID: <3c0b01820903271323t1376671enf7be1febd30113be@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi Folks: I'm debugging an issue with a third-party driver that causes an NMI during driver initialization. It only occurs for one version of the driver thus far. I want to isolate what triggers the NMI and generally get a feel for the initialization of the hardware. I'm running a 6.x-amd64 kernel. Can someone explain to me why when I compile the kernel with default debugging options (makeoptions -g, options DDB/KDB etc. etc.) the kernel comes and boots BUT if I remove -O2 and -frename-registers (in an effort to make text even close to readible), the kernel boots and then double-faults on mounting root? I guess more importantly, what's the RIGHT way to build a DDB/KDB friendly kernel? I thought -O2 and/or -frename-registers could cause DDB to act up but perhaps I'm wrong. Thanks! -aps
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3c0b01820903271323t1376671enf7be1febd30113be>