From 64ad85cef2efac2ba11b81c6de4cc46ae02981b2 Mon Sep 17 00:00:00 2001 From: Tamas Berghammer Date: Thu, 13 Aug 2015 09:19:27 +0000 Subject: Fix Linux build after r244875 llvm-svn: 244877 --- .../Process/Linux/NativeRegisterContextLinux_x86_64.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp') diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp index 1cf115af2a6..15f377d88f9 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp +++ b/lldb/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(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; -- cgit v1.2.3