SBProcess.PutSTDIN() needs to be properly typemapped when swigging,
so that we can do Python scripting like this:

        target = self.dbg.CreateTarget(self.exe)

        self.dbg.SetAsync(True)
        process = target.LaunchSimple(None, None, os.getcwd())

        process.PutSTDIN("Line 1 Entered.\n")
        process.PutSTDIN("Line 2 Entered.\n")
        process.PutSTDIN("Line 3 Entered.\n")

Add TestProcessIO.py to exercise the process IO API: PutSTDIN()/GetSTDOUT()/GetSTDERR().

llvm-svn: 145282
diff --git a/lldb/test/python_api/process/io/main.c b/lldb/test/python_api/process/io/main.c
new file mode 100644
index 0000000..a3d95fe
--- /dev/null
+++ b/lldb/test/python_api/process/io/main.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+int main(int argc, char const *argv[]) {
+    printf("Hello world.\n");
+    char line[100];
+    int count = 1;
+    while (fgets(line, sizeof(line), stdin)) { // Reading from stdin...
+        fprintf(stderr, "input line=>%d\n", count++);
+    }
+
+    printf("Exiting now\n");
+}