summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/NativeProcessProtocol.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2018-09-13 20:17:40 +0000
committerPavel Labath <pavel@labath.sk>2018-09-13 20:17:40 +0000
commit2ce2652716aa1314d23b70895c67c6043842d7bd (patch)
tree3b71be49dcb2cb45a989c40733b1bff47d31a792 /lldb/source/Host/common/NativeProcessProtocol.cpp
parent8d8c057eabf56d9f83b14334c8107fc7217f67c7 (diff)
downloadbcm5719-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/Host/common/NativeProcessProtocol.cpp')
-rw-r--r--lldb/source/Host/common/NativeProcessProtocol.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Host/common/NativeProcessProtocol.cpp b/lldb/source/Host/common/NativeProcessProtocol.cpp
index da00da40186..17098fd596e 100644
--- a/lldb/source/Host/common/NativeProcessProtocol.cpp
+++ b/lldb/source/Host/common/NativeProcessProtocol.cpp
@@ -430,6 +430,15 @@ lldb::StateType NativeProcessProtocol::GetState() const {
return m_state;
}
+Status NativeProcessProtocol::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);
+}
+
void NativeProcessProtocol::SetState(lldb::StateType state,
bool notify_delegates) {
std::lock_guard<std::recursive_mutex> guard(m_state_mutex);
OpenPOWER on IntegriCloud