[Lldb-commits] [PATCH] Increase the timeout for pwrite on android
Tamas Berghammer
tberghammer at google.com
Mon Feb 23 03:57:20 PST 2015
Use the ScopedTimeout class
http://reviews.llvm.org/D7788
Files:
source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h
Index: source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
===================================================================
--- source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
+++ source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
@@ -222,3 +222,14 @@
return PlatformRemoteGDBServer::DisconnectRemote ();
}
+
+uint64_t
+PlatformAndroidRemoteGDBServer::WriteFile (lldb::user_id_t fd,
+ uint64_t offset,
+ const void* src,
+ uint64_t src_len,
+ Error &error)
+{
+ GDBRemoteCommunication::ScopedTimeout timeout (m_gdb_client, 5);
+ return PlatformRemoteGDBServer::WriteFile (fd, offset, src, src_len, error);
+}
Index: source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h
===================================================================
--- source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h
+++ source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h
@@ -33,6 +33,13 @@
lldb_private::Error
DisconnectRemote () override;
+ uint64_t
+ WriteFile (lldb::user_id_t fd,
+ uint64_t offset,
+ const void* data,
+ uint64_t len,
+ lldb_private::Error &error) override;
+
protected:
std::map<lldb::pid_t, std::pair<uint16_t, std::string>> m_port_forwards;
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7788.20503.patch
Type: text/x-patch
Size: 1498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150223/7a195818/attachment.bin>
More information about the lldb-commits
mailing list