Author: jaydeep Date: Thu Dec 3 00:41:24 2015 New Revision: 254590 URL: http://llvm.org/viewvc/llvm-project?rev=254590&view=rev Log: [LLDB][MIPS] Using enum instead of a constant to fetch PC and CAUSE registers. SUMMARY: Using enum instead of a constant to fetch PC and CAUSE registers.
Modified: lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp Modified: lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp?rev=254590&r1=254589&r2=254590&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp (original) +++ lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp Thu Dec 3 00:41:24 2015 @@ -494,7 +494,7 @@ NativeRegisterContextLinux_mips64::GetPC log->Printf ("NativeRegisterContextLinux_mips64::%s Reading PC from breakpoint location", __FUNCTION__); // PC register is at index 34 of the register array - const RegisterInfo *const pc_info_p = GetRegisterInfoAtIndex (34); + const RegisterInfo *const pc_info_p = GetRegisterInfoAtIndex (gpr_pc_mips64); error = ReadRegister (pc_info_p, pc_value); if (error.Success ()) @@ -502,7 +502,7 @@ NativeRegisterContextLinux_mips64::GetPC pc = pc_value.GetAsUInt64 (); // CAUSE register is at index 37 of the register array - const RegisterInfo *const cause_info_p = GetRegisterInfoAtIndex (37); + const RegisterInfo *const cause_info_p = GetRegisterInfoAtIndex (gpr_cause_mips64); RegisterValue cause_value; ReadRegister (cause_info_p, cause_value); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits