user1230741
user1230741

Reputation: 1

When does instruction pointer get zero while debugging?

What are the possible scenarios when a program counter or instruction pointer get zero ?

Upvotes: 0

Views: 521

Answers (1)

thisisdog
thisisdog

Reputation: 948

I think this might happen if you have a NULL function pointer since depending on the compiler and instruction set you might trigger a jump to 0. This might also happen with c++ if you're using a virtual function and the vtable has a NULL entry.

I haven't confirmed this though, just a guess

Upvotes: 1

Related Questions