[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:39:08 PDT 2025
================
@@ -0,0 +1,26 @@
+# RUN: %clang_host -g -O0 %S/Inputs/sigchld.c -o %t.out
+# RUN: %lldb %t.out -b -s %s 2>&1 | FileCheck %s
+
+list
+# CHECK: note: No source available
+
+b main
+# CHECK: Breakpoint 1:
+
+r
+# CHECK: int main()
+
+list
+# CHECK: if (child_pid == 0)
+
+list
+# CHECK: printf("signo = %d\n", SIGCHLD);
+
+list
+# CHECK: return 0;
+
+list
+# CHECK: note: Reached end of the file, no more to page
+
+list
----------------
jimingham wrote:
That's good. There should also be a test for scrolling past the beginning of the file in reverse, since you added a good behavior for that.
https://github.com/llvm/llvm-project/pull/137515
More information about the lldb-commits
mailing list