File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -360,8 +360,11 @@ size_t SourceManager::DisplayMoreWithLineNumbers(
360
360
GetDefaultFileAndLine ();
361
361
362
362
if (last_file_sp) {
363
- if (m_last_line == UINT32_MAX)
364
- return 0 ;
363
+ if (m_last_line == UINT32_MAX) {
364
+ Stream::ByteDelta delta (*s);
365
+ s->Printf (" note: reached the end of current file, no more to page\n " );
366
+ return *delta;
367
+ }
365
368
366
369
if (reverse && m_last_line == 1 )
367
370
return 0 ;
Original file line number Diff line number Diff line change
1
+ # RUN: %clang_host -g -O0 %S/Inputs/sigchld.c -o %t.out
2
+ # RUN: %lldb %t.out -b -s %s | FileCheck %s
3
+
4
+ b main
5
+ r
6
+ list
7
+ # CHECK: assert (child_pid != -1);
8
+
9
+ list
10
+ # CHECK: printf("signo = %d\n", SIGCHLD);
11
+
12
+ list
13
+ # CHECK: return 0;
14
+
15
+ list
16
+ # CHECK: note: reached the end of current file, no more to page
You can’t perform that action at this time.
0 commit comments