2024年11月28日
gdb
use -g
flag for gcc to compile with debug
-
layout next
-
nexti (assembly next)
-
next (code next)
-
refresh
x86
-
EAX: Accumulator for operands and results data.
-
EBX: Pointer to data in the DS segment.
-
ECX: Counter for string and loop operations.
-
EDX: I/O pointer.
-
ESI: Pointer to data in the segment pointed to by the DS register; source pointer for string operations.
-
EDI: Pointer to data (or destination) in the segment pointed to by the ES register; destination pointer for string operations.
-
ESP: Stack pointer (in the SS segment).
-
EBP: Pointer to data on the stack (in the SS segment).