[Lldb-commits] [lldb] r244877 - Fix Linux build after r244875

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 13 02:19:27 PDT 2015


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;




More information about the lldb-commits mailing list