How would I go about debugging a LKM. I am currently working on a simple kernel module that overwrites the open() syscall and sends the output through a parsing routine.
I've read many articles talking about using the (gdb) add-symbol-file lkm.ko<address> and in fact that works but as far as I know I can set breakpoints that never break and that's pretty much it. Thanks On 3/3/07, Peter Jeremy <[EMAIL PROTECTED]> wrote:
On 2007-Mar-03 10:21:27 +0530, ajay gopalakrishnan <[EMAIL PROTECTED]> wrote: >I am new to FreeBSD and I would like to know how to start off with kernel >level programming. Apart from the links Sam gave you, I'd suggest you look at "The Design and Implementation of the FreeBSD Operating System" by Kirk McKusick and George Neville-Neil. As a general introduction, you might like to look through "The Complete FreeBSD" by Greg Lehey (http://www.lemis.com/grog/Documentation/CFBSD/). > Also, the header packages used at the system level code and >kernel level code were different. Yes. The internal kernel interfaces are defined in the section 9 man pages. -- Peter Jeremy
_______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"