aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Utility/StringExtractor.cpp
diff options
context:
space:
mode:
authorDawn Perchik <dawn@burble.org>2015-09-25 18:23:50 +0000
committerDawn Perchik <dawn@burble.org>2015-09-25 18:23:50 +0000
commit5e8115b33baa3848aeccee6894ba93e51a7fee3a (patch)
tree2cf4638c0787f190aa9ddedb103f9ec0873a3027 /lldb/source/Utility/StringExtractor.cpp
parent28bd7d4afe7835a625af35569fb371b961621de5 (diff)
downloadllvm-5e8115b33baa3848aeccee6894ba93e51a7fee3a.zip
llvm-5e8115b33baa3848aeccee6894ba93e51a7fee3a.tar.gz
llvm-5e8115b33baa3848aeccee6894ba93e51a7fee3a.tar.bz2
Add comment in StringExtractor::GetHexU8
llvm-svn: 248601
Diffstat (limited to 'lldb/source/Utility/StringExtractor.cpp')
-rw-r--r--lldb/source/Utility/StringExtractor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Utility/StringExtractor.cpp b/lldb/source/Utility/StringExtractor.cpp
index e135531..ae92704 100644
--- a/lldb/source/Utility/StringExtractor.cpp
+++ b/lldb/source/Utility/StringExtractor.cpp
@@ -120,11 +120,13 @@ StringExtractor::DecodeHexU8()
//----------------------------------------------------------------------
// Extract an unsigned character from two hex ASCII chars in the packet
-// string
+// string, or return fail_value on failure
//----------------------------------------------------------------------
uint8_t
StringExtractor::GetHexU8 (uint8_t fail_value, bool set_eof_on_fail)
{
+ // On success, fail_value will be overwritten with the next
+ // character in the stream
GetHexU8Ex(fail_value, set_eof_on_fail);
return fail_value;
}