diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-06-26 20:59:36 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-06-26 20:59:36 +0000 |
| commit | a9dd83be4b7ede10ea0aa0b87f3c83cc387d991a (patch) | |
| tree | 0c4b7553cb77d3f2db95a74ab316e70c0937d739 /lldb/test/python_api/hello_world/main.c | |
| parent | 4ad8edd10fe9a37e0983680225a5a3d9ffd10f11 (diff) | |
| download | bcm5719-llvm-a9dd83be4b7ede10ea0aa0b87f3c83cc387d991a.tar.gz bcm5719-llvm-a9dd83be4b7ede10ea0aa0b87f3c83cc387d991a.zip | |
Move hello_world to now reside under python_api dir.
llvm-svn: 133890
Diffstat (limited to 'lldb/test/python_api/hello_world/main.c')
| -rw-r--r-- | lldb/test/python_api/hello_world/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/test/python_api/hello_world/main.c b/lldb/test/python_api/hello_world/main.c new file mode 100644 index 00000000000..dffc8c77b04 --- /dev/null +++ b/lldb/test/python_api/hello_world/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"); +} |

