Skip to content

Commit 07ac14f

Browse files
author
Dawn Perchik
committedJan 6, 2016
Apply missed changes from svn r256863 "Add support for "source info" and use it to fix MI's -symbol-list-lines.".
Patch is part of Differential Revision: http://reviews.llvm.org/D15593 Differential Revision: http://reviews.llvm.org/D15904 llvm-svn: 256877
1 parent 226b734 commit 07ac14f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎lldb/packages/Python/lldbsuite/test/help/TestHelp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ def test_help_image_du_sym_is_ambiguous(self):
134134

135135
@no_debug_info_test
136136
def test_help_image_du_line_should_work(self):
137-
"""Command 'help image du line' is not ambiguous and should work."""
137+
"""Command 'help image du line-table' is not ambiguous and should work."""
138138
# 'image' is an alias for 'target modules'.
139139
self.expect("help image du line",
140-
substrs = ['Dump the line table for one or more files'])
140+
substrs = ['Dump the line table for one or more compilation units'])
141141

142142
@no_debug_info_test
143143
def test_help_target_variable_syntax(self):

‎lldb/packages/Python/lldbsuite/test/tools/lldb-mi/symbol/TestMiSymbol.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ def test_lldbmi_symbol_list_lines_file(self):
6363

6464
# Test that -symbol-list-lines fails when file doesn't exist
6565
self.runCmd("-symbol-list-lines unknown_file")
66-
self.expect("\^error,message=\"warning: No source filenames matched 'unknown_file'\. error: no source filenames matched any command arguments \"")
66+
self.expect("\^error,message=\"error: No source filenames matched 'unknown_file'\. \"")
6767

6868
# Test that -symbol-list-lines fails when file is specified using relative path
6969
self.runCmd("-symbol-list-lines ./main.cpp")
70-
self.expect("\^error,message=\"warning: No source filenames matched '\./main\.cpp'\. error: no source filenames matched any command arguments \"")
70+
self.expect("\^error,message=\"error: No source filenames matched '\./main\.cpp'\. \"")
7171

7272
# Test that -symbol-list-lines works when file is specified using absolute path
7373
import os
@@ -77,4 +77,4 @@ def test_lldbmi_symbol_list_lines_file(self):
7777

7878
# Test that -symbol-list-lines fails when file doesn't exist
7979
self.runCmd("-symbol-list-lines unknown_dir/main.cpp")
80-
self.expect("\^error,message=\"warning: No source filenames matched 'unknown_dir/main\.cpp'\. error: no source filenames matched any command arguments \"")
80+
self.expect("\^error,message=\"error: No source filenames matched 'unknown_dir/main\.cpp'\. \"")

‎lldb/tools/lldb-mi/MICmdCmdSymbol.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ ParseLLDBLineAddressHeader(const char *input, CMIUtilString &file)
106106
{
107107
// Match LineEntry using regex.
108108
static MIUtilParse::CRegexParser g_lineentry_header_regex(
109-
"^ *Lines for file (.+) in compilation unit (.+) in `(.+)$");
110-
// ^1=file ^2=cu ^3=module
109+
"^ *Lines found for file (.+) in compilation unit (.+) in `(.+)$");
110+
// ^1=file ^2=cu ^3=module
111111

112112
MIUtilParse::CRegexParser::Match match(4);
113113

0 commit comments

Comments
 (0)
Please sign in to comment.