diff options
author | Pavel Labath <pavel@labath.sk> | 2018-09-13 20:17:40 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2018-09-13 20:17:40 +0000 |
commit | 2ce2652716aa1314d23b70895c67c6043842d7bd (patch) | |
tree | 3b71be49dcb2cb45a989c40733b1bff47d31a792 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | |
parent | 8d8c057eabf56d9f83b14334c8107fc7217f67c7 (diff) | |
download | bcm5719-llvm-2ce2652716aa1314d23b70895c67c6043842d7bd.tar.gz bcm5719-llvm-2ce2652716aa1314d23b70895c67c6043842d7bd.zip |
NativeProcessProtocol: Sink ReadMemoryWithoutTrap into base class
The two existing implementations have the function implemented
identically, and there's no reason to believe that this would be
different for other implementations.
llvm-svn: 342167
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index d061f0d1bf2..085956ad95d 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -1629,15 +1629,6 @@ Status NativeProcessLinux::ReadMemory(lldb::addr_t addr, void *buf, size_t size, return Status(); } -Status NativeProcessLinux::ReadMemoryWithoutTrap(lldb::addr_t addr, void *buf, - size_t size, - size_t &bytes_read) { - Status error = ReadMemory(addr, buf, size, bytes_read); - if (error.Fail()) - return error; - return m_breakpoint_list.RemoveTrapsFromBuffer(addr, buf, size); -} - Status NativeProcessLinux::WriteMemory(lldb::addr_t addr, const void *buf, size_t size, size_t &bytes_written) { const unsigned char *src = static_cast<const unsigned char *>(buf); |