I am working on a kernel module but am getting some unexpected code execution. Dtrace probes reveal that the kernel executes: "rtwn.ko`r88ee_init_bb+0x219" and then jumps somewhere that I did not expect.
I would like to track down exactly which line that is. I compiled the module with...
As of now I have installed the latest version of gdb via the package manager (7.9.1). The binary gets installed as /usr/local/bin/gdb which is apparently a symlink to /usr/local/bin/gdb791. The version which comes with the system is at /usr/bin/gdb which is an older version (v6.1.1).
I am trying to hack/understand the nullfs kernel module so to that end, I do the following:
On the target machine: kldstat gives:
Id Refs Address Size Name
1 10 0xffffffff80200000 17e10c8 kernel
2 1 0xffffffff819e2000 4cf0 vmxnet.ko
3 1 0xffffffff819e7000 16e0...