Spelling changes applied from lldb_spelling.diffs from Bruce Mitchener.

Thanks Bruce!



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@123083 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/Linux/ProcessLinux.cpp b/source/Plugins/Process/Linux/ProcessLinux.cpp
index acaff50..5e9a19d 100644
--- a/source/Plugins/Process/Linux/ProcessLinux.cpp
+++ b/source/Plugins/Process/Linux/ProcessLinux.cpp
@@ -174,7 +174,7 @@
 
     if (!HasExited())
     {
-        // Shut down the private state thread as we will syncronize with events
+        // Shut down the private state thread as we will synchronize with events
         // ourselves.  Discard all current thread plans.
         PausePrivateStateThread();
         GetThreadList().DiscardThreadPlans();
diff --git a/source/Plugins/Process/Linux/ProcessMonitor.cpp b/source/Plugins/Process/Linux/ProcessMonitor.cpp
index e6a7d6f..1522263 100644
--- a/source/Plugins/Process/Linux/ProcessMonitor.cpp
+++ b/source/Plugins/Process/Linux/ProcessMonitor.cpp
@@ -444,7 +444,7 @@
 /// "drives" state changes in the debugger.
 ///
 /// The second thread (@see OperationThread) is responsible for two things 1)
-/// lauching or attaching to the inferior process, and then 2) servicing
+/// launching or attaching to the inferior process, and then 2) servicing
 /// operations such as register reads/writes, stepping, etc.  See the comments
 /// on the Operation class for more info as to why this is needed.
 ProcessMonitor::ProcessMonitor(ProcessLinux *process,
@@ -601,7 +601,7 @@
         // Let us have our own process group.
         setpgid(0, 0);
 
-        // Dup file discriptors if needed.
+        // Dup file descriptors if needed.
         //
         // FIXME: If two or more of the paths are the same we needlessly open
         // the same file multiple times.
diff --git a/source/Plugins/Process/Linux/ProcessMonitor.h b/source/Plugins/Process/Linux/ProcessMonitor.h
index a4719c0..7c3ae74 100644
--- a/source/Plugins/Process/Linux/ProcessMonitor.h
+++ b/source/Plugins/Process/Linux/ProcessMonitor.h
@@ -65,10 +65,10 @@
     ProcessLinux &
     GetProcess() { return *m_process; }
 
-    /// Returns a file descriptor to the controling terminal of the inferior
+    /// Returns a file descriptor to the controlling terminal of the inferior
     /// process.
     ///
-    /// Reads from this file descriptor yeild both the standard output and
+    /// Reads from this file descriptor yield both the standard output and
     /// standard error of this debugee.  Even if stderr and stdout were
     /// redirected on launch it may still happen that data is available on this
     /// descriptor (if the inferior process opens /dev/tty, for example).
diff --git a/source/Plugins/Process/Linux/RegisterContextLinux.h b/source/Plugins/Process/Linux/RegisterContextLinux.h
index 519c06a..4e5d465 100644
--- a/source/Plugins/Process/Linux/RegisterContextLinux.h
+++ b/source/Plugins/Process/Linux/RegisterContextLinux.h
@@ -30,7 +30,7 @@
     /// Updates the register state of the associated thread after hitting a
     /// breakpoint (if that make sense for the architecture).  Default
     /// implementation simply returns true for architectures which do not
-    /// require any upadte.
+    /// require any update.
     ///
     /// @return
     ///    True if the operation succeeded and false otherwise.
diff --git a/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.cpp b/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.cpp
index 10d9947..da6ea8d 100644
--- a/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.cpp
+++ b/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.cpp
@@ -291,16 +291,16 @@
     (offsetof(RegisterContextLinux_x86_64::UserArea, i387) + \
      offsetof(RegisterContextLinux_x86_64::FPU, regname))
 
-// Number of bytes needed to represet a GPR.
+// Number of bytes needed to represent a GPR.
 #define GPR_SIZE(reg) sizeof(((RegisterContextLinux_x86_64::GPR*)NULL)->reg)
 
-// Number of bytes needed to represet a FPR.
+// Number of bytes needed to represent a FPR.
 #define FPR_SIZE(reg) sizeof(((RegisterContextLinux_x86_64::FPU*)NULL)->reg)
 
-// Number of bytes needed to represet the i'th FP register.
+// Number of bytes needed to represent the i'th FP register.
 #define FP_SIZE sizeof(((RegisterContextLinux_x86_64::MMSReg*)NULL)->bytes)
 
-// Number of bytes needed to represet an XMM register.
+// Number of bytes needed to represent an XMM register.
 #define XMM_SIZE sizeof(RegisterContextLinux_x86_64::XMMReg)
 
 #define DEFINE_GPR(reg, alt, kind1, kind2, kind3, kind4)        \
diff --git a/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.h b/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.h
index 9bba38a..dc421ec 100644
--- a/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.h
+++ b/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.h
@@ -131,7 +131,7 @@
         FPU      i387;          // FPU registers.
         uint64_t tsize;         // Text segment size.
         uint64_t dsize;         // Data segment size.
-        uint64_t ssize;         // Stack segement size.
+        uint64_t ssize;         // Stack segment size.
         uint64_t start_code;    // VM address of text.
         uint64_t start_stack;   // VM address of stack bottom (top in rsp).
         int64_t  signal;        // Signal causing core dump.
diff --git a/source/Plugins/Process/MacOSX-User/source/MacOSX/MachTask.cpp b/source/Plugins/Process/MacOSX-User/source/MacOSX/MachTask.cpp
index 6eec701..a4f21eb 100644
--- a/source/Plugins/Process/MacOSX-User/source/MacOSX/MachTask.cpp
+++ b/source/Plugins/Process/MacOSX-User/source/MacOSX/MachTask.cpp
@@ -477,7 +477,7 @@
     // MACH_RCV_TIMEOUT option with a zero timeout to grab all other current
     // exceptions for our process. After we have received the last pending
     // exception, we will get a timeout which enables us to then notify
-    // our main thread that we have an exception bundle avaiable. We then wait
+    // our main thread that we have an exception bundle available. We then wait
     // for the main thread to tell this exception thread to start trying to get
     // exceptions messages again and we start again with a mach_msg read with
     // infinite timeout.
diff --git a/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp b/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp
index b393316..c650f5b 100644
--- a/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp
+++ b/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp
@@ -873,7 +873,7 @@
             Task().Resume();
         }
 
-        // NULL our task out as we have already retored all exception ports
+        // NULL our task out as we have already restored all exception ports
         Task().Clear();
 
         // Clear out any notion of the process we once were
@@ -1238,7 +1238,7 @@
     // MACH_RCV_TIMEOUT option with a zero timeout to grab all other current
     // exceptions for our process. After we have received the last pending
     // exception, we will get a timeout which enables us to then notify
-    // our main thread that we have an exception bundle avaiable. We then wait
+    // our main thread that we have an exception bundle available. We then wait
     // for the main thread to tell this exception thread to start trying to get
     // exceptions messages again and we start again with a mach_msg read with
     // infinite timeout.
@@ -1410,7 +1410,7 @@
         // Resume our task
         Task().Resume();
 
-        // NULL our task out as we have already retored all exception ports
+        // NULL our task out as we have already restored all exception ports
         Task().Clear();
 
         // Clear out any notion of the process we once were
diff --git a/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXLog.cpp b/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXLog.cpp
index 56db421..f4c86c4 100644
--- a/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXLog.cpp
+++ b/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXLog.cpp
@@ -159,7 +159,7 @@
         "\ttask - log mach task calls\n"
         "\tthread - log thread events and activities\n"
         "\tstep - log step related activities\n"
-        "\tverbose - enable verbose loggging\n"
+        "\tverbose - enable verbose logging\n"
         "\twatch - log watchpoint related activities\n", ProcessMacOSX::GetPluginNameStatic());
 }
 
