Lines Matching refs:regs_

38   return regs_[X86_REG_PC];  in pc()
42 return regs_[X86_REG_SP]; in sp()
46 regs_[X86_REG_PC] = static_cast<uint32_t>(pc); in set_pc()
50 regs_[X86_REG_SP] = static_cast<uint32_t>(sp); in set_sp()
56 if (!process_memory->ReadFully(regs_[X86_REG_SP], &new_pc, sizeof(new_pc)) || in SetPcFromReturnAddress()
57 new_pc == regs_[X86_REG_PC]) { in SetPcFromReturnAddress()
61 regs_[X86_REG_PC] = new_pc; in SetPcFromReturnAddress()
66 fn("eax", regs_[X86_REG_EAX]); in IterateRegisters()
67 fn("ebx", regs_[X86_REG_EBX]); in IterateRegisters()
68 fn("ecx", regs_[X86_REG_ECX]); in IterateRegisters()
69 fn("edx", regs_[X86_REG_EDX]); in IterateRegisters()
70 fn("ebp", regs_[X86_REG_EBP]); in IterateRegisters()
71 fn("edi", regs_[X86_REG_EDI]); in IterateRegisters()
72 fn("esi", regs_[X86_REG_ESI]); in IterateRegisters()
73 fn("esp", regs_[X86_REG_ESP]); in IterateRegisters()
74 fn("eip", regs_[X86_REG_EIP]); in IterateRegisters()
96 regs_[X86_REG_EDI] = ucontext->uc_mcontext.edi; in SetFromUcontext()
97 regs_[X86_REG_ESI] = ucontext->uc_mcontext.esi; in SetFromUcontext()
98 regs_[X86_REG_EBP] = ucontext->uc_mcontext.ebp; in SetFromUcontext()
99 regs_[X86_REG_ESP] = ucontext->uc_mcontext.esp; in SetFromUcontext()
100 regs_[X86_REG_EBX] = ucontext->uc_mcontext.ebx; in SetFromUcontext()
101 regs_[X86_REG_EDX] = ucontext->uc_mcontext.edx; in SetFromUcontext()
102 regs_[X86_REG_ECX] = ucontext->uc_mcontext.ecx; in SetFromUcontext()
103 regs_[X86_REG_EAX] = ucontext->uc_mcontext.eax; in SetFromUcontext()
104 regs_[X86_REG_EIP] = ucontext->uc_mcontext.eip; in SetFromUcontext()
136 if (!process_memory->ReadFully(regs_[X86_REG_SP] + 4, &context, sizeof(context))) { in StepIfSignalHandler()
139 regs_[X86_REG_EBP] = context.ebp; in StepIfSignalHandler()
140 regs_[X86_REG_ESP] = context.esp; in StepIfSignalHandler()
141 regs_[X86_REG_EBX] = context.ebx; in StepIfSignalHandler()
142 regs_[X86_REG_EDX] = context.edx; in StepIfSignalHandler()
143 regs_[X86_REG_ECX] = context.ecx; in StepIfSignalHandler()
144 regs_[X86_REG_EAX] = context.eax; in StepIfSignalHandler()
145 regs_[X86_REG_EIP] = context.eip; in StepIfSignalHandler()
161 if (!process_memory->ReadFully(regs_[X86_REG_SP] + 8, &ptr, sizeof(ptr))) { in StepIfSignalHandler()