cd /usr/src/sys/amd64/conf
mkdir /root/kernels
cp GENERIC /root/kernels/KERNELD
ln -s /root/kernels/KERNELD
edit KERNELD
#添加:
makeoptions DEBUG=-g
options DDB
options GDB
/usr/sbin/config KERNELD
cd ../compile/KERNELD
make cleandepend
make depend
make
#編譯完成後,/usr/src/sys/amd64/compile/KERNELD目錄裏會有kernel.debug
編譯FreeBSD調試版內核
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
FreeBSD 安裝KDE and gnome
leoly521
2018-08-27 17:53:36
在FreeBSD上安裝VMware-Tools
leoly521
2018-08-27 17:53:35
使用VMware最小化安裝FreeBSD 7.2 【圖解】
leoly521
2018-08-27 17:53:32
How to install QEMU under FreeBSD 8.1 as host
leoly521
2018-08-27 17:53:32
VMware中安裝FreeBSD啓動X後鍵盤鼠標沒反應
leoly521
2018-08-27 17:53:32
FreeBSD 7.2 桌面安裝
leoly521
2018-08-27 17:53:29
FreeBSD開啓ROOT遠程SSH登陸
lzq0101
2018-08-27 17:49:35
配置VMWare遠程調試FreeBSD9.2內核源代碼
lzq0101
2018-08-27 17:49:35
FreeBSD10安裝CodeBlocks13.12
lzq0101
2018-08-27 17:49:34
FreeBSD從源碼安裝PostgreSQL
lzq0101
2018-08-27 17:49:27
FreeBSD9.2安裝X11和GNOME
lzq0101
2018-08-27 17:49:27
FreeBSD9.2安裝VMWare-Tools
lzq0101
2018-08-27 17:49:27
FreeBSD kernel malloc
iteye_20567
2018-08-27 17:24:51
U盤安裝FreeBSD 10
0x5f3759df
2018-08-27 11:34:02
FreeBSD10的pkg問題及ports下載優化
0x5f3759df
2018-08-27 11:34:02