From b01310008ff743d9736fabff933e739ed97196cf Mon Sep 17 00:00:00 2001 From: Dawn Perchik Date: Thu, 17 Sep 2015 16:22:30 +0000 Subject: [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 --- lldb/tools/lldb-mi/MIUtilString.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lldb/tools/lldb-mi/MIUtilString.cpp') 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 @@ -54,6 +54,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. -- cgit v1.2.3