From 4bdc7cb8b68e3ba3aa59b7100e855febe83a5ea8 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 17 May 2017 18:24:59 +0200 Subject: made debugging on C-language level possible with qemu and remote debugging, building an ELF kernel first, then we create a flat binary and a symbol file from it --- README | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README') diff --git a/README b/README index c92d044..96e888b 100644 --- a/README +++ b/README @@ -43,6 +43,14 @@ break 0x8400 disassemble kernel in 32-bit mode ndisasm -b32 -o8400h -a kernel.bin | less +With qemu remote (see http://wiki.osdev.org/Kernel_Debugging): + +make run-qemu-debug + +gdb) target remote localhost:1234 +gdb) symbol-file kernel.sym +gdb) break entry +gdb) c links ----- -- cgit v1.2.3-54-g00ecf