GDB baby step 2¶
Give executing permission and start gdb; break at main and run
- Disassemble main():
disas main - Set a breakpoint at the end of main, at the ret instruction:
break *0x<ins hex num> - Look at the registers:
info r
Give executing permission and start gdb; break at main and run
disas mainbreak *0x<ins hex num>info r