]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/functionalities/command_script/import/main.c
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / functionalities / command_script / import / main.c
1 #include <stdio.h>
2
3 int main(int argc, char const *argv[]) {
4     printf("Hello world.\n"); // Set break point at this line.
5     if (argc == 1)
6         return 0;
7
8     // Waiting to be attached by the debugger, otherwise.
9     char line[100];
10     while (fgets(line, sizeof(line), stdin)) { // Waiting to be attached...
11         printf("input line=>%s\n", line);
12     }
13
14     printf("Exiting now\n");
15 }