From de9d0494ef474b4db5d24ad89357629d08804499 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 8 Jan 2011 03:17:57 +0000 Subject: Modified the stop reply packet to be able to send the thread name using the new "hexname" key for the "key:value;" duple that is part of the packet. This allows for thread names to contain special characters such as $ # : ; + - Debugserver now detects if the thread name contains special characters and sends the chars in hex format if needed. llvm-svn: 123053 --- lldb/source/Utility/StringExtractor.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lldb/source/Utility/StringExtractor.cpp') diff --git a/lldb/source/Utility/StringExtractor.cpp b/lldb/source/Utility/StringExtractor.cpp index dc1483d01cda..c410ffd39b13 100644 --- a/lldb/source/Utility/StringExtractor.cpp +++ b/lldb/source/Utility/StringExtractor.cpp @@ -336,6 +336,16 @@ StringExtractor::GetHexWithFixedSize (uint32_t byte_size, bool little_endian, ui return fail_value; } +size_t +StringExtractor::GetHexByteString (std::string &str) +{ + str.clear(); + char ch; + while ((ch = GetHexU8()) != '\0') + str.append(1, ch); + return str.size(); +} + bool StringExtractor::GetNameColonValue (std::string &name, std::string &value) { -- cgit v1.2.3