[Lldb-commits] [lldb] [lldb] print a notice when `source list` paging reaches the end of th… (PR #137515)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 30 09:37:38 PDT 2025
================
@@ -1067,7 +1067,14 @@ class CommandObjectSourceList : public CommandObjectParsed {
&result.GetOutputStream(), m_options.num_lines,
m_options.reverse, GetBreakpointLocations())) {
result.SetStatus(eReturnStatusSuccessFinishResult);
+ } else {
+ if (target.GetSourceManager().AsLastLine(m_options.reverse)) {
----------------
jimingham wrote:
If you go in reverse and try to page past the beginning of the file we really shouldn't print "Reached the end to the file". Maybe:
result.AppendNoteWithFormat("Reached {0} of the file, no more to page", m_options.reverse ? "beginning" : "end");
https://github.com/llvm/llvm-project/pull/137515
More information about the lldb-commits
mailing list