From 52df5e6518d78fb7725011138995a6b6e02b7f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Tue, 22 Jan 2019 00:00:00 +0000 Subject: [PATCH] gdb step debug boot other archs --- README.adoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.adoc b/README.adoc index 0aa951b..7b48ab3 100644 --- a/README.adoc +++ b/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