Why are there no debug symbols in my vmlinux when using gdb with /proc/kcore?

后端 未结 5 2146
长发绾君心
长发绾君心 2021-01-11 15:46

I\'ve configure all CONFIG_DEBUG_ related options to y,but when I try to debug the kernel,it says no debug symbols found:

gdb /usr/         


        
5条回答
  •  青春惊慌失措
    2021-01-11 16:31

    It's also possible when you package your vmlinuz image, the debug symbols were stripped (when using make-kpkg to build deb package for linux kernel). So you have to use the built vmlinux file under your linux source tree to have those debug symbols.

提交回复
热议问题