Invalid eip register?

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

(gdb) i r eip Invalid register `eip '

Why does he say that my eip register is invalid?

+7
source share
2 answers

Is this a 64-bit program? If so, it copies, not eip.

+16
source

Depending on your software architecture, the case may change:

  • 16 bit - ip
  • 32 bit - eip
  • 64 bit - rip
+1
source

All Articles