From: Bruce Mitchener Date: Tue, 1 Jul 2014 21:22:11 +0000 (+0000) Subject: Fix typos. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d93c4a33395a7d9b960ec64348a07ba204d51017;p=platform%2Fupstream%2Fllvm.git Fix typos. llvm-svn: 212132 --- diff --git a/lldb/docs/lldb-gdb-remote.txt b/lldb/docs/lldb-gdb-remote.txt index 4bbc06a..4498928 100644 --- a/lldb/docs/lldb-gdb-remote.txt +++ b/lldb/docs/lldb-gdb-remote.txt @@ -1083,7 +1083,7 @@ for this region. // "qsProcessInfo" // // BRIEF -// Get the first process info (qfProcessInfo) or subsequent processs +// Get the first process info (qfProcessInfo) or subsequent process // info (qsProcessInfo) for one or more processes on the remote // platform. The first call gets the first match and subsequent calls // to qsProcessInfo gets the subsequent matches. Return an error EXX, @@ -1296,7 +1296,7 @@ for this region. // sending strings with arbitrary contents in them, including the '#', '$', and '*' // characters that have special meaning in gdb-remote protocol and cannot occur // in the middle of the string. The standard solution for this would be to require -// ascii-hex encoding of all strings, or ascii-hex encode the entier JSON payload. +// ascii-hex encoding of all strings, or ascii-hex encode the entire JSON payload. // // Instead, the binary escaping convention is used for JSON data. This convention // (e.g. used for the X packet) says that if '#', '$', '*', or '}' are to occur in diff --git a/lldb/examples/python/delta.py b/lldb/examples/python/delta.py index da17dd7..e470de5 100755 --- a/lldb/examples/python/delta.py +++ b/lldb/examples/python/delta.py @@ -68,7 +68,7 @@ def parse_log_file(file, options): generated using: (lldb) log enable --threadsafe --timestamp --file .... - This log file will contain timestamps and this fucntion will then normalize + This log file will contain timestamps and this function will then normalize those packets to be relative to the first value timestamp that is found and show delta times between log lines and also keep track of how long it takes for GDB remote commands to make a send/receive round trip. This can be diff --git a/lldb/examples/python/gdbremote.py b/lldb/examples/python/gdbremote.py index fa52ecb..512162a 100755 --- a/lldb/examples/python/gdbremote.py +++ b/lldb/examples/python/gdbremote.py @@ -45,7 +45,7 @@ class TerminalColors: return '' def bold(self, on = True): - '''Enable or disable bold depending on the "on" paramter.''' + '''Enable or disable bold depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[1m"; @@ -54,7 +54,7 @@ class TerminalColors: return '' def italics(self, on = True): - '''Enable or disable italics depending on the "on" paramter.''' + '''Enable or disable italics depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[3m"; @@ -63,7 +63,7 @@ class TerminalColors: return '' def underline(self, on = True): - '''Enable or disable underline depending on the "on" paramter.''' + '''Enable or disable underline depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[4m"; @@ -72,7 +72,7 @@ class TerminalColors: return '' def inverse(self, on = True): - '''Enable or disable inverse depending on the "on" paramter.''' + '''Enable or disable inverse depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[7m"; @@ -81,7 +81,7 @@ class TerminalColors: return '' def strike(self, on = True): - '''Enable or disable strike through depending on the "on" paramter.''' + '''Enable or disable strike through depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[9m"; @@ -859,7 +859,7 @@ gdb_remote_commands = { def parse_gdb_log_file(file, options): '''Parse a GDB log file that was generated by enabling logging with: (lldb) log enable --threadsafe --timestamp --file gdb-remote packets - This log file will contain timestamps and this fucntion will then normalize + This log file will contain timestamps and this function will then normalize those packets to be relative to the first value timestamp that is found and show delta times between log lines and also keep track of how long it takes for GDB remote commands to make a send/receive round trip. This can be diff --git a/lldb/examples/python/mach_o.py b/lldb/examples/python/mach_o.py index 5838c5c..a609b09 100755 --- a/lldb/examples/python/mach_o.py +++ b/lldb/examples/python/mach_o.py @@ -221,7 +221,7 @@ class TerminalColors: return '' def bold(self, on = True): - '''Enable or disable bold depending on the "on" paramter.''' + '''Enable or disable bold depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[1m"; @@ -230,7 +230,7 @@ class TerminalColors: return '' def italics(self, on = True): - '''Enable or disable italics depending on the "on" paramter.''' + '''Enable or disable italics depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[3m"; @@ -239,7 +239,7 @@ class TerminalColors: return '' def underline(self, on = True): - '''Enable or disable underline depending on the "on" paramter.''' + '''Enable or disable underline depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[4m"; @@ -248,7 +248,7 @@ class TerminalColors: return '' def inverse(self, on = True): - '''Enable or disable inverse depending on the "on" paramter.''' + '''Enable or disable inverse depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[7m"; @@ -257,7 +257,7 @@ class TerminalColors: return '' def strike(self, on = True): - '''Enable or disable strike through depending on the "on" paramter.''' + '''Enable or disable strike through depending on the "on" parameter.''' if self.enabled: if on: return "\x1b[9m"; diff --git a/lldb/include/lldb/API/SBFileSpec.h b/lldb/include/lldb/API/SBFileSpec.h index 5d4447f..d262b98 100644 --- a/lldb/include/lldb/API/SBFileSpec.h +++ b/lldb/include/lldb/API/SBFileSpec.h @@ -21,7 +21,7 @@ public: SBFileSpec (const lldb::SBFileSpec &rhs); - SBFileSpec (const char *path);// Deprected, use SBFileSpec (const char *path, bool resolve) + SBFileSpec (const char *path);// Deprecated, use SBFileSpec (const char *path, bool resolve) SBFileSpec (const char *path, bool resolve); diff --git a/lldb/include/lldb/API/SBFrame.h b/lldb/include/lldb/API/SBFrame.h index 4ae38c1..f6b84ab 100644 --- a/lldb/include/lldb/API/SBFrame.h +++ b/lldb/include/lldb/API/SBFrame.h @@ -75,7 +75,7 @@ public: /// Get the appropriate function name for this frame. Inlined functions in /// LLDB are represented by Blocks that have inlined function information, so /// just looking at the SBFunction or SBSymbol for a frame isn't enough. - /// This function will return the appriopriate function, symbol or inlined + /// This function will return the appropriate function, symbol or inlined /// function name for the frame. /// /// This function returns: diff --git a/lldb/include/lldb/API/SBTarget.h b/lldb/include/lldb/API/SBTarget.h index f5bb8b4..370d40d 100644 --- a/lldb/include/lldb/API/SBTarget.h +++ b/lldb/include/lldb/API/SBTarget.h @@ -56,7 +56,7 @@ public: /// /// This only needs to be specified if clients wish to carefully control /// the exact path will be used to launch a binary. If you create a - /// target with a symlink, that simlink will get resolved in the target + /// target with a symlink, that symlink will get resolved in the target /// and the resolved path will get used to launch the process. Calling /// this function can help you still launch your process using the /// path of your choice. @@ -372,7 +372,7 @@ public: /// Some launch options specified by logical OR'ing /// lldb::LaunchFlags enumeration values together. /// - /// @param[in] stop_at_endtry + /// @param[in] stop_at_entry /// If false do not stop the inferior at the entry point. /// /// @param[out] @@ -621,7 +621,7 @@ public: //------------------------------------------------------------------ - /// The the section base load addresses for all sections in a module. + /// Clear the section base load addresses for all sections in a module. /// /// @param[in] module /// The module to unload. diff --git a/lldb/include/lldb/API/SBThread.h b/lldb/include/lldb/API/SBThread.h index a56e82f..07a43eb 100644 --- a/lldb/include/lldb/API/SBThread.h +++ b/lldb/include/lldb/API/SBThread.h @@ -142,8 +142,8 @@ public: /// the other threads in a process are allowed to run. So when /// SBProcess::Continue() is called, any threads that aren't suspended will /// be allowed to run. If any of the SBThread functions for stepping are - /// called (StepOver, StepInto, StepOut, StepInstruction, RunToAddres), the - /// thread will not be allowed to run and these funtions will simply return. + /// called (StepOver, StepInto, StepOut, StepInstruction, RunToAddress), the + /// thread will not be allowed to run and these functions will simply return. /// /// Eventually we plan to add support for thread centric debugging where /// each thread is controlled individually and each thread would broadcast diff --git a/lldb/include/lldb/API/SBValue.h b/lldb/include/lldb/API/SBValue.h index 332ca50..93b869ba 100644 --- a/lldb/include/lldb/API/SBValue.h +++ b/lldb/include/lldb/API/SBValue.h @@ -176,7 +176,7 @@ public: //------------------------------------------------------------------ /// Get a child value by index from a value. /// - /// Structs, unions, classes, arrays and and pointers have child + /// Structs, unions, classes, arrays and pointers have child /// values that can be access by index. /// /// Structs and unions access child members using a zero based index @@ -211,7 +211,7 @@ public: /// The index of the child value to get /// /// @param[in] use_dynamic - /// An enumeration that specifies wether to get dynamic values, + /// An enumeration that specifies whether to get dynamic values, /// and also if the target can be run to figure out the dynamic /// type of the child value. /// diff --git a/lldb/include/lldb/Breakpoint/Breakpoint.h b/lldb/include/lldb/Breakpoint/Breakpoint.h index 749ff8d..15693f8 100644 --- a/lldb/include/lldb/Breakpoint/Breakpoint.h +++ b/lldb/include/lldb/Breakpoint/Breakpoint.h @@ -431,7 +431,7 @@ public: /// @param[in] is_synchronous /// If \b true the callback will be run on the private event thread /// before the stop event gets reported. If false, the callback will get - /// handled on the public event thead after the stop has been posted. + /// handled on the public event thread after the stop has been posted. /// /// @return /// \b true if the process should stop when you hit the breakpoint. diff --git a/lldb/include/lldb/Breakpoint/BreakpointLocationList.h b/lldb/include/lldb/Breakpoint/BreakpointLocationList.h index ec34641..0d8062e 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointLocationList.h +++ b/lldb/include/lldb/Breakpoint/BreakpointLocationList.h @@ -143,7 +143,7 @@ public: ClearAllBreakpointSites (); //------------------------------------------------------------------ - /// Tells all the breakopint locations in this list to attempt to + /// Tells all the breakpoint locations in this list to attempt to /// resolve any possible breakpoint sites. //------------------------------------------------------------------ void diff --git a/lldb/include/lldb/Breakpoint/BreakpointSite.h b/lldb/include/lldb/Breakpoint/BreakpointSite.h index 204206f..1d2cbea 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointSite.h +++ b/lldb/include/lldb/Breakpoint/BreakpointSite.h @@ -34,7 +34,7 @@ namespace lldb_private { /// The BreakpointSite class handles the physical breakpoint that is /// actually inserted in the target program. As such, it is also the /// one that gets hit, when the program stops. It keeps a list of all -/// BreakpointLocations that share this phsyical site. When the +/// BreakpointLocations that share this physical site. When the /// breakpoint is hit, all the locations are informed by the breakpoint /// site. Breakpoint sites are owned by the process. //---------------------------------------------------------------------- @@ -51,7 +51,7 @@ public: // and m_trap_opcode contain the saved and written opcode. eHardware, // Breakpoint site is set as a hardware breakpoint eExternal // Breakpoint site is managed by an external debug nub or - // debug interface where memory reads trasparently will not + // debug interface where memory reads transparently will not // display any breakpoint opcodes. }; @@ -124,7 +124,7 @@ public: /// Sets whether the current breakpoint site is enabled or not /// /// @param[in] enabled - /// \b true if the breakoint is enabled, \b false otherwise. + /// \b true if the breakpoint is enabled, \b false otherwise. //------------------------------------------------------------------ void SetEnabled (bool enabled); @@ -173,7 +173,7 @@ public: GetNumberOfOwners (); //------------------------------------------------------------------ - /// This method returns the the breakpoint location at index \a index + /// This method returns the breakpoint location at index \a index /// located at this breakpoint site. The owners are listed ordinally /// from 0 to GetNumberOfOwners() - 1 so you can use this method to iterate /// over the owners diff --git a/lldb/include/lldb/Breakpoint/Watchpoint.h b/lldb/include/lldb/Breakpoint/Watchpoint.h index 5dbed03..8493775 100644 --- a/lldb/include/lldb/Breakpoint/Watchpoint.h +++ b/lldb/include/lldb/Breakpoint/Watchpoint.h @@ -134,7 +134,7 @@ public: /// @param[in] is_synchronous /// If \b true the callback will be run on the private event thread /// before the stop event gets reported. If false, the callback will get - /// handled on the public event thead after the stop has been posted. + /// handled on the public event thread after the stop has been posted. /// /// @return /// \b true if the process should stop when you hit the watchpoint. @@ -215,7 +215,7 @@ private: // undergoing a pair of temporary disable/enable actions to avoid recursively // triggering further watchpoint events. uint32_t m_disabled_count; // Keep track of the count that the watchpoint is disabled while in ephemeral mode. - // At the end of the ephemeral mode when the watchpoint is to be enabled agian, + // At the end of the ephemeral mode when the watchpoint is to be enabled again, // we check the count, if it is more than 1, it means the user-supplied actions // actually want the watchpoint to be disabled! uint32_t m_watch_read:1, // 1 if we stop when the watched data is read from diff --git a/lldb/include/lldb/Core/Address.h b/lldb/include/lldb/Core/Address.h index 3220193..8dd2339 100644 --- a/lldb/include/lldb/Core/Address.h +++ b/lldb/include/lldb/Core/Address.h @@ -230,7 +230,7 @@ public: /// offset based address, and \a style lets the user choose. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] style /// The display style for the address. @@ -310,7 +310,7 @@ public: /// /// This function will first resolve its address to a load address. /// Then, if the address turns out to be in code address, return the - /// load address for a an opcode. This address object might have + /// load address for an opcode. This address object might have /// extra bits set (bit zero will be set to Thumb functions for an /// ARM target) that are required for changing the program counter /// and this function will remove any bits that are intended for @@ -362,7 +362,7 @@ public: /// offset (for absolute addresses that have no section). /// /// @return - /// Returns \b true if the the offset is valid, \b false + /// Returns \b true if the offset is valid, \b false /// otherwise. //------------------------------------------------------------------ bool diff --git a/lldb/include/lldb/Core/AddressRange.h b/lldb/include/lldb/Core/AddressRange.h index bd3ab2a..9d781f3 100644 --- a/lldb/include/lldb/Core/AddressRange.h +++ b/lldb/include/lldb/Core/AddressRange.h @@ -189,7 +189,7 @@ public: /// how the base address gets displayed. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] style /// The display style for the address. @@ -215,7 +215,7 @@ public: /// and pointer values, reference counts, etc. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void DumpDebug (Stream *s) const; diff --git a/lldb/include/lldb/Core/Communication.h b/lldb/include/lldb/Core/Communication.h index 2dde550..7e8209d 100644 --- a/lldb/include/lldb/Core/Communication.h +++ b/lldb/include/lldb/Core/Communication.h @@ -59,7 +59,7 @@ namespace lldb_private { /// /// bool Communication::StartReadThread (Error *); /// -/// If true is returned a read thead has been spawned that will +/// If true is returned a read thread has been spawned that will /// continually execute a call to the pure virtual DoRead function: /// /// size_t Communication::ReadFromConnection (void *, size_t, uint32_t); @@ -300,7 +300,7 @@ public: //------------------------------------------------------------------ /// The static read thread function. This function will call /// the "DoRead" function continuously and wait for data to become - /// avaialble. When data is received it will append the available + /// available. When data is received it will append the available /// data to the internal cache and broadcast a /// \b eBroadcastBitReadThreadGotBytes event. /// diff --git a/lldb/include/lldb/Core/ConstString.h b/lldb/include/lldb/Core/ConstString.h index 684cc8f..cfa237c 100644 --- a/lldb/include/lldb/Core/ConstString.h +++ b/lldb/include/lldb/Core/ConstString.h @@ -303,7 +303,7 @@ public: /// returns an integer result. /// /// NOTE: only call this function when you want a true string - /// comparision. If you want string equality use the, use the == + /// comparison. If you want string equality use the, use the == /// operator as it is much more efficient. Also if you want string /// inequality, use the != operator for the same reasons. /// @@ -383,7 +383,7 @@ public: //------------------------------------------------------------------ /// Set the C string value and its mangled counterpart. /// - /// Object files and debug sybmols often use mangled string to + /// Object files and debug symbols often use mangled string to /// represent the linkage name for a symbol, function or global. /// The string pool can efficiently store these values and their /// counterparts so when we run into another instance of a mangled @@ -406,7 +406,7 @@ public: /// Retrieve the mangled or demangled counterpart for a mangled /// or demangled ConstString. /// - /// Object files and debug sybmols often use mangled string to + /// Object files and debug symbols often use mangled string to /// represent the linkage name for a symbol, function or global. /// The string pool can efficiently store these values and their /// counterparts so when we run into another instance of a mangled @@ -478,7 +478,7 @@ public: //------------------------------------------------------------------ /// Get the size in bytes of the current global string pool. /// - /// Reports the the size in bytes of all shared C string values, + /// Reports the size in bytes of all shared C string values, /// containers and any other values as a byte size for the /// entire string pool. /// diff --git a/lldb/include/lldb/Core/DataBuffer.h b/lldb/include/lldb/Core/DataBuffer.h index e64245d..64e2a88 100644 --- a/lldb/include/lldb/Core/DataBuffer.h +++ b/lldb/include/lldb/Core/DataBuffer.h @@ -20,7 +20,7 @@ namespace lldb_private { /// @class DataBuffer DataBuffer.h "lldb/Core/DataBuffer.h" /// @brief A pure virtual protocol class for abstracted data buffers. /// -/// DataBuffer is an abtract class that gets packaged into a shared pointer +/// DataBuffer is an abstract class that gets packaged into a shared pointer /// that can use to implement various ways to store data (on the heap, /// memory mapped, cached inferior memory). It gets used by DataExtractor /// so many DataExtractor objects can share the same data and sub-ranges diff --git a/lldb/include/lldb/Core/DataEncoder.h b/lldb/include/lldb/Core/DataEncoder.h index 658cce0..7cd5d68 100644 --- a/lldb/include/lldb/Core/DataEncoder.h +++ b/lldb/include/lldb/Core/DataEncoder.h @@ -173,7 +173,7 @@ public: } //------------------------------------------------------------------ - /// Get a the data start pointer. + /// Get the data start pointer. /// /// @return /// Returns a pointer to the first byte contained in this @@ -234,7 +234,7 @@ public: /// The size in byte of the integer to encode. /// /// @param[in] value - /// The integer value to write. The least significate bytes of + /// The integer value to write. The least significant bytes of /// the integer value will be written if the size is less than /// 8 bytes. /// @@ -253,7 +253,7 @@ public: /// start encoding. /// /// @param[int] src - /// The buffer that contains the the bytes to encode. + /// The buffer that contains the bytes to encode. /// /// @param[in] src_len /// The number of bytes to encode. diff --git a/lldb/include/lldb/Core/IOHandler.h b/lldb/include/lldb/Core/IOHandler.h index 13d07f9..f477ebd 100644 --- a/lldb/include/lldb/Core/IOHandler.h +++ b/lldb/include/lldb/Core/IOHandler.h @@ -191,7 +191,7 @@ namespace lldb_private { /// /// This will return true if the input stream is a terminal (tty or /// pty) and can cause IO handlers to do different things (like - /// for a comfirmation when deleting all breakpoints). + /// for a confirmation when deleting all breakpoints). //------------------------------------------------------------------ bool GetIsInteractive (); @@ -200,9 +200,9 @@ namespace lldb_private { /// Check if the input is coming from a real terminal. /// /// A real terminal has a valid size with a certain number of rows - /// and colums. If this function returns true, then terminal escape + /// and columns. If this function returns true, then terminal escape /// sequences are expected to work (cursor movement escape sequences, - /// clearning lines, etc). + /// clearing lines, etc). //------------------------------------------------------------------ bool GetIsRealTerminal (); @@ -267,7 +267,7 @@ namespace lldb_private { //------------------------------------------------------------------ /// Called when a line or lines have been retrieved. /// - /// This funtion can handle the current line and possibly call + /// This function can handle the current line and possibly call /// IOHandler::SetIsDone(true) when the IO handler is done like when /// "quit" is entered as a command, of when an empty line is /// received. It is up to the delegate to determine when a line diff --git a/lldb/include/lldb/Core/Mangled.h b/lldb/include/lldb/Core/Mangled.h index 8732dc0..7dc0eca 100644 --- a/lldb/include/lldb/Core/Mangled.h +++ b/lldb/include/lldb/Core/Mangled.h @@ -153,7 +153,7 @@ public: /// demangled name to be computed currently (we don't use the accessor). /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //---------------------------------------------------------------------- void Dump (Stream *s) const; @@ -162,7 +162,7 @@ public: /// Dump a debug description of this object to a Stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //---------------------------------------------------------------------- void DumpDebug (Stream *s) const; @@ -219,7 +219,7 @@ public: /// Which name would you prefer to get? /// /// @return - /// A const reference to the the preferred name string object if this + /// A const reference to the preferred name string object if this /// object has a valid name of that kind, else a const reference to the /// other name is returned. //---------------------------------------------------------------------- diff --git a/lldb/include/lldb/Core/Module.h b/lldb/include/lldb/Core/Module.h index f6491db..d95b5df 100644 --- a/lldb/include/lldb/Core/Module.h +++ b/lldb/include/lldb/Core/Module.h @@ -68,7 +68,7 @@ public: /// use ModuleList::GetSharedModule(). /// /// @param[in] file_spec - /// The file specification for the on disk repesentation of + /// The file specification for the on disk representation of /// this executable image. /// /// @param[in] arch @@ -197,7 +197,7 @@ public: /// in a module. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void Dump (Stream *s); @@ -419,7 +419,7 @@ public: VariableList& variable_list); //------------------------------------------------------------------ - /// Find global and static variables by regular exression. + /// Find global and static variables by regular expression. /// /// @param[in] regex /// A regular expression to use when matching the name. @@ -472,11 +472,11 @@ public: /// /// @param[in] type_name /// The name of the type we are looking for that is a fully - /// or partially qualfieid type name. + /// or partially qualified type name. /// /// @param[in] exact_match - /// If \b true, \a type_name is fully qualifed and must match - /// exactly. If \b false, \a type_name is a partially qualfied + /// If \b true, \a type_name is fully qualified and must match + /// exactly. If \b false, \a type_name is a partially qualified /// name where the leading namespaces or classes can be /// omitted to make finding types that a user may type /// easier. @@ -773,12 +773,12 @@ public: /// A debugging function that will cause everything in a module to /// be parsed. /// - /// All compile units will be pasred, along with all globals and + /// All compile units will be parsed, along with all globals and /// static variables and all functions for those compile units. /// All types, scopes, local variables, static variables, global /// variables, and line tables will be parsed. This can be used /// prior to dumping a module to see a complete list of the - /// resuling debug information that gets parsed, or as a debug + /// resulting debug information that gets parsed, or as a debug /// function to ensure that the module can consume all of the /// debug data the symbol vendor provides. //------------------------------------------------------------------ @@ -966,7 +966,7 @@ public: //------------------------------------------------------------------ // Return true if the file backing this module has changed since the - // module was originally created since we saved the intial file + // module was originally created since we saved the initial file // modification time when the module first gets created. //------------------------------------------------------------------ bool diff --git a/lldb/include/lldb/Core/ModuleList.h b/lldb/include/lldb/Core/ModuleList.h index a736511..c3074d4d 100644 --- a/lldb/include/lldb/Core/ModuleList.h +++ b/lldb/include/lldb/Core/ModuleList.h @@ -138,7 +138,7 @@ public: /// /// Clears the list of modules and releases a reference to each /// module object and if the reference count goes to zero, the - /// module will be deleted. Also relese all memory that might be + /// module will be deleted. Also release all memory that might be /// held by any collection classes (like std::vector) //------------------------------------------------------------------ void @@ -150,7 +150,7 @@ public: /// the supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @see Module::Dump(Stream *) const //------------------------------------------------------------------ @@ -308,7 +308,7 @@ public: VariableList& variable_list) const; //------------------------------------------------------------------ - /// Find global and static variables by regular exression. + /// Find global and static variables by regular expression. /// /// @param[in] regex /// A regular expression to use when matching the name. diff --git a/lldb/include/lldb/Core/RegularExpression.h b/lldb/include/lldb/Core/RegularExpression.h index c116d43..8e36811 100644 --- a/lldb/include/lldb/Core/RegularExpression.h +++ b/lldb/include/lldb/Core/RegularExpression.h @@ -119,7 +119,7 @@ public: RegularExpression (); //------------------------------------------------------------------ - /// Constructor that takes a regulare expression with flags. + /// Constructor that takes a regular expression with flags. /// /// Constructor that compiles \a re using \a flags and stores the /// resulting compiled regular expression into this object. @@ -129,7 +129,7 @@ public: /// compile. /// /// @param[in] flags - /// Flags that are passed the the \c regcomp() function. + /// Flags that are passed to the \c regcomp() function. //------------------------------------------------------------------ explicit RegularExpression (const char* re, int flags); @@ -141,7 +141,7 @@ public: //------------------------------------------------------------------ /// Destructor. /// - /// Any previosuly compiled regular expression contained in this + /// Any previously compiled regular expression contained in this /// object will be freed. //------------------------------------------------------------------ ~RegularExpression (); @@ -154,10 +154,10 @@ public: /// Compile a regular expression. /// /// Compile a regular expression using the supplied regular - /// expression text and flags. The compied regular expression lives + /// expression text and flags. The compiled regular expression lives /// in this object so that it can be readily used for regular /// expression matches. Execute() can be called after the regular - /// expression is compiled. Any previosuly compiled regular + /// expression is compiled. Any previously compiled regular /// expression contained in this object will be freed. /// /// @param[in] re @@ -165,7 +165,7 @@ public: /// expression to compile. /// /// @param[in] flags - /// Flags that are passed the the \c regcomp() function. + /// Flags that are passed to the \c regcomp() function. /// /// @return /// \b true if the regular expression compiles successfully, diff --git a/lldb/include/lldb/Core/SourceManager.h b/lldb/include/lldb/Core/SourceManager.h index d8c9ecc..0f65be1 100644 --- a/lldb/include/lldb/Core/SourceManager.h +++ b/lldb/include/lldb/Core/SourceManager.h @@ -85,7 +85,7 @@ public: CalculateLineOffsets (uint32_t line = UINT32_MAX); FileSpec m_file_spec_orig; // The original file spec that was used (can be different from m_file_spec) - FileSpec m_file_spec; // The actualy file spec being used (if the target has source mappings, this might be different from m_file_spec_orig) + FileSpec m_file_spec; // The actually file spec being used (if the target has source mappings, this might be different from m_file_spec_orig) TimeValue m_mod_time; // Keep the modification time that this file data is valid for uint32_t m_source_map_mod_id; // If the target uses path remappings, be sure to clear our notion of a source file if the path modification ID changes lldb::DataBufferSP m_data_sp; diff --git a/lldb/include/lldb/Core/Stream.h b/lldb/include/lldb/Core/Stream.h index 0fd4aac..11780aa 100644 --- a/lldb/include/lldb/Core/Stream.h +++ b/lldb/include/lldb/Core/Stream.h @@ -472,7 +472,7 @@ public: /// Indent the current line in the stream. /// /// Indent the current line using the current indentation level and - /// print an optional string following the idenatation spaces. + /// print an optional string following the indentation spaces. /// /// @param[in] s /// A C string to print following the indentation. If NULL, just diff --git a/lldb/include/lldb/Core/ValueObject.h b/lldb/include/lldb/Core/ValueObject.h index 0a52545..a2ba44f 100644 --- a/lldb/include/lldb/Core/ValueObject.h +++ b/lldb/include/lldb/Core/ValueObject.h @@ -35,7 +35,7 @@ namespace lldb_private { /// ValueObject: /// /// This abstract class provides an interface to a particular value, be it a register, a local or global variable, -/// that is evaluated in some particular scope. The ValueObject also has the capibility of being the "child" of +/// that is evaluated in some particular scope. The ValueObject also has the capability of being the "child" of /// some other variable object, and in turn of having children. /// If a ValueObject is a root variable object - having no parent - then it must be constructed with respect to some /// particular ExecutionContextScope. If it is a child, it inherits the ExecutionContextScope from its parent. @@ -380,7 +380,7 @@ public: GetTypeImpl (); //------------------------------------------------------------------ - // Sublasses must implement the functions below. + // Subclasses must implement the functions below. //------------------------------------------------------------------ virtual uint64_t GetByteSize() = 0; @@ -389,7 +389,7 @@ public: GetValueType() const = 0; //------------------------------------------------------------------ - // Sublasses can implement the functions below. + // Subclasses can implement the functions below. //------------------------------------------------------------------ virtual ConstString GetTypeName(); @@ -531,7 +531,7 @@ public: GetDeclaration (Declaration &decl); //------------------------------------------------------------------ - // The functions below should NOT be modified by sublasses + // The functions below should NOT be modified by subclasses //------------------------------------------------------------------ const Error & GetError(); @@ -1130,7 +1130,7 @@ protected: ClearDynamicTypeInformation (); //------------------------------------------------------------------ - // Sublasses must implement the functions below. + // Subclasses must implement the functions below. //------------------------------------------------------------------ virtual ClangASTType diff --git a/lldb/include/lldb/Expression/ASTStructExtractor.h b/lldb/include/lldb/Expression/ASTStructExtractor.h index a1518de..9e46779 100644 --- a/lldb/include/lldb/Expression/ASTStructExtractor.h +++ b/lldb/include/lldb/Expression/ASTStructExtractor.h @@ -30,7 +30,7 @@ namespace lldb_private { /// /// The definition of this struct is itself in the body of the wrapper function, /// so Clang does the structure layout itself. ASTStructExtractor reads through -/// the AST for the wrapper funtion and finds the struct. +/// the AST for the wrapper function and finds the struct. //---------------------------------------------------------------------- class ASTStructExtractor : public clang::SemaConsumer { diff --git a/lldb/include/lldb/Expression/ClangExpressionParser.h b/lldb/include/lldb/Expression/ClangExpressionParser.h index cb7a2c0..c79494d 100644 --- a/lldb/include/lldb/Expression/ClangExpressionParser.h +++ b/lldb/include/lldb/Expression/ClangExpressionParser.h @@ -40,7 +40,7 @@ public: //------------------------------------------------------------------ /// Constructor /// - /// Initializes class variabes. + /// Initializes class variables. /// /// @param[in] exe_scope, /// If non-NULL, an execution context scope that can help to diff --git a/lldb/include/lldb/Expression/ClangExpressionVariable.h b/lldb/include/lldb/Expression/ClangExpressionVariable.h index 620e604..5202f09 100644 --- a/lldb/include/lldb/Expression/ClangExpressionVariable.h +++ b/lldb/include/lldb/Expression/ClangExpressionVariable.h @@ -237,8 +237,8 @@ public: // this function is used to copy the address-of m_live_sp into m_frozen_sp // this is necessary because the results of certain cast and pointer-arithmetic // operations (such as those described in bugzilla issues 11588 and 11618) generate - // frozen objcts that do not have a valid address-of, which can be troublesome when - // using synthetic children providers. transferring the address-of the live object + // frozen objects that do not have a valid address-of, which can be troublesome when + // using synthetic children providers. Transferring the address-of the live object // solves these issues and provides the expected user-level behavior void TransferAddress (bool force = false); diff --git a/lldb/include/lldb/Expression/ClangUserExpression.h b/lldb/include/lldb/Expression/ClangUserExpression.h index bda289a..9d2e909 100644 --- a/lldb/include/lldb/Expression/ClangUserExpression.h +++ b/lldb/include/lldb/Expression/ClangUserExpression.h @@ -167,7 +167,7 @@ public: /// /// @param[in] function_stack_pointer /// A pointer to the base of the function's stack frame. This - /// is used to determine whether the expession result resides in + /// is used to determine whether the expression result resides in /// memory that will still be valid, or whether it needs to be /// treated as homeless for the purpose of future expressions. /// @@ -309,7 +309,7 @@ public: static const Error::ValueType kNoResult = 0x1001; ///< ValueObject::GetError() returns this if there is no result from the expression. private: //------------------------------------------------------------------ - /// Populate m_cplusplus and m_objetivec based on the environment. + /// Populate m_cplusplus and m_objectivec based on the environment. //------------------------------------------------------------------ void diff --git a/lldb/include/lldb/Expression/IRExecutionUnit.h b/lldb/include/lldb/Expression/IRExecutionUnit.h index 32ccfe7..3f28351 100644 --- a/lldb/include/lldb/Expression/IRExecutionUnit.h +++ b/lldb/include/lldb/Expression/IRExecutionUnit.h @@ -456,7 +456,7 @@ private: //------------------------------------------------------------------ /// Constructor /// - /// Initializes class variabes. + /// Initializes class variables. /// /// @param[in] name /// The name of the function. @@ -483,7 +483,7 @@ private: //---------------------------------------------------------------------- /// @class AllocationRecord IRExecutionUnit.h "lldb/Expression/IRExecutionUnit.h" - /// @brief Enacpsulates a single allocation request made by the JIT. + /// @brief Encapsulates a single allocation request made by the JIT. /// /// Allocations made by the JIT are first queued up and then applied in /// bulk to the underlying process. diff --git a/lldb/include/lldb/Expression/IRForTarget.h b/lldb/include/lldb/Expression/IRForTarget.h index 7eac13d..0ad3490 100644 --- a/lldb/include/lldb/Expression/IRForTarget.h +++ b/lldb/include/lldb/Expression/IRForTarget.h @@ -188,7 +188,7 @@ private: //------------------------------------------------------------------ //------------------------------------------------------------------ - /// Get the address of a fuction, and a location to put the complete + /// Get the address of a function, and a location to put the complete /// Value of the function if one is available. /// /// @param[in] function @@ -579,7 +579,7 @@ private: ReplaceStrings (); //------------------------------------------------------------------ - /// A basick block-level pass to find all literals that will be + /// A basic block-level pass to find all literals that will be /// allocated as statics by the JIT (in contrast to the Strings, /// which already are statics) and synthesize loads for them. //------------------------------------------------------------------ diff --git a/lldb/include/lldb/Host/Condition.h b/lldb/include/lldb/Host/Condition.h index 2f1858b..7431315c 100644 --- a/lldb/include/lldb/Host/Condition.h +++ b/lldb/include/lldb/Host/Condition.h @@ -25,7 +25,7 @@ class TimeValue; /// /// A class that wraps up a pthread condition (pthread_cond_t). The /// class will create a pthread condition when an instance is -/// constructed, and detroy it when it is destructed. It also provides +/// constructed, and destroy it when it is destructed. It also provides /// access to the standard pthread condition calls. //---------------------------------------------------------------------- class Condition diff --git a/lldb/include/lldb/Host/File.h b/lldb/include/lldb/Host/File.h index 814d960..d713c96 100644 --- a/lldb/include/lldb/Host/File.h +++ b/lldb/include/lldb/Host/File.h @@ -331,7 +331,7 @@ public: /// /// @param[in/out] offset /// The offset to seek to within the file relative to the - /// end of the file which gets filled in the the resulting + /// end of the file which gets filled in with the resulting /// absolute file offset. /// /// @param[in] error_ptr @@ -482,7 +482,7 @@ public: /// /// Just knowing a file is a interactive isn't enough, we also need /// to know if the terminal has a width and height so we can do - /// cursor movement and other terminal maninpulations by sending + /// cursor movement and other terminal manipulations by sending /// escape sequences. /// /// @return diff --git a/lldb/include/lldb/Host/FileSpec.h b/lldb/include/lldb/Host/FileSpec.h index dfc4e4a..70465f3 100644 --- a/lldb/include/lldb/Host/FileSpec.h +++ b/lldb/include/lldb/Host/FileSpec.h @@ -249,7 +249,7 @@ public: /// by a directory delimiter, and the filename. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void Dump (Stream *s) const; @@ -486,7 +486,7 @@ public: /// Returns a shared pointer to a data buffer that contains all or /// part of the contents of a file. The data is memory mapped and /// will lazily page in data from the file as memory is accessed. - /// The data that is mappped will start \a offset bytes into the + /// The data that is mapped will start \a offset bytes into the /// file, and \a length bytes will be mapped. If \a length is /// greater than the number of bytes available in the file starting /// at \a offset, the number of bytes will be appropriately @@ -504,7 +504,7 @@ public: /// as many bytes as possible. /// /// @return - /// A shared pointer to the memeory mapped data. This shared + /// A shared pointer to the memory mapped data. This shared /// pointer can contain a NULL DataBuffer pointer, so the contained /// pointer must be checked prior to using it. //------------------------------------------------------------------ @@ -560,7 +560,7 @@ public: lldb::DataBufferSP ReadFileContentsAsCString(Error *error_ptr = NULL); //------------------------------------------------------------------ - /// Change the file specificed with a new path. + /// Change the file specified with a new path. /// /// Update the contents of this object with a new path. The path will /// be split up into a directory and filename and stored as uniqued diff --git a/lldb/include/lldb/Host/Host.h b/lldb/include/lldb/Host/Host.h index 1f6101b..92349f9 100644 --- a/lldb/include/lldb/Host/Host.h +++ b/lldb/include/lldb/Host/Host.h @@ -48,11 +48,11 @@ public: /// thread so the callback function must be thread safe. /// /// When the callback gets called, the return value indicates if - /// minotoring should stop. If \b true is returned from \a callback + /// monitoring should stop. If \b true is returned from \a callback /// the information will be removed. If \b false is returned then /// monitoring will continue. If the child process exits, the /// monitoring will automatically stop after the callback returned - /// ragardless of the callback return value. + /// regardless of the callback return value. /// /// @param[in] callback /// A function callback to call when a child receives a signal @@ -259,7 +259,7 @@ public: /// /// This function call lets the current host OS do any thread /// specific initialization that it needs, including naming the - /// thread. No cleanup routine is exptected to be called + /// thread. No cleanup routine is expected to be called /// /// @param[in] name /// The current thread's name in the current process. @@ -410,7 +410,7 @@ public: //------------------------------------------------------------------ /// When executable files may live within a directory, where the /// directory represents an executable bundle (like the MacOSX - /// app bundles), the locate the executable within the containing + /// app bundles), then locate the executable within the containing /// bundle. /// /// @param[in,out] file @@ -438,7 +438,7 @@ public: /// directory member gets filled in. /// /// @param[in] file_spec - /// A file spec that gets filled in with the appriopriate path. + /// A file spec that gets filled in with the appropriate path. /// /// @return /// \b true if \a resource_path was resolved, \a false otherwise. diff --git a/lldb/include/lldb/Host/SocketAddress.h b/lldb/include/lldb/Host/SocketAddress.h index 487f599..3598a42 100644 --- a/lldb/include/lldb/Host/SocketAddress.h +++ b/lldb/include/lldb/Host/SocketAddress.h @@ -82,7 +82,7 @@ public: GetLength () const; //------------------------------------------------------------------ - // Get the mex length for the the largest socket address supported. + // Get the max length for the largest socket address supported. //------------------------------------------------------------------ static socklen_t GetMaxLength (); @@ -203,7 +203,7 @@ public: // Conversion operators to allow getting the contents of this class // as a pointer to the appropriate structure. This allows an instance // of this class to be used in calls that take one of the sockaddr - // structure variants without having to manally use the correct + // structure variants without having to manually use the correct // accessor function. //------------------------------------------------------------------ diff --git a/lldb/include/lldb/Host/Symbols.h b/lldb/include/lldb/Host/Symbols.h index 652a614..d6c8633 100644 --- a/lldb/include/lldb/Host/Symbols.h +++ b/lldb/include/lldb/Host/Symbols.h @@ -50,7 +50,7 @@ public: // Locate the object and symbol file given a module specification. // // Locating the file can try to download the file from a corporate build - // respository, or using any other means necessary to locate both the + // repository, or using any other means necessary to locate both the // unstripped object file and the debug symbols. // The force_lookup argument controls whether the external program is called // unconditionally to find the symbol file, or if the user's settings are diff --git a/lldb/include/lldb/Host/Terminal.h b/lldb/include/lldb/Host/Terminal.h index 5ea88c5..4a6017f 100644 --- a/lldb/include/lldb/Host/Terminal.h +++ b/lldb/include/lldb/Host/Terminal.h @@ -101,7 +101,7 @@ public: /// /// @param[in] save_process_group /// If \b true, save the process group settings, else do not - /// save the process group setttings for a TTY. + /// save the process group settings for a TTY. /// /// @return /// Returns \b true if \a fd describes a TTY and if the state diff --git a/lldb/include/lldb/Interpreter/Args.h b/lldb/include/lldb/Interpreter/Args.h index 27feca6..06617f1 100644 --- a/lldb/include/lldb/Interpreter/Args.h +++ b/lldb/include/lldb/Interpreter/Args.h @@ -293,7 +293,7 @@ public: /// A copy \a arg_cstr will be made. /// /// @param[in] arg_cstr - /// The argument to push on the front the the argument stack. + /// The argument to push on the front of the argument stack. /// /// @param[in] quote_char /// If the argument was originally quoted, put in the quote char here. @@ -308,7 +308,7 @@ public: /// Parse the arguments in the contained arguments. /// /// The arguments that are consumed by the argument parsing process - /// will be removed from the argument vector. The arguements that + /// will be removed from the argument vector. The arguments that /// get processed start at the second argument. The first argument /// is assumed to be the command and will not be touched. /// @@ -430,7 +430,7 @@ public: EncodeEscapeSequences (const char *src, std::string &dst); // ExpandEscapeSequences will change a string of possibly non-printable - // characters and expand them into text. So '\n' will turn into two chracters + // characters and expand them into text. So '\n' will turn into two characters // like "\n" which is suitable for human reading. When a character is not // printable and isn't one of the common in escape sequences listed in the // help for EncodeEscapeSequences, then it will be encoded as octal. Printable diff --git a/lldb/include/lldb/Interpreter/CommandCompletions.h b/lldb/include/lldb/Interpreter/CommandCompletions.h index c4ab1b6..9df3041 100644 --- a/lldb/include/lldb/Interpreter/CommandCompletions.h +++ b/lldb/include/lldb/Interpreter/CommandCompletions.h @@ -195,7 +195,7 @@ public: }; //---------------------------------------------------------------------- - // SouceFileCompleter implements the source file completer + // SourceFileCompleter implements the source file completer //---------------------------------------------------------------------- class SourceFileCompleter : public Completer { diff --git a/lldb/include/lldb/Interpreter/CommandInterpreter.h b/lldb/include/lldb/Interpreter/CommandInterpreter.h index 3ce8b76..c33d71a 100644 --- a/lldb/include/lldb/Interpreter/CommandInterpreter.h +++ b/lldb/include/lldb/Interpreter/CommandInterpreter.h @@ -252,7 +252,7 @@ public: // This version just returns matches, and doesn't compute the substring. It is here so the // Help command can call it for the first argument. - // word_complete tells whether a the completions are considered a "complete" response (so the + // word_complete tells whether the completions are considered a "complete" response (so the // completer should complete the quote & put a space after the word. int diff --git a/lldb/include/lldb/Interpreter/CommandObject.h b/lldb/include/lldb/Interpreter/CommandObject.h index 8544fd9..2de1941 100644 --- a/lldb/include/lldb/Interpreter/CommandObject.h +++ b/lldb/include/lldb/Interpreter/CommandObject.h @@ -269,7 +269,7 @@ public: // // Ensures a valid register context (from the selected frame if there // is a frame in m_exe_ctx, or from the selected thread from m_exe_ctx) - // is availble from m_exe_ctx prior to executing the command. If a + // is available from m_exe_ctx prior to executing the command. If a // target doesn't exist or is invalid, the command will fail and // CommandObject::GetInvalidRegContextDescription() will be returned as // the error. CommandObject subclasses can override the virtual function diff --git a/lldb/include/lldb/Symbol/Block.h b/lldb/include/lldb/Symbol/Block.h index 4a305e3..59671b0 100644 --- a/lldb/include/lldb/Symbol/Block.h +++ b/lldb/include/lldb/Symbol/Block.h @@ -29,13 +29,13 @@ namespace lldb_private { /// Block objects. The BlockList object contains a section offset /// address range, and Block objects contain one or more ranges /// which are offsets into that range. Blocks are can have discontiguous -/// ranges within the BlockList adress range, and each block can +/// ranges within the BlockList address range, and each block can /// contain child blocks each with their own sets of ranges. /// /// Each block has a variable list that represents local, argument, and /// static variables that are scoped to the block. /// -/// Inlined functions are representated by attaching a +/// Inlined functions are represented by attaching a /// InlineFunctionInfo shared pointer object to a block. Inlined /// functions are represented as named blocks. //---------------------------------------------------------------------- @@ -169,7 +169,7 @@ public: /// Dump the block contents. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] base_addr /// The resolved start address of the Function's address @@ -348,7 +348,7 @@ public: /// Get const accessor for any inlined function information. /// /// @return - /// A comst pointer to any inlined function information, or NULL + /// A const pointer to any inlined function information, or NULL /// if this is a regular block. //------------------------------------------------------------------ const InlineFunctionInfo* @@ -455,7 +455,7 @@ public: GetRangeIndexContainingAddress (const Address& addr); //------------------------------------------------------------------ - // Since blocks might have multiple discontiguous addresss ranges, + // Since blocks might have multiple discontiguous address ranges, // we need to be able to get at any of the address ranges in a block. //------------------------------------------------------------------ bool @@ -477,7 +477,7 @@ protected: collection m_children; RangeList m_ranges; lldb::InlineFunctionInfoSP m_inlineInfoSP; ///< Inlined function information. - lldb::VariableListSP m_variable_list_sp; ///< The variable list for all local, static and paramter variables scoped to this block. + lldb::VariableListSP m_variable_list_sp; ///< The variable list for all local, static and parameter variables scoped to this block. bool m_parsed_block_info:1, ///< Set to true if this block and it's children have all been parsed m_parsed_block_variables:1, m_parsed_child_blocks:1; diff --git a/lldb/include/lldb/Symbol/ClangASTImporter.h b/lldb/include/lldb/Symbol/ClangASTImporter.h index dc6ce6b..ee4fcad 100644 --- a/lldb/include/lldb/Symbol/ClangASTImporter.h +++ b/lldb/include/lldb/Symbol/ClangASTImporter.h @@ -166,7 +166,7 @@ public: void BuildNamespaceMap (const clang::NamespaceDecl *decl); // - // Comleters for maps + // Completers for maps // class MapCompleter diff --git a/lldb/include/lldb/Symbol/ClangASTType.h b/lldb/include/lldb/Symbol/ClangASTType.h index c072903..1779f45 100644 --- a/lldb/include/lldb/Symbol/ClangASTType.h +++ b/lldb/include/lldb/Symbol/ClangASTType.h @@ -323,7 +323,7 @@ public: ClangASTType GetFullyUnqualifiedType () const; - // Returns -1 if this isn't a function of if the fucntion doesn't have a prototype + // Returns -1 if this isn't a function of if the function doesn't have a prototype // Returns a value >= 0 if there is a prototype. int GetFunctionArgumentCount () const; diff --git a/lldb/include/lldb/Symbol/ClangExternalASTSourceCommon.h b/lldb/include/lldb/Symbol/ClangExternalASTSourceCommon.h index 72d77e7..20c4b43 100644 --- a/lldb/include/lldb/Symbol/ClangExternalASTSourceCommon.h +++ b/lldb/include/lldb/Symbol/ClangExternalASTSourceCommon.h @@ -11,7 +11,7 @@ #define liblldb_ClangExternalASTSourceCommon_h // Clang headers like to use NDEBUG inside of them to enable/disable debug -// releated features using "#ifndef NDEBUG" preprocessor blocks to do one thing +// related features using "#ifndef NDEBUG" preprocessor blocks to do one thing // or another. This is bad because it means that if clang was built in release // mode, it assumes that you are building in release mode which is not always // the case. You can end up with functions that are defined as empty in header diff --git a/lldb/include/lldb/Symbol/CompileUnit.h b/lldb/include/lldb/Symbol/CompileUnit.h index 5de9367..f9238eb 100644 --- a/lldb/include/lldb/Symbol/CompileUnit.h +++ b/lldb/include/lldb/Symbol/CompileUnit.h @@ -115,7 +115,7 @@ public: /// parse the debug information. /// /// @param[in] function_sp - /// A shared pointer to the a Function object. + /// A shared pointer to the Function object. //------------------------------------------------------------------ void AddFunction(lldb::FunctionSP& function_sp); @@ -178,7 +178,7 @@ public: /// Dump the compile unit contents to the stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] show_context /// If \b true, variables will dump their symbol context @@ -199,7 +199,7 @@ public: /// /// Multiple calls to this function can find all entries that match /// a given file and line by starting with \a start_idx equal to zero, - /// and calling this function back with the return valeu + 1. + /// and calling this function back with the return value + 1. /// /// @param[in] start_idx /// The zero based index at which to start looking for matches. @@ -377,7 +377,7 @@ public: /// using a LineEntry base address will be able to be resolved. /// /// @param[out] sc_list - /// A SymbolContext list class that willl get any matching + /// A SymbolContext list class that will get any matching /// entries appended to. /// /// @return diff --git a/lldb/include/lldb/Symbol/Declaration.h b/lldb/include/lldb/Symbol/Declaration.h index f014571..73dede5 100644 --- a/lldb/include/lldb/Symbol/Declaration.h +++ b/lldb/include/lldb/Symbol/Declaration.h @@ -136,7 +136,7 @@ public: /// supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void Dump (Stream *s, bool show_fullpaths) const; @@ -236,7 +236,7 @@ public: /// Set accessor for the declaration file specification. /// /// @param[in] file_spec - /// The new declaration file specifciation. + /// The new declaration file specification. //------------------------------------------------------------------ void SetFile (const FileSpec& file_spec) diff --git a/lldb/include/lldb/Symbol/FuncUnwinders.h b/lldb/include/lldb/Symbol/FuncUnwinders.h index a103e08..b664bb7 100644 --- a/lldb/include/lldb/Symbol/FuncUnwinders.h +++ b/lldb/include/lldb/Symbol/FuncUnwinders.h @@ -21,7 +21,7 @@ public: // This is often sourced from the eh_frame exception handling info // 2. Unwinding from a non-call site (any location in the function) // This is often done by analyzing the function prologue assembly - // langauge instructions + // language instructions // 3. A fast unwind method for this function which only retrieves a // limited set of registers necessary to walk the stack // 4. An architectural default unwind plan when none of the above are diff --git a/lldb/include/lldb/Symbol/Function.h b/lldb/include/lldb/Symbol/Function.h index dcea24c..5954cf5 100644 --- a/lldb/include/lldb/Symbol/Function.h +++ b/lldb/include/lldb/Symbol/Function.h @@ -24,7 +24,7 @@ namespace lldb_private { /// @class FunctionInfo Function.h "lldb/Symbol/Function.h" /// @brief A class that contains generic function information. /// -/// This provides generic function information that gets resused between +/// This provides generic function information that gets reused between /// inline functions and function types. //---------------------------------------------------------------------- class FunctionInfo @@ -94,7 +94,7 @@ public: /// supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void Dump (Stream *s, bool show_fullpaths) const; @@ -234,7 +234,7 @@ public: /// supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void Dump(Stream *s, bool show_fullpaths) const; @@ -316,14 +316,14 @@ private: /// (Function::m_type), and contains lexical blocks /// (Function::m_blocks). /// -/// The function inforation is split into a few pieces: +/// The function information is split into a few pieces: /// @li The concrete instance information /// @li The abstract information /// /// The abstract information is found in the function type (Type) that /// describes a function information, return type and parameter types. /// -/// The concreate information is the address range information and +/// The concrete information is the address range information and /// specific locations for an instance of this function. //---------------------------------------------------------------------- class Function : @@ -547,7 +547,7 @@ public: //------------------------------------------------------------------ /// Get accessor for the type that describes the function - /// return value type, and paramter types. + /// return value type, and parameter types. /// /// @return /// A type object pointer. @@ -557,7 +557,7 @@ public: //------------------------------------------------------------------ /// Get const accessor for the type that describes the function - /// return value type, and paramter types. + /// return value type, and parameter types. /// /// @return /// A const type object pointer. @@ -578,7 +578,7 @@ public: /// supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] show_context /// If \b true, variables will dump their symbol context diff --git a/lldb/include/lldb/Symbol/LineEntry.h b/lldb/include/lldb/Symbol/LineEntry.h index d7750cd..082caea 100644 --- a/lldb/include/lldb/Symbol/LineEntry.h +++ b/lldb/include/lldb/Symbol/LineEntry.h @@ -59,7 +59,7 @@ struct LineEntry /// supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] comp_unit /// The compile unit object that contains the support file @@ -98,7 +98,7 @@ struct LineEntry /// line entry to the supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] comp_unit /// The compile unit object that contains the support file diff --git a/lldb/include/lldb/Symbol/LineTable.h b/lldb/include/lldb/Symbol/LineTable.h index 477c845..3e25ad1 100644 --- a/lldb/include/lldb/Symbol/LineTable.h +++ b/lldb/include/lldb/Symbol/LineTable.h @@ -85,7 +85,7 @@ public: bool is_epilogue_begin, bool is_terminal_entry); - // Used to instantiate the LineSequence helper classw + // Used to instantiate the LineSequence helper class LineSequence* CreateLineSequenceContainer (); @@ -111,7 +111,7 @@ public: /// Dump all line entries in this line table to the stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] style /// The display style for the address. diff --git a/lldb/include/lldb/Symbol/ObjectContainer.h b/lldb/include/lldb/Symbol/ObjectContainer.h index 7fb6862..679e8f0 100644 --- a/lldb/include/lldb/Symbol/ObjectContainer.h +++ b/lldb/include/lldb/Symbol/ObjectContainer.h @@ -85,7 +85,7 @@ public: /// if it has been parsed. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ virtual void Dump (Stream *s) const = 0; @@ -168,7 +168,7 @@ public: /// and the next plug-in can attempt to parse an object file. /// /// @return - /// Returns \b true if the header was parsed succesfully, \b + /// Returns \b true if the header was parsed successfully, \b /// false otherwise. //------------------------------------------------------------------ virtual bool diff --git a/lldb/include/lldb/Symbol/ObjectFile.h b/lldb/include/lldb/Symbol/ObjectFile.h index 4c0aa1b..6488cca 100644 --- a/lldb/include/lldb/Symbol/ObjectFile.h +++ b/lldb/include/lldb/Symbol/ObjectFile.h @@ -149,7 +149,7 @@ public: /// if it has been parsed. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ virtual void Dump (Stream *s) = 0; @@ -533,7 +533,7 @@ public: /// and the next plug-in can attempt to parse an object file. /// /// @return - /// Returns \b true if the header was parsed succesfully, \b + /// Returns \b true if the header was parsed successfully, \b /// false otherwise. //------------------------------------------------------------------ virtual bool diff --git a/lldb/include/lldb/Symbol/SymbolContext.h b/lldb/include/lldb/Symbol/SymbolContext.h index 6fdd828..c26b7a0 100644 --- a/lldb/include/lldb/Symbol/SymbolContext.h +++ b/lldb/include/lldb/Symbol/SymbolContext.h @@ -140,7 +140,7 @@ public: /// supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void Dump (Stream *s, Target *target) const; @@ -157,7 +157,7 @@ public: /// was stopped will be displayed. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. /// /// @param[in] so_addr /// The resolved section offset address. @@ -409,7 +409,7 @@ private: /// the result of a query that can contain a multiple results. Examples /// of such queries include: /// @li Looking up a function by name. -/// @li Finding all addressses for a specified file and line number. +/// @li Finding all addresses for a specified file and line number. //---------------------------------------------------------------------- class SymbolContextList { @@ -465,7 +465,7 @@ public: /// the list to the supplied stream \a s. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void Dump(Stream *s, Target *target) const; diff --git a/lldb/include/lldb/Symbol/SymbolContextScope.h b/lldb/include/lldb/Symbol/SymbolContextScope.h index 693cc01..a02b452 100644 --- a/lldb/include/lldb/Symbol/SymbolContextScope.h +++ b/lldb/include/lldb/Symbol/SymbolContextScope.h @@ -75,7 +75,7 @@ public: ~SymbolContextScope () {} //------------------------------------------------------------------ - /// Reconstruct the object's symbolc context into \a sc. + /// Reconstruct the object's symbol context into \a sc. /// /// The object should fill in as much of the SymbolContext as it /// can so function calls that require a symbol context can be made @@ -119,11 +119,11 @@ public: } //------------------------------------------------------------------ - /// Dump the object's symbolc context to the stream \a s. + /// Dump the object's symbol context to the stream \a s. /// /// The object should dump its symbol context to the stream \a s. /// This function is widely used in the DumpDebug and verbose output - /// for lldb objets. + /// for lldb objects. /// /// @param[in] s /// The stream to which to dump the object's symbol context. diff --git a/lldb/include/lldb/Symbol/SymbolFile.h b/lldb/include/lldb/Symbol/SymbolFile.h index 5b774e3..22f41bd 100644 --- a/lldb/include/lldb/Symbol/SymbolFile.h +++ b/lldb/include/lldb/Symbol/SymbolFile.h @@ -67,7 +67,7 @@ public: /// Each symbol file gets to respond with a mask of abilities that /// it supports for each object file. This happens when we are /// trying to figure out which symbol file plug-in will get used - /// for a given object file. The plug-in that resoonds with the + /// for a given object file. The plug-in that responds with the /// best mix of "SymbolFile::Abilities" bits set, will get chosen to /// be the symbol file parser. This allows each plug-in to check for /// sections that contain data a symbol file plug-in would need. For diff --git a/lldb/include/lldb/Symbol/VariableList.h b/lldb/include/lldb/Symbol/VariableList.h index 08efd3d..5f8f2a2 100644 --- a/lldb/include/lldb/Symbol/VariableList.h +++ b/lldb/include/lldb/Symbol/VariableList.h @@ -60,10 +60,10 @@ public: AppendVariablesIfUnique(VariableList &var_list); // Returns the actual number of unique variables that were added to the - // list. "total_matches" will get updated with the actualy number of + // list. "total_matches" will get updated with the actually number of // matches that were found regardless of whether they were unique or not // to allow for error conditions when nothing is found, versus conditions - // where any varaibles that match "regex" were already in "var_list". + // where any variables that match "regex" were already in "var_list". size_t AppendVariablesIfUnique (const RegularExpression& regex, VariableList &var_list, diff --git a/lldb/include/lldb/Target/ABI.h b/lldb/include/lldb/Target/ABI.h index cc6c46c..977d10a 100644 --- a/lldb/include/lldb/Target/ABI.h +++ b/lldb/include/lldb/Target/ABI.h @@ -54,7 +54,7 @@ public: protected: // This is the method the ABI will call to actually calculate the return value. - // Don't put it in a persistant value object, that will be done by the ABI::GetReturnValueObject. + // Don't put it in a persistent value object, that will be done by the ABI::GetReturnValueObject. virtual lldb::ValueObjectSP GetReturnValueObjectImpl (Thread &thread, ClangASTType &type) const = 0; diff --git a/lldb/include/lldb/Target/CPPLanguageRuntime.h b/lldb/include/lldb/Target/CPPLanguageRuntime.h index 98a4ab8..daf8a67 100644 --- a/lldb/include/lldb/Target/CPPLanguageRuntime.h +++ b/lldb/include/lldb/Target/CPPLanguageRuntime.h @@ -136,7 +136,7 @@ public: static bool StripNamespacesFromVariableName (const char *name, const char *&base_name_start, const char *&base_name_end); - // in some cases, compilers will output different names for one same type. when tht happens, it might be impossible + // in some cases, compilers will output different names for one same type. when that happens, it might be impossible // to construct SBType objects for a valid type, because the name that is available is not the same as the name that // can be used as a search key in FindTypes(). the equivalents map here is meant to return possible alternative names // for a type through which a search can be conducted. Currently, this is only enabled for C++ but can be extended diff --git a/lldb/include/lldb/Target/ExecutionContext.h b/lldb/include/lldb/Target/ExecutionContext.h index f825c2e..50f2bea 100644 --- a/lldb/include/lldb/Target/ExecutionContext.h +++ b/lldb/include/lldb/Target/ExecutionContext.h @@ -18,10 +18,10 @@ /// variable value from a data section in one of the object files in /// a target). There are two types of objects that hold onto execution /// contexts: ExecutionContextRef and ExecutionContext. Both of these -/// objects are deascribed below. +/// objects are described below. /// /// Not all objects in an ExectionContext objects will be valid. If you want -/// to refer stronly (ExectionContext) or weakly (ExectionContextRef) to +/// to refer strongly (ExectionContext) or weakly (ExectionContextRef) to /// a process, then only the process and target references will be valid. /// For threads, only the thread, process and target references will be /// filled in. For frames, all of the objects will be filled in. @@ -49,7 +49,7 @@ namespace lldb_private { /// context that might change over time. For example, if an object wants /// to refer to a stack frame, it should hold onto an ExecutionContextRef /// to a frame object. The backing object that represents the stack frame -/// might change over time and instaces of this object can track the logical +/// might change over time and instances of this object can track the logical /// object that refers to a frame even if it does change. /// /// These objects also don't keep execution objects around longer than they @@ -64,7 +64,7 @@ namespace lldb_private { /// don't keep these objects around, they are safe to keep around. /// /// The general rule of thumb is all long lived objects that want to -/// refer to execution contexts should use ExecutionContextRef objcts. +/// refer to execution contexts should use ExecutionContextRef objects. /// The ExecutionContext class is used to temporarily get shared /// pointers to any execution context objects that are still around /// so they are guaranteed to exist during a function that requires the @@ -89,7 +89,7 @@ public: /// Construct using an ExecutionContext object that might be NULL. /// /// If \a exe_ctx_ptr is valid, then make weak references to any - /// valid objects in the ExecutionContext, othewise no weak + /// valid objects in the ExecutionContext, otherwise no weak /// references to any execution context objects will be made. //------------------------------------------------------------------ ExecutionContextRef (const ExecutionContext *exe_ctx_ptr); @@ -104,7 +104,7 @@ public: //------------------------------------------------------------------ /// Assignment operator /// - /// Copy all weak refernces in \a rhs. + /// Copy all weak references in \a rhs. //------------------------------------------------------------------ ExecutionContextRef & operator =(const ExecutionContextRef &rhs); @@ -112,7 +112,7 @@ public: //------------------------------------------------------------------ /// Assignment operator from a ExecutionContext /// - /// Make weak refernces to any stringly referenced objects in \a exe_ctx. + /// Make weak references to any strongly referenced objects in \a exe_ctx. //------------------------------------------------------------------ ExecutionContextRef & operator =(const ExecutionContext &exe_ctx); @@ -129,13 +129,13 @@ public: /// Construct using an execution context scope. /// /// If the ExecutionContextScope object is valid and refers to a frame, - /// make weak refernces too the frame, thread, process and target. + /// make weak references too the frame, thread, process and target. /// If the ExecutionContextScope object is valid and refers to a thread, - /// make weak refernces too the thread, process and target. + /// make weak references too the thread, process and target. /// If the ExecutionContextScope object is valid and refers to a process, - /// make weak refernces too the process and target. + /// make weak references too the process and target. /// If the ExecutionContextScope object is valid and refers to a target, - /// make weak refernces too the target. + /// make weak references too the target. //------------------------------------------------------------------ ExecutionContextRef (ExecutionContextScope *exe_scope); @@ -143,13 +143,13 @@ public: /// Construct using an execution context scope. /// /// If the ExecutionContextScope object refers to a frame, - /// make weak refernces too the frame, thread, process and target. + /// make weak references too the frame, thread, process and target. /// If the ExecutionContextScope object refers to a thread, - /// make weak refernces too the thread, process and target. + /// make weak references too the thread, process and target. /// If the ExecutionContextScope object refers to a process, - /// make weak refernces too the process and target. + /// make weak references too the process and target. /// If the ExecutionContextScope object refers to a target, - /// make weak refernces too the target. + /// make weak references too the target. //------------------------------------------------------------------ ExecutionContextRef (ExecutionContextScope &exe_scope); @@ -302,8 +302,8 @@ public: //------------------------------------------------------------------ /// Returns true if this object has a weak reference to a thread. - /// The return value is only an indication of wether this object has - /// a weak reference and does not indicate wether the weak rerference + /// The return value is only an indication of whether this object has + /// a weak reference and does not indicate whether the weak reference /// is valid or not. //------------------------------------------------------------------ bool @@ -314,8 +314,8 @@ public: //------------------------------------------------------------------ /// Returns true if this object has a weak reference to a frame. - /// The return value is only an indication of wether this object has - /// a weak reference and does not indicate wether the weak rerference + /// The return value is only an indication of whether this object has + /// a weak reference and does not indicate whether the weak reference /// is valid or not. //------------------------------------------------------------------ bool diff --git a/lldb/include/lldb/Target/ExecutionContextScope.h b/lldb/include/lldb/Target/ExecutionContextScope.h index 7ba4097..4a1b17d 100644 --- a/lldb/include/lldb/Target/ExecutionContextScope.h +++ b/lldb/include/lldb/Target/ExecutionContextScope.h @@ -29,7 +29,7 @@ namespace lldb_private { /// ExecutionContext object in the object state. Examples of these /// objects include: Process, Thread, RegisterContext and StackFrame. /// -/// Bbjects can contain a valid pointer to an instance of this so they +/// Objects can contain a valid pointer to an instance of this so they /// can reconstruct the execution context. /// /// Objects that adhere to this protocol can reconstruct enough of a diff --git a/lldb/include/lldb/Target/JITLoader.h b/lldb/include/lldb/Target/JITLoader.h index bc520e1..c15ae5a 100644 --- a/lldb/include/lldb/Target/JITLoader.h +++ b/lldb/include/lldb/Target/JITLoader.h @@ -23,7 +23,7 @@ namespace lldb_private { /// /// Plugins of this kind listen for code generated at runtime in the /// target. They are very similar to dynamic loader, with the difference -/// that they do not have information about the the target's dyld and +/// that they do not have information about the target's dyld and /// that there may be multiple JITLoader plugins per process, while /// there is at most one DynamicLoader. //---------------------------------------------------------------------- diff --git a/lldb/include/lldb/Target/Platform.h b/lldb/include/lldb/Target/Platform.h index f21c94a..887bf9a 100644 --- a/lldb/include/lldb/Target/Platform.h +++ b/lldb/include/lldb/Target/Platform.h @@ -179,13 +179,13 @@ namespace lldb_private { /// m_arch - The architecture we are looking for when resolving /// the symbol file. /// m_uuid - The UUID of the executable and symbol file. This - /// can often be used to match up an exectuable with + /// can often be used to match up an executable with /// a symbol file, or resolve an symbol file in a /// symbol file bundle. /// /// @param[out] sym_file /// The resolved symbol file spec if the returned error - /// indicates succes. + /// indicates success. /// /// @return /// Returns an error that describes success or failure. @@ -220,7 +220,7 @@ namespace lldb_private { bool GetOSKernelDescription (std::string &s); - // Returns the the name of the platform + // Returns the name of the platform ConstString GetName (); @@ -354,7 +354,7 @@ namespace lldb_private { /// A zero based architecture index /// /// @param[out] arch - /// A copy of the archgitecture at index if the return value is + /// A copy of the architecture at index if the return value is /// \b true. /// /// @return @@ -418,7 +418,7 @@ namespace lldb_private { /// attempt to attach to the process with the process ID of \a pid. /// The platform subclass should return an appropriate ProcessSP /// subclass that is attached to the process, or an empty shared - /// pointer with an appriopriate error. + /// pointer with an appropriate error. /// /// @param[in] pid /// The process ID that we should attempt to attach to. @@ -427,7 +427,7 @@ namespace lldb_private { /// An appropriate ProcessSP containing a valid shared pointer /// to the default Process subclass for the platform that is /// attached to the process, or an empty shared pointer with an - /// appriopriate error fill into the \a error object. + /// appropriate error fill into the \a error object. //------------------------------------------------------------------ virtual lldb::ProcessSP Attach (ProcessAttachInfo &attach_info, diff --git a/lldb/include/lldb/Target/Process.h b/lldb/include/lldb/Target/Process.h index 9af6dc3..a0eec5c 100644 --- a/lldb/include/lldb/Target/Process.h +++ b/lldb/include/lldb/Target/Process.h @@ -1220,7 +1220,7 @@ public: //------------------------------------------------------------------ /// Register for process and thread notifications. /// - /// Clients can register nofication callbacks by filling out a + /// Clients can register notification callbacks by filling out a /// Process::Notifications structure and calling this function. /// /// @param[in] callbacks @@ -1236,7 +1236,7 @@ public: //------------------------------------------------------------------ /// Unregister for process and thread notifications. /// - /// Clients can unregister nofication callbacks by passing a copy of + /// Clients can unregister notification callbacks by passing a copy of /// the original baton and callbacks in \a callbacks. /// /// @param[in] callbacks @@ -1744,7 +1744,7 @@ public: DoSignal (int signal) { Error error; - error.SetErrorStringWithFormat("error: %s does not support senging signals to processes", GetPluginName().GetCString()); + error.SetErrorStringWithFormat("error: %s does not support sending signals to processes", GetPluginName().GetCString()); return error; } @@ -2197,7 +2197,7 @@ public: /// /// The value contained in \a scalar will be swapped to match the /// byte order of the process that is being debugged. If \a size is - /// less than the size of scalar, the least significate \a size bytes + /// less than the size of scalar, the least significant \a size bytes /// from scalar will be written. If \a size is larger than the byte /// size of scalar, then the extra space will be padded with zeros /// and the scalar value will be placed in the least significant @@ -3050,7 +3050,7 @@ protected: Broadcaster m_private_state_control_broadcaster; // This is the control broadcaster, used to pause, resume & stop the private state thread. Listener m_private_state_listener; // This is the listener for the private state thread. Predicate m_private_state_control_wait; /// This Predicate is used to signal that a control operation is complete. - lldb::thread_t m_private_state_thread; // Thread ID for the thread that watches interal state events + lldb::thread_t m_private_state_thread; // Thread ID for the thread that watches internal state events ProcessModID m_mod_id; ///< Tracks the state of the process over stops and other alterations. uint32_t m_process_unique_id; ///< Each lldb_private::Process class that is created gets a unique integer ID that increments with each new instance uint32_t m_thread_index_id; ///< Each thread is created with a 1 based index that won't get re-used. diff --git a/lldb/include/lldb/Target/QueueList.h b/lldb/include/lldb/Target/QueueList.h index 964c1099..12a0ea5 100644 --- a/lldb/include/lldb/Target/QueueList.h +++ b/lldb/include/lldb/Target/QueueList.h @@ -98,7 +98,7 @@ public: /// /// @return /// A QueueSP to the queue requested, if it is present in the QueueList. - /// An empty QueueSP willbe returned if this queue was not found. + /// An empty QueueSP will be returned if this queue was not found. //------------------------------------------------------------------ lldb::QueueSP FindQueueByID (lldb::queue_id_t qid); @@ -114,7 +114,7 @@ public: /// /// @return /// A QueueSP to the queue requested, if it is present in the QueueList. - /// An empty QueueSP willbe returned if this queue was not found. + /// An empty QueueSP will be returned if this queue was not found. //------------------------------------------------------------------ lldb::QueueSP FindQueueByIndexID (uint32_t index_id); diff --git a/lldb/include/lldb/Target/StackFrame.h b/lldb/include/lldb/Target/StackFrame.h index e7b57cd..1274dcc 100644 --- a/lldb/include/lldb/Target/StackFrame.h +++ b/lldb/include/lldb/Target/StackFrame.h @@ -177,7 +177,7 @@ public: /// /// The StackFrame maintains this SymbolContext and adds additional information /// to it on an as-needed basis. This helps to avoid different functions - /// looking up symbolic information for a given pc value multple times. + /// looking up symbolic information for a given pc value multiple times. /// /// @params [in] resolve_scope /// Flags from the SymbolContextItem enumerated type which specify what @@ -261,7 +261,7 @@ public: /// /// @param[in] get_file_globals /// Whether to also retrieve compilation-unit scoped variables - /// that are visisble to the entire compilation unit (e.g. file + /// that are visible to the entire compilation unit (e.g. file /// static in C, globals that are homed in this CU). /// /// @return @@ -279,7 +279,7 @@ public: /// /// @param[in] get_file_globals /// Whether to also retrieve compilation-unit scoped variables - /// that are visisble to the entire compilation unit (e.g. file + /// that are visible to the entire compilation unit (e.g. file /// static in C, globals that are homed in this CU). /// /// @return diff --git a/lldb/include/lldb/Target/Target.h b/lldb/include/lldb/Target/Target.h index 3393bb6..6e433ce 100644 --- a/lldb/include/lldb/Target/Target.h +++ b/lldb/include/lldb/Target/Target.h @@ -570,7 +570,7 @@ public: /// in a target. /// /// @param[in] s - /// The stream to which to dump the object descripton. + /// The stream to which to dump the object description. //------------------------------------------------------------------ void Dump (Stream *s, lldb::DescriptionLevel description_level); diff --git a/lldb/include/lldb/Target/TargetList.h b/lldb/include/lldb/Target/TargetList.h index 41404e1..6abf13e 100644 --- a/lldb/include/lldb/Target/TargetList.h +++ b/lldb/include/lldb/Target/TargetList.h @@ -121,7 +121,7 @@ public: //------------------------------------------------------------------ /// Delete a Target object from the list. /// - /// When clients are done with the Target objets, this function + /// When clients are done with the Target objects, this function /// should be called to release the memory associated with a target /// object. /// diff --git a/lldb/include/lldb/Target/Thread.h b/lldb/include/lldb/Target/Thread.h index c897295..e40a0df 100644 --- a/lldb/include/lldb/Target/Thread.h +++ b/lldb/include/lldb/Target/Thread.h @@ -1296,7 +1296,7 @@ protected: int m_resume_signal; ///< The signal that should be used when continuing this thread. lldb::StateType m_resume_state; ///< This state is used to force a thread to be suspended from outside the ThreadPlan logic. lldb::StateType m_temporary_resume_state; ///< This state records what the thread was told to do by the thread plan logic for the current resume. - /// It gets set in Thread::ShoudResume. + /// It gets set in Thread::ShouldResume. std::unique_ptr m_unwinder_ap; bool m_destroy_called; // This is used internally to make sure derived Thread classes call DestroyThread. LazyBool m_override_should_notify; diff --git a/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h b/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h index 956a5d5..26e4a1e 100644 --- a/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h +++ b/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h @@ -21,7 +21,7 @@ namespace lldb_private { // This is an interface that ThreadPlans can adopt to allow flexible modifications of the behavior // when a thread plan comes to a place where it would ordinarily stop. If such modification makes // sense for your plan, inherit from this class, and when you would be about to stop (in your ShouldStop -// method), call InvokeShouldStopHereCallback, passing in the frame comparision between where the step operation +// method), call InvokeShouldStopHereCallback, passing in the frame comparison between where the step operation // started and where you arrived. If it returns true, then QueueStepOutFromHere will queue the plan // to execute instead of stopping. // diff --git a/lldb/include/lldb/Utility/CleanUp.h b/lldb/include/lldb/Utility/CleanUp.h index ab15d19..48ff2c7 100644 --- a/lldb/include/lldb/Utility/CleanUp.h +++ b/lldb/include/lldb/Utility/CleanUp.h @@ -27,7 +27,7 @@ namespace lldb_utility { // file descriptors, opaque handles, pointers, etc). If more complex // type T objects are desired, we need to probably specialize this class // to take "const T&" for all input T parameters. Yet if a type T is -// complex already it might be better to build the cleanup funcionality +// complex already it might be better to build the cleanup functionality // into T. // // The cleanup function must take one argument that is of type T. diff --git a/lldb/include/lldb/Utility/PseudoTerminal.h b/lldb/include/lldb/Utility/PseudoTerminal.h index c79800f..6ee598c 100644 --- a/lldb/include/lldb/Utility/PseudoTerminal.h +++ b/lldb/include/lldb/Utility/PseudoTerminal.h @@ -23,7 +23,7 @@ namespace lldb_utility { /// @class PseudoTerminal PseudoTerminal.h "lldb/Core/PseudoTerminal.h" /// @brief A pseudo terminal helper class. /// -/// The pseudo terminal class abtracts the use of pseudo terminals on +/// The pseudo terminal class abstracts the use of pseudo terminals on /// the host system. //---------------------------------------------------------------------- class PseudoTerminal @@ -46,7 +46,7 @@ public: /// Destructor /// /// The destructor will close the master and slave file descriptors - /// if they are valid and ownwership has not been released using + /// if they are valid and ownership has not been released using /// one of: /// @li PseudoTerminal::ReleaseMasterFileDescriptor() /// @li PseudoTerminal::ReleaseSaveFileDescriptor() diff --git a/lldb/include/lldb/Utility/SharingPtr.h b/lldb/include/lldb/Utility/SharingPtr.h index 609e441..1b5f86b 100644 --- a/lldb/include/lldb/Utility/SharingPtr.h +++ b/lldb/include/lldb/Utility/SharingPtr.h @@ -15,7 +15,7 @@ // Microsoft Visual C++ currently does not enable std::atomic to work // in CLR mode - as such we need to "hack around it" for MSVC++ builds only -// using Windows specific instrinsics instead of the C++11 atomic support +// using Windows specific intrinsics instead of the C++11 atomic support #ifdef _MSC_VER #include #else @@ -69,8 +69,8 @@ public: private: virtual void on_zero_shared(); - // Outlaw copy constructor and assignment operator to keep effictive C++ - // warnings down to a minumum + // Outlaw copy constructor and assignment operator to keep effective C++ + // warnings down to a minimum shared_ptr_pointer (const shared_ptr_pointer &); shared_ptr_pointer & operator=(const shared_ptr_pointer &); }; diff --git a/lldb/scripts/Python/interface/SBFileSpec.i b/lldb/scripts/Python/interface/SBFileSpec.i index 2195434..c153f2b 100644 --- a/lldb/scripts/Python/interface/SBFileSpec.i +++ b/lldb/scripts/Python/interface/SBFileSpec.i @@ -10,7 +10,7 @@ namespace lldb { %feature("docstring", -"Represents a file specfication that divides the path into a directory and +"Represents a file specification that divides the path into a directory and basename. The string values of the paths are put into uniqued string pools for fast comparisons and efficient memory usage. @@ -28,7 +28,7 @@ For example, the following code gets the line entry from the symbol context when a thread is stopped. It gets the file spec corresponding to the line entry and checks that -the filename and the directory matches wat we expect. +the filename and the directory matches what we expect. ") SBFileSpec; class SBFileSpec { @@ -37,7 +37,7 @@ public: SBFileSpec (const lldb::SBFileSpec &rhs); - SBFileSpec (const char *path);// Deprected, use SBFileSpec (const char *path, bool resolve) + SBFileSpec (const char *path);// Deprecated, use SBFileSpec (const char *path, bool resolve) SBFileSpec (const char *path, bool resolve); diff --git a/lldb/scripts/Python/interface/SBFrame.i b/lldb/scripts/Python/interface/SBFrame.i index 8f36cec9..b3f0a7a 100644 --- a/lldb/scripts/Python/interface/SBFrame.i +++ b/lldb/scripts/Python/interface/SBFrame.i @@ -105,7 +105,7 @@ public: /// Get the appropriate function name for this frame. Inlined functions in /// LLDB are represented by Blocks that have inlined function information, so /// just looking at the SBFunction or SBSymbol for a frame isn't enough. - /// This function will return the appriopriate function, symbol or inlined + /// This function will return the appropriate function, symbol or inlined /// function name for the frame. /// /// This function returns: diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i index 0371f7b..4d69dda 100644 --- a/lldb/scripts/Python/interface/SBThread.i +++ b/lldb/scripts/Python/interface/SBThread.i @@ -230,7 +230,7 @@ public: /// SBProcess::Continue() is called, any threads that aren't suspended will /// be allowed to run. If any of the SBThread functions for stepping are /// called (StepOver, StepInto, StepOut, StepInstruction, RunToAddres), the - /// thread will now be allowed to run and these funtions will simply return. + /// thread will now be allowed to run and these functions will simply return. /// /// Eventually we plan to add support for thread centric debugging where /// each thread is controlled individually and each thread would broadcast diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index 78e7605..281782b 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -179,7 +179,7 @@ public: //------------------------------------------------------------------ /// Get a child value by index from a value. /// - /// Structs, unions, classes, arrays and and pointers have child + /// Structs, unions, classes, arrays and pointers have child /// values that can be access by index. /// /// Structs and unions access child members using a zero based index @@ -214,7 +214,7 @@ public: /// The index of the child value to get /// /// @param[in] use_dynamic - /// An enumeration that specifies wether to get dynamic values, + /// An enumeration that specifies whether to get dynamic values, /// and also if the target can be run to figure out the dynamic /// type of the child value. /// @@ -286,7 +286,7 @@ public: /// The name of the child value to get /// /// @param[in] use_dynamic - /// An enumeration that specifies wether to get dynamic values, + /// An enumeration that specifies whether to get dynamic values, /// and also if the target can be run to figure out the dynamic /// type of the child value. /// diff --git a/lldb/scripts/checkpoint-llvm.pl b/lldb/scripts/checkpoint-llvm.pl index f4c64d7..2372e7e 100755 --- a/lldb/scripts/checkpoint-llvm.pl +++ b/lldb/scripts/checkpoint-llvm.pl @@ -2,7 +2,7 @@ # This script should be pointed to a valid llvm.build folder that # was created using the "build-llvm.pl" shell script. It will create -# a new llvm.zip file that can be checked into the respository +# a new llvm.zip file that can be checked into the repository # at lldb/llvm.zip use strict; diff --git a/lldb/scripts/disasm-gdb-remote.pl b/lldb/scripts/disasm-gdb-remote.pl index 311684b..e4c7066 100755 --- a/lldb/scripts/disasm-gdb-remote.pl +++ b/lldb/scripts/disasm-gdb-remote.pl @@ -1135,14 +1135,14 @@ sub dump_continue_with_signal_cmd #---------------------------------------------------------------------- sub dump_A_command { - my $cmd = get_exptected_char(\@_, 'A') or print "error: incorrect command letter for argument packet, exptected 'A'\n"; + my $cmd = get_expected_char(\@_, 'A') or print "error: incorrect command letter for argument packet, expected 'A'\n"; printf("set_program_arguments (\n"); do { my $arg_len = get_uint(\@_); - get_exptected_char(\@_, ',') or die "error: missing comma after argument length...?\n"; + get_expected_char(\@_, ',') or die "error: missing comma after argument length...?\n"; my $arg_idx = get_uint(\@_); - get_exptected_char(\@_, ',') or die "error: missing comma after argument number...?\n"; + get_expected_char(\@_, ',') or die "error: missing comma after argument number...?\n"; my $arg = ''; my $num_hex8_bytes = $arg_len/2; @@ -1153,7 +1153,7 @@ sub dump_A_command printf(" <%3u> argv[%u] = '%s'\n", $arg_len, $arg_idx, $arg); if (@_ > 0) { - get_exptected_char(\@_, ',') or die "error: missing comma after argument argument ASCII hex bytes...?\n"; + get_expected_char(\@_, ',') or die "error: missing comma after argument argument ASCII hex bytes...?\n"; } } while (@_ > 0); printf(" )\n"); @@ -1666,7 +1666,7 @@ sub get256 } #---------------------------------------------------------------------- -# Get a an unsigned integer value by grabbing items off the front of +# Get an unsigned integer value by grabbing items off the front of # the array stopping when a non-digit char string is encountered. # # The argument for this function needs to be a reference to an array @@ -1695,7 +1695,7 @@ sub get_uint # character doesn't match, it won't touch the array. If the first # character does match, it will shift it off and return it. #---------------------------------------------------------------------- -sub get_exptected_char +sub get_expected_char { my $arrayref = shift; my $expected_char = shift; diff --git a/lldb/scripts/sed-sources b/lldb/scripts/sed-sources index 7cab3f6..c67fb33 100755 --- a/lldb/scripts/sed-sources +++ b/lldb/scripts/sed-sources @@ -63,13 +63,13 @@ unexpanding. =head1 EXAMPLES # Recursively process all source files in the current working directory -# and and subdirectories and also expand tabs to spaces. All source files +# and subdirectories and also expand tabs to spaces. All source files # will be overwritten with the newly transformed source files. % sed-sources -e $cwd # Recursively process all source files in the current working directory -# and and subdirectories and also unexpand spaces to tabs and preview the +# and subdirectories and also unexpand spaces to tabs and preview the # results to STDOUT % sed-sources -p -u $cwd @@ -248,4 +248,4 @@ sub main # call the main function -main(); \ No newline at end of file +main(); diff --git a/lldb/source/API/SBFileSpec.cpp b/lldb/source/API/SBFileSpec.cpp index 2a93e95..0de1c24 100644 --- a/lldb/source/API/SBFileSpec.cpp +++ b/lldb/source/API/SBFileSpec.cpp @@ -36,7 +36,7 @@ SBFileSpec::SBFileSpec (const lldb_private::FileSpec& fspec) : { } -// Deprected!!! +// Deprecated!!! SBFileSpec::SBFileSpec (const char *path) : m_opaque_ap(new FileSpec (path, true)) { diff --git a/lldb/source/Breakpoint/BreakpointResolverName.cpp b/lldb/source/Breakpoint/BreakpointResolverName.cpp index cf5d89c..3ac3ed0 100644 --- a/lldb/source/Breakpoint/BreakpointResolverName.cpp +++ b/lldb/source/Breakpoint/BreakpointResolverName.cpp @@ -234,7 +234,7 @@ BreakpointResolverName::SearchCallback if (context.module_sp) { context.module_sp->FindFunctions (m_regex, - !filter_by_cu, // include symbols only if we aren't filterning by CU + !filter_by_cu, // include symbols only if we aren't filtering by CU include_inlines, append, func_list); @@ -264,7 +264,7 @@ BreakpointResolverName::SearchCallback } } - // Remove any duplicates between the funcion list and the symbol list + // Remove any duplicates between the function list and the symbol list SymbolContext sc; if (func_list.GetSize()) { diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index e3e113a..7942c8f 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -889,7 +889,7 @@ public: SetHelpLong( "This command allows the user to create powerful regular expression commands\n" "with substitutions. The regular expressions and substitutions are specified\n" -"using the regular exression substitution format of:\n" +"using the regular expression substitution format of:\n" "\n" " s///\n" "\n" diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index bfce324..4a92f48 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -206,7 +206,7 @@ CommandObjectExpression::CommandObjectExpression (CommandInterpreter &interprete { SetHelpLong( "Timeouts:\n\ - If the expression can be evaluated statically (without runnning code) then it will be.\n\ + If the expression can be evaluated statically (without running code) then it will be.\n\ Otherwise, by default the expression will run on the current thread with a short timeout:\n\ currently .25 seconds. If it doesn't return in that time, the evaluation will be interrupted\n\ and resumed with all threads running. You can use the -a option to disable retrying on all\n\ diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp index c533874..c7675fe 100644 --- a/lldb/source/Commands/CommandObjectSettings.cpp +++ b/lldb/source/Commands/CommandObjectSettings.cpp @@ -1155,7 +1155,7 @@ protected: if (argc != 1) { - result.AppendError ("'setttings clear' takes exactly one argument"); + result.AppendError ("'settings clear' takes exactly one argument"); result.SetStatus (eReturnStatusFailed); return false; } diff --git a/lldb/source/Core/AddressResolverName.cpp b/lldb/source/Core/AddressResolverName.cpp index dd22e17..9f3b3f5 100644 --- a/lldb/source/Core/AddressResolverName.cpp +++ b/lldb/source/Core/AddressResolverName.cpp @@ -148,7 +148,7 @@ AddressResolverName::SearchCallback break; } - // Remove any duplicates between the funcion list and the symbol list + // Remove any duplicates between the function list and the symbol list if (func_list.GetSize()) { for (i = 0; i < func_list.GetSize(); i++) diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 6a72547..781d4e1 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -199,7 +199,7 @@ Module::Module (const ModuleSpec &module_spec) : else if (module_spec.GetArchitecture().IsValid()) m_arch = module_spec.GetArchitecture(); - // Copy the file spec over and use the specfied one (if there was one) so we + // Copy the file spec over and use the specified one (if there was one) so we // don't use a path that might have gotten resolved a path in 'matching_module_spec' if (module_spec.GetFileSpec()) m_file = module_spec.GetFileSpec(); @@ -1003,7 +1003,7 @@ Module::FindTypes (const SymbolContext& sc, // Check if "name" starts with "::" which means the qualified type starts // from the root namespace and implies and exact match. The typenames we // get back from clang do not start with "::" so we need to strip this off - // in order to get the qualfied names to match + // in order to get the qualified names to match if (type_scope.size() >= 2 && type_scope[0] == ':' && type_scope[1] == ':') { @@ -1516,7 +1516,7 @@ Module::LoadScriptingResourceInTarget (Target *target, Error& error, Stream* fee return false; } - LoadScriptFromSymFile shoud_load = target->TargetProperties::GetLoadScriptFromSymbolFile(); + LoadScriptFromSymFile should_load = target->TargetProperties::GetLoadScriptFromSymbolFile(); Debugger &debugger = target->GetDebugger(); const ScriptLanguage script_language = debugger.GetScriptLanguage(); @@ -1546,9 +1546,9 @@ Module::LoadScriptingResourceInTarget (Target *target, Error& error, Stream* fee FileSpec scripting_fspec (file_specs.GetFileSpecAtIndex(i)); if (scripting_fspec && scripting_fspec.Exists()) { - if (shoud_load == eLoadScriptFromSymFileFalse) + if (should_load == eLoadScriptFromSymFileFalse) return false; - if (shoud_load == eLoadScriptFromSymFileWarn) + if (should_load == eLoadScriptFromSymFileWarn) { if (feedback_stream) feedback_stream->Printf("warning: '%s' contains a debug script. To run this script in " @@ -1738,7 +1738,7 @@ Module::PrepareForFunctionNameLookup (const ConstString &name, if (!cpp_method.GetQualifiers().empty()) { - // There is a "const" or other qualifer following the end of the fucntion parens, + // There is a "const" or other qualifier following the end of the function parens, // this can't be a eFunctionNameTypeBase lookup_name_type_mask &= ~(eFunctionNameTypeBase); if (lookup_name_type_mask == eFunctionNameTypeNone) diff --git a/lldb/source/Core/RegularExpression.cpp b/lldb/source/Core/RegularExpression.cpp index 4ccd774..88415f6 100644 --- a/lldb/source/Core/RegularExpression.cpp +++ b/lldb/source/Core/RegularExpression.cpp @@ -71,7 +71,7 @@ RegularExpression::operator= (const RegularExpression &rhs) //---------------------------------------------------------------------- // Destructor // -// Any previosuly compiled regular expression contained in this +// Any previously compiled regular expression contained in this // object will be freed. //---------------------------------------------------------------------- RegularExpression::~RegularExpression() @@ -81,14 +81,14 @@ RegularExpression::~RegularExpression() //---------------------------------------------------------------------- // Compile a regular expression using the supplied regular -// expression text and flags. The compied regular expression lives +// expression text and flags. The compiled regular expression lives // in this object so that it can be readily used for regular // expression matches. Execute() can be called after the regular -// expression is compiled. Any previosuly compiled regular +// expression is compiled. Any previously compiled regular // expression contained in this object will be freed. // // RETURNS -// True of the refular expression compiles successfully, false +// True if the regular expression compiles successfully, false // otherwise. //---------------------------------------------------------------------- bool diff --git a/lldb/source/Core/Scalar.cpp b/lldb/source/Core/Scalar.cpp index b9dd4f2..1bfe6f2 100644 --- a/lldb/source/Core/Scalar.cpp +++ b/lldb/source/Core/Scalar.cpp @@ -62,7 +62,7 @@ PromoteToMaxType promoted_lhs_ptr = &temp_value; // Update the pointer for the promoted left hand side } - // Make sure our type promotion worked as exptected + // Make sure our type promotion worked as expected if (promoted_lhs_ptr->GetType() == promoted_rhs_ptr->GetType()) return promoted_lhs_ptr->GetType(); // Return the resulting max type diff --git a/lldb/source/Core/Stream.cpp b/lldb/source/Core/Stream.cpp index 075b705..29bebb3 100644 --- a/lldb/source/Core/Stream.cpp +++ b/lldb/source/Core/Stream.cpp @@ -252,7 +252,7 @@ Stream::EOL() //------------------------------------------------------------------ // Indent the current line using the current indentation level and -// print an optional string following the idenatation spaces. +// print an optional string following the indentation spaces. //------------------------------------------------------------------ size_t Stream::Indent(const char *s) diff --git a/lldb/source/Core/ValueObjectConstResultImpl.cpp b/lldb/source/Core/ValueObjectConstResultImpl.cpp index e0757f6..8c3e4a1 100644 --- a/lldb/source/Core/ValueObjectConstResultImpl.cpp +++ b/lldb/source/Core/ValueObjectConstResultImpl.cpp @@ -31,7 +31,7 @@ using namespace lldb; using namespace lldb_private; // this macro enables a simpler implementation for some method calls in this object that relies only upon -// ValueObject knowning how to set the address type of its children correctly. the alternative implementation +// ValueObject knowing how to set the address type of its children correctly. the alternative implementation // relies on being able to create a target copy of the frozen object, which makes it less bug-prone but less // efficient as well. once we are confident the faster implementation is bug-free, this macro (and the slower // implementations) can go diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index 9df9bf3..44eb3af 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -268,7 +268,7 @@ FileSpec::FileSpec(const FileSpec* rhs) : } //------------------------------------------------------------------ -// Virtual destrcuctor in case anyone inherits from this class. +// Virtual destructor in case anyone inherits from this class. //------------------------------------------------------------------ FileSpec::~FileSpec() { @@ -753,7 +753,7 @@ FileSpec::GetFileNameStrippingExtension () const // Returns a shared pointer to a data buffer that contains all or // part of the contents of a file. The data is memory mapped and // will lazily page in data from the file as memory is accessed. -// The data that is mappped will start "file_offset" bytes into the +// The data that is mapped will start "file_offset" bytes into the // file, and "file_size" bytes will be mapped. If "file_size" is // greater than the number of bytes available in the file starting // at "file_offset", the number of bytes will be appropriately diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index edd64c6..6b551d9 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -1631,7 +1631,7 @@ Host::RunShellCommand (const char *command, { error.SetErrorString("timed out waiting for shell command to complete"); - // Kill the process since it didn't complete withint the timeout specified + // Kill the process since it didn't complete within the timeout specified Kill (pid, SIGKILL); // Wait for the monitor callback to get the message timeout_time = TimeValue::Now(); diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp index 0469695..6c90006 100644 --- a/lldb/source/Host/linux/Host.cpp +++ b/lldb/source/Host/linux/Host.cpp @@ -352,7 +352,7 @@ GetProcessAndStatInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info, Proce next_var += strlen(next_var) + 1; } - // Get the commond line used to start the process. + // Get the command line used to start the process. buf_sp = ProcFileReader::ReadIntoDataBuffer(pid, "cmdline"); // Grab Arg0 first, if there is one. @@ -532,7 +532,7 @@ Host::GetDistributionId () s_distribution_id.SetCString (id_string.c_str ()); if (log) - log->Printf ("distribion id set to \"%s\"", + log->Printf ("distribution id set to \"%s\"", s_distribution_id.GetCString ()); } else diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 375f9e4..454de85 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -565,8 +565,8 @@ LaunchInNewTerminalWithAppleScript (const char *exe_path, ProcessLaunchInfo &lau if (launch_info.GetFlags().Test (eLaunchFlagDisableASLR)) command.PutCString(" --disable-aslr"); - // We are launching on this host in a terminal. So compare the environemnt on the host - // to what is supplied in the launch_info. Any items that aren't in the host environemnt + // We are launching on this host in a terminal. So compare the environment on the host + // to what is supplied in the launch_info. Any items that aren't in the host environment // need to be sent to darwin-debug. If we send all environment entries, we might blow the // max command line length, so we only send user modified entries. const char **envp = launch_info.GetEnvironmentEntries().GetConstArgumentVector (); @@ -660,7 +660,7 @@ LaunchInNewTerminalWithAppleScript (const char *exe_path, ProcessLaunchInfo &lau { pid = (intptr_t)accept_thread_result; - // Wait for process to be stopped the the entry point by watching + // Wait for process to be stopped at the entry point by watching // for the process status to be set to SSTOP which indicates it it // SIGSTOP'ed at the entry point WaitForProcessToSIGSTOP (pid, 5); @@ -1496,7 +1496,7 @@ LaunchProcessXPC (const char *exe_path, ProcessLaunchInfo &launch_info, ::pid_t return; } else if (event == XPC_ERROR_CONNECTION_INVALID) { // The service is invalid. Either the service name supplied to xpc_connection_create() is incorrect - // or we (this process) have canceled the service; we can do any cleanup of appliation state at this point. + // or we (this process) have canceled the service; we can do any cleanup of application state at this point. // printf("Service disconnected"); return; } else { @@ -1642,7 +1642,7 @@ Host::LaunchProcess (ProcessLaunchInfo &launch_info) #if !defined(__arm__) && !defined(__arm64__) return LaunchInNewTerminalWithAppleScript (exe_path, launch_info); #else - error.SetErrorString ("launching a processs in a new terminal is not supported on iOS devices"); + error.SetErrorString ("launching a process in a new terminal is not supported on iOS devices"); return error; #endif } diff --git a/lldb/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp b/lldb/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp index 05b16e2..f2db10c 100644 --- a/lldb/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp +++ b/lldb/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp @@ -810,14 +810,14 @@ LoadValueFromConsecutiveGPRRegisters (ExecutionContext &exe_ctx, const RegisterInfo *reg_info = NULL; if (is_return_value) { - // We are assumging we are decoding this immediately after returning + // We are assuming we are decoding this immediately after returning // from a function call and that the address of the structure is in x8 reg_info = reg_ctx->GetRegisterInfoByName("x8", 0); } else { // We are assuming we are stopped at the first instruction in a function - // and that the ABI is being respected so all paramters appear where they + // and that the ABI is being respected so all parameters appear where they // should be (functions with no external linkage can legally violate the ABI). if (NGRN >= 8) return false; diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp index 52c7281..e9c60f5 100644 --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp @@ -263,7 +263,7 @@ DynamicLoaderMacOSXDYLD::DidSetNotificationBreakpoint() const //---------------------------------------------------------------------- // Try and figure out where dyld is by first asking the Process -// if it knows (which currently calls down in the the lldb::Process +// if it knows (which currently calls down in the lldb::Process // to get the DYLD info (available on SnowLeopard only). If that fails, // then check in the default addresses. //---------------------------------------------------------------------- @@ -944,7 +944,7 @@ DynamicLoaderMacOSXDYLD::RemoveModulesUsingImageInfosAddress (lldb::addr_t image image_infos[idx].PutToLog (log); } - // Remove this image_infos from the m_all_image_infos. We do the comparision by address + // Remove this image_infos from the m_all_image_infos. We do the comparison by address // rather than by file spec because we can have many modules with the same "file spec" in the // case that they are modules loaded from memory. // @@ -1360,7 +1360,7 @@ DynamicLoaderMacOSXDYLD::UpdateImageInfosHeaderAndLoadCommands(DYLDImageInfo::co // On Mac OS X libobjc (the Objective-C runtime) has several critical dispatch // functions written in hand-written assembly, and also have hand-written unwind // information in the eh_frame section. Normally we prefer analyzing the -// assembly instructions of a curently executing frame to unwind from that frame -- +// assembly instructions of a currently executing frame to unwind from that frame -- // but on hand-written functions this profiling can fail. We should use the // eh_frame instructions for these functions all the time. // diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp index baff94f..41d722a 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp @@ -326,7 +326,7 @@ AppleObjCRuntimeV1::UpdateISAToDescriptorMapIfNeeded() if (process) { // Update the process stop ID that indicates the last time we updated the - // map, wether it was successful or not. + // map, whether it was successful or not. m_isa_to_descriptor_stop_id = process->GetStopID(); Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_PROCESS)); diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp index 4fe1cf5..4f9b5e8 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -628,7 +628,7 @@ public: Error err; // This currently holds true for all platforms we support, but we might - // need to change this to use get the actualy byte size of "unsigned" + // need to change this to use get the actually byte size of "unsigned" // from the target AST... const uint32_t unsigned_byte_size = sizeof(uint32_t); // Skip the prototype as we don't need it (const struct +NXMapTablePrototype *prototype) @@ -2231,7 +2231,7 @@ AppleObjCRuntimeV2::UpdateISAToDescriptorMapIfNeeded() RemoteNXMapTable hash_table; // Update the process stop ID that indicates the last time we updated the - // map, wether it was successful or not. + // map, whether it was successful or not. m_isa_to_descriptor_stop_id = process->GetStopID(); if (!m_hash_signature.NeedsUpdate(process, this, hash_table)) @@ -2239,7 +2239,7 @@ AppleObjCRuntimeV2::UpdateISAToDescriptorMapIfNeeded() m_hash_signature.UpdateSignature (hash_table); - // Grab the dynamicly loaded objc classes from the hash table in memory + // Grab the dynamically loaded objc classes from the hash table in memory UpdateISAToDescriptorMapDynamic(hash_table); // Now get the objc classes that are baked into the Objective C runtime diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index b2119e3..e821f2b 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -458,7 +458,7 @@ ObjectFileELF::CalculateELFNotesSegmentsCRC32 (const ProgramHeaderColl& program_ if (segment_data.SetData(object_data, ph_offset, ph_size) != ph_size) { // The ELF program header contained incorrect data, - // prabably corefile is incomplete or corrupted. + // probably corefile is incomplete or corrupted. break; } @@ -605,7 +605,7 @@ ObjectFileELF::GetModuleSpecifications (const lldb_private::FileSpec& file, (file.GetByteSize()-file_offset)/1024); // For core files - which usually don't happen to have a gnu_debuglink, - // and are pretty bulky - calulating whole contents crc32 would be too much of luxury. + // and are pretty bulky - calculating whole contents crc32 would be too much of luxury. // Thus we will need to fallback to something simpler. if (header.e_type == llvm::ELF::ET_CORE) { @@ -1242,7 +1242,7 @@ ObjectFileELF::GetSectionHeaderInfo(SectionHeaderColl §ion_headers, uint32_t &gnu_debuglink_crc, ArchSpec &arch_spec) { - // Only intialize the arch_spec to okay defaults if they're not already set. + // Only initialize the arch_spec to okay defaults if they're not already set. // We'll refine this with note data as we parse the notes. if (arch_spec.GetTriple ().getOS () == llvm::Triple::OSType::UnknownOS) { diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index 9341e27..c95d67be 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -116,8 +116,8 @@ public: case 7: case 8: case 9: - // fancy flavors that encapsulate of the the above - // falvors... + // fancy flavors that encapsulate of the above + // flavors... break; default: @@ -346,8 +346,8 @@ public: case 7: case 8: case 9: - // fancy flavors that encapsulate of the the above - // falvors... + // fancy flavors that encapsulate of the above + // flavors... break; default: @@ -1289,9 +1289,9 @@ ObjectFileMachO::CreateSections (SectionList &unified_section_list) { if (load_cmd.fileoff > m_length) { - // We have a load command that says it extends past the end of hte file. This is likely + // We have a load command that says it extends past the end of the file. This is likely // a corrupt file. We don't have any way to return an error condition here (this method - // was likely invokved from something like ObjectFile::GetSectionList()) -- all we can do + // was likely invoked from something like ObjectFile::GetSectionList()) -- all we can do // is null out the SectionList vector and if a process has been set up, dump a message // to stdout. The most common case here is core file debugging with a truncated file. const char *lc_segment_name = load_cmd.cmd == LC_SEGMENT_64 ? "LC_SEGMENT_64" : "LC_SEGMENT"; @@ -1307,9 +1307,9 @@ ObjectFileMachO::CreateSections (SectionList &unified_section_list) if (load_cmd.fileoff + load_cmd.filesize > m_length) { - // We have a load command that says it extends past the end of hte file. This is likely + // We have a load command that says it extends past the end of the file. This is likely // a corrupt file. We don't have any way to return an error condition here (this method - // was likely invokved from something like ObjectFile::GetSectionList()) -- all we can do + // was likely invoked from something like ObjectFile::GetSectionList()) -- all we can do // is null out the SectionList vector and if a process has been set up, dump a message // to stdout. The most common case here is core file debugging with a truncated file. const char *lc_segment_name = load_cmd.cmd == LC_SEGMENT_64 ? "LC_SEGMENT_64" : "LC_SEGMENT"; @@ -1345,7 +1345,7 @@ ObjectFileMachO::CreateSections (SectionList &unified_section_list) load_cmd.vmaddr, // File VM address == addresses as they are found in the object file load_cmd.vmsize, // VM size in bytes of this section load_cmd.fileoff, // Offset to the data for this section in the file - load_cmd.filesize, // Size in bytes of this section as found in the the file + load_cmd.filesize, // Size in bytes of this section as found in the file 0, // Segments have no alignment information load_cmd.flags)); // Flags for this section @@ -1474,7 +1474,7 @@ ObjectFileMachO::CreateSections (SectionList &unified_section_list) sect64.addr, // File VM address == addresses as they are found in the object file sect64.size, // VM size in bytes of this section sect64.offset, // Offset to the data for this section in the file - sect64.offset ? sect64.size : 0, // Size in bytes of this section as found in the the file + sect64.offset ? sect64.size : 0, // Size in bytes of this section as found in the file sect64.align, load_cmd.flags)); // Flags for this section segment_sp->SetIsFake(true); @@ -1971,7 +1971,7 @@ ObjectFileMachO::ParseSymtab () if (path) { FileSpec file_spec(path, false); - // Strip the path if there is @rpath, @executanble, etc so we just use the basename + // Strip the path if there is @rpath, @executable, etc so we just use the basename if (path[0] == '@') file_spec.GetDirectory().Clear(); @@ -2195,7 +2195,7 @@ ObjectFileMachO::ParseSymtab () const bool is_arm = (m_header.cputype == llvm::MachO::CPU_TYPE_ARM); - // lldb works best if it knows the start addresss of all functions in a module. + // lldb works best if it knows the start address of all functions in a module. // Linker symbols or debug info are normally the best source of information for start addr / size but // they may be stripped in a released binary. // Two additional sources of information exist in Mach-O binaries: @@ -4402,7 +4402,7 @@ ObjectFileMachO::GetDependentModules (FileSpecList& files) lldb_private::Mutex::Locker locker(module_sp->GetMutex()); struct load_command load_cmd; lldb::offset_t offset = MachHeaderSizeFromMagic(m_header.magic); - const bool resolve_path = false; // Don't resolve the dependend file paths since they may not reside on this system + const bool resolve_path = false; // Don't resolve the dependent file paths since they may not reside on this system uint32_t i; for (i=0; i argv; FileSpec exe_file = launch_info.GetExecutableFile(); std::string exe_path; @@ -2924,7 +2924,7 @@ GDBRemoteCommunicationClient::SendGDBStoppointTypePacket (GDBStoppointType type, 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 @@ GDBRemoteCommunicationClient::SendGDBStoppointTypePacket (GDBStoppointType type, } } } - // Signal generic faliure + // Signal generic failure return UINT8_MAX; } @@ -3578,7 +3578,7 @@ GDBRemoteCommunicationClient::SaveRegisterState (lldb::tid_t tid, uint32_t &save 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 @@ public: // 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 @@ public: /// 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 @@ GDBRemoteCommunicationServer::SendStopReplyPacketForThread (lldb::tid_t tid) // 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 @@ GDBRemoteCommunicationServer::Handle_A (StringExtractorGDBRemote &packet) 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 @@ GDBRemoteCommunicationServer::Handle_qLaunchGDBServer (StringExtractorGDBRemote 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 @@ GDBRemoteCommunicationServer::KillSpawnedProcess (lldb::pid_t pid) 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 @@ ProcessGDBRemote::DoDestroy () 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 @@ ProcessGDBRemote::EnableBreakpointSite (BreakpointSite *bp_site) 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 @@ ProcessGDBRemote::GetExtendedInfoForThread (lldb::tid_t tid) // 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 @@ ProcessGDBRemote::GetMaxMemorySize() 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; diff --git a/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h b/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h index 7949c14..b49247e 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h @@ -169,7 +169,7 @@ struct DWARFMappedHash { if (return_implementation_only_if_available) { - // We found the one true definiton for this class, so + // We found the one true definition for this class, so // only return that die_offsets.clear(); die_offsets.push_back (die_info_array[i].offset); diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 010b668..613f7ae 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -2576,7 +2576,7 @@ SymbolFileDWARF::ResolveClangOpaqueTypeDefinition (ClangASTType &clang_type) // is complete. If we don't do this, clang will crash when we // call setBases() inside of "clang_type.SetBaseClassesForClassType()" // below. Since we provide layout assistance, all ivars in this - // class and other classe will be fine, this is the best we can do + // class and other classes will be fine, this is the best we can do // short of crashing. base_class_type.StartTagDeclarationDefinition (); base_class_type.CompleteTagDeclarationDefinition (); @@ -3111,7 +3111,7 @@ SymbolFileDWARF::DIEIsInNamespace (const ClangNamespaceDecl *namespace_decl, { // We have a namespace_decl that was not NULL but it contained // a NULL "clang::NamespaceDecl", so this means the global namespace - // So as long the the contained decl context DIE isn't a namespace + // So as long the contained decl context DIE isn't a namespace // we should be ok. if (decl_ctx_die->Tag() != DW_TAG_namespace) return true; @@ -4968,7 +4968,7 @@ SymbolFileDWARF::DIEDeclContextsMatch (DWARFCompileUnit* cu1, const DWARFDebugIn if (count1 != count2) return false; - // Make sure the DW_TAG values match all the way back up the the + // Make sure the DW_TAG values match all the way back up the // compile unit. If they don't, then we are done. const DWARFDebugInfoEntry *decl_ctx_die1; const DWARFDebugInfoEntry *decl_ctx_die2; @@ -6185,7 +6185,7 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu, if (accessibility == eAccessNone && decl_ctx) { // Check the decl context that contains this class/struct/union. - // If it is a class we must give it an accessability. + // If it is a class we must give it an accessibility. const clang::Decl::Kind containing_decl_kind = decl_ctx->getDeclKind(); if (DeclKindIsCXXClass (containing_decl_kind)) accessibility = default_accessibility; @@ -6314,7 +6314,7 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu, // Start the definition if the class is not objective C since // the underlying decls respond to isCompleteDefinition(). Objective // C decls dont' respond to isCompleteDefinition() so we can't - // start the declaration definition right away. For C++ classs/union/structs + // start the declaration definition right away. For C++ class/union/structs // we want to start the definition in case the class is needed as the // declaration context for a contained class or type without the need // to complete that type.. @@ -6577,7 +6577,7 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu, const bool is_cxx_method = DeclKindIsCXXClass (containing_decl_kind); // Start off static. This will be set to false in ParseChildParameters(...) - // if we find a "this" paramters as the first parameter + // if we find a "this" parameters as the first parameter if (is_cxx_method) is_static = true; @@ -7446,7 +7446,7 @@ SymbolFileDWARF::ParseVariableDIE // DWARF doesn't specify if a DW_TAG_variable is a local, global // or static variable, so we have to do a little digging by - // looking at the location of a varaible to see if it contains + // looking at the location of a variable to see if it contains // a DW_OP_addr opcode _somewhere_ in the definition. I say // somewhere because clang likes to combine small global variables // into the same symbol and have locations like: @@ -7754,7 +7754,7 @@ SymbolFileDWARF::ParseVariables if (block == NULL) { // This must be a specification or abstract origin with - // a concrete block couterpart in the current function. We need + // a concrete block counterpart in the current function. We need // to find the concrete block so we can correctly add the // variable to it DWARFCompileUnit *concrete_block_die_cu = dwarf_cu; diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h index 06330b9..1493292 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h @@ -393,7 +393,7 @@ protected: LinkOSOFileAddress (SymbolFileDWARF *oso_symfile, lldb::addr_t oso_file_addr); //------------------------------------------------------------------ - /// Given a line table full of lines with "file adresses" that are + /// Given a line table full of lines with "file addresses" that are /// for a .o file represented by \a oso_symfile, link a new line table /// and return it. /// @@ -405,7 +405,7 @@ protected: /// /// @return /// Returns a valid line table full of linked addresses, or NULL - /// if none of the line table adresses exist in the main + /// if none of the line table addresses exist in the main /// executable. //------------------------------------------------------------------ lldb_private::LineTable * diff --git a/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp b/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp index 8ddc1cd..5379cf2 100644 --- a/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp +++ b/lldb/source/Plugins/UnwindAssembly/InstEmulation/UnwindAssemblyInstEmulation.cpp @@ -42,7 +42,7 @@ UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly (AddressRange& m_inst_emulator_ap.get()) { - // The the instruction emulation subclass setup the unwind plan for the + // The instruction emulation subclass setup the unwind plan for the // first instruction. m_inst_emulator_ap->CreateFunctionEntryUnwind (unwind_plan); @@ -83,7 +83,7 @@ UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly (AddressRange& // Initialize the CFA with a known value. In the 32 bit case // it will be 0x80000000, and in the 64 bit case 0x8000000000000000. - // We use the address byte size to be safe for any future addresss sizes + // We use the address byte size to be safe for any future address sizes m_initial_sp = (1ull << ((addr_byte_size * 8) - 1)); RegisterValue cfa_reg_value; cfa_reg_value.SetUInt (m_initial_sp, m_cfa_reg_info.byte_size); @@ -182,7 +182,7 @@ UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly (AddressRange& // While parsing the instructions of this function, if we've ever // seen the return address register (aka lr on arm) in a non-IsSame() state, - // it has been saved on the stack. If it's evern back to IsSame(), we've + // it has been saved on the stack. If it's ever back to IsSame(), we've // executed an epilogue. if (ra_reg_num != LLDB_INVALID_REGNUM && m_curr_row->GetRegisterInfo (ra_reg_num, ra_regloc) diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index f112a62..d085c36 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -16,7 +16,7 @@ // Other libraries and framework includes // Clang headers like to use NDEBUG inside of them to enable/disable debug -// releated features using "#ifndef NDEBUG" preprocessor blocks to do one thing +// related features using "#ifndef NDEBUG" preprocessor blocks to do one thing // or another. This is bad because it means that if clang was built in release // mode, it assumes that you are building in release mode which is not always // the case. You can end up with functions that are defined as empty in header @@ -103,7 +103,7 @@ ParseLangArgs { // FIXME: Cleanup per-file based stuff. - // Set some properties which depend soley on the input kind; it would be nice + // Set some properties which depend solely on the input kind; it would be nice // to move these to the language standard, and have the driver resolve the // input kind + language standard. if (IK == IK_Asm) { @@ -649,7 +649,7 @@ ClangASTContext::GetBasicTypeEnumeration (const ConstString &name) g_type_map.Append(ConstString("__int128_t").GetCString(), eBasicTypeInt128); g_type_map.Append(ConstString("__uint128_t").GetCString(), eBasicTypeUnsignedInt128); - // Miscelaneous + // Miscellaneous g_type_map.Append(ConstString("bool").GetCString(), eBasicTypeBool); g_type_map.Append(ConstString("float").GetCString(), eBasicTypeFloat); g_type_map.Append(ConstString("double").GetCString(), eBasicTypeDouble); @@ -1398,7 +1398,7 @@ check_op_param (uint32_t op_kind, bool unary, bool binary, uint32_t num_params) if(op_kind == OO_Call) return true; - // The parameter count doens't include "this" + // The parameter count doesn't include "this" if (num_params == 0) return unary; if (num_params == 1) diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp index b94da55..ffccf36 100644 --- a/lldb/source/Symbol/ClangASTType.cpp +++ b/lldb/source/Symbol/ClangASTType.cpp @@ -6199,7 +6199,7 @@ ClangASTType::DumpSummary (ExecutionContext *exe_ctx, if (process) { lldb::offset_t offset = data_byte_offset; - lldb::addr_t pointer_addresss = data.GetMaxU64(&offset, data_byte_size); + lldb::addr_t pointer_address = data.GetMaxU64(&offset, data_byte_size); std::vector buf; if (length > 0) buf.resize (length); @@ -6211,7 +6211,7 @@ ClangASTType::DumpSummary (ExecutionContext *exe_ctx, size_t bytes_read; size_t total_cstr_len = 0; Error error; - while ((bytes_read = process->ReadMemory (pointer_addresss, &buf.front(), buf.size(), error)) > 0) + while ((bytes_read = process->ReadMemory (pointer_address, &buf.front(), buf.size(), error)) > 0) { const size_t len = strlen((const char *)&buf.front()); if (len == 0) @@ -6222,7 +6222,7 @@ ClangASTType::DumpSummary (ExecutionContext *exe_ctx, total_cstr_len += len; if (len < buf.size()) break; - pointer_addresss += total_cstr_len; + pointer_address += total_cstr_len; } if (total_cstr_len > 0) s->PutChar ('"'); diff --git a/lldb/source/Symbol/ClangExternalASTSourceCallbacks.cpp b/lldb/source/Symbol/ClangExternalASTSourceCallbacks.cpp index b2328d6..bdc3265 100644 --- a/lldb/source/Symbol/ClangExternalASTSourceCallbacks.cpp +++ b/lldb/source/Symbol/ClangExternalASTSourceCallbacks.cpp @@ -14,7 +14,7 @@ // Other libraries and framework includes // Clang headers like to use NDEBUG inside of them to enable/disable debug -// releated features using "#ifndef NDEBUG" preprocessor blocks to do one thing +// related features using "#ifndef NDEBUG" preprocessor blocks to do one thing // or another. This is bad because it means that if clang was built in release // mode, it assumes that you are building in release mode which is not always // the case. You can end up with functions that are defined as empty in header diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 7e11bde..6f5125a 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -83,7 +83,7 @@ public: virtual const Property * GetPropertyAtIndex (const ExecutionContext *exe_ctx, bool will_modify, uint32_t idx) const { - // When gettings the value for a key from the process options, we will always + // When getting the value for a key from the process options, we will always // try and grab the setting from the current process if there is one. Else we just // use the one from this instance. if (exe_ctx) @@ -1174,7 +1174,7 @@ Process::SetExitStatus (int status, const char *cstr) } // This static callback can be used to watch for local child processes on -// the current host. The the child process exits, the process will be +// the current host. The child process exits, the process will be // found in the global target list (we want to be completely sure that the // lldb_private::Process doesn't go away before we can deliver the signal. bool @@ -2027,7 +2027,7 @@ Process::DisableSoftwareBreakpoint (BreakpointSite *bp_site) const uint8_t * const break_op = bp_site->GetTrapOpcodeBytes(); if (break_op_size > 0) { - // Clear a software breakoint instruction + // Clear a software breakpoint instruction uint8_t curr_break_op[8]; assert (break_op_size <= sizeof(curr_break_op)); bool break_op_found = false; @@ -3522,7 +3522,7 @@ Process::ShouldBroadcastEvent (Event *event_ptr) break; default: // TODO: make this work correctly. For now always report - // run if we aren't running so we don't miss any runnning + // run if we aren't running so we don't miss any running // events. If I run the lldb/test/thread/a.out file and // break at main.cpp:58, run and hit the breakpoints on // multiple threads, then somehow during the stepping over @@ -3916,7 +3916,7 @@ Process::RunPrivateStateThread () { case eBroadcastInternalStateControlStop: exit_now = true; - break; // doing any internal state managment below + break; // doing any internal state management below case eBroadcastInternalStateControlPause: control_only = true; diff --git a/lldb/source/Target/SectionLoadHistory.cpp b/lldb/source/Target/SectionLoadHistory.cpp index 1e5ade7..1e5c417 100644 --- a/lldb/source/Target/SectionLoadHistory.cpp +++ b/lldb/source/Target/SectionLoadHistory.cpp @@ -57,7 +57,7 @@ SectionLoadHistory::GetSectionLoadListForStopID (uint32_t stop_id, bool read_onl if (stop_id == eStopIDNow) { // If we are asking for the latest and greatest value, it is always - // at the end of our list becuase that will be the highest stop ID. + // at the end of our list because that will be the highest stop ID. StopIDToSectionLoadList::reverse_iterator rpos = m_stop_id_to_section_load_list.rbegin(); return rpos->second.get(); } diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 9deafa9..bc46df9 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1047,7 +1047,7 @@ Target::SetExecutableModule (ModuleSP& executable_sp, bool get_dependent_files) "Target::SetExecutableModule (executable = '%s')", executable_sp->GetFileSpec().GetPath().c_str()); - m_images.Append(executable_sp); // The first image is our exectuable file + m_images.Append(executable_sp); // The first image is our executable file // If we haven't set an architecture yet, reset our architecture based on what we found in the executable module. if (!m_arch.IsValid()) @@ -1258,7 +1258,7 @@ Target::ReadMemoryFromFileCache (const Address& addr, void *dst, size_t dst_len, SectionSP section_sp (addr.GetSection()); if (section_sp) { - // If the contents of this section are encrypted, the on-disk file is unusuable. Read only from live memory. + // If the contents of this section are encrypted, the on-disk file is unusable. Read only from live memory. if (section_sp->IsEncrypted()) { error.SetErrorString("section is encrypted"); @@ -1323,7 +1323,7 @@ Target::ReadMemory (const Address& addr, } else { - // We have at least one section loaded. This can be becuase + // We have at least one section loaded. This can be because // we have manually loaded some sections with "target modules load ..." // or because we have have a live process that has sections loaded // through the dynamic loader @@ -1379,7 +1379,7 @@ Target::ReadMemory (const Address& addr, } // If the address is not section offset we have an address that // doesn't resolve to any address in any currently loaded shared - // libaries and we failed to read memory so there isn't anything + // libraries and we failed to read memory so there isn't anything // more we can do. If it is section offset, we might be able to // read cached memory from the object file. if (!resolved_addr.IsSectionOffset()) @@ -1550,7 +1550,7 @@ Target::ReadPointerFromMemory (const Address& addr, } else { - // We have at least one section loaded. This can be becuase + // We have at least one section loaded. This can be because // we have manually loaded some sections with "target modules load ..." // or because we have have a live process that has sections loaded // through the dynamic loader @@ -2727,7 +2727,7 @@ public: virtual const Property * GetPropertyAtIndex (const ExecutionContext *exe_ctx, bool will_modify, uint32_t idx) const { - // When gettings the value for a key from the target options, we will always + // When getting the value for a key from the target options, we will always // try and grab the setting from the current target if there is one. Else we just // use the one from this instance. if (idx == ePropertyEnvVars) diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp index c5c3698..89d4359 100644 --- a/lldb/source/Target/Thread.cpp +++ b/lldb/source/Target/Thread.cpp @@ -99,7 +99,7 @@ public: virtual const Property * GetPropertyAtIndex (const ExecutionContext *exe_ctx, bool will_modify, uint32_t idx) const { - // When gettings the value for a key from the thread options, we will always + // When getting the value for a key from the thread options, we will always // try and grab the setting from the current thread if there is one. Else we just // use the one from this instance. if (exe_ctx) diff --git a/lldb/source/Target/ThreadPlanRunToAddress.cpp b/lldb/source/Target/ThreadPlanRunToAddress.cpp index 9e77139..e2f85c0 100644 --- a/lldb/source/Target/ThreadPlanRunToAddress.cpp +++ b/lldb/source/Target/ThreadPlanRunToAddress.cpp @@ -69,7 +69,7 @@ ThreadPlanRunToAddress::ThreadPlanRunToAddress m_addresses (addresses), m_break_ids () { - // Convert all addressses into opcode addresses to make sure we set + // Convert all addresses into opcode addresses to make sure we set // breakpoints at the correct address. Target &target = thread.GetProcess()->GetTarget(); std::vector::iterator pos, end = m_addresses.end(); diff --git a/lldb/source/Utility/PseudoTerminal.cpp b/lldb/source/Utility/PseudoTerminal.cpp index 8eb022b..c906ea2 100644 --- a/lldb/source/Utility/PseudoTerminal.cpp +++ b/lldb/source/Utility/PseudoTerminal.cpp @@ -48,7 +48,7 @@ PseudoTerminal::PseudoTerminal () : // Destructor // // The destructor will close the master and slave file descriptors -// if they are valid and ownwership has not been released using the +// if they are valid and ownership has not been released using the // ReleaseMasterFileDescriptor() or the ReleaseSaveFileDescriptor() // member functions. //---------------------------------------------------------------------- diff --git a/lldb/source/lldb-log.cpp b/lldb/source/lldb-log.cpp index 1060517..4311c1a 100644 --- a/lldb/source/lldb-log.cpp +++ b/lldb/source/lldb-log.cpp @@ -255,7 +255,7 @@ lldb_private::ListLogCategories (Stream *strm) " host - log host activities\n" " jit - log JIT events in the target\n" " mmap - log mmap related activities\n" - " module - log module activities such as when modules are created, detroyed, replaced, and more\n" + " module - log module activities such as when modules are created, destroyed, replaced, and more\n" " object - log object construction/destruction for important objects\n" " os - log OperatingSystem plugin related activities\n" " platform - log platform events and activities\n" diff --git a/lldb/test/README-TestSuite b/lldb/test/README-TestSuite index aea80b2..eba34e6 100644 --- a/lldb/test/README-TestSuite +++ b/lldb/test/README-TestSuite @@ -60,7 +60,7 @@ o make directory based rules to build binaries for the inferiors. By default, the built executable name is a.out, which can be overwritten by - specifying your EXE make variable, via the Makefile under the specfic test + specifying your EXE make variable, via the Makefile under the specific test directory or via supplying a Python dictionary to the build method in your Python test script. An example of the latter can be found in test/lang/objc/radar-9691614/TestObjCMethodReturningBOOL.py, where: diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index c80b3eb..7d23f34 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -189,7 +189,7 @@ dumpSysPath = False bmExecutable = None # The breakpoint specification of bmExecutable, as specified by the '-x' option. bmBreakpointSpec = None -# The benchamrk iteration count, as specified by the '-y' option. +# The benchmark iteration count, as specified by the '-y' option. bmIterationCount = -1 # By default, don't exclude any directories. Use '-X' to add one excluded directory. @@ -275,7 +275,7 @@ def usage(parser): print """ Examples: -This is an example of using the -f option to pinpoint to a specfic test class +This is an example of using the -f option to pinpoint to a specific test class and test method to be run: $ ./dotest.py -f ClassTypesTestCase.test_with_dsym_and_run_command @@ -1495,7 +1495,7 @@ for ia in range(len(archs) if iterArchs else 1): Overwrite addError(), addFailure(), and addExpectedFailure() methods to enable each test instance to track its failure/error status. It is used in the LLDB test framework to emit detailed trace messages - to a log file for easier human inspection of test failres/errors. + to a log file for easier human inspection of test failures/errors. """ __singleton__ = None __ignore_singleton__ = False diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py b/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py index bd3bcc4..fa32b37 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py @@ -415,7 +415,7 @@ class WatchpointCommandsTestCase(TestBase): substrs = ['stop reason = watchpoint']) # Before continuing, we'll disable the watchpoint, which means we won't - # stop agian after this. + # stop again after this. self.runCmd("watchpoint disable") self.expect("watchpoint list -v", @@ -473,7 +473,7 @@ class WatchpointCommandsTestCase(TestBase): substrs = ['stop reason = breakpoint']) # Before continuing, we'll enable the watchpoint, which means we will - # stop agian after this. + # stop again after this. self.runCmd("watchpoint enable") self.expect("watchpoint list -v", diff --git a/lldb/test/lang/objc/objc-stepping/TestObjCStepping.py b/lldb/test/lang/objc/objc-stepping/TestObjCStepping.py index 84f7a0d..92aa3ec 100644 --- a/lldb/test/lang/objc/objc-stepping/TestObjCStepping.py +++ b/lldb/test/lang/objc/objc-stepping/TestObjCStepping.py @@ -130,7 +130,7 @@ class TestObjCStepping(TestBase): line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine() self.assertTrue (line_number == self.sourceBase_returnsStruct_start_line, "Stepped through super into SourceBase returnsStruct.") - # Cool now continue to get past the call that intializes the Observer, and then do our steps in again to see that + # Cool now continue to get past the call that initializes the Observer, and then do our steps in again to see that # we can find our way when we're stepping through a KVO swizzled object. threads = lldbutil.continue_to_breakpoint (process, break3) diff --git a/lldb/tools/darwin-debug/darwin-debug.cpp b/lldb/tools/darwin-debug/darwin-debug.cpp index 62e1b88..8fb16bc 100644 --- a/lldb/tools/darwin-debug/darwin-debug.cpp +++ b/lldb/tools/darwin-debug/darwin-debug.cpp @@ -229,7 +229,7 @@ int main (int argc, char *const *argv, char *const *envp, const char **apple) case 'E': { // Since we will exec this program into our new program, we can just set environment - // varaibles in this process and they will make it into the child process. + // variables in this process and they will make it into the child process. std::string name; std::string value; const char *equal_pos = strchr (optarg, '='); diff --git a/lldb/tools/debugserver/source/ChangeLog b/lldb/tools/debugserver/source/ChangeLog index 6298ff2..898f2fb 100644 --- a/lldb/tools/debugserver/source/ChangeLog +++ b/lldb/tools/debugserver/source/ChangeLog @@ -433,7 +433,7 @@ 2008-12-05 Greg Clayton * DNBDefs.h (LOG_TASK): New log bit. - * DNB.cpp (DNBProcessIsAlive): User newly abtracted MachTask class. + * DNB.cpp (DNBProcessIsAlive): User newly abstracted MachTask class. (DNBProcessMemoryRead): Ditto. (DNBProcessMemoryWrite): Ditto. * DNBArchImpl.cpp (DNBArchMachARM::EnableHardwareSingleStep): Ditto. @@ -446,7 +446,7 @@ (MachException::PortInfo::Restore): Cleaned up logging and now return an error instead of the number of restored port infos. * MachProcess.cpp (class MachProcess): Abstracted out all of the task_t - related stuff (suspend, resuyme, exception ports, exception thread, and + related stuff (suspend, resume, exception ports, exception thread, and more) into a new class MachTask. (MachProcess::Task): Now returns a reference to a MachTask class. (MachProcess::Clear): Uses new abstracted MachTask class. @@ -515,7 +515,7 @@ * arm/DBNArchImpl.cpp (DNBArchMachARM::EnableHardwareSingleStep): Log using new LOG_STEP instead of LOG_BREAKPOINTS. (DNBArchMachARM::SetSingleStepSoftwareBreakpoints): Ditto. - * MachException.cpp (MachException::Message::Dump): Log excetion header + * MachException.cpp (MachException::Message::Dump): Log exception header and reply header on two separate lines. * MachProcess.cpp (IsSBProcess): Check for NULL CFArrayRef returned from SBSCopyApplicationDisplayIdentifiers for SkankPhone. @@ -1073,7 +1073,7 @@ * RNBRemote.h: Change default for gdb's max incoming packet size to reflect the real default size. - * RNBRemote.cpp (HandlePacket_Q): Correct the string comparisions for + * RNBRemote.cpp (HandlePacket_Q): Correct the string comparisons for the QSetMaxPayloadSize and QSetMaxPacketSize packets. 2008-02-19 Christopher Friesen diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.mm b/lldb/tools/debugserver/source/MacOSX/MachProcess.mm index 8512397..e4830d6 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachProcess.mm +++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.mm @@ -162,7 +162,7 @@ MachProcess::SetProcessID(pid_t pid) m_pid = ::getpid (); else m_pid = pid; - return m_pid; // Return actualy PID in case a zero pid was passed in + return m_pid; // Return actually PID in case a zero pid was passed in } nub_state_t @@ -956,7 +956,7 @@ MachProcess::DisableBreakpoint(nub_addr_t addr, bool remove) const uint8_t * const break_op = DNBArchProtocol::GetBreakpointOpcode (bp->ByteSize()); 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; @@ -1456,7 +1456,7 @@ MachProcess::STDIOThread(void *arg) // 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/lldb/tools/debugserver/source/MacOSX/MachTask.mm b/lldb/tools/debugserver/source/MacOSX/MachTask.mm index 078ae3e..fa7bf24 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachTask.mm +++ b/lldb/tools/debugserver/source/MacOSX/MachTask.mm @@ -743,7 +743,7 @@ MachTask::ExceptionThread (void *arg) // 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/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp index 1f462ac..0dc514f 100644 --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -96,7 +96,7 @@ RNBRemote::CreatePacketTable () { // Step required to add new packets: // 1 - Add new enumeration to RNBRemote::PacketEnum - // 2 - Create a the RNBRemote::HandlePacket_ function if a new function is needed + // 2 - Create the RNBRemote::HandlePacket_ function if a new function is needed // 3 - Register the Packet definition with any needed callbacks in this function // - If no response is needed for a command, then use NULL for the normal callback // - If the packet is not supported while the target is running, use NULL for the async callback @@ -179,14 +179,14 @@ RNBRemote::CreatePacketTable () // t.push_back (Packet (query_symbol_lookup, &RNBRemote::HandlePacket_UNIMPLEMENTED, NULL, "qSymbol", "Notify that host debugger is ready to do symbol lookups")); t.push_back (Packet (json_query_thread_extended_info, &RNBRemote::HandlePacket_jThreadExtendedInfo, NULL, "jThreadExtendedInfo", "Replies with JSON data of thread extended information.")); t.push_back (Packet (start_noack_mode, &RNBRemote::HandlePacket_QStartNoAckMode , NULL, "QStartNoAckMode", "Request that " DEBUGSERVER_PROGRAM_NAME " stop acking remote protocol packets")); - t.push_back (Packet (prefix_reg_packets_with_tid, &RNBRemote::HandlePacket_QThreadSuffixSupported , NULL, "QThreadSuffixSupported", "Check if thread specifc packets (register packets 'g', 'G', 'p', and 'P') support having the thread ID appended to the end of the command")); + t.push_back (Packet (prefix_reg_packets_with_tid, &RNBRemote::HandlePacket_QThreadSuffixSupported , NULL, "QThreadSuffixSupported", "Check if thread specific packets (register packets 'g', 'G', 'p', and 'P') support having the thread ID appended to the end of the command")); t.push_back (Packet (set_logging_mode, &RNBRemote::HandlePacket_QSetLogging , NULL, "QSetLogging:", "Check if register packets ('g', 'G', 'p', and 'P' support having the thread ID prefix")); t.push_back (Packet (set_max_packet_size, &RNBRemote::HandlePacket_QSetMaxPacketSize , NULL, "QSetMaxPacketSize:", "Tell " DEBUGSERVER_PROGRAM_NAME " the max sized packet gdb can handle")); t.push_back (Packet (set_max_payload_size, &RNBRemote::HandlePacket_QSetMaxPayloadSize , NULL, "QSetMaxPayloadSize:", "Tell " DEBUGSERVER_PROGRAM_NAME " the max sized payload gdb can handle")); t.push_back (Packet (set_environment_variable, &RNBRemote::HandlePacket_QEnvironment , NULL, "QEnvironment:", "Add an environment variable to the inferior's environment")); t.push_back (Packet (set_environment_variable_hex, &RNBRemote::HandlePacket_QEnvironmentHexEncoded , NULL, "QEnvironmentHexEncoded:", "Add an environment variable to the inferior's environment")); t.push_back (Packet (set_launch_arch, &RNBRemote::HandlePacket_QLaunchArch , NULL, "QLaunchArch:", "Set the architecture to use when launching a process for hosts that can run multiple architecture slices from universal files.")); - t.push_back (Packet (set_disable_aslr, &RNBRemote::HandlePacket_QSetDisableASLR , NULL, "QSetDisableASLR:", "Set wether to disable ASLR when launching the process with the set argv ('A') packet")); + t.push_back (Packet (set_disable_aslr, &RNBRemote::HandlePacket_QSetDisableASLR , NULL, "QSetDisableASLR:", "Set whether to disable ASLR when launching the process with the set argv ('A') packet")); t.push_back (Packet (set_stdin, &RNBRemote::HandlePacket_QSetSTDIO , NULL, "QSetSTDIN:", "Set the standard input for a process to be launched with the 'A' packet")); t.push_back (Packet (set_stdout, &RNBRemote::HandlePacket_QSetSTDIO , NULL, "QSetSTDOUT:", "Set the standard output for a process to be launched with the 'A' packet")); t.push_back (Packet (set_stderr, &RNBRemote::HandlePacket_QSetSTDIO , NULL, "QSetSTDERR:", "Set the standard error for a process to be launched with the 'A' packet")); @@ -2123,7 +2123,7 @@ RNBRemote::HandlePacket_QEnvironmentHexEncoded (const char *p) QEnvironmentHexEncoded:VARIABLE=VALUE - The VARIABLE=VALUE part is sent hex-encoded so chracters like '#' with special + The VARIABLE=VALUE part is sent hex-encoded so characters like '#' with special meaning in the remote protocol won't break it. */ @@ -2243,7 +2243,7 @@ register_value_in_hex_fixed_width (std::ostream& ostrm, } else { - // If we fail to read a regiser value, check if it has a default + // If we fail to read a register value, check if it has a default // fail value. If it does, return this instead in case some of // the registers are not available on the current system. if (reg->nub_info.size > 0) @@ -2349,7 +2349,7 @@ RNBRemote::SendStopReplyPacketForThread (nub_thread_t tid) // 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 diff --git a/lldb/tools/lldb-mi/MIUtilSingletonHelper.h b/lldb/tools/lldb-mi/MIUtilSingletonHelper.h index 01bcc4f..ab8d078 100644 --- a/lldb/tools/lldb-mi/MIUtilSingletonHelper.h +++ b/lldb/tools/lldb-mi/MIUtilSingletonHelper.h @@ -37,8 +37,8 @@ namespace MI // Type: Template method. // Args: vErrorResrcId - (R) The string resource ID error message identifier to place in errMsg. // vwrbOk - (RW) On input True = Try to initalise MI driver module. -// On output True = MI driver module intialise successfully. -// vwrErrMsg - (W) MI driver module intialise error description on failure. +// On output True = MI driver module initialise successfully. +// vwrErrMsg - (W) MI driver module initialise error description on failure. // Return: MIstatus::success - Functional succeeded. // MIstatus::failure - Functional failed. // Authors: Aidan Dodds 17/03/2014. @@ -65,7 +65,7 @@ bool ModuleInit( const MIint vErrorResrcId, bool & vwrbOk, CMIUtilString & vwrEr // vwrbOk - (W) If not already false make false on module // shutdown failure. // vwrErrMsg - (RW) Append to existing error description string MI -// driver module intialise error description on +// driver module initialise error description on // failure. // Return: True - Module shutdown succeeded. // False - Module shutdown failed. diff --git a/lldb/www/lldb-gdb.html b/lldb/www/lldb-gdb.html index 2f48c66..74b153d 100755 --- a/lldb/www/lldb-gdb.html +++ b/lldb/www/lldb-gdb.html @@ -352,7 +352,7 @@ (gdb) break main
- (Hope that there are no C funtions named main). + (Hope that there are no C functions named main). (lldb) breakpoint set --method main
@@ -375,7 +375,7 @@ (gdb) break count
- (Hope that there are no C or C++ funtions named count). + (Hope that there are no C or C++ functions named count). (lldb) breakpoint set --selector count
diff --git a/lldb/www/symbols.html b/lldb/www/symbols.html index 76f638d..af98e7d 100755 --- a/lldb/www/symbols.html +++ b/lldb/www/symbols.html @@ -3,7 +3,7 @@ -Debug Sybmols on Mac OS X +Debug Symbols on Mac OS X @@ -196,7 +196,7 @@ a dictionary for each UUID. The dictionaries can contain one or more of the foll <key>DBGDSYMPath</key> <string>/path/to/foo.dSYM/Contents/Resources/DWARF/foo</string> <key>DBGSymbolRichExecutable</key> - <string>/path/to/unstripped/exectuable</string> + <string>/path/to/unstripped/executable</string> </dict> <key>A40597AA-5529-3337-8C09-D8A014EB1578</key> <dict> @@ -209,7 +209,7 @@ a dictionary for each UUID. The dictionaries can contain one or more of the foll <key>DBGDSYMPath</key> <string>/path/to/foo.dSYM/Contents/Resources/DWARF/foo</string> <key>DBGSymbolRichExecutable</key> - <string>/path/to/unstripped/exectuable</string> + <string>/path/to/unstripped/executable</string> </dict> </dict> </plist> @@ -261,7 +261,7 @@ A40597AA-5529-3337-8C09-D8A014EB1578.plist <key>DBGDSYMPath</key> <string>/path/to/foo.dSYM/Contents/Resources/DWARF/foo</string> <key>DBGSymbolRichExecutable</key> - <string>/path/to/unstripped/exectuable</string> + <string>/path/to/unstripped/executable</string> </dict> </plist> @@ -342,4 +342,4 @@ implement a smart symbol finding and caching with minimal overhead. - \ No newline at end of file +