From 6a7f33387d905131c38cee53b37323a5d69a21fa Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 27 Jun 2014 02:42:12 +0000 Subject: [PATCH] Fix a few typos. llvm-svn: 211851 --- lldb/docs/code-signing.txt | 2 +- lldb/docs/lldb-gdb-remote.txt | 4 ++-- lldb/include/lldb/API/SBListener.h | 2 +- lldb/include/lldb/Core/ConnectionFileDescriptor.h | 2 +- lldb/include/lldb/Core/EmulateInstruction.h | 6 +++--- lldb/include/lldb/Core/Listener.h | 2 +- lldb/include/lldb/Host/Predicate.h | 12 ++++++------ lldb/scripts/Python/interface/SBListener.i | 2 +- lldb/source/Core/ConnectionFileDescriptor.cpp | 8 ++++---- lldb/source/Core/DataExtractor.cpp | 12 ++++++------ lldb/source/Core/Debugger.cpp | 6 +++--- lldb/source/Core/PluginManager.cpp | 2 +- lldb/source/Interpreter/OptionValueProperties.cpp | 4 ++-- .../Plugins/Instruction/ARM/EmulateInstructionARM.cpp | 18 +++++++++--------- lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp | 4 ++-- .../Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp | 4 ++-- lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp | 4 ++-- .../Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | 4 ++-- .../Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp | 4 ++-- .../Process/gdb-remote/GDBRemoteRegisterContext.cpp | 8 ++++---- .../functionalities/thread/concurrent_events/main.cpp | 2 +- lldb/tools/debugserver/source/ChangeLog | 2 +- lldb/tools/debugserver/source/PThreadEvent.h | 4 ++-- lldb/tools/debugserver/source/RNBRemote.cpp | 6 +++--- lldb/tools/debugserver/source/RNBRemote.h | 2 +- lldb/tools/lldb-mi/MICmdArgSet.cpp | 6 +++--- lldb/tools/lldb-mi/MICmdArgValFile.cpp | 2 +- lldb/tools/lldb-mi/MICmdArgValListBase.cpp | 2 +- lldb/tools/lldb-mi/MICmdArgValListOfN.cpp | 2 +- lldb/tools/lldb-mi/MICmdArgValNumber.cpp | 2 +- lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp | 4 ++-- lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp | 2 +- lldb/tools/lldb-mi/MICmdArgValString.cpp | 2 +- lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp | 4 ++-- lldb/tools/lldb-mi/MICmnResources.cpp | 2 +- lldb/tools/lldb-mi/MICmnStreamStdin.cpp | 10 +++++----- lldb/tools/lldb-mi/MIDriver.cpp | 10 +++++----- lldb/www/formats.html | 2 +- lldb/www/index.html | 2 +- lldb/www/lldb-gdb.html | 6 +++--- lldb/www/python-reference.html | 4 ++-- lldb/www/scripting.html | 2 +- lldb/www/tutorial.html | 2 +- 43 files changed, 96 insertions(+), 96 deletions(-) diff --git a/lldb/docs/code-signing.txt b/lldb/docs/code-signing.txt index 32de788..1105e0e 100644 --- a/lldb/docs/code-signing.txt +++ b/lldb/docs/code-signing.txt @@ -6,7 +6,7 @@ If you have re-installed a new OS, please delete all old lldb_codesign items from your keychain. There will be 3: a code signing certification and a public and private key. Reboot after deleting them. You will also need to delete and build folders that contained old signed items. The darwin kernel will cache -code sigining using the executable's file system node, so you will need to +code signing using the executable's file system node, so you will need to delete the file so the kernel clears its cache. If you don't have one yet you will need to: diff --git a/lldb/docs/lldb-gdb-remote.txt b/lldb/docs/lldb-gdb-remote.txt index cee4631..e88fd12 100644 --- a/lldb/docs/lldb-gdb-remote.txt +++ b/lldb/docs/lldb-gdb-remote.txt @@ -371,7 +371,7 @@ encoding The encoding type of the register which must be one of: uint (unsigned integer) sint (signed integer) ieee754 (IEEE 754 float) - vector (vector regsiter) + vector (vector register) format The preferred format for display of this register. The value must be one of: @@ -512,7 +512,7 @@ drwxrwxr-x 5 username groupname 4096 Aug 15 21:36 source.cpp // PRIORITY TO IMPLEMENT // High. This packet is usually very easy to implement and can help // LLDB select the correct plug-ins for the job based on the target -// triple information that is suppied. +// triple information that is supplied. //---------------------------------------------------------------------- LLDB supports a host info call that gets all sorts of details of the system diff --git a/lldb/include/lldb/API/SBListener.h b/lldb/include/lldb/API/SBListener.h index c5a0473..4a11ec1 100644 --- a/lldb/include/lldb/API/SBListener.h +++ b/lldb/include/lldb/API/SBListener.h @@ -55,7 +55,7 @@ public: StopListeningForEvents (const lldb::SBBroadcaster& broadcaster, uint32_t event_mask); - // Returns true if an event was recieved, false if we timed out. + // Returns true if an event was received, false if we timed out. bool WaitForEvent (uint32_t num_seconds, lldb::SBEvent &event); diff --git a/lldb/include/lldb/Core/ConnectionFileDescriptor.h b/lldb/include/lldb/Core/ConnectionFileDescriptor.h index 1546a16..538a6bf 100644 --- a/lldb/include/lldb/Core/ConnectionFileDescriptor.h +++ b/lldb/include/lldb/Core/ConnectionFileDescriptor.h @@ -87,7 +87,7 @@ protected: typedef enum { - eFDTypeFile, // Other FD requireing read/write + eFDTypeFile, // Other FD requiring read/write eFDTypeSocket, // Socket requiring send/recv eFDTypeSocketUDP // Unconnected UDP socket requiring sendto/recvfrom } FDType; diff --git a/lldb/include/lldb/Core/EmulateInstruction.h b/lldb/include/lldb/Core/EmulateInstruction.h index 19a3269..c755573 100644 --- a/lldb/include/lldb/Core/EmulateInstruction.h +++ b/lldb/include/lldb/Core/EmulateInstruction.h @@ -94,7 +94,7 @@ public: enum ContextType { eContextInvalid = 0, - // Read an instruciton opcode from memory + // Read an instruction opcode from memory eContextReadOpcode, // Usually used for writing a register value whose source value is an @@ -223,13 +223,13 @@ public: struct ISAAndImmediate { uint32_t isa; - uint32_t unsigned_data32; // immdiate data + uint32_t unsigned_data32; // immediate data } ISAAndImmediate; struct ISAAndImmediateSigned { uint32_t isa; - int32_t signed_data32; // signed immdiate data + int32_t signed_data32; // signed immediate data } ISAAndImmediateSigned; uint32_t isa; diff --git a/lldb/include/lldb/Core/Listener.h b/lldb/include/lldb/Core/Listener.h index a12a65d..2dbd2eb 100644 --- a/lldb/include/lldb/Core/Listener.h +++ b/lldb/include/lldb/Core/Listener.h @@ -76,7 +76,7 @@ public: StopListeningForEvents (Broadcaster* broadcaster, uint32_t event_mask); - // Returns true if an event was recieved, false if we timed out. + // Returns true if an event was received, false if we timed out. bool WaitForEvent (const TimeValue *timeout, lldb::EventSP &event_sp); diff --git a/lldb/include/lldb/Host/Predicate.h b/lldb/include/lldb/Host/Predicate.h index 6ddf20b..f0e83ea 100644 --- a/lldb/include/lldb/Host/Predicate.h +++ b/lldb/include/lldb/Host/Predicate.h @@ -78,7 +78,7 @@ public: //------------------------------------------------------------------ /// Destructor. /// - /// Destrory the condition, mutex, and T objects. + /// Destroy the condition, mutex, and T objects. //------------------------------------------------------------------ ~Predicate () { @@ -112,7 +112,7 @@ public: /// The new value to set. /// /// @param[in] broadcast_type - /// A value indicating when and if to broadast. See the + /// A value indicating when and if to broadcast. See the /// PredicateBroadcastType enumeration for details. /// /// @see Predicate::Broadcast() @@ -140,7 +140,7 @@ public: /// The bits to set in \a m_value. /// /// @param[in] broadcast_type - /// A value indicating when and if to broadast. See the + /// A value indicating when and if to broadcast. See the /// PredicateBroadcastType enumeration for details. /// /// @see Predicate::Broadcast() @@ -168,7 +168,7 @@ public: /// The bits to clear in \a m_value. /// /// @param[in] broadcast_type - /// A value indicating when and if to broadast. See the + /// A value indicating when and if to broadcast. See the /// PredicateBroadcastType enumeration for details. /// /// @see Predicate::Broadcast() @@ -464,7 +464,7 @@ public: protected: //---------------------------------------------------------------------- - // pthread condition and mutex variable to controll access and allow + // pthread condition and mutex variable to control access and allow // blocking between the main thread and the spotlight index thread. //---------------------------------------------------------------------- T m_value; ///< The templatized value T that we are protecting access to @@ -477,7 +477,7 @@ private: /// Broadcast if needed. /// /// Check to see if we need to broadcast to our condition variable - /// depedning on the \a old_value and on the \a broadcast_type. + /// depending on the \a old_value and on the \a broadcast_type. /// /// If \a broadcast_type is eBroadcastNever, no broadcast will be /// sent. diff --git a/lldb/scripts/Python/interface/SBListener.i b/lldb/scripts/Python/interface/SBListener.i index 9560b91..3bd3760 100644 --- a/lldb/scripts/Python/interface/SBListener.i +++ b/lldb/scripts/Python/interface/SBListener.i @@ -52,7 +52,7 @@ public: StopListeningForEvents (const lldb::SBBroadcaster& broadcaster, uint32_t event_mask); - // Returns true if an event was recieved, false if we timed out. + // Returns true if an event was received, false if we timed out. bool WaitForEvent (uint32_t num_seconds, lldb::SBEvent &event); diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp index acb6368..93b2ab7 100644 --- a/lldb/source/Core/ConnectionFileDescriptor.cpp +++ b/lldb/source/Core/ConnectionFileDescriptor.cpp @@ -609,7 +609,7 @@ ConnectionFileDescriptor::Write (const void *src, size_t src_len, ConnectionStat switch (m_fd_send_type) { - case eFDTypeFile: // Other FD requireing read/write + case eFDTypeFile: // Other FD requiring read/write #ifndef LLDB_DISABLE_POSIX do { @@ -647,7 +647,7 @@ ConnectionFileDescriptor::Write (const void *src, size_t src_len, ConnectionStat { switch (m_fd_send_type) { - case eFDTypeFile: // Other FD requireing read/write + case eFDTypeFile: // Other FD requiring read/write log->Printf ("%p ConnectionFileDescriptor::Write() ::write (fd = %i, src = %p, src_len = %" PRIu64 ") => %" PRIi64 " (error = %s)", static_cast(this), m_fd_send, static_cast(src), @@ -1443,7 +1443,7 @@ ConnectionFileDescriptor::ConnectUDP (const char *host_and_port, Error *error_pt if (m_fd_recv == -1) return eConnectionStatusError; - // At this point we have setup the recieve port, now we need to + // At this point we have setup the receive port, now we need to // setup the UDP send socket struct addrinfo hints; @@ -1525,7 +1525,7 @@ ConnectionFileDescriptor::SetSocketReceiveTimeout (uint32_t timeout_usec) { switch (m_fd_recv_type) { - case eFDTypeFile: // Other FD requireing read/write + case eFDTypeFile: // Other FD requiring read/write break; case eFDTypeSocket: // Socket requiring send/recv diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp index 2552165..a0958bd 100644 --- a/lldb/source/Core/DataExtractor.cpp +++ b/lldb/source/Core/DataExtractor.cpp @@ -393,7 +393,7 @@ DataExtractor::GetU8 (offset_t *offset_ptr) const // // RETURNS the non-NULL buffer pointer upon successful extraction of // all the requested bytes, or NULL when the data is not available in -// the buffer due to being out of bounds, or unsufficient data. +// the buffer due to being out of bounds, or insufficient data. //---------------------------------------------------------------------- void * DataExtractor::GetU8 (offset_t *offset_ptr, void *dst, uint32_t count) const @@ -474,7 +474,7 @@ DataExtractor::GetU64_unchecked (offset_t *offset_ptr) const // // RETURNS the non-NULL buffer pointer upon successful extraction of // all the requested bytes, or NULL when the data is not available -// in the buffer due to being out of bounds, or unsufficient data. +// in the buffer due to being out of bounds, or insufficient data. //---------------------------------------------------------------------- void * DataExtractor::GetU16 (offset_t *offset_ptr, void *void_dst, uint32_t count) const @@ -537,7 +537,7 @@ DataExtractor::GetU32 (offset_t *offset_ptr) const // // RETURNS the non-NULL buffer pointer upon successful extraction of // all the requested bytes, or NULL when the data is not available -// in the buffer due to being out of bounds, or unsufficient data. +// in the buffer due to being out of bounds, or insufficient data. //---------------------------------------------------------------------- void * DataExtractor::GetU32 (offset_t *offset_ptr, void *void_dst, uint32_t count) const @@ -1108,7 +1108,7 @@ DataExtractor::CopyByteOrderedData (offset_t src_offset, // follows the NULL terminator byte. // // If the offset pointed to by "offset_ptr" is out of bounds, or if -// "length" is non-zero and there aren't enough avaialable +// "length" is non-zero and there aren't enough available // bytes, NULL will be returned and "offset_ptr" will not be // updated. //---------------------------------------------------------------------- @@ -1134,7 +1134,7 @@ DataExtractor::GetCStr (offset_t *offset_ptr) const // We reached the end of the data without finding a NULL C string // terminator. Fall through and return NULL otherwise anyone that - // would have used the result as a C string can wonder into + // would have used the result as a C string can wander into // unknown memory... } return NULL; @@ -1827,7 +1827,7 @@ DataExtractor::Dump (Stream *s, { case llvm::Triple::x86: case llvm::Triple::x86_64: - // clang will assert when contructing the apfloat if we use a 16 byte integer value + // clang will assert when constructing the apfloat if we use a 16 byte integer value if (GetAPInt (*this, &offset, 10, apint)) { llvm::APFloat apfloat (ast->getFloatTypeSemantics(ast->LongDoubleTy), apint); diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 63b195c..0def368 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -75,7 +75,7 @@ static DebuggerList & GetDebuggerList() { // hide the static debugger list inside a singleton accessor to avoid - // global init contructors + // global init constructors static DebuggerList g_list; return g_list; } @@ -475,7 +475,7 @@ LoadPluginCallback { // Try and recurse into anything that a directory or symbolic link. // We must also do this for unknown as sometimes the directory enumeration - // might be enurating a file system that doesn't have correct file type + // might be enumerating a file system that doesn't have correct file type // information. return FileSpec::eEnumerateDirectoryResultEnter; } @@ -1007,7 +1007,7 @@ Debugger::PopIOHandler (const IOHandlerSP& pop_reader_sp) Mutex::Locker locker (m_input_reader_stack.GetMutex()); // The reader on the stop of the stack is done, so let the next - // read on the stack referesh its prompt and if there is one... + // read on the stack refresh its prompt and if there is one... if (!m_input_reader_stack.IsEmpty()) { IOHandlerSP reader_sp(m_input_reader_stack.Top()); diff --git a/lldb/source/Core/PluginManager.cpp b/lldb/source/Core/PluginManager.cpp index dbf7139..2c29c65 100644 --- a/lldb/source/Core/PluginManager.cpp +++ b/lldb/source/Core/PluginManager.cpp @@ -153,7 +153,7 @@ LoadPluginCallback { // Try and recurse into anything that a directory or symbolic link. // We must also do this for unknown as sometimes the directory enumeration - // might be enurating a file system that doesn't have correct file type + // might be enumerating a file system that doesn't have correct file type // information. return FileSpec::eEnumerateDirectoryResultEnter; } diff --git a/lldb/source/Interpreter/OptionValueProperties.cpp b/lldb/source/Interpreter/OptionValueProperties.cpp index 80f2b99..0497ee1 100644 --- a/lldb/source/Interpreter/OptionValueProperties.cpp +++ b/lldb/source/Interpreter/OptionValueProperties.cpp @@ -47,7 +47,7 @@ OptionValueProperties::OptionValueProperties (const OptionValueProperties &globa const size_t num_properties = m_properties.size(); for (size_t i=0; iTripleVendorWasSpecified(); @@ -72,7 +72,7 @@ PlatformLinux::CreateInstance (bool force, const ArchSpec *arch) #if defined(__linux__) // Only accept "unknown" for the OS if the host is linux and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownOS: create = !arch->TripleOSWasSpecified(); diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp index 820f18e..94e1836 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp @@ -94,7 +94,7 @@ PlatformDarwinKernel::CreateInstance (bool force, const ArchSpec *arch) break; // Only accept "unknown" for vendor if the host is Apple and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownArch: create = !arch->TripleVendorWasSpecified(); @@ -111,7 +111,7 @@ PlatformDarwinKernel::CreateInstance (bool force, const ArchSpec *arch) case llvm::Triple::MacOSX: break; // Only accept "vendor" for vendor if the host is Apple and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownOS: create = !arch->TripleOSWasSpecified(); diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp index 7acde18..b305189 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp @@ -89,7 +89,7 @@ PlatformMacOSX::CreateInstance (bool force, const ArchSpec *arch) #if defined(__APPLE__) // Only accept "unknown" for vendor if the host is Apple and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownArch: create = !arch->TripleVendorWasSpecified(); @@ -108,7 +108,7 @@ PlatformMacOSX::CreateInstance (bool force, const ArchSpec *arch) break; #if defined(__APPLE__) // Only accept "vendor" for vendor if the host is Apple and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownOS: create = !arch->TripleOSWasSpecified(); diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp index 545ac07..92901e1 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp @@ -105,7 +105,7 @@ PlatformRemoteiOS::CreateInstance (bool force, const ArchSpec *arch) #if defined(__APPLE__) // Only accept "unknown" for the vendor if the host is Apple and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownArch: create = !arch->TripleVendorWasSpecified(); @@ -125,7 +125,7 @@ PlatformRemoteiOS::CreateInstance (bool force, const ArchSpec *arch) #if defined(__APPLE__) // Only accept "unknown" for the OS if the host is Apple and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownOS: create = !arch->TripleOSWasSpecified(); diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp index 0803f64..815a9d1 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp @@ -80,7 +80,7 @@ PlatformiOSSimulator::CreateInstance (bool force, const ArchSpec *arch) #if defined(__APPLE__) // Only accept "unknown" for the vendor if the host is Apple and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownArch: create = !arch->TripleVendorWasSpecified(); @@ -101,7 +101,7 @@ PlatformiOSSimulator::CreateInstance (bool force, const ArchSpec *arch) #if defined(__APPLE__) // Only accept "unknown" for the OS if the host is Apple and - // it "unknown" wasn't specified (it was just returned becasue it + // it "unknown" wasn't specified (it was just returned because it // was NOT specified) case llvm::Triple::UnknownOS: create = !arch->TripleOSWasSpecified(); diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp index acaf825..10f47f6 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp @@ -200,7 +200,7 @@ GDBRemoteRegisterContext::ReadRegisterBytes (const RegisterInfo *reg_info, DataE const uint32_t prim_reg = reg_info->value_regs[idx]; if (prim_reg == LLDB_INVALID_REGNUM) break; - // We have a valid primordial regsiter as our constituent. + // We have a valid primordial register as our constituent. // Grab the corresponding register info. const RegisterInfo *prim_reg_info = GetRegisterInfoAtIndex(prim_reg); if (prim_reg_info == NULL) @@ -390,7 +390,7 @@ GDBRemoteRegisterContext::WriteRegisterBytes (const lldb_private::RegisterInfo * const uint32_t reg = reg_info->value_regs[idx]; if (reg == LLDB_INVALID_REGNUM) break; - // We have a valid primordial regsiter as our constituent. + // We have a valid primordial register as our constituent. // Grab the corresponding register info. const RegisterInfo *value_reg_info = GetRegisterInfoAtIndex(reg); if (value_reg_info == NULL) @@ -653,7 +653,7 @@ GDBRemoteRegisterContext::WriteAllRegisterValues (const lldb::DataBufferSP &data response.GetStringRef().assign (G_packet, G_packet_len); response.SetFilePos(1); // Skip the leading 'G' - // G_packet_len is hex-ascii characters plus prefix 'G' plus suffix therad specifier. + // G_packet_len is hex-ascii characters plus prefix 'G' plus suffix thread specifier. // This means buffer will be a little more than 2x larger than necessary but we resize // it down once we've extracted all hex ascii chars from the packet. DataBufferHeap buffer (G_packet_len, 0); @@ -701,7 +701,7 @@ GDBRemoteRegisterContext::WriteAllRegisterValues (const lldb::DataBufferSP &data } else if (static_cast(size_not_including_slice_registers) == restore_data.GetByteSize()) { - // The size of the packet is the same as concenating all of the registers sequentially, + // The size of the packet is the same as concatenating all of the registers sequentially, // skipping the slice registers use_byte_offset_into_buffer = true; } diff --git a/lldb/test/functionalities/thread/concurrent_events/main.cpp b/lldb/test/functionalities/thread/concurrent_events/main.cpp index 83233d5..0733e4c 100644 --- a/lldb/test/functionalities/thread/concurrent_events/main.cpp +++ b/lldb/test/functionalities/thread/concurrent_events/main.cpp @@ -11,7 +11,7 @@ // (breakpoints, watchpoints, crashes, and signal generation/delivery) happen // from multiple threads. The test expects the debugger to set a breakpoint on // the main thread (before any worker threads are spawned) and modify variables -// which control the number of therads that are spawned for each action. +// which control the number of threads that are spawned for each action. #include #include diff --git a/lldb/tools/debugserver/source/ChangeLog b/lldb/tools/debugserver/source/ChangeLog index 851bcf0..6298ff2 100644 --- a/lldb/tools/debugserver/source/ChangeLog +++ b/lldb/tools/debugserver/source/ChangeLog @@ -1182,7 +1182,7 @@ callback for all logging in libdebugnub.dylib and any code that loads it. (DNBLogToASL): Removed function as it is deprecated in favor of - using DNBLogSetLogCallback to regsiter a callback function that + using DNBLogSetLogCallback to register a callback function that implements the logging. (DNBLogToFile): Ditto. (DNBLogCloseLogFile): Ditto. diff --git a/lldb/tools/debugserver/source/PThreadEvent.h b/lldb/tools/debugserver/source/PThreadEvent.h index 7928566..46c7cc0 100644 --- a/lldb/tools/debugserver/source/PThreadEvent.h +++ b/lldb/tools/debugserver/source/PThreadEvent.h @@ -41,7 +41,7 @@ public: uint32_t WaitForResetAck (const uint32_t mask, const struct timespec *timeout_abstime = NULL) const; protected: //---------------------------------------------------------------------- - // pthread condition and mutex variable to controll access and allow + // pthread condition and mutex variable to control access and allow // blocking between the main thread and the spotlight index thread. //---------------------------------------------------------------------- mutable PThreadMutex m_mutex; @@ -51,7 +51,7 @@ protected: uint32_t m_validBits; uint32_t m_reset_ack_mask; private: - PThreadEvent(const PThreadEvent&); // Outlaw copy contructor + PThreadEvent(const PThreadEvent&); // Outlaw copy constructor PThreadEvent& operator=(const PThreadEvent& rhs); }; diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp index f2b1171..b5d7862 100644 --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -197,7 +197,7 @@ RNBRemote::CreatePacketTable () t.push_back (Packet (allocate_memory, &RNBRemote::HandlePacket_AllocateMemory, NULL, "_M", "Allocate memory in the inferior process.")); t.push_back (Packet (deallocate_memory, &RNBRemote::HandlePacket_DeallocateMemory, NULL, "_m", "Deallocate memory in the inferior process.")); t.push_back (Packet (save_register_state, &RNBRemote::HandlePacket_SaveRegisterState, NULL, "QSaveRegisterState", "Save the register state for the current thread and return a decimal save ID.")); - t.push_back (Packet (restore_register_state, &RNBRemote::HandlePacket_RestoreRegisterState, NULL, "QRestoreRegisterState:", "Restore the register state given a save ID previosly returned from a call to QSaveRegisterState.")); + t.push_back (Packet (restore_register_state, &RNBRemote::HandlePacket_RestoreRegisterState, NULL, "QRestoreRegisterState:", "Restore the register state given a save ID previously returned from a call to QSaveRegisterState.")); t.push_back (Packet (memory_region_info, &RNBRemote::HandlePacket_MemoryRegionInfo, NULL, "qMemoryRegionInfo", "Return size and attributes of a memory region that contains the given address")); t.push_back (Packet (get_profile_data, &RNBRemote::HandlePacket_GetProfileData, NULL, "qGetProfileData", "Return profiling data of the current target.")); t.push_back (Packet (set_enable_profiling, &RNBRemote::HandlePacket_SetEnableAsyncProfiling, NULL, "QSetEnableAsyncProfiling", "Enable or disable the profiling of current target.")); @@ -985,7 +985,7 @@ RNBRemote::InitializeRegisters (bool force) } } - // Now we must find any regsiters whose values are in other registers and fix up + // Now we must find any registers whose values are in other registers and fix up // the offsets since we removed all gaps... for (auto ®_entry: g_dynamic_register_map) { @@ -2929,7 +2929,7 @@ RNBRemote::HandlePacket_AllocateMemory (const char *p) } // FORMAT: _mXXXXXX -// XXXXXX: address that was previosly allocated +// XXXXXX: address that was previously allocated // // RESPONSE: XXXXXX // OK: address was deallocated diff --git a/lldb/tools/debugserver/source/RNBRemote.h b/lldb/tools/debugserver/source/RNBRemote.h index 1622ba1..0d99465 100644 --- a/lldb/tools/debugserver/source/RNBRemote.h +++ b/lldb/tools/debugserver/source/RNBRemote.h @@ -249,7 +249,7 @@ public: RNBSocket& Comm() { return m_comm; } private: - // Outlaw some contructors + // Outlaw some constructors RNBRemote (const RNBRemote &); protected: diff --git a/lldb/tools/lldb-mi/MICmdArgSet.cpp b/lldb/tools/lldb-mi/MICmdArgSet.cpp index fade163..a1df2f7 100644 --- a/lldb/tools/lldb-mi/MICmdArgSet.cpp +++ b/lldb/tools/lldb-mi/MICmdArgSet.cpp @@ -85,7 +85,7 @@ void CMICmdArgSet::Destroy( void ) //++ ------------------------------------------------------------------------------------ // Details: Retrieve the state flag indicating that the command set up ready to parse -// command arguments or options found that one or more arguemnts was indeed +// command arguments or options found that one or more arguments was indeed // present but not handled. This is given as a warning in the MI log file. // Type: Method. // Args: None. @@ -98,7 +98,7 @@ bool CMICmdArgSet::IsArgsPresentButNotHandledByCmd( void ) const } //++ ------------------------------------------------------------------------------------ -// Details: Add the the list of command's arguments to parse and validate another one. +// Details: Add the list of command's arguments to parse and validate another one. // Type: Method. // Args: vArg - (R) A command argument object. // Return: MIstatus::success - Functional succeeded. @@ -161,7 +161,7 @@ const CMICmdArgSet::SetCmdArgs_t & CMICmdArgSet::GetArgsNotHandledByCmd( void ) //++ ------------------------------------------------------------------------------------ // Details: Given a set of command argument objects parse the context option string to // find those argument and retrieve their value. If the function fails call -// GetArgsThatAreMissing() to see which commands that were manadatory were +// GetArgsThatAreMissing() to see which commands that were mandatory were // missing or failed to parse. // Type: Method. // Args: vStrMiCmd - (R) Command's name. diff --git a/lldb/tools/lldb-mi/MICmdArgValFile.cpp b/lldb/tools/lldb-mi/MICmdArgValFile.cpp index 577bfe0..e111852 100644 --- a/lldb/tools/lldb-mi/MICmdArgValFile.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValFile.cpp @@ -50,7 +50,7 @@ CMICmdArgValFile::CMICmdArgValFile( const CMIUtilString & vrArgName, const bool //++ ------------------------------------------------------------------------------------ // Details: CMICmdArgValFile destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. diff --git a/lldb/tools/lldb-mi/MICmdArgValListBase.cpp b/lldb/tools/lldb-mi/MICmdArgValListBase.cpp index 4a0d073..9963920 100644 --- a/lldb/tools/lldb-mi/MICmdArgValListBase.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValListBase.cpp @@ -75,7 +75,7 @@ CMICmdArgValListBase::CMICmdArgValListBase( const CMIUtilString & vrArgName, con //++ ------------------------------------------------------------------------------------ // Details: CMICmdArgValListBase destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. diff --git a/lldb/tools/lldb-mi/MICmdArgValListOfN.cpp b/lldb/tools/lldb-mi/MICmdArgValListOfN.cpp index ee3df54..2ba735e 100644 --- a/lldb/tools/lldb-mi/MICmdArgValListOfN.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValListOfN.cpp @@ -57,7 +57,7 @@ CMICmdArgValListOfN::CMICmdArgValListOfN( const CMIUtilString & vrArgName, const //++ ------------------------------------------------------------------------------------ // Details: CMICmdArgValListOfN destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. diff --git a/lldb/tools/lldb-mi/MICmdArgValNumber.cpp b/lldb/tools/lldb-mi/MICmdArgValNumber.cpp index 67affda..18bdccd 100644 --- a/lldb/tools/lldb-mi/MICmdArgValNumber.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValNumber.cpp @@ -52,7 +52,7 @@ CMICmdArgValNumber::CMICmdArgValNumber( const CMIUtilString & vrArgName, const b //++ ------------------------------------------------------------------------------------ // Details: CMICmdArgValNumber destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. diff --git a/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp b/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp index 6fa6a59..6c87984 100644 --- a/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValOptionLong.cpp @@ -72,7 +72,7 @@ CMICmdArgValOptionLong::CMICmdArgValOptionLong( const CMIUtilString & vrArgName, //++ ------------------------------------------------------------------------------------ // Details: CMICmdArgValOptionLong destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. @@ -107,7 +107,7 @@ void CMICmdArgValOptionLong::Destroy( void ) //++ ------------------------------------------------------------------------------------ // Details: Parse the command's argument options string and try to extract the long -// arguemnt *this argument type is looking for. +// argument *this argument type is looking for. // Type: Overridden. // Args: vwArgContext - (RW) The command's argument options string. // Return: MIstatus::success - Functional succeeded. diff --git a/lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp b/lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp index 77128b7..76adb7f 100644 --- a/lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValOptionShort.cpp @@ -66,7 +66,7 @@ CMICmdArgValOptionShort::CMICmdArgValOptionShort( const CMIUtilString & vrArgNam //++ ------------------------------------------------------------------------------------ // Details: CMICmdArgValOptionShort destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. diff --git a/lldb/tools/lldb-mi/MICmdArgValString.cpp b/lldb/tools/lldb-mi/MICmdArgValString.cpp index 8b43a45..b21346d 100644 --- a/lldb/tools/lldb-mi/MICmdArgValString.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValString.cpp @@ -74,7 +74,7 @@ CMICmdArgValString::CMICmdArgValString( const CMIUtilString & vrArgName, const b //++ ------------------------------------------------------------------------------------ // Details: CMICmdArgValString destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. diff --git a/lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp b/lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp index 0f6a867..5ac103a 100644 --- a/lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValThreadGrp.cpp @@ -52,7 +52,7 @@ CMICmdArgValThreadGrp::CMICmdArgValThreadGrp( const CMIUtilString & vrArgName, c //++ ------------------------------------------------------------------------------------ // Details: CMICmdArgValThreadGrp destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. @@ -169,4 +169,4 @@ bool CMICmdArgValThreadGrp::ExtractNumber( const CMIUtilString & vrTxt ) MIuint CMICmdArgValThreadGrp::GetNumber( void ) const { return m_nThreadGrp; -} \ No newline at end of file +} diff --git a/lldb/tools/lldb-mi/MICmnResources.cpp b/lldb/tools/lldb-mi/MICmnResources.cpp index 6668140..dbd798f 100644 --- a/lldb/tools/lldb-mi/MICmnResources.cpp +++ b/lldb/tools/lldb-mi/MICmnResources.cpp @@ -245,7 +245,7 @@ CMICmnResources::CMICmnResources( void ) //++ ------------------------------------------------------------------------------------ // Details: CMICmnResources destructor. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: None. // Throws: None. diff --git a/lldb/tools/lldb-mi/MICmnStreamStdin.cpp b/lldb/tools/lldb-mi/MICmnStreamStdin.cpp index d4f53df..ccd3544 100644 --- a/lldb/tools/lldb-mi/MICmnStreamStdin.cpp +++ b/lldb/tools/lldb-mi/MICmnStreamStdin.cpp @@ -187,7 +187,7 @@ bool CMICmnStreamStdin::SetPrompt( const CMIUtilString & vNewPrompt ) } //++ ------------------------------------------------------------------------------------ -// Details: Retreive the command line prompt text currently being used. +// Details: Retrieve the command line prompt text currently being used. // Type: Method. // Args: None. // Return: const CMIUtilString & - Functional failed. @@ -201,7 +201,7 @@ const CMIUtilString & CMICmnStreamStdin::GetPrompt( void ) const //++ ------------------------------------------------------------------------------------ // Details: Wait on input from stream Stdin. On each line of input received it is // validated and providing there are no errors on the stream or the input -// buffer is not exceeded the data is passed to the vistor. +// buffer is not exceeded the data is passed to the visitor. // Type: Method. // Args: vrVisitor - (W) A client deriver callback. // Return: MIstatus::success - Functional succeeded. @@ -216,7 +216,7 @@ bool CMICmnStreamStdin::SetVisitor( IStreamStdin & vrVisitor ) //++ ------------------------------------------------------------------------------------ // Details: Set whether to display optional command line prompt. The prompt is output to -// stdout. Disable it when this may interfer with the client reading stdout as +// stdout. Disable it when this may interfere with the client reading stdout as // input and it tries to interpret the prompt text to. // Type: Method. // Args: vbYes - (R) True = Yes prompt is shown/output to the user (stdout), false = no prompt. @@ -231,7 +231,7 @@ void CMICmnStreamStdin::SetEnablePrompt( const bool vbYes ) //++ ------------------------------------------------------------------------------------ // Details: Get whether to display optional command line prompt. The prompt is output to -// stdout. Disable it when this may interfer with the client reading stdout as +// stdout. Disable it when this may interfere with the client reading stdout as // input and it tries to interpret the prompt text to. // Type: Method. // Args: None. @@ -366,7 +366,7 @@ void CMICmnStreamStdin::SetCtrlCHit( void ) //++ ------------------------------------------------------------------------------------ // Details: The main worker method for this thread. -// Type: Overidden. +// Type: Overridden. // Args: vrbIsAlive = (W) True = *this thread is working, false = thread has exited. // Return: MIstatus::success - Functional succeeded. // MIstatus::failure - Functional failed. diff --git a/lldb/tools/lldb-mi/MIDriver.cpp b/lldb/tools/lldb-mi/MIDriver.cpp index 8a5ffdd..14f9cc8 100644 --- a/lldb/tools/lldb-mi/MIDriver.cpp +++ b/lldb/tools/lldb-mi/MIDriver.cpp @@ -747,7 +747,7 @@ FILE * CMIDriver::GetStdin( void ) const //++ ------------------------------------------------------------------------------------ // Details: *this driver provides a file stream to other pass through assigned drivers // so they know what to write to. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: FILE * - Pointer to stream. // Throws: None. @@ -764,7 +764,7 @@ FILE * CMIDriver::GetStdout( void ) const //++ ------------------------------------------------------------------------------------ // Details: *this driver provides a error file stream to other pass through assigned drivers // so they know what to write to. -// Type: Overidden. +// Type: Overridden. // Args: None. // Return: FILE * - Pointer to stream. // Throws: None. @@ -775,7 +775,7 @@ FILE * CMIDriver::GetStderr( void ) const // available before *this driver has been initialized! Flaw? // This very likely to change later to a stream that the pass thru driver - // will write to and *this driver reads from to pass on the the CMICmnLog object + // will write to and *this driver reads from to pass on the CMICmnLog object return stderr; } @@ -932,7 +932,7 @@ bool CMIDriver::ExecuteCommand( const SMICmdData & vCmdData ) //++ ------------------------------------------------------------------------------------ // Details: Set the MI Driver's exit application flag. The application checks this flag -// after every stdin line is read so the exit may not be instantious. +// after every stdin line is read so the exit may not be instantaneous. // If vbForceExit is false the MI Driver queries its state and determines if is // should exit or continue operating depending on that running state. // This is related to the running state of the MI driver. @@ -1114,4 +1114,4 @@ bool CMIDriver::InitClientIDEEclipse( void ) const std::cout << "(gdb)" << std::endl; return MIstatus::success; -} \ No newline at end of file +} diff --git a/lldb/www/formats.html b/lldb/www/formats.html index 9e994cb..b40dd97 100755 --- a/lldb/www/formats.html +++ b/lldb/www/formats.html @@ -91,7 +91,7 @@ module.file.fullpathThe basename of the current module (shared library or executable) process.file.basenameThe basename of the file for the process process.file.fullpathThe fullname of the file for the process - process.idThe process ID native the the system on which the inferior runs. + process.idThe process ID native to the system on which the inferior runs. process.nameThe name of the process at runtime thread.idThe thread identifier for the current thread thread.indexThe unique one based thread index ID which is guaranteed to be unique as threads come and go. diff --git a/lldb/www/index.html b/lldb/www/index.html index 3b77b95..d0003e03 100755 --- a/lldb/www/index.html +++ b/lldb/www/index.html @@ -56,7 +56,7 @@ language features and runtimes in expressions without having to reimplement any of this functionality. It also leverages the compiler to take care of all ABI details when making functions calls for expressions, when disassembling - instructions and extracting instruciton details, and much more. + instructions and extracting instruction details, and much more.

