mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 07:58:23 +08:00
[lldb] print a notice when source list paging reaches the end of th… (#137515)
This commit is contained in:
@@ -1067,7 +1067,16 @@ protected:
|
||||
&result.GetOutputStream(), m_options.num_lines,
|
||||
m_options.reverse, GetBreakpointLocations())) {
|
||||
result.SetStatus(eReturnStatusSuccessFinishResult);
|
||||
} else {
|
||||
if (target.GetSourceManager().AtLastLine(m_options.reverse)) {
|
||||
result.AppendNoteWithFormatv(
|
||||
"Reached {0} of the file, no more to page",
|
||||
m_options.reverse ? "beginning" : "end");
|
||||
} else {
|
||||
result.AppendNote("No source available");
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if (m_options.num_lines == 0)
|
||||
m_options.num_lines = 10;
|
||||
|
||||
Reference in New Issue
Block a user