Date: Fri, 18 Apr 2003 10:52:41 +0400 From: "Yuriy Tsibizov" <Yuriy.Tsibizov@gfk.ru> To: <freebsd-hackers@FreeBSD.ORG> Subject: How to debug panic()s in device_attach function of kernel module? Message-ID: <C192C8912E798F4399668791C8965190674E2F@mx.hhp.local>
next in thread | raw e-mail | index | archive | help
I'm trying to debug panic()s in one of my drivers (I can compile it only as module now), but I can't find a way to get address where it was loaded by kldload. I can't run kldstat (as recommended by developers' handbook, 17.6) because it panic()s during kldloading (after LOR of ZONE_LOCKs after malloc(0) somewhere in device_attach of my driver). Can I get this address inside kdb? Another question, what is correct behavior of malloc(0, M_DEVBUF, M_NOWAIT | M_ZERO)? Yuriy Tsibizov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C192C8912E798F4399668791C8965190674E2F>