The major benefits include:

  • Up to date language support for C, C++, Objective C
  • diff --git a/lldb/www/lldb-gdb.html b/lldb/www/lldb-gdb.html index 1a9299a..803c870 100755 --- a/lldb/www/lldb-gdb.html +++ b/lldb/www/lldb-gdb.html @@ -616,7 +616,7 @@ - Display a the variable "argc" and "argv" every time you stop. + Display the variables "argc" and "argv" every time you stop. (gdb) display argc
    @@ -630,7 +630,7 @@ - Display a the variable "argc" and "argv" only when you stop in the function named main. + Display the variables "argc" and "argv" only when you stop in the function named main. @@ -1157,7 +1157,7 @@ - Find full souce line information. + Find full source line information. (gdb) info line 0x1ec4
    diff --git a/lldb/www/python-reference.html b/lldb/www/python-reference.html index dfc2165..f70f538 100755 --- a/lldb/www/python-reference.html +++ b/lldb/www/python-reference.html @@ -322,7 +322,7 @@ Enter your Python command(s). Type 'DONE' to end.

    Python functions can be used to create new LLDB command interpreter commands, which will work like all the natively defined lldb commands. This provides a very flexible and easy way to extend LLDB to meet your debugging requirements.

    -

    To write a python function that implements a new LDB command define the function to take four arguments as follows:

    +

    To write a python function that implements a new LLDB command define the function to take four arguments as follows:

    def command_function(debugger, command, result, internal_dict):
               # Your code goes here
    @@ -414,7 +414,7 @@ Enter your Python command(s). Type 'DONE' to end.
                 module at the top of the python ls.py module. This test
                must be in code that isn't contained inside of any function or class,
                just like the standard test for __main__ like all python modules
    -           usally do. Sample code would look like:
    +           usually do. Sample code would look like:
     
     
    if __name__ == '__main__':
         # Create a new debugger instance in your module if your module 
    diff --git a/lldb/www/scripting.html b/lldb/www/scripting.html
    index 7e86acf..10ba05b 100755
    --- a/lldb/www/scripting.html
    +++ b/lldb/www/scripting.html
    @@ -520,7 +520,7 @@ Process 696 stopped
     
                        

    After setting our breakpoints, adding our breakpoint commands and continuing, we run for a little bit and then hit one of our breakpoints, printing out the - error message from the breakpoint command. Apparently at this point the the + error message from the breakpoint command. Apparently at this point in the tree, our search algorithm decided to go right, but our path says the node we want is to the left. Examining the word at the node where we stopped, and our search word, we see:

    diff --git a/lldb/www/tutorial.html b/lldb/www/tutorial.html index bbab90d..d144b71 100755 --- a/lldb/www/tutorial.html +++ b/lldb/www/tutorial.html @@ -77,7 +77,7 @@ foo.c) got more and more complex and bizarre, and especially in C++ there are times where there's really no way to specify the function you want to break on. The lldb commands are more verbose but also more precise - and allow for intellegent auto completion. + and allow for intelligent auto completion.

    To set the same file and line breakpoint in LLDB you can enter either of:

    -- 2.7.4