diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-01 12:29:20 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-01 12:29:20 +0200 |
commit | 4b139d9287358011fddb672f2a4e5b377c2278ed (patch) | |
tree | 7f41e49051f7f79491ee3b7e11b568360c964334 | |
parent | 50dcbcbe2a661f55da0037b0a545ff8d2c3ef890 (diff) | |
download | abaos-4b139d9287358011fddb672f2a4e5b377c2278ed.tar.gz abaos-4b139d9287358011fddb672f2a4e5b377c2278ed.tar.bz2 |
easier debugging with ncurses mode and local gdbinit file
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | src/.gdbinit | 5 | ||||
-rw-r--r-- | src/Makefile | 4 |
3 files changed, 13 insertions, 2 deletions
@@ -52,6 +52,12 @@ gdb) symbol-file kernel.sym gdb) break entry gdb) c +or make a enable execution of the local .gdbinit file in 'src' +with the following settings in the user ~/.gdbinit + +set auto-load local-gdbinit +set auto-load safe-path / + links ----- diff --git a/src/.gdbinit b/src/.gdbinit new file mode 100644 index 0000000..94edd63 --- /dev/null +++ b/src/.gdbinit @@ -0,0 +1,5 @@ +target remote localhost:1234 +symbol-file kernel.sym +break entry +c +wh diff --git a/src/Makefile b/src/Makefile index 3e89a74..f15a8d9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -77,11 +77,11 @@ clean: -rm -f boot.bin kernel.bin kernel.sym kernel.elf image.bin magic.bin *.o boot.map image.tmp run-qemu: image.bin - qemu-system-i386 -d guest_errors -m 32 -drive "file=image.bin,if=ide,format=raw" \ + qemu-system-i386 -curses -d guest_errors -m 32 -drive "file=image.bin,if=ide,format=raw" \ -serial file:serial.log run-qemu-debug: image.bin - qemu-system-i386 -S -s -d guest_errors -m 32 -drive "file=image.bin,if=ide,format=raw" \ + qemu-system-i386 -curses -S -s -d guest_errors -m 32 -drive "file=image.bin,if=ide,format=raw" \ -serial file:serial.log run-bochs: |