使用GDB

可參考:https://www.csee.umbc.edu/portal/help/nasm/nasm.shtml

1.我們可用gdb工具來debug

先輸入gdb <可執行檔案>

2. 接著我們可輸入run來執行程式,與disassemble來查看記憶體

Last updated

Was this helpful?