2008年3月31日 星期一

Debug Assembly Language With GDB

gcc -S blah.c                   # if you want generate from C
as blah.s --gstabs -o blah.o    # --gstabs enables debug flags
gcc blah.o -o blah              # link object file
gdb blah                        # now you can debug it

沒有留言:

張貼留言