Author: tberghammer
Date: Thu Aug 13 04:19:27 2015
New Revision: 244877

URL: http://llvm.org/viewvc/llvm-project?rev=244877&view=rev
Log:
Fix Linux build after r244875

Modified:
    
lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp

Modified: 
lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp?rev=244877&r1=244876&r2=244877&view=diff
==============================================================================
--- 
lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp 
(original)
+++ 
lldb/trunk/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp 
Thu Aug 13 04:19:27 2015
@@ -723,16 +723,8 @@ NativeRegisterContextLinux_x86_64::ReadA
             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;


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to