summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MIUtilString.cpp
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-02-20 13:07:41 +0000
committerIlia K <ki.stfu@gmail.com>2015-02-20 13:07:41 +0000
commitc12d88dc8f129e0cf18119c9ba6391e9a82681cc (patch)
tree7aa7b5ac17f93e40d153c95fca1d287c8acc59d0 /lldb/tools/lldb-mi/MIUtilString.cpp
parent7329636d1baa550c3880e7ad7f3d1fde40a351a1 (diff)
downloadbcm5719-llvm-c12d88dc8f129e0cf18119c9ba6391e9a82681cc.tar.gz
bcm5719-llvm-c12d88dc8f129e0cf18119c9ba6391e9a82681cc.zip
Add -symbol-list-lines command (MI)
Summary: Add -symbol-list-lines command + test. All test passed on OS X. Reviewers: emaste, abidh, clayborg Reviewed By: clayborg Subscribers: lldb-commits, clayborg, abidh, emaste Differential Revision: http://reviews.llvm.org/D7768 llvm-svn: 230008
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 70294285d9f..599b18b0397 100644
--- a/lldb/tools/lldb-mi/MIUtilString.cpp
+++ b/lldb/tools/lldb-mi/MIUtilString.cpp
@@ -308,6 +308,19 @@ CMIUtilString::SplitConsiderQuotes(const CMIUtilString &vDelimiter, VecString_t
}
//++ ------------------------------------------------------------------------------------
+// Details: Split string into lines using \n and return an array of strings.
+// Type: Method.
+// Args: vwVecSplits - (W) Container of splits found in string data.
+// Return: MIuint - Number of splits found in the string data.
+// Throws: None.
+//--
+MIuint
+CMIUtilString::SplitLines(VecString_t &vwVecSplits) const
+{
+ return Split("\n", vwVecSplits);
+}
+
+//++ ------------------------------------------------------------------------------------
// Details: Remove '\n' from the end of string if found. It does not alter
// *this string.
// Type: Method.
OpenPOWER on IntegriCloud