Hi,

i am trying to debug kernel modules on 2.6.32 with vmware workstation.

For that, i need to add symbols to gdb using "add-symbol-file" by giving the
various section addresses of the kernel module ( .text, .data, .bss etc ). I
find these addresses by inserting the module & looking into
/sys/module/<module-name>/sections & finally i rmmod the module.

But the problem is, i add these module section addresses to gdb and attach
gdb to the vmware instance & now load the module again(this time, to debug),
the section addresses of the module change. So i can't set any breakpoints.

So, the question is -

1) Is there any way to tell the kernel not to load these module sections at
different addresses every time the module is inserted & removed . That is,
can we have the module loaded at exactly the same address everytime?

2) Is there any way to overcome this problem so that i can debug the module
using vmware even though the module is loaded at different addresses?


Thanks.

Regards,
Venkatram Tummala

Reply via email to