Fix lldb build on Mac.
authorPavel Labath <labath@google.com>
Wed, 31 Aug 2016 07:42:38 +0000 (07:42 +0000)
committerPavel Labath <labath@google.com>
Wed, 31 Aug 2016 07:42:38 +0000 (07:42 +0000)
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

lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp

index 8da3774..9b402ff 100644 (file)
@@ -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);