diff --git a/lldb/source/Utility/StringExtractor.cpp b/lldb/source/Utility/StringExtractor.cpp index ae92704668fc..4c0029a0649b 100644 --- a/lldb/source/Utility/StringExtractor.cpp +++ b/lldb/source/Utility/StringExtractor.cpp @@ -104,6 +104,7 @@ StringExtractor::GetChar (char fail_value) int StringExtractor::DecodeHexU8() { + SkipSpaces(); if (GetBytesLeft() < 2) { return -1; @@ -230,6 +231,7 @@ StringExtractor::GetHexMaxU32 (bool little_endian, uint32_t fail_value) uint32_t result = 0; uint32_t nibble_count = 0; + SkipSpaces(); if (little_endian) { uint32_t shift_amount = 0; @@ -292,6 +294,7 @@ StringExtractor::GetHexMaxU64 (bool little_endian, uint64_t fail_value) uint64_t result = 0; uint32_t nibble_count = 0; + SkipSpaces(); if (little_endian) { uint32_t shift_amount = 0;