mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
gdb step debug boot other archs
This commit is contained in:
14
README.adoc
14
README.adoc
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user