0

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

anxvonial
  • 61
  • 1
  • 2
  • 10

1 Answers1

1

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.

John Zwinck
  • 239,568
  • 38
  • 324
  • 436
  • Is there doc for ucontext.h, I doesn't find it, even you have explain it, I don't know how to use it, I see this in [here](http://stackoverflow.com/questions/14233464/can-a-c-program-continue-execution-after-a-signal-is-handled/30169485#30169485) – anxvonial Dec 08 '15 at 15:08
  • @anxvonial: here: http://pubs.opengroup.org/onlinepubs/7908799/xsh/ucontext.h.html – John Zwinck Dec 08 '15 at 15:09
  • I don't find the REG_* explaination – anxvonial Dec 08 '15 at 15:12
  • @anxvonial: the REG_* explanation is in my answer. You wanted an answer, right? – John Zwinck Dec 09 '15 at 03:18