summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-08-13 09:19:27 +0000
committerTamas Berghammer <tberghammer@google.com>2015-08-13 09:19:27 +0000
commit64ad85cef2efac2ba11b81c6de4cc46ae02981b2 (patch)
tree3f802f49b5b8ed201e0bc6478b55960b88f10046 /lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
parent0a19e90b49e699b3a8ff573761dd1f447d0e2160 (diff)
downloadbcm5719-llvm-64ad85cef2efac2ba11b81c6de4cc46ae02981b2.tar.gz
bcm5719-llvm-64ad85cef2efac2ba11b81c6de4cc46ae02981b2.zip
Fix Linux build after r244875
llvm-svn: 244877
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp12
1 files changed, 2 insertions, 10 deletions
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<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;
OpenPOWER on IntegriCloud