Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2006 22:56:08 -0400
From:      "Devon H. O'Dell" <devon.odell@gmail.com>
To:        "Jeremie Le Hen" <jeremie@le-hen.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: no kld in minidumps
Message-ID:  <9ab217670608171956l11d1da00u23800a10abaf09c2@mail.gmail.com>
In-Reply-To: <20060817221307.GG57815@obiwan.tataz.chchile.org>
References:  <20060817221307.GG57815@obiwan.tataz.chchile.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2006/8/17, Jeremie Le Hen <jeremie@le-hen.org>:
> Hi,
>
> my laptop has just triggered a bug in the iwi(4) driver.  I called
> doadump() from DDB prompt and was happily surprised to see that
> only 167 MB of memory where dumped, instead of 1 GB.
>
> Unfortunately once I have rebooted, I went into kgdb and asked
> for the backtrace, which look pretty accurate until it reached
> the iwi(4) functions, which was loaded from multiuser mode.
> I know this is iwi(4) because I saw the backtrace in DDB.
>
> Is it the desired behaviour, not yet implemented, or am I only
> missing something ?

Yeah, you have to do some magic to debug KLDs. Basically, you have to
figure out where they were loaded by walking the module list, and then
tell GDB where to find the TEXT section using add-symbol-file.
Instructions for this are available at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-kld.html

Good luck :)

--Devon

> Thank you for your help.
> Regards,
> --
> Jeremie Le Hen
> < jeremie at le-hen dot org >< ttz at chchile dot org >
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ab217670608171956l11d1da00u23800a10abaf09c2>