gdb指令记录
2018-11-24 本文已影响0人
半步江南
调试AT&T 代码用到:
as ld
as --gstabs test.s -o test.o
ld test.o -o test
gdb
gdb ./test
break 1
run
info all
print/f $eax
stepi
nexti
调试AT&T 代码用到:
as --gstabs test.s -o test.o
ld test.o -o test
gdb ./test
break 1
run
info all
print/f $eax
stepi
nexti