blob: a6e6b621e9193f27d2b49a8cd1b6ce7f1425fba5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
GDB="gdb"
go run . < "$1" | qbe | as -o /tmp/test.o
ld -o /tmp/test -I /lib64/ld-linux-x86-64.so.2 -lc /lib/crt1.o /tmp/test.o
/tmp/test
echo "Exit code: $?"
echo "disassemble main" | ${GDB} /tmp/test
|