diff options
25 files changed, 33 insertions, 33 deletions
diff --git a/lldb/include/lldb/Core/ArchSpec.h b/lldb/include/lldb/Core/ArchSpec.h index be760637c03..ddf46bd0168 100644 --- a/lldb/include/lldb/Core/ArchSpec.h +++ b/lldb/include/lldb/Core/ArchSpec.h @@ -435,7 +435,7 @@ public: /// @param[in] cpu The required CPU type. /// /// @param[in] os The optional OS type - /// The default value of 0 was choosen to from the ELF spec value + /// The default value of 0 was chosen to from the ELF spec value /// ELFOSABI_NONE. ELF is the only one using this parameter. If another /// format uses this parameter and 0 does not work, use a value over /// 255 because in the ELF header this is value is only a byte. diff --git a/lldb/include/lldb/Core/Module.h b/lldb/include/lldb/Core/Module.h index 46fa330fb19..19185ce96ba 100644 --- a/lldb/include/lldb/Core/Module.h +++ b/lldb/include/lldb/Core/Module.h @@ -250,7 +250,7 @@ public: SymbolContextList &sc_list); //------------------------------------------------------------------ - /// Find a funciton symbols in the object file's symbol table. + /// Find a function symbols in the object file's symbol table. /// /// @param[in] name /// The name of the symbol that we are looking for. diff --git a/lldb/include/lldb/Target/Platform.h b/lldb/include/lldb/Target/Platform.h index 6fdd92db568..96229c8f362 100644 --- a/lldb/include/lldb/Target/Platform.h +++ b/lldb/include/lldb/Target/Platform.h @@ -1055,7 +1055,7 @@ class ModuleCache; /// contain the error message. /// /// @return - /// The number of processes we are succesfully connected to. + /// The number of processes we are successfully connected to. //------------------------------------------------------------------ virtual size_t ConnectToWaitingProcesses(lldb_private::Debugger& debugger, lldb_private::Error& error); diff --git a/lldb/include/lldb/Target/Target.h b/lldb/include/lldb/Target/Target.h index 7124b2e8346..7f6ef2c5560 100644 --- a/lldb/include/lldb/Target/Target.h +++ b/lldb/include/lldb/Target/Target.h @@ -1074,7 +1074,7 @@ public: /// dependent modules that are discovered from the object files, or /// discovered at runtime as things are dynamically loaded. /// - /// Setting the executable causes any of the current dependant + /// Setting the executable causes any of the current dependent /// image information to be cleared and replaced with the static /// dependent image information found by calling /// ObjectFile::GetDependentModules (FileSpecList&) on the main diff --git a/lldb/include/lldb/Target/Thread.h b/lldb/include/lldb/Target/Thread.h index f3cf97325e1..09f6dc14f69 100644 --- a/lldb/include/lldb/Target/Thread.h +++ b/lldb/include/lldb/Target/Thread.h @@ -404,7 +404,7 @@ public: /// This is a unique identifier for the libdispatch/GCD queue in a /// process. Often starting at 1 for the initial system-created /// queues and incrementing, a QueueID will not be reused for a - /// different queue during the lifetime of a proces. + /// different queue during the lifetime of a process. /// /// @return /// A QueueID if the Thread subclass implements this, else diff --git a/lldb/include/lldb/Target/ThreadPlan.h b/lldb/include/lldb/Target/ThreadPlan.h index 6dac4a299e5..9cd3b6d224d 100644 --- a/lldb/include/lldb/Target/ThreadPlan.h +++ b/lldb/include/lldb/Target/ThreadPlan.h @@ -214,7 +214,7 @@ namespace lldb_private { // The private process running thread will take care of ensuring that only one "eStateRunning" event will be // delivered to the public Process broadcaster per public eStateStopped event. However there are some cases // where the public state of this process is eStateStopped, but a thread plan needs to restart the target, but -// doesn't want the running event to be publically broadcast. The obvious example of this is running functions +// doesn't want the running event to be publicly broadcast. The obvious example of this is running functions // by hand as part of expression evaluation. To suppress the running event return eVoteNo from ShouldReportStop, // to force a running event to be reported return eVoteYes, in general though you should return eVoteNoOpinion // which will allow the ThreadList to figure out the right thing to do. diff --git a/lldb/include/lldb/Utility/TaskPool.h b/lldb/include/lldb/Utility/TaskPool.h index 443e2a5853e..0f8eceed610 100644 --- a/lldb/include/lldb/Utility/TaskPool.h +++ b/lldb/include/lldb/Utility/TaskPool.h @@ -35,8 +35,8 @@ #include <vector> // Global TaskPool class for running tasks in parallel on a set of worker thread created the first -// time the task pool is used. The TaskPool provide no gurantee about the order the task will be run -// and about what tasks will run in parrallel. None of the task added to the task pool should block +// time the task pool is used. The TaskPool provide no guarantee about the order the task will be run +// and about what tasks will run in parallel. None of the task added to the task pool should block // on something (mutex, future, condition variable) what will be set only by the completion of an // other task on the task pool as they may run on the same thread sequentally. class TaskPool diff --git a/lldb/include/lldb/lldb-enumerations.h b/lldb/include/lldb/lldb-enumerations.h index d8f076f00b0..67819ea2dc7 100644 --- a/lldb/include/lldb/lldb-enumerations.h +++ b/lldb/include/lldb/lldb-enumerations.h @@ -757,9 +757,9 @@ namespace lldb { // 1) When frame A pushes frame B (or a frame that ends up pushing B) A is Older than B. // 2) When frame A pushed frame B (or if frame A is on the stack but B is not) A is Younger than B // 3) When frame A and frame B have the same StackID, they are Equal. - // 4) When frame A and frame B have the same immediate parent frame, but are not equal, the comparision yields + // 4) When frame A and frame B have the same immediate parent frame, but are not equal, the comparison yields // SameParent. - // 5) If the two frames are on different threads or processes the comparision is Invalid + // 5) If the two frames are on different threads or processes the comparison is Invalid // 6) If for some reason we can't figure out what went on, we return Unknown. //---------------------------------------------------------------------- enum FrameComparison diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp index 6f1199de69d..9b5ae4f65d3 100644 --- a/lldb/source/Commands/CommandObjectType.cpp +++ b/lldb/source/Commands/CommandObjectType.cpp @@ -752,7 +752,7 @@ Adding default formatting: (lldb) type format add -f hex AInt (lldb) frame variable iy -)" " Produces hexidecimal display of iy, because no formatter is available for Bint and \ +)" " Produces hexadecimal display of iy, because no formatter is available for Bint and \ the one for Aint is used instead." R"( To prevent this use the cascade option '-C no' to prevent evaluation of typedef chains: diff --git a/lldb/source/Core/Error.cpp b/lldb/source/Core/Error.cpp index 97c2c4cc5b6..a9310237fdb 100644 --- a/lldb/source/Core/Error.cpp +++ b/lldb/source/Core/Error.cpp @@ -155,7 +155,7 @@ Error::GetType () const } //---------------------------------------------------------------------- -// Retuns true if this object contains an value that describes an +// Returns true if this object contains a value that describes an // error or otherwise non-success result. //---------------------------------------------------------------------- bool diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp index d7209feb46d..133a9a76dd9 100644 --- a/lldb/source/Host/common/Editline.cpp +++ b/lldb/source/Host/common/Editline.cpp @@ -1144,7 +1144,7 @@ Editline::ConfigureEditor (bool multiline) })); // Register the complete callback under two names for compatibility with older clients using - // custom .editrc files (largely becuase libedit has a bad bug where if you have a bind command + // custom .editrc files (largely because libedit has a bad bug where if you have a bind command // that tries to bind to a function name that doesn't exist, it can corrupt the heap and // crash your process later.) EditlineCommandCallbackType complete_callback = [] (EditLine * editline, int ch) { diff --git a/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp b/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp index 52d65b1e9a9..53004e5d691 100644 --- a/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp +++ b/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp @@ -606,7 +606,7 @@ ConnectionFileDescriptor::BytesAvailable(uint32_t timeout_usec, Error *error_ptr struct timeval tv; if (timeout_usec == UINT32_MAX) { - // Inifinite wait... + // Infinite wait... tv_ptr = nullptr; } else diff --git a/lldb/source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp b/lldb/source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp index f74871544b6..a36b7a65ced 100644 --- a/lldb/source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp +++ b/lldb/source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp @@ -723,7 +723,7 @@ ABISysV_mips64::GetReturnValueObjectImpl (Thread &thread, CompilerType &return_c } } } - // Vector types upto 16 bytes are returned in GP return registers + // Vector types up to 16 bytes are returned in GP return registers if (type_flags & eTypeIsVector) { if (byte_size <= 8) diff --git a/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp b/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp index 1f77539ca8d..0d398bfd8ba 100644 --- a/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp +++ b/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp @@ -671,7 +671,7 @@ DynamicLoaderHexagonDYLD::GetThreadLocalData(const lldb::ModuleSP module, const if (modid == -1) return LLDB_INVALID_ADDRESS; - // Lookup the DTV stucture for this thread. + // Lookup the DTV structure for this thread. addr_t dtv_ptr = tp + metadata.dtv_offset; addr_t dtv = ReadPointer (dtv_ptr); if (dtv == LLDB_INVALID_ADDRESS) diff --git a/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp index f69c3e23457..5ec8662172c 100644 --- a/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp +++ b/lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp @@ -413,7 +413,7 @@ GoUserExpression::GoInterpreter::VisitIdent(const GoASTIdent *e) type.append("float"); break; default: - m_error.SetErrorString("Invaild register encoding"); + m_error.SetErrorString("Invalid register encoding"); return nullptr; } switch (reg->byte_size) @@ -431,7 +431,7 @@ GoUserExpression::GoInterpreter::VisitIdent(const GoASTIdent *e) type.append("8"); break; default: - m_error.SetErrorString("Invaild register size"); + m_error.SetErrorString("Invalid register size"); return nullptr; } ValueObjectSP regVal = @@ -443,7 +443,7 @@ GoUserExpression::GoInterpreter::VisitIdent(const GoASTIdent *e) return regVal; } } - m_error.SetErrorString("Invaild register name"); + m_error.SetErrorString("Invalid register name"); return nullptr; } VariableListSP var_list_sp(m_frame->GetInScopeVariableList(false)); diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp index 7441fd99151..df7e16f00ba 100644 --- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp +++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp @@ -1463,7 +1463,7 @@ RenderScriptRuntime::FixupScriptDetails(RSModuleDescriptorSP rsmodule_sp) } // Uses the Target API to evaluate the expression passed as a parameter to the function -// The result of that expression is returned an unsigned 64 bit int, via the result* paramter. +// The result of that expression is returned an unsigned 64 bit int, via the result* parameter. // Function returns true on success, and false on failure bool RenderScriptRuntime::EvalRSExpression(const char *expression, StackFrame *frame_ptr, uint64_t *result) @@ -1898,7 +1898,7 @@ RenderScriptRuntime::JITSubelements(Element &elem, const lldb::addr_t context, S } // JITs the RS runtime for the address of the last element in the allocation. -// The `elem_size` paramter represents the size of a single element, including padding. +// The `elem_size` parameter represents the size of a single element, including padding. // Which is needed as an offset from the last element pointer. // Using this offset minus the starting address we can calculate the size of the allocation. // Returns true on success, false otherwise @@ -1931,7 +1931,7 @@ RenderScriptRuntime::JITAllocationSize(AllocationDetails *allocation, StackFrame allocation->size = dim_x * dim_y * dim_z * *allocation->element.datum_size.get(); if (log) - log->Printf("%s - infered size of struct allocation %" PRIu32 ".", __FUNCTION__, + log->Printf("%s - inferred size of struct allocation %" PRIu32 ".", __FUNCTION__, *allocation->size.get()); return true; } @@ -2229,7 +2229,7 @@ RenderScriptRuntime::GetAllocationData(AllocationDetails *allocation, StackFrame // Function copies data from a binary file into an allocation. // There is a header at the start of the file, FileHeader, before the data content itself. -// Information from this header is used to display warnings to the user about incompatabilities +// Information from this header is used to display warnings to the user about incompatibilities bool RenderScriptRuntime::LoadAllocation(Stream &strm, const uint32_t alloc_id, const char *filename, StackFrame *frame_ptr) { @@ -3422,7 +3422,7 @@ RenderScriptRuntime::PlaceBreakpointOnKernel(Stream &strm, const char *name, con uint32_t *baton = new uint32_t[coords.size()]; baton[0] = coords[0]; baton[1] = coords[1]; baton[2] = coords[2]; - // Create a callback that will be invoked everytime the breakpoint is hit. + // Create a callback that will be invoked every time the breakpoint is hit. // The baton object passed to the handler is the target coordinate we want to break on. bp->SetCallback(KernelBreakpointHit, baton, true); diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 68e4e50a96e..a60daa2b9c5 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -2390,7 +2390,7 @@ ObjectFileELF::ParseSymbols (Symtab *symtab, /* * MIPS: * The bit #0 of an address is used for ISA mode (1 for microMIPS, 0 for MIPS). - * This allows processer to switch between microMIPS and MIPS without any need + * This allows processor to switch between microMIPS and MIPS without any need * for special mode-control register. However, apart from .debug_line, none of * the ELF/DWARF sections set the ISA bit (for symbol or section). Use st_other * flag to check whether the symbol is microMIPS and then set the address class diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index c90706a88b8..9b7143b792e 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -4499,7 +4499,7 @@ GDBRemoteCommunicationClient::ServeSymbolLookups(lldb_private::Process *process) // symbols and we can stop asking. bool symbol_response_provided = false; - // Is this the inital qSymbol:: packet? + // Is this the initial qSymbol:: packet? bool first_qsymbol_query = true; if (m_supports_qSymbol && m_qSymbol_requests_done == false) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp index c5d7568b527..381b096c474 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp @@ -303,7 +303,7 @@ DWARFCompileUnit::ExtractDIEsIfNeeded (bool cu_die_only) DWARFCompileUnit* dwo_cu = m_dwo_symbol_file->GetCompileUnit(); size_t dwo_die_count = dwo_cu->ExtractDIEsIfNeeded(cu_die_only); - return m_die_array.size() + dwo_die_count - 1; // We have 2 CU die, but we waht to count it only as one + return m_die_array.size() + dwo_die_count - 1; // We have 2 CU die, but we want to count it only as one } void diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 942a5d62d9b..4591c0af012 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -1567,7 +1567,7 @@ SymbolFileDWARF::ResolveTypeUID (const DWARFDIE &die, bool assert_not_being_pars die.GetName()); // We might be coming in in the middle of a type tree (a class - // withing a class, an enum within a class), so parse any needed + // within a class, an enum within a class), so parse any needed // parent DIEs before we get to this one... DWARFDIE decl_ctx_die = GetDeclContextDIEContainingDIE (die); if (decl_ctx_die) diff --git a/lldb/source/Symbol/LineTable.cpp b/lldb/source/Symbol/LineTable.cpp index 965dd689981..6b4dea773d1 100644 --- a/lldb/source/Symbol/LineTable.cpp +++ b/lldb/source/Symbol/LineTable.cpp @@ -106,7 +106,7 @@ LineTable::AppendLineEntryToSequence if (!entries.empty() && entries.back().file_addr == file_addr) { // GCC don't use the is_prologue_end flag to mark the first instruction after the prologue. - // Instead of it it is issueing a line table entry for the first instruction of the prologue + // Instead of it it is issuing a line table entry for the first instruction of the prologue // and one for the first instruction after the prologue. If the size of the prologue is 0 // instruction then the 2 line entry will have the same file address. Removing it will remove // our ability to properly detect the location of the end of prologe so we set the prologue_end diff --git a/lldb/source/Target/Memory.cpp b/lldb/source/Target/Memory.cpp index 9f011481212..2a734e3c769 100644 --- a/lldb/source/Target/Memory.cpp +++ b/lldb/source/Target/Memory.cpp @@ -371,7 +371,7 @@ AllocatedBlock::ReserveBlock (uint32_t size) // { // // No more bits are set starting from unallocated_idx, so we // // either have enough chunks for the request, or we don't. -// // Eiter way we break out of the while loop... +// // Either way we break out of the while loop... // num_chunks = total_chunks - unallocated_idx; // if (needed_chunks <= num_chunks) // first_chunk_idx = unallocated_idx; diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp index 8488377158d..7110051d28e 100644 --- a/lldb/source/Target/StackFrame.cpp +++ b/lldb/source/Target/StackFrame.cpp @@ -315,7 +315,7 @@ StackFrame::GetFrameBlock () } else { - // This block is not contained withing any inlined function blocks + // This block is not contained within any inlined function blocks // with so we want to use the top most function block. return &m_sc.function->GetBlock (false); } diff --git a/lldb/source/Utility/ModuleCache.cpp b/lldb/source/Utility/ModuleCache.cpp index 92520f768b3..aa55880eb6c 100644 --- a/lldb/source/Utility/ModuleCache.cpp +++ b/lldb/source/Utility/ModuleCache.cpp @@ -323,7 +323,7 @@ ModuleCache::GetAndPut (const FileSpec &root_dir_spec, llvm::FileRemover tmp_symfile_remover (tmp_download_sym_file_spec.GetPath ().c_str ()); if (error.Fail ()) // Failed to download a symfile but fetching the module was successful. The module might - // contain the neccessary symbols and the debugging is also possible without a symfile. + // contain the necessary symbols and the debugging is also possible without a symfile. return Error (); error = Put (root_dir_spec, escaped_hostname.c_str(), module_spec, tmp_download_sym_file_spec, GetSymbolFileSpec(module_spec.GetFileSpec ())); diff --git a/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp b/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp index e74fca9aa5b..a1dbf53c60a 100644 --- a/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp +++ b/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp @@ -351,7 +351,7 @@ CMICmnLogMediumFile::FileWriteHeader() //++ ------------------------------------------------------------------------------------ // Details: Convert any carriage line returns to be compatible with the platform the -// Log fiel is being written to. +// Log file is being written to. // Type: Method. // Args: vData - (R) Text data. // Return: CMIUtilString - Converted string data. |