diff options
| author | Jaydeep Patil <jaydeep.patil@imgtec.com> | 2015-12-03 06:41:24 +0000 |
|---|---|---|
| committer | Jaydeep Patil <jaydeep.patil@imgtec.com> | 2015-12-03 06:41:24 +0000 |
| commit | 7b531c1a110fe35387fe5eac754590352fcaf7b1 (patch) | |
| tree | 3e86bfd59adc891189cfbaa59d8b3ead31c45690 /lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp | |
| parent | 1282df50c4f27919cb0b6c49c891baac23df1abf (diff) | |
| download | bcm5719-llvm-7b531c1a110fe35387fe5eac754590352fcaf7b1.tar.gz bcm5719-llvm-7b531c1a110fe35387fe5eac754590352fcaf7b1.zip | |
[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.
llvm-svn: 254590
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp index 91e0b9be923..b0ef3656c68 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp @@ -494,7 +494,7 @@ NativeRegisterContextLinux_mips64::GetPCfromBreakpointLocation (lldb::addr_t fai 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::GetPCfromBreakpointLocation (lldb::addr_t fai 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); |

