diff options
author | Pavel Labath <labath@google.com> | 2016-08-31 07:42:38 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-08-31 07:42:38 +0000 |
commit | 30ff4b485147635f5593d4aae87dbca1042d2a4f (patch) | |
tree | b6181189a4ffdc4c109eeacba5f50e2361cee011 /lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | |
parent | b16672d91d47737e813b073b544c4139fda3fe72 (diff) | |
download | bcm5719-llvm-30ff4b485147635f5593d4aae87dbca1042d2a4f.tar.gz bcm5719-llvm-30ff4b485147635f5593d4aae87dbca1042d2a4f.zip |
Fix lldb build on Mac.
Summary:
https://github.com/llvm-mirror/lldb/commit/e80f43fd78fa0fbc04d2d59b5713acb5d06c8308
greatly improved an API, but missed one more occurence of legacy usage.
This leads to:
if (extractor.GetHexBytes(&payload_bytes[0], payload_bytes.size(), '\xdd') != payload_bytes.size())
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/lldb/include/lldb/Utility/StringExtractor.h:151:5: note: 'GetHexBytes' declared here
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D24064
Author: Taras Tsugrii <ttsugrii@fb.com>
llvm-svn: 280202
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp index 8da37745ae6..9b402ff63bf 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -1099,7 +1099,7 @@ public: return false; } payload_bytes.resize(ascii_hex_bytes_cstr_len/2); - if (extractor.GetHexBytes(&payload_bytes[0], payload_bytes.size(), '\xdd') != payload_bytes.size()) + if (extractor.GetHexBytes(payload_bytes, '\xdd') != payload_bytes.size()) { result.AppendErrorWithFormat ("payload data must only contain ASCII hex characters (no spaces or hex prefixes): '%s'", ascii_hex_bytes_cstr); result.SetStatus (eReturnStatusFailed); |