[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
Mon Apr 28 20:00:49 PDT 2025


hapeeeeee wrote:

> It seems wrong to have the source manager pretend there are more lines in the file with the content "there are no more lines in this file". At some point, someone is going to want to know that there are no more lines and this artificial content will be confusing.
> 
> It would be better to have the source manager return some kind of error and have the printer cons up the user-facing message.

I believe you are correct. I have updated the code so that the prompt output is now returned by `SourceManager`, and I have differentiated the causes. Could you please review my commit again? @jimingham 



https://github.com/llvm/llvm-project/pull/137515


More information about the lldb-commits mailing list