我该如何调试 Ubuntu 的内核?是否有可用的调试符号,或者我应该使用调试信息重新编译内核?
答案1
答案2
此页面上有有用的信息
https://wiki.ubuntu.com/Kernel/Systemtap
具体来说
sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
deb http://ddebs.ubuntu.com/ precise main restricted universe multiverse
deb http://ddebs.ubuntu.com/ precise-security main restricted universe multiverse
deb http://ddebs.ubuntu.com/ precise-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com/ precise-proposed main restricted universe multiverse
EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01
sudo apt-get update
sudo apt-get install linux-image-$(uname -r)-dbgsym
现在我只需要弄清楚 Debian 的对应内容。