Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions lldb/test/Shell/Commands/Inputs/cross_platform.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <stdio.h>
void doNothing() { printf("doNothing\n"); }

void doSomethiing() {
doNothing();
doNothing();
doNothing();
}

int main() {
doSomethiing();
doNothing();
doSomethiing();
return 0;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Source uses unistd.h.
# UNSUPPORTED: system-windows
# RUN: %clang_host -g -O0 %S/Inputs/sigchld.c -o %t.out
# RUN: %clang_host -g -O0 %S/Inputs/cross_platform.c -o %t.out
# RUN: %lldb %t.out -b -s %s 2>&1 | FileCheck %s

list
Expand All @@ -12,14 +10,8 @@ b main
r
# CHECK: int main()

list
# CHECK: if (child_pid == 0)

list -
# CHECK: int main()

list -10
# CHECK: #include <assert.h>
# CHECK: #include <stdio.h>

list -
# CHECK: note: Reached beginning of the file, no more to page
Expand All @@ -28,4 +20,4 @@ list -
# CHECK: note: Reached beginning of the file, no more to page

list
# CHECK: int main()
# CHECK: doNothing();
10 changes: 1 addition & 9 deletions lldb/test/Shell/Commands/command-list-reach-end-of-file.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Source uses unistd.h.
# UNSUPPORTED: system-windows
# RUN: %clang_host -g -O0 %S/Inputs/sigchld.c -o %t.out
# RUN: %clang_host -g -O0 %S/Inputs/cross_platform.c -o %t.out
# RUN: %lldb %t.out -b -s %s 2>&1 | FileCheck %s

list
Expand All @@ -12,12 +10,6 @@ b main
r
# CHECK: int main()

list
# CHECK: if (child_pid == 0)

list
# CHECK: printf("signo = %d\n", SIGCHLD);

list
# CHECK: return 0;

Expand Down
Loading