diff options
author | Benji Dial <benji3.141@gmail.com> | 2020-05-25 11:08:59 -0400 |
---|---|---|
committer | Benji Dial <benji3.141@gmail.com> | 2020-05-25 11:08:59 -0400 |
commit | c99a319d3405d4ac76881cae288c29624fa34a44 (patch) | |
tree | 18beb40c378cc4dd177cdabb88137f295363dfb5 /makefile | |
parent | 3ec479833bbe4c116bc149122aec582532866128 (diff) | |
download | portland-os-c99a319d3405d4ac76881cae288c29624fa34a44.tar.gz |
script to debug with qemu and gdb
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -7,11 +7,11 @@ disk: kernel boot dd if=out/kernel.bin of=obj/shadow.img seek=1 conv=notrunc mv obj/shadow.img out/disk.img -vbox-image: disk +vdi-file: disk VBoxManage convertfromraw out/disk.img out/disk.vdi --uuid a61929ed-3bf2-45ff-b98a-44f87c616dba -kdump: kernel - objdump -M intel -d obj/kernel.elf > out/kernel.dasm +debug: vdi-file + gdb -x qemu-debug.gdb kgccargs = -m32 -ffreestanding -fno-asynchronous-unwind-tables kernel: @@ -33,4 +33,4 @@ boot: nasm src/boot.asm -o out/boot.bin clean: - rm -r obj out
\ No newline at end of file + rm -r obj out |