Rip returns the address stored in the instruction pointer register.
(pid uint32, addr va.Address)
| 89 | |
| 90 | // Rip returns the address stored in the instruction pointer register. |
| 91 | func Rip(pid uint32, addr va.Address) va.Address { |
| 92 | ctx := Decode(pid, addr) |
| 93 | if ctx != nil { |
| 94 | return va.Address(ctx.Rip) |
| 95 | } |
| 96 | return 0 |
| 97 | } |
| 98 | |
| 99 | // IsParamOfFunc returns true if the CONTEXT |
| 100 | // structure is supplied as a single parameter |
no test coverage detected