mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
docs/zh_CN: Update the translation of dev-tools/gdb-kernel-debugging
Update to commit 6b21943103
("docs/scripts/gdb: add necessary
make scripts_gdb step")
Signed-off-by: Dongliang Mu <dzm91@hust.edu.cn>
Reviewed-by: Alex Shi <alexs@kernel.org>
[jc: fixed whitespace error]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240612145048.57829-1-dzm91@hust.edu.cn
This commit is contained in:
parent
f77afc2796
commit
4280517ebe
@ -34,6 +34,10 @@ Kgdb内核调试器、QEMU等虚拟机管理程序或基于JTAG的硬件接口
|
||||
但这通常仅在不依赖内核模块时才有效。有关此模式的更多详细信息,请参阅QEMU文档。
|
||||
在这种情况下,如果架构支持KASLR,应该在禁用CONFIG_RANDOMIZE_BASE的情况下构建内核。
|
||||
|
||||
- 构建gdb脚本(适用于内核v5.1版本及以上)
|
||||
|
||||
make scripts_gdb
|
||||
|
||||
- 启用QEMU/KVM的gdb stub,可以通过如下方式实现
|
||||
|
||||
- 在VM启动时,通过在QEMU命令行中添加“-s”参数
|
||||
|
Loading…
Reference in New Issue
Block a user