I'm trying to debug a function from a kld and in order to do that I use gdb, the steps that i follow in order to do that are:
1. load the debugging symbols from /boot/kernel/kernel;
2. load debugging symbols from <my_file>.ko;
3. set a breakpoint on a function that should execute when the module is inserted in the kernel;
My problem is that the breakpoint is never reached after kldload of the module.
1. load the debugging symbols from /boot/kernel/kernel;
2. load debugging symbols from <my_file>.ko;
3. set a breakpoint on a function that should execute when the module is inserted in the kernel;
My problem is that the breakpoint is never reached after kldload of the module.