diff options
author | Tamas Berghammer <tberghammer@google.com> | 2015-08-13 09:19:27 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2015-08-13 09:19:27 +0000 |
commit | 67a2ba24367d3cbdba369e8f628a7a247deaa046 (patch) | |
tree | 5f7c5527a7ba76dbbfd34d7105457ed34af73ca1 | |
parent | efa76d020027c0f63818c4d4ee18cf95a36a545f (diff) | |
download | lldb-67a2ba24367d3cbdba369e8f628a7a247deaa046.tar.gz |
Fix Linux build after r244875
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@244877 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp b/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp index 1cf115af2..15f377d88 100644 --- a/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp +++ b/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp @@ -723,16 +723,8 @@ NativeRegisterContextLinux_x86_64::ReadAllRegisterValues (lldb::DataBufferSP &da if (reg_info == nullptr) reg_info = GetRegisterInfoInterface().GetDynamicRegisterInfo("orig_rax"); - if (reg_info != nullptr) { - NativeProcessProtocolSP process_sp(m_thread.GetProcess()); - if (!process_sp) - return Error("NativeProcessProtocol is NULL"); - - NativeProcessLinux* process_p = static_cast<NativeProcessLinux*>(process_sp.get()); - return process_p->DoOperation([&] { - return DoWriteRegisterValue(reg_info->byte_offset,reg_info->name,value); - }); - } + if (reg_info != nullptr) + return DoWriteRegisterValue(reg_info->byte_offset,reg_info->name,value); } return error; |