diff options
author | Jim Ingham <jingham@apple.com> | 2017-11-17 01:19:59 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2017-11-17 01:19:59 +0000 |
commit | 9347b68629ce18a3b0015d7102c89e5c0b9ce6b8 (patch) | |
tree | c905c092617624d6faa14984c082fc5b03ca168c /lldb/source/Commands/CommandObjectSource.cpp | |
parent | 370c766e407ae1b44e568d55bc1f2a6aa1b12aeb (diff) | |
download | llvm-9347b68629ce18a3b0015d7102c89e5c0b9ce6b8.zip llvm-9347b68629ce18a3b0015d7102c89e5c0b9ce6b8.tar.gz llvm-9347b68629ce18a3b0015d7102c89e5c0b9ce6b8.tar.bz2 |
"source list -a" was calling DisplaySourceLinesWithNumbers incorrectly.
The parameters were just passed in the wrong order.
<rdar://problem/35150446>
llvm-svn: 318495
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSource.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp index f3c92b9..066cc59 100644 --- a/lldb/source/Commands/CommandObjectSource.cpp +++ b/lldb/source/Commands/CommandObjectSource.cpp @@ -902,7 +902,7 @@ protected: // We don't care about the column here. const uint32_t column = 0; return target->GetSourceManager().DisplaySourceLinesWithLineNumbers( - start_file, line_no, 0, m_options.num_lines, column, "", + start_file, line_no, column, 0, m_options.num_lines, "", &result.GetOutputStream(), GetBreakpointLocations()); } else { result.AppendErrorWithFormat( @@ -1161,7 +1161,7 @@ protected: ? sc.line_entry.column : 0; target->GetSourceManager().DisplaySourceLinesWithLineNumbers( - sc.comp_unit, sc.line_entry.line, lines_to_back_up, column, + sc.comp_unit, sc.line_entry.line, column, lines_to_back_up, m_options.num_lines - lines_to_back_up, "->", &result.GetOutputStream(), GetBreakpointLocations()); result.SetStatus(eReturnStatusSuccessFinishResult); @@ -1283,8 +1283,9 @@ protected: m_options.num_lines = 10; const uint32_t column = 0; target->GetSourceManager().DisplaySourceLinesWithLineNumbers( - sc.comp_unit, m_options.start_line, 0, m_options.num_lines, - column, "", &result.GetOutputStream(), GetBreakpointLocations()); + sc.comp_unit, m_options.start_line, column, + 0, m_options.num_lines, + "", &result.GetOutputStream(), GetBreakpointLocations()); result.SetStatus(eReturnStatusSuccessFinishResult); } else { |