aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorMarvin Borner2020-07-14 21:55:29 +0200
committerMarvin Borner2020-07-14 21:55:29 +0200
commit821d6d73c2791be19a522dd96c208a29be37e27a (patch)
tree597865eabd85bd76d942e0500ac700437a3df7db /run
parent9d15c733976b9edec29de7cda7383e0aa1775ac6 (diff)
Added debug mode
Diffstat (limited to 'run')
-rwxr-xr-xrun6
1 files changed, 6 insertions, 0 deletions
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
}