元芳你怎么看

本网站主要用于记录我个人学习的内容,希望对你有所帮助

0%

搭建内核调试环境

  1. 下载 linux 源码,v6.10-rc2
  2. 在项目根目录下执行 make menuconfig

配置

Kernel hacking —>
Compile-time checks and compiler options —>
Debug information (Generate DWARF Version 5 debuginfo) —>
(X) Generate DWARF Version 5 debuginfo

[*] Provide GDB scripts for kernel debugging 

make -j8

busybox 1.36.1

1
2
3

code scripts/kconfig/lxdialog/Makefile
# always := $(hostprogs-y) dochecklxdialog
1
2
make menuconfig

[*] Build static binary (no shared libs)