anxvonial
anxvonial

Reputation: 61

What does REG_* in ucontext.h

here is code, I don't know what each detain meaning for them, for example, REG_RIP, what is "RIP"

//ucontext.h
enum
{
//...
  REG_RIP,
//...
}

here is full code

Upvotes: 0

Views: 544

Answers (1)

John Zwinck
John Zwinck

Reputation: 249552

It's the name of a register. REG_RIP means "register RIP" and RIP is the Instruction Pointer. So that enum value is a "name" for the instruction pointer (aka program counter) register on x86.

Upvotes: 1

Related Questions