diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-27 20:38:50 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-27 20:38:50 +0100 |
commit | ee5ac9acdc1e0f766dd7275e58f1c330caf06b85 (patch) | |
tree | b118de3f9b409f060c8dc61a61eeafb7f006e22a | |
parent | Add ret statements (diff) | |
download | base32asm-ee5ac9acdc1e0f766dd7275e58f1c330caf06b85.tar.gz base32asm-ee5ac9acdc1e0f766dd7275e58f1c330caf06b85.zip |
Add gdb configuration and debug symbols
Diffstat (limited to '')
-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: |