diff options
Diffstat (limited to 'lldb/test/functionalities/command_script/import/main.c')
-rw-r--r-- | lldb/test/functionalities/command_script/import/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/test/functionalities/command_script/import/main.c b/lldb/test/functionalities/command_script/import/main.c new file mode 100644 index 00000000000..dffc8c77b04 --- /dev/null +++ b/lldb/test/functionalities/command_script/import/main.c @@ -0,0 +1,15 @@ +#include <stdio.h> + +int main(int argc, char const *argv[]) { + printf("Hello world.\n"); // Set break point at this line. + if (argc == 1) + return 0; + + // Waiting to be attached by the debugger, otherwise. + char line[100]; + while (fgets(line, sizeof(line), stdin)) { // Waiting to be attached... + printf("input line=>%s\n", line); + } + + printf("Exiting now\n"); +} |