[Lldb-commits] [PATCH] D20509: Skip leading spaces when decoding hex values
Francis Ricci via lldb-commits
lldb-commits at lists.llvm.org
Tue May 24 11:26:08 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL270592: Skip leading spaces when decoding hex values (authored by fjricci).
Changed prior to commit:
http://reviews.llvm.org/D20509?vs=58041&id=58277#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20509
Files:
lldb/trunk/source/Utility/StringExtractor.cpp
Index: lldb/trunk/source/Utility/StringExtractor.cpp
===================================================================
--- lldb/trunk/source/Utility/StringExtractor.cpp
+++ lldb/trunk/source/Utility/StringExtractor.cpp
@@ -104,6 +104,7 @@
int
StringExtractor::DecodeHexU8()
{
+ SkipSpaces();
if (GetBytesLeft() < 2)
{
return -1;
@@ -230,6 +231,7 @@
uint32_t result = 0;
uint32_t nibble_count = 0;
+ SkipSpaces();
if (little_endian)
{
uint32_t shift_amount = 0;
@@ -292,6 +294,7 @@
uint64_t result = 0;
uint32_t nibble_count = 0;
+ SkipSpaces();
if (little_endian)
{
uint32_t shift_amount = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20509.58277.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160524/cdc85990/attachment.bin>
More information about the lldb-commits
mailing list