diff options
author | Greg Clayton <gclayton@apple.com> | 2011-03-10 02:26:48 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-03-10 02:26:48 +0000 |
commit | c574ede632c2fa21283a2ed97bef2b6d6307ef9e (patch) | |
tree | 6364326e2ced992b7743f0bbb644239c7a9bc4e9 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp | |
parent | a1a2e8decbb98dee821f06fed13b0cad1a7e3297 (diff) | |
download | bcm5719-llvm-c574ede632c2fa21283a2ed97bef2b6d6307ef9e.tar.gz bcm5719-llvm-c574ede632c2fa21283a2ed97bef2b6d6307ef9e.zip |
Centralize the GDB remote timeout value into the GDBRemoteCommunication as a
member variable (m_packet_timeout which is a value in seconds). This value is
then used for all packets sent to/from the remote GDB server.
llvm-svn: 127392
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp index 873974f0a1d..bbda3c697d5 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp @@ -233,7 +233,7 @@ GDBRemoteRegisterContext::ReadRegisterBytes (uint32_t reg, DataExtractor &data) else packet_len = ::snprintf (packet, sizeof(packet), "g"); assert (packet_len < (sizeof(packet) - 1)); - if (gdb_comm.SendPacketAndWaitForResponse(packet, response, 1, false)) + if (gdb_comm.SendPacketAndWaitForResponse(packet, response, false)) { if (response.IsNormalPacket()) if (response.GetHexBytes ((void *)m_reg_data.GetDataStart(), m_reg_data.GetByteSize(), '\xcc') == m_reg_data.GetByteSize()) @@ -248,7 +248,7 @@ GDBRemoteRegisterContext::ReadRegisterBytes (uint32_t reg, DataExtractor &data) else packet_len = ::snprintf (packet, sizeof(packet), "p%x", reg); assert (packet_len < (sizeof(packet) - 1)); - if (gdb_comm.SendPacketAndWaitForResponse(packet, response, 1, false)) + if (gdb_comm.SendPacketAndWaitForResponse(packet, response, false)) PrivateSetRegisterValue (reg, response); } } @@ -355,7 +355,6 @@ GDBRemoteRegisterContext::WriteRegisterBytes (uint32_t reg, DataExtractor &data, if (gdb_comm.SendPacketAndWaitForResponse(packet.GetString().c_str(), packet.GetString().size(), response, - 1, false)) { SetAllRegisterValid (false); @@ -382,7 +381,6 @@ GDBRemoteRegisterContext::WriteRegisterBytes (uint32_t reg, DataExtractor &data, if (gdb_comm.SendPacketAndWaitForResponse(packet.GetString().c_str(), packet.GetString().size(), response, - 1, false)) { if (response.IsOKPacket()) @@ -418,7 +416,7 @@ GDBRemoteRegisterContext::ReadAllRegisterValues (lldb::DataBufferSP &data_sp) packet_len = ::snprintf (packet, sizeof(packet), "g"); assert (packet_len < (sizeof(packet) - 1)); - if (gdb_comm.SendPacketAndWaitForResponse(packet, packet_len, response, 1, false)) + if (gdb_comm.SendPacketAndWaitForResponse(packet, packet_len, response, false)) { if (response.IsErrorPacket()) return false; @@ -456,7 +454,6 @@ GDBRemoteRegisterContext::WriteAllRegisterValues (const lldb::DataBufferSP &data if (gdb_comm.SendPacketAndWaitForResponse((const char *)data_sp->GetBytes(), data_sp->GetByteSize(), response, - 1, false)) { if (response.IsOKPacket()) |