diff --git a/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXRemote.cpp b/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXRemote.cpp
index 835d003..a9315b7 100644
--- a/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXRemote.cpp
+++ b/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXRemote.cpp
@@ -214,7 +214,7 @@
         {
         case CPU_TYPE_ARM:
             // TODO: fill this in for ARM. We need to dig up the symbol for
-            // the address in the breakpoint locaiton and figure out if it is
+            // the address in the breakpoint location and figure out if it is
             // an ARM or Thumb breakpoint.
             trap_opcode = g_arm_breakpoint_opcode;
             trap_opcode_size = sizeof(g_arm_breakpoint_opcode);
@@ -592,7 +592,7 @@
     const uint8_t * const break_op = bp->GetTrapOpcodeBytes();
     if (break_op_size > 0)
     {
-        // Clear a software breakoint instruction
+        // Clear a software breakpoint instruction
         uint8_t curr_break_op[break_op_size];
         bool break_op_found = false;
 
@@ -728,7 +728,7 @@
                 {
                     wp->SetEnabled(false);
                     if (log)
-                        log->Printf ("ProcessMacOSXRemote::Disablewatchpoint (watchID = %d) addr = 0x%8.8llx (hardware) => success", watchID, (uint64_t)addr);
+                        log->Printf ("ProcessMacOSXRemote::DisableWatchpoint (watchID = %d) addr = 0x%8.8llx (hardware) => success", watchID, (uint64_t)addr);
                     return true;
                 }
             }
@@ -1036,7 +1036,7 @@
     // MACH_RCV_TIMEOUT option with a zero timeout to grab all other current
     // exceptions for our process. After we have received the last pending
     // exception, we will get a timeout which enables us to then notify
-    // our main thread that we have an exception bundle avaiable. We then wait
+    // our main thread that we have an exception bundle available. We then wait
     // for the main thread to tell this exception thread to start trying to get
     // exceptions messages again and we start again with a mach_msg read with
     // infinite timeout.
diff --git a/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_arm.h b/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_arm.h
index 0352ce3..158e701 100644
--- a/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_arm.h
+++ b/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_arm.h
@@ -37,7 +37,7 @@
 #define BAS_IMVA_2_3            ((uint32_t)(3u << 7))
 #define BAS_IMVA_ALL            ((uint32_t)(0xfu << 5))
 
-// Break only in priveleged or user mode
+// Break only in privileged or user mode
 #define S_RSVD                  ((uint32_t)(0u << 1))
 #define S_PRIV                  ((uint32_t)(1u << 1))
 #define S_USER                  ((uint32_t)(2u << 1))
diff --git a/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_i386.cpp b/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_i386.cpp
index 8d4aeed..fe23e7a 100644
--- a/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_i386.cpp
+++ b/source/Plugins/Process/MacOSX-User/source/RegisterContextMach_i386.cpp
@@ -410,7 +410,7 @@
 
 
 //----------------------------------------------------------------------
-// Register information defintions for 32 bit i386.
+// Register information definitions for 32 bit i386.
 //----------------------------------------------------------------------
 int
 RegisterContextMach_i386::GetSetForNativeRegNum (int reg_num)
diff --git a/source/Plugins/Process/MacOSX-User/source/ThreadMacOSX.cpp b/source/Plugins/Process/MacOSX-User/source/ThreadMacOSX.cpp
index 1040384..2f01dc6 100644
--- a/source/Plugins/Process/MacOSX-User/source/ThreadMacOSX.cpp
+++ b/source/Plugins/Process/MacOSX-User/source/ThreadMacOSX.cpp
@@ -440,7 +440,7 @@
     case TH_STATE_STOPPED:          thread_run_state = "stopped"; break;    // 2 thread is stopped
     case TH_STATE_WAITING:          thread_run_state = "waiting"; break;    // 3 thread is waiting normally
     case TH_STATE_UNINTERRUPTIBLE:  thread_run_state = "uninter"; break;    // 4 thread is in an uninterruptible wait
-    case TH_STATE_HALTED:           thread_run_state = "halted "; break;     // 5 thread is halted at a
+    case TH_STATE_HALTED:           thread_run_state = "halted "; break;    // 5 thread is halted at a
     default:                        thread_run_state = "???"; break;
     }
 
