diff options
author | Zachary Turner <zturner@google.com> | 2016-08-30 18:12:11 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-08-30 18:12:11 +0000 |
commit | d08f09c1130acc528cf5f417bcf9f9de4dd4b27d (patch) | |
tree | cbf9510969c7484ad4296d217397b361ca1d63f4 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | b7668d516443231cba62e29786463587b61f90bb (diff) | |
download | bcm5719-llvm-d08f09c1130acc528cf5f417bcf9f9de4dd4b27d.tar.gz bcm5719-llvm-d08f09c1130acc528cf5f417bcf9f9de4dd4b27d.zip |
Convert some StringExtractor functions to accept MutableArrayRefs.
MutableArrayRef<T> is essentially a safer version of passing around
(T*, length) pairs and provides some convenient functions for working
with the data without having to manually manipulate indices.
This is a minor NFC.
llvm-svn: 280123
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index d08b939aa95..555ae461b1c 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -3480,7 +3480,7 @@ GDBRemoteCommunicationClient::ReadRegister(lldb::tid_t tid, uint32_t reg) return nullptr; DataBufferSP buffer_sp(new DataBufferHeap(response.GetStringRef().size() / 2, 0)); - response.GetHexBytes(buffer_sp->GetBytes(), buffer_sp->GetByteSize(), '\xcc'); + response.GetHexBytes(buffer_sp->GetData(), '\xcc'); return buffer_sp; } @@ -3495,7 +3495,7 @@ GDBRemoteCommunicationClient::ReadAllRegisters(lldb::tid_t tid) return nullptr; DataBufferSP buffer_sp(new DataBufferHeap(response.GetStringRef().size() / 2, 0)); - response.GetHexBytes(buffer_sp->GetBytes(), buffer_sp->GetByteSize(), '\xcc'); + response.GetHexBytes(buffer_sp->GetData(), '\xcc'); return buffer_sp; } |