tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kernel module with debugging info



Hello,
I have kernel module built with -O0 -g2. When I load it into gdb with:
#gdb full_path_to_module.kmod
or
in opened gdb with:
gdb>add-symbol-file full_path_to_module.kmod

the result is:
Reading symbols from full_path_to_module.kmod...
(No debugging symbols found in full_path_to_module.kmod)
(gdb)

How to add debug info to kernel module ?

Peter




Home | Main Index | Thread Index | Old Index