gdbrunner: don't use getppid to name the log file.

Windows doesn't really have a concept of process parenthood.

Bug: https://github.com/android-ndk/ndk/issues/46
Change-Id: I1a47eb42a9eb5d94c95136bb73eac1caabb923c7
diff --git a/python-packages/gdbrunner/__init__.py b/python-packages/gdbrunner/__init__.py
index 1a7a6b1..186fc01 100644
--- a/python-packages/gdbrunner/__init__.py
+++ b/python-packages/gdbrunner/__init__.py
@@ -176,13 +176,12 @@
     atexit.register(lambda: device.forward_remove("tcp:{}".format(port)))
     gdbserver_cmd = get_run_as_cmd(user, gdbserver_cmd)
 
-    # Use ppid so that the file path stays the same.
-    gdbclient_output_path = os.path.join(tempfile.gettempdir(),
-                                         "gdbclient-{}".format(os.getppid()))
-    print "Redirecting gdbclient output to {}".format(gdbclient_output_path)
-    gdbclient_output = file(gdbclient_output_path, 'w')
-    return device.shell_popen(gdbserver_cmd, stdout=gdbclient_output,
-                              stderr=gdbclient_output)
+    gdbserver_output_path = os.path.join(tempfile.gettempdir(),
+                                         "gdbclient.log")
+    print("Redirecting gdbserver output to {}".format(gdbserver_output_path))
+    gdbserver_output = file(gdbserver_output_path, 'w')
+    return device.shell_popen(gdbserver_cmd, stdout=gdbserver_output,
+                              stderr=gdbserver_output)
 
 
 def find_file(device, executable_path, sysroot, user=None):