Why does GDB not go to the next machine instruction. In the gif below, I set the program counter to point to start (0x100020), which holds the cli
instruction. However, when I enter (gdb) stepi
, GDB does not go to the next instruction which is (0x100021) mov $0x104000,%esp
, but instead jumps to (0x100023).
Regardless of which instruction I start with, GDB does not jump to the next logical instruction, and instead jumps to a seemingly arbitrary location. Why is this?