Fix typos.

llvm-svn: 212132
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index 624983d..9898cb9 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -1120,7 +1120,7 @@
 // then the caller that requested the interrupt will want to keep the sequence
 // locked down so that no one else can send packets while the caller has control.
 // This function usually gets called when we are running and need to stop the 
-// target. It can also be used when we are running and and we need to do something
+// target. It can also be used when we are running and we need to do something
 // else (like read/write memory), so we need to interrupt the running process
 // (gdb remote protocol requires this), and do what we need to do, then resume.
 
@@ -1268,7 +1268,7 @@
 GDBRemoteCommunicationClient::SendArgumentsPacket (const ProcessLaunchInfo &launch_info)
 {
     // Since we don't get the send argv0 separate from the executable path, we need to
-    // make sure to use the actual exectuable path found in the launch_info...
+    // make sure to use the actual executable path found in the launch_info...
     std::vector<const char *> argv;
     FileSpec exe_file = launch_info.GetExecutableFile();
     std::string exe_path;
@@ -2924,7 +2924,7 @@
                                        type, 
                                        addr, 
                                        length);
-    // Check we havent overwritten the end of the packet buffer
+    // Check we haven't overwritten the end of the packet buffer
     assert (packet_len + 1 < (int)sizeof(packet));
     StringExtractorGDBRemote response;
     // Try to send the breakpoint packet, and check that it was correctly sent
@@ -2952,7 +2952,7 @@
             }
         }
     }
-    // Signal generic faliure
+    // Signal generic failure
     return UINT8_MAX;
 }
 
@@ -3578,7 +3578,7 @@
 bool
 GDBRemoteCommunicationClient::RestoreRegisterState (lldb::tid_t tid, uint32_t save_id)
 {
-    // We use the "m_supports_QSaveRegisterState" variable here becuase the
+    // We use the "m_supports_QSaveRegisterState" variable here because the
     // QSaveRegisterState and QRestoreRegisterState packets must both be supported in
     // order to be useful
     if (m_supports_QSaveRegisterState == eLazyBoolNo)
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
index 556465d..fddcd6c 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
@@ -92,7 +92,7 @@
     // indicates if the packet was send and any response was received
     // even in the response is UNIMPLEMENTED. If the packet failed to
     // get a response, then false is returned. This quickly tells us
-    // if we were able to connect and communicte with the remote GDB
+    // if we were able to connect and communicate with the remote GDB
     // server
     bool
     QueryNoAckModeSupported ();
@@ -233,7 +233,7 @@
     /// directory for the platform process.
     ///
     /// @param[in] path
-    ///     The path to a directory to use when launching our processs
+    ///     The path to a directory to use when launching our process
     ///
     /// @return
     ///     Zero if the for success, or an error code for failure.
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
index 9275ddc..a1708ee 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
@@ -883,7 +883,7 @@
 
     // If a 'QListThreadsInStopReply' was sent to enable this feature, we
     // will send all thread IDs back in the "threads" key whose value is
-    // a listc of hex thread IDs separated by commas:
+    // a list of hex thread IDs separated by commas:
     //  "threads:10a,10b,10c;"
     // This will save the debugger from having to send a pair of qfThreadInfo
     // and qsThreadInfo packets, but it also might take a lot of room in the
@@ -1663,7 +1663,7 @@
                 success = false;
             else
             {
-                // Decode the argument index. We ignore this really becuase
+                // Decode the argument index. We ignore this really because
                 // who would really send down the arguments in a random order???
                 const uint32_t arg_idx = packet.GetU32(UINT32_MAX);
                 if (arg_idx == UINT32_MAX)
@@ -1834,7 +1834,7 @@
         Error error;
         std::string hostname;
         // TODO: /tmp/ should not be hardcoded. User might want to override /tmp
-        // with the TMPDIR environnement variable
+        // with the TMPDIR environment variable
         packet.SetFilePos(::strlen ("qLaunchGDBServer;"));
         std::string name;
         std::string value;
@@ -1939,7 +1939,7 @@
             return true;
     }
 
-    // the launched process still lives.  Now try killling it again,
+    // the launched process still lives.  Now try killing it again,
     // this time with an unblockable signal.
     Host::Kill (pid, SIGKILL);
 
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 5614a26..f9b2277 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1985,7 +1985,7 @@
             if (m_destroy_tried_resuming)
             {
                 if (log)
-                    log->PutCString ("ProcessGDBRemote::DoDestroy()Tried resuming to destroy once already, not doing it again.");
+                    log->PutCString ("ProcessGDBRemote::DoDestroy() - Tried resuming to destroy once already, not doing it again.");
             }
             else
             {            
@@ -2484,7 +2484,7 @@
             return error;
         }
 
-        // We will reach here when the stub gives an unsported response to a hardware breakpoint
+        // We will reach here when the stub gives an unsupported response to a hardware breakpoint
         if (log)
             log->Printf("Hardware breakpoints are unsupported");
 
@@ -3234,7 +3234,7 @@
         // character in gdb-remote binary mode.  lldb currently doesn't escape
         // these characters in its packet output -- so we add the quoted version
         // of the } character here manually in case we talk to a debugserver which
-        // un-escapes the chracters at packet read time.
+        // un-escapes the characters at packet read time.
         packet << (char) (0x7d ^ 0x20);
 
         StringExtractorGDBRemote response;
@@ -3279,7 +3279,7 @@
             m_remote_stub_max_memory_size = stub_max_size;
 
             // Even if the stub says it can support ginormous packets,
-            // don't exceed our resonable largeish default packet size.
+            // don't exceed our reasonable largeish default packet size.
             if (stub_max_size > reasonable_largeish_default)
             {
                 stub_max_size = reasonable_largeish_default;