DragonOS/tools/dump_kernel.sh
2022-08-15 12:15:17 +08:00

5 lines
338 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 该脚本用于将编译好的内核反编译并输出到txt文本文件中
# 用于辅助内核调试。出错时可以通过该脚本反编译内核,找到出错的函数的汇编代码
echo "正在反汇编内核..."
objdump -D ../bin/kernel/kernel.elf > ../bin/kernel/kernel.txt
echo "成功反汇编内核到../bin/kernel.txt"