[Lldb-commits] [lldb] r248601 - Add comment in StringExtractor::GetHexU8

Dawn Perchik via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 25 11:23:50 PDT 2015


Author: dperchik
Date: Fri Sep 25 13:23:50 2015
New Revision: 248601

URL: http://llvm.org/viewvc/llvm-project?rev=248601&view=rev
Log:
Add comment in StringExtractor::GetHexU8

Modified:
    lldb/trunk/source/Utility/StringExtractor.cpp

Modified: lldb/trunk/source/Utility/StringExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/StringExtractor.cpp?rev=248601&r1=248600&r2=248601&view=diff
==============================================================================
--- lldb/trunk/source/Utility/StringExtractor.cpp (original)
+++ lldb/trunk/source/Utility/StringExtractor.cpp Fri Sep 25 13:23:50 2015
@@ -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;
 }




More information about the lldb-commits mailing list