summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MIUtilString.cpp
diff options
context:
space:
mode:
authorDawn Perchik <dawn@burble.org>2015-09-17 16:22:30 +0000
committerDawn Perchik <dawn@burble.org>2015-09-17 16:22:30 +0000
commitb01310008ff743d9736fabff933e739ed97196cf (patch)
treef197a440b66fc32618b4773d2b2a1352e428b4d5 /lldb/tools/lldb-mi/MIUtilString.cpp
parent2e98d57ad42c35ef0c5584ddcf233f3db1c707f1 (diff)
downloadbcm5719-llvm-b01310008ff743d9736fabff933e739ed97196cf.tar.gz
bcm5719-llvm-b01310008ff743d9736fabff933e739ed97196cf.zip
[lldb-mi] Fix the handling of files in -data-info-line and -symbol-list-lines.
This fixes -data-info-line and -symbol-list-lines to parse the filename and line correctly when line entries don't have the optional column number and the filename contains a Windows drive letter. It also fixes -symbol-list-lines when code from header files is generated. Reviewed by: abidh, ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12115 llvm-svn: 247899
Diffstat (limited to 'lldb/tools/lldb-mi/MIUtilString.cpp')
-rw-r--r--lldb/tools/lldb-mi/MIUtilString.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/tools/lldb-mi/MIUtilString.cpp b/lldb/tools/lldb-mi/MIUtilString.cpp
index 4ca3acdb55d..fbe6a454fa5 100644
--- a/lldb/tools/lldb-mi/MIUtilString.cpp
+++ b/lldb/tools/lldb-mi/MIUtilString.cpp
@@ -55,6 +55,19 @@ CMIUtilString::CMIUtilString(const char *const *vpData)
}
//++ ------------------------------------------------------------------------------------
+// Details: CMIUtilString constructor.
+// Type: Method.
+// Args: vpData - Pointer to UTF8 text data.
+// nLen - Length of string.
+// Return: None.
+// Throws: None.
+//--
+CMIUtilString::CMIUtilString(const char *vpData, size_t nLen)
+ : std::string(vpData, nLen)
+{
+}
+
+//++ ------------------------------------------------------------------------------------
// Details: CMIUtilString assignment operator.
// Type: Method.
// Args: vpRhs - Pointer to UTF8 text data.
OpenPOWER on IntegriCloud