title: Relation Between Program/Instruction Pointer(RIP) and Base/Frame Pointer(RBP) on 64 bit Linux
body: <p>i need some help on retrieving Instruction pointers(<strong>RIP</strong>) of a call stack on Linux <strong>64 bit</strong> machine. i can traverse the Stack using ptrace and retrieve all Frame/Base pointer(<strong>RBP</strong>) values. but as i want IP values, what is the arithmetic and conceptual relationship between RIP and RBP. <strong>i assume that RIP value is stored at (RBP + 8) location and a can read it using ptrace PEEKDATA</strong>. is my assumption correct?  </p>