summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gdbinit9
-rw-r--r--makefile2
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
diff --git a/makefile b/makefile
index ee7a305..bc75f79 100644
--- a/makefile
+++ b/makefile
@@ -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: