gdb step debug boot other archs

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent b4e682dfcb
commit 52df5e6518

View File

@@ -904,6 +904,20 @@ See also:
* http://stackoverflow.com/questions/11408041/how-to-debug-the-linux-kernel-with-gdb-and-qemu/33203642#33203642
* http://stackoverflow.com/questions/4943857/linux-kernel-live-debugging-how-its-done-and-what-tools-are-used/42316607#42316607
==== GDB step debug kernel boot other archs
Just don't forget to pass `--arch` to `./run-gdb`, e.g.:
....
./run --arch aarch64 --wait-gdb
....
and:
....
./run-gdb --arch aarch64 start_kernel
....
[[kernel-o0]]
==== Disable kernel compiler optimizations