mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-11 20:27:19 +00:00
Typo corrections identified by codespell
Submitted by giffunip@yahoo.com; I fixed a couple of nearby errors and incorrect changes in the patch. llvm.org/pr27634 llvm-svn: 275983
This commit is contained in:
parent
83cc0622ec
commit
75500e72bb
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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));
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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 ()));
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user