Cleaned up the pseudo terminal code in ProcessGDBRemote as it was spawning
a pseudo terminal even when the process being attached to. 

Fixed a possible crasher in the in:

    bool
    ClangASTContext::IsAggregateType (clang_type_t clang_type);
    
It seems that if you pass in a record decl, enum decl, or objc class decl
and ask it if it is an aggregate type, clang will crash. 



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@118404 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
index 62473f9..6330c7b 100644
--- a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
+++ b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
@@ -286,14 +286,15 @@
     UpdateThreadListIfNeeded ();
 
     lldb_private::Error
-    StartDebugserverProcess (const char *debugserver_url,      // The connection string to use in the spawned debugserver ("localhost:1234" or "/dev/tty...")
+    StartDebugserverProcess (const char *debugserver_url,   // The connection string to use in the spawned debugserver ("localhost:1234" or "/dev/tty...")
                              char const *inferior_argv[],
                              char const *inferior_envp[],
                              const char *stdin_path,
-                             lldb::pid_t attach_pid,         // If inferior inferior_argv == NULL, then attach to this pid
-                             const char *attach_pid_name,    // Wait for the next process to launch whose basename matches "attach_wait_name"
-                             bool wait_for_launch,           // Wait for the process named "attach_wait_name" to launch
-                             bool disable_aslr,               // Disable ASLR
+                             bool launch_process,           // Set to true if we are going to be launching a the process
+                             lldb::pid_t attach_pid,        // If inferior inferior_argv == NULL, then attach to this pid
+                             const char *attach_pid_name,   // Wait for the next process to launch whose basename matches "attach_wait_name"
+                             bool wait_for_launch,          // Wait for the process named "attach_wait_name" to launch
+                             bool disable_aslr,             // Disable ASLR
                              lldb_private::ArchSpec& arch_spec);
 
     void