문제

I am debugging a c program with gdb in linux terminal, I disassembled it and ran it, then tried to find the memory address the the EIP register. This is what happened:

(gdb) i r eip Invalid register `eip'

Why does it say that my eip register is invalid?

도움이 되었습니까?

해결책

Is it a 64-bit program? If so, it's rip, not eip.

다른 팁

Depending on your program's architecture the register can change:

  • 16 bit - ip
  • 32 bit - eip
  • 64 bit - rip
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top