diff options
-rw-r--r-- | .gdbinit | 9 | ||||
-rw-r--r-- | makefile | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/.gdbinit b/.gdbinit new file mode 100644 index 0000000..ee986fb --- /dev/null +++ b/.gdbinit @@ -0,0 +1,9 @@ +set disassembly-flavor intel + +file b32e +b _start + +run < <(echo -n "hello") + +layout asm +layout reg @@ -8,7 +8,7 @@ b32e: b32e.o ld -o $@ $< b32e.o: b32e.asm - nasm -f elf64 -O0 -w+all -o $@ $< + nasm -f elf64 -g -F dwarf -O0 -w+all -o $@ $< .PHONY: clean clean: |