diff --git a/source/Plugins/Process/Utility/RegisterContextLLDB.cpp b/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
index 05a19fb..1db5d60 100644
--- a/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
+++ b/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
@@ -309,7 +309,7 @@
     if (m_sym_ctx_valid == false)
        decr_pc_and_recompute_addr_range = true;
 
-    // Or if we're in the middle of the stack (and not "above" an asynchornous event like sigtramp),
+    // Or if we're in the middle of the stack (and not "above" an asynchronous event like sigtramp),
     // and our "current" pc is the start of a function...
     if (m_sym_ctx_valid
         && ((RegisterContextLLDB*) m_next_frame.get())->m_frame_type != eSigtrampFrame
diff --git a/source/Plugins/Process/Utility/RegisterContextLLDB.h b/source/Plugins/Process/Utility/RegisterContextLLDB.h
index c6aece3..57e89a3 100644
--- a/source/Plugins/Process/Utility/RegisterContextLLDB.h
+++ b/source/Plugins/Process/Utility/RegisterContextLLDB.h
@@ -121,11 +121,11 @@
     InitializeNonZerothFrame();
 
     // Provide a location for where THIS function saved the CALLER's register value
-    // Or a frame "below" this one savedit, i.e. a function called by this one, preserved a register that this
+    // Or a frame "below" this one saved it, i.e. a function called by this one, preserved a register that this
     // function didn't modify/use.
     //
     // The RegisterLocation type may be set to eRegisterNotAvailable -- this will happen for a volatile register 
-    // bieng queried mid-stack.  Instead of floating frame 0's contents of that register up the stack (which may
+    // being queried mid-stack.  Instead of floating frame 0's contents of that register up the stack (which may
     // or may not be the value of that reg when the function was executing), we won't return any value.
     //
     // If a non-volatile register (a "preserved" register) is requested mid-stack and no frames "below" the requested
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 1f4d63d..07ee8d9 100644
--- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -164,7 +164,7 @@
 //class ScopedValueChanger
 //{
 //public:
-//    // Take a value reference and the value to assing it to when this class
+//    // Take a value reference and the value to assign it to when this class
 //    // instance goes out of scope.
 //    ScopedValueChanger (_Tp &value_ref, _Tp value) :
 //        m_value_ref (value_ref),
@@ -180,7 +180,7 @@
 //        m_value_ref = m_value;
 //    }
 //protected:
-//    _Tp &m_value_ref;   // A reference to the value we wil change when this object destructs
+//    _Tp &m_value_ref;   // A reference to the value we will change when this object destructs
 //    _Tp m_value;        // The value to assign to m_value_ref when this goes out of scope.
 //};
 
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h b/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
index 0434d8f..7bc795d 100644
--- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
+++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
@@ -152,7 +152,7 @@
     /// environment that the inferior should be launched with.
     ///
     /// @param[in] name_equal_value
-    ///     A NULL terminated C string that contains a single enironment
+    ///     A NULL terminated C string that contains a single environment
     ///     in the format "NAME=VALUE".
     ///
     /// @param[in] timeout_seconds
diff --git a/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp b/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp
index f07b11d..044edd0 100644
--- a/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp
+++ b/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp
@@ -167,7 +167,7 @@
         "\tprocess - log process events and activities\n"
         "\tthread - log thread events and activities\n"
         "\tstep - log step related activities\n"
-        "\tverbose - enable verbose loggging\n"
+        "\tverbose - enable verbose logging\n"
         "\twatch - log watchpoint related activities\n", ProcessGDBRemote::GetPluginNameStatic());
 }