Debugging Loadable Modules Using GDB
avg at icyb.net.ua
Fri Aug 27 21:28:08 UTC 2010
on 27/08/2010 23:11 Alexander Fiveg said the following:
> from "FreeBSD Developers' Handbook, 10.7 Debugging Loadable Modules Using
> (kgdb) add-symbol-file /sys/modules/linux/linux.ko 0xc0ae22d0
> Actually I couldn't debug my modules using .ko-file. Moreover, I've find out that .ko files do not contain sections with debugging info. With .kld-file debugging works out. Do I something incorrectly or the info in the Developers Book is outdated?
I think the latter.
.ko.symbols should work too [see relation between add-*symbol*-file and
.ko.*symbols* ? :-) ]
More information about the freebsd-hackers