summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Commands/CommandObjectType.cpp2
-rw-r--r--lldb/source/Core/Error.cpp2
-rw-r--r--lldb/source/Host/common/Editline.cpp2
-rw-r--r--lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp2
-rw-r--r--lldb/source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp2
-rw-r--r--lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp2
-rw-r--r--lldb/source/Plugins/ExpressionParser/Go/GoUserExpression.cpp6
-rw-r--r--lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp10
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp2
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp2
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp2
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp2
-rw-r--r--lldb/source/Symbol/LineTable.cpp2
-rw-r--r--lldb/source/Target/Memory.cpp2
-rw-r--r--lldb/source/Target/StackFrame.cpp2
-rw-r--r--lldb/source/Utility/ModuleCache.cpp2
16 files changed, 22 insertions, 22 deletions
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 ()));
OpenPOWER on IntegriCloud