From 821d6d73c2791be19a522dd96c208a29be37e27a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 14 Jul 2020 21:55:29 +0200 Subject: Added debug mode --- run | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'run') diff --git a/run b/run index 64eaf03..03149a7 100755 --- a/run +++ b/run @@ -114,6 +114,12 @@ make_test() { qemu_with_flags -hdb build/disk.img } +make_debug() { + qemu_with_flags -display none -hdb build/disk.img -s -S & + gdb "$(pwd)"/build/melvix.bin -ex 'target remote localhost:1234' + killall qemu-system-i386 +} + make_disasm() { objdump -drwC -Mintel build/kernel.bin --visualize-jumps=color | less -R } -- cgit v1.2.3