From: Bruce Mitchener Date: Thu, 18 Jun 2015 05:27:05 +0000 (+0000) Subject: Fix a variety of typos. X-Git-Tag: llvmorg-3.7.0-rc1~2115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58ef391f3ef80cc4e4e375b7e2f1f397afd47b90;p=platform%2Fupstream%2Fllvm.git Fix a variety of typos. No functional change. llvm-svn: 239995 --- diff --git a/lldb/docs/lldb-gdb-remote.txt b/lldb/docs/lldb-gdb-remote.txt index 730c8abf2c09..2b89c3451f0b 100644 --- a/lldb/docs/lldb-gdb-remote.txt +++ b/lldb/docs/lldb-gdb-remote.txt @@ -573,7 +573,7 @@ ostype: a string for the OS being debugged (darwin, linux, freebsd), not needed endian: is one of "little", "big", or "pdp" ptrsize: an unsigned number that represents how big pointers are in bytes on the debug target hostname: the hostname of the host that is running the GDB server if available -os_build: a string for the the OS build for the remote host as a string value +os_build: a string for the OS build for the remote host as a string value os_kernel: a string describing the kernel version os_version: a version string that represents the current OS version (10.8.2) watchpoint_exceptions_received: one of "before" or "after" to specify if a watchpoint is triggered before or after the pc when it stops diff --git a/lldb/examples/darwin/heap_find/heap/heap_find.cpp b/lldb/examples/darwin/heap_find/heap/heap_find.cpp index 2ac131920578..a400cce526f5 100644 --- a/lldb/examples/darwin/heap_find/heap/heap_find.cpp +++ b/lldb/examples/darwin/heap_find/heap/heap_find.cpp @@ -1,4 +1,4 @@ -//===-- head_find.c ---------------------------------------------*- C++ -*-===// +//===-- heap_find.c ---------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -903,7 +903,7 @@ find_pointer_in_heap (const void * addr, int check_vm_regions) { g_matches.clear(); // Setup "info" to look for a malloc block that contains data - // that is the a pointer + // that is the pointer if (addr) { range_contains_data_callback_info_t data_info; @@ -933,7 +933,7 @@ find_pointer_in_memory (uint64_t memory_addr, uint64_t memory_size, const void * { g_matches.clear(); // Setup "info" to look for a malloc block that contains data - // that is the a pointer + // that is the pointer range_contains_data_callback_info_t data_info; data_info.type = eDataTypeContainsData; // Check each block for data data_info.data.buffer = (uint8_t *)&addr; // What data? The pointer value passed in @@ -960,7 +960,7 @@ find_objc_objects_in_memory (void *isa, int check_vm_regions) if (g_objc_classes.Update()) { // Setup "info" to look for a malloc block that contains data - // that is the a pointer + // that is the pointer range_contains_data_callback_info_t data_info; data_info.type = eDataTypeObjC; // Check each block for data data_info.objc.match_isa = isa; @@ -989,7 +989,7 @@ get_heap_info (int sort_type) // Reset all stats g_objc_class_snapshot.Reset (); // Setup "info" to look for a malloc block that contains data - // that is the a pointer + // that is the pointer range_contains_data_callback_info_t data_info; data_info.type = eDataTypeHeapInfo; // Check each block for data data_info.match_count = 0; // Initialize the match count to zero diff --git a/lldb/include/lldb/Core/DataEncoder.h b/lldb/include/lldb/Core/DataEncoder.h index 4bce0a562fbe..7889f4191e50 100644 --- a/lldb/include/lldb/Core/DataEncoder.h +++ b/lldb/include/lldb/Core/DataEncoder.h @@ -446,7 +446,7 @@ protected: uint8_t *m_end; ///< A pointer to the byte that is past the end of the data. lldb::ByteOrder m_byte_order; ///< The byte order of the data we are extracting from. uint8_t m_addr_size; ///< The address size to use when extracting pointers or addresses - mutable lldb::DataBufferSP m_data_sp; ///< The shared pointer to data that can be shared among multilple instances + mutable lldb::DataBufferSP m_data_sp; ///< The shared pointer to data that can be shared among multiple instances private: DISALLOW_COPY_AND_ASSIGN (DataEncoder); diff --git a/lldb/include/lldb/Core/DataExtractor.h b/lldb/include/lldb/Core/DataExtractor.h index 516953b00c33..e61189b98103 100644 --- a/lldb/include/lldb/Core/DataExtractor.h +++ b/lldb/include/lldb/Core/DataExtractor.h @@ -234,7 +234,7 @@ public: /// bytes into the contained data, into the stream \a s. \a /// num_per_line objects will be dumped on each line before a new /// line will be output. If \a base_addr is a valid address, then - /// each new line of output will be prededed by the address value + /// each new line of output will be preceded by the address value /// plus appropriate offset, and a colon and space. Bitfield values /// can be dumped by calling this function multiple times with the /// same start offset, format and size, yet differing \a @@ -574,7 +574,7 @@ public: GetSharedDataOffset () const; //------------------------------------------------------------------ - /// Get a the data start pointer. + /// Get the data start pointer. /// /// @return /// Returns a pointer to the first byte contained in this @@ -908,7 +908,7 @@ public: /// /// @return /// \a dst if all values were properly extracted and copied, - /// NULL otherise. + /// NULL otherwise. //------------------------------------------------------------------ void * GetU8 (lldb::offset_t *offset_ptr, void *dst, uint32_t count) const; @@ -955,7 +955,7 @@ public: /// /// @return /// \a dst if all values were properly extracted and copied, - /// NULL otherise. + /// NULL otherwise. //------------------------------------------------------------------ void * GetU16 (lldb::offset_t *offset_ptr, void *dst, uint32_t count) const; @@ -1002,7 +1002,7 @@ public: /// /// @return /// \a dst if all values were properly extracted and copied, - /// NULL otherise. + /// NULL otherwise. //------------------------------------------------------------------ void * GetU32 (lldb::offset_t *offset_ptr, void *dst, uint32_t count) const; @@ -1049,7 +1049,7 @@ public: /// /// @return /// \a dst if all values were properly extracted and copied, - /// NULL otherise. + /// NULL otherwise. //------------------------------------------------------------------ void * GetU64 ( lldb::offset_t *offset_ptr, void *dst, uint32_t count) const; @@ -1328,7 +1328,7 @@ protected: const uint8_t * m_end; ///< A pointer to the byte that is past the end of the data. lldb::ByteOrder m_byte_order; ///< The byte order of the data we are extracting from. uint32_t m_addr_size; ///< The address size to use when extracting pointers or addresses - mutable lldb::DataBufferSP m_data_sp; ///< The shared pointer to data that can be shared among multilple instances + mutable lldb::DataBufferSP m_data_sp; ///< The shared pointer to data that can be shared among multiple instances const uint32_t m_target_byte_size; }; diff --git a/lldb/include/lldb/Core/IOHandler.h b/lldb/include/lldb/Core/IOHandler.h index 8abdeabbb199..b617d8e75f58 100644 --- a/lldb/include/lldb/Core/IOHandler.h +++ b/lldb/include/lldb/Core/IOHandler.h @@ -313,7 +313,7 @@ namespace lldb_private { } //------------------------------------------------------------------ - /// Called when a new line is created or one of an identifed set of + /// Called when a new line is created or one of an identified set of /// indentation characters is typed. /// /// This function determines how much indentation should be added @@ -327,7 +327,7 @@ namespace lldb_private { /// following the line containing the cursor are not included. /// /// @param[in] cursor_position - /// The number of characters preceeding the cursor on the final + /// The number of characters preceding the cursor on the final /// line at the time. /// /// @return diff --git a/lldb/include/lldb/Expression/ClangFunction.h b/lldb/include/lldb/Expression/ClangFunction.h index a8554602164a..cf7e2592021f 100644 --- a/lldb/include/lldb/Expression/ClangFunction.h +++ b/lldb/include/lldb/Expression/ClangFunction.h @@ -413,7 +413,7 @@ private: //------------------------------------------------------------------ // Note: the parser needs to be destructed before the execution unit, so - // declare the the execution unit first. + // declare the execution unit first. std::shared_ptr m_execution_unit_sp; std::unique_ptr m_parser; ///< The parser responsible for compiling the function. lldb::ModuleWP m_jit_module_wp; diff --git a/lldb/include/lldb/Utility/PseudoTerminal.h b/lldb/include/lldb/Utility/PseudoTerminal.h index 6ee598cefe08..595b2fc19bfd 100644 --- a/lldb/include/lldb/Utility/PseudoTerminal.h +++ b/lldb/include/lldb/Utility/PseudoTerminal.h @@ -175,7 +175,7 @@ public: /// occur. This can be NULL if no error status is desired. /// /// @return - /// @li \b true when the a master files descriptor is + /// @li \b true when the master files descriptor is /// successfully opened. /// @li \b false if anything goes wrong. /// @@ -207,7 +207,7 @@ public: /// occur. This can be NULL if no error status is desired. /// /// @return - /// @li \b true when the a master files descriptor is + /// @li \b true when the master files descriptor is /// successfully opened. /// @li \b false if anything goes wrong. /// diff --git a/lldb/scripts/interface/SBPlatform.i b/lldb/scripts/interface/SBPlatform.i index 31b8917ee639..a6c4dfb0a2cc 100644 --- a/lldb/scripts/interface/SBPlatform.i +++ b/lldb/scripts/interface/SBPlatform.i @@ -84,7 +84,7 @@ public: }; %feature("docstring", -"A class that represents the a platform that can represent the current host or a remote host debug platform. +"A class that represents a platform that can represent the current host or a remote host debug platform. The SBPlatform class represents the current host, or a remote host. It can be connected to a remote platform in order to provide ways diff --git a/lldb/scripts/lldb.swig b/lldb/scripts/lldb.swig index 517c0b47cb2c..9e0262be5099 100644 --- a/lldb/scripts/lldb.swig +++ b/lldb/scripts/lldb.swig @@ -20,9 +20,9 @@ o SBFrame: Represents one of the stack frames associated with a thread. SBThread o SBSymbolContext: A container that stores various debugger related info. o SBValue: Represents the value of a variable, a register, or an expression. o SBModule: Represents an executable image and its associated object and symbol - files. SBTarget conatins SBModule(s). + files. SBTarget contains SBModule(s). o SBBreakpoint: Represents a logical breakpoint and its associated settings. - SBTarget conatins SBBreakpoint(s). + SBTarget contains SBBreakpoint(s). o SBSymbol: Represents the symbol possibly associated with a stack frame. o SBCompileUnit: Represents a compilation unit, or compiled source file. o SBFunction: Represents a generic function, which can be inlined or not. diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp index 057297a6b5be..0249a7edcd2b 100644 --- a/lldb/source/API/SBModule.cpp +++ b/lldb/source/API/SBModule.cpp @@ -217,7 +217,7 @@ SBModule::GetUUIDString () const if (module_sp) { // We are going to return a "const char *" value through the public - // API, so we need to constify it so it gets added permanently the the + // API, so we need to constify it so it gets added permanently the // string pool and then we don't need to worry about the lifetime of the // string as it will never go away once it has been put into the ConstString // string pool diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 774df29e791e..d8b65e3b551a 100644 --- a/lldb/source/Commands/CommandObjectFrame.cpp +++ b/lldb/source/Commands/CommandObjectFrame.cpp @@ -554,7 +554,7 @@ protected: if (dump_variable) { // Use the variable object code to make sure we are - // using the same APIs as the the public API will be + // using the same APIs as the public API will be // using... valobj_sp = frame->GetValueObjectForFrameVariable (var_sp, m_varobj_options.use_dynamic); diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index e08fbed79e45..866587fb4ebc 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -1196,7 +1196,7 @@ public: } else { - result.AppendMessageWithFormat("Eroor getting file size of %s (remote)\n", remote_file_path.c_str()); + result.AppendMessageWithFormat("Error getting file size of %s (remote)\n", remote_file_path.c_str()); result.SetStatus (eReturnStatusFailed); } } @@ -1970,7 +1970,7 @@ CommandObjectPlatformProcessAttach::CommandOptions::g_option_table[] = { LLDB_OPT_SET_ALL, false, "plugin", 'P' , OptionParser::eRequiredArgument, NULL, NULL, 0, eArgTypePlugin, "Name of the process plugin you want to use."}, { LLDB_OPT_SET_1, false, "pid", 'p' , OptionParser::eRequiredArgument, NULL, NULL, 0, eArgTypePid, "The process ID of an existing process to attach to."}, { LLDB_OPT_SET_2, false, "name", 'n' , OptionParser::eRequiredArgument, NULL, NULL, 0, eArgTypeProcessName, "The name of the process to attach to."}, - { LLDB_OPT_SET_2, false, "waitfor", 'w' , OptionParser::eNoArgument , NULL, NULL, 0, eArgTypeNone, "Wait for the the process with to launch."}, + { LLDB_OPT_SET_2, false, "waitfor", 'w' , OptionParser::eNoArgument , NULL, NULL, 0, eArgTypeNone, "Wait for the process with to launch."}, { 0, false, NULL , 0 , 0 , NULL, NULL, 0, eArgTypeNone, NULL } }; @@ -2080,7 +2080,7 @@ public: CommandObjectPlatformShell (CommandInterpreter &interpreter) : CommandObjectRaw (interpreter, "platform shell", - "Run a shell command on a the selected platform.", + "Run a shell command on the selected platform.", "platform shell ", 0), m_options(interpreter) diff --git a/lldb/source/Core/DataBufferMemoryMap.cpp b/lldb/source/Core/DataBufferMemoryMap.cpp index b26c48b1e2d0..b3211b35af85 100644 --- a/lldb/source/Core/DataBufferMemoryMap.cpp +++ b/lldb/source/Core/DataBufferMemoryMap.cpp @@ -284,9 +284,9 @@ DataBufferMemoryMap::MemoryMapFromFileDescriptor (int fd, // Save the actual mmap'ed size m_mmap_size = length + page_offset; - // Our data is at an offset into the the mapped data + // Our data is at an offset into the mapped data m_data = m_mmap_addr + page_offset; - // Our pretend size is the size that was requestd + // Our pretend size is the size that was requested m_size = length; } } diff --git a/lldb/source/Core/Mangled.cpp b/lldb/source/Core/Mangled.cpp index d277db7e053f..ae5481db68b7 100644 --- a/lldb/source/Core/Mangled.cpp +++ b/lldb/source/Core/Mangled.cpp @@ -191,7 +191,7 @@ Mangled::Clear () //---------------------------------------------------------------------- -// Compare the the string values. +// Compare the string values. //---------------------------------------------------------------------- int Mangled::Compare (const Mangled& a, const Mangled& b) diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp index 7574723b99a6..42a7d769b89f 100644 --- a/lldb/source/Expression/ClangExpressionDeclMap.cpp +++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp @@ -1088,7 +1088,7 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context, { // This branch will get hit if we are executing code in the context of a function that // claims to have an object pointer (through DW_AT_object_pointer?) but is not formally a - // method of the class. In that case, just look up the "this" variable in the the current + // method of the class. In that case, just look up the "this" variable in the current // scope and use its type. // FIXME: This code is formally correct, but clang doesn't currently emit DW_AT_object_pointer // for C++ so it hasn't actually been tested. @@ -1207,7 +1207,7 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context, { // This branch will get hit if we are executing code in the context of a function that // claims to have an object pointer (through DW_AT_object_pointer?) but is not formally a - // method of the class. In that case, just look up the "self" variable in the the current + // method of the class. In that case, just look up the "self" variable in the current // scope and use its type. VariableList *vars = frame->GetVariableList(false); diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index e1059c3670b4..11bc011d6d64 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -1515,7 +1515,7 @@ IRForTarget::MaybeHandleVariable (Value *llvm_value_ptr) if (name[0] == '$') { - // The $__lldb_expr_result name indicates the the return value has allocated as + // The $__lldb_expr_result name indicates the return value has allocated as // a static variable. Per the comment at ASTResultSynthesizer::SynthesizeBodyResult, // accesses to this static variable need to be redirected to the result of dereferencing // a pointer that is passed in as one of the arguments. diff --git a/lldb/source/Host/common/SoftwareBreakpoint.cpp b/lldb/source/Host/common/SoftwareBreakpoint.cpp index 79e8153e8737..5a6f78372b3f 100644 --- a/lldb/source/Host/common/SoftwareBreakpoint.cpp +++ b/lldb/source/Host/common/SoftwareBreakpoint.cpp @@ -234,7 +234,7 @@ SoftwareBreakpoint::DoDisable () if (error.Success ()) { bool verify = false; - // Make sure we have the a breakpoint opcode exists at this address + // Make sure the breakpoint opcode exists at this address if (::memcmp (curr_break_op, m_trap_opcodes, m_opcode_size) == 0) { break_op_found = true; diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 6912d593848a..e7629c84b17e 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -329,7 +329,7 @@ WaitForProcessToSIGSTOP (const lldb::pid_t pid, const int timeout_in_seconds) // { // pid = (intptr_t)accept_thread_result; // -// // Wait for process to be stopped the the entry point by watching +// // Wait for process to be stopped 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); diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 2470809367b7..481d69eb08a1 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1293,7 +1293,7 @@ CommandInterpreter::GetCommandObjectForCommand (std::string &command_string) CommandObject *sub_cmd_obj = cmd_obj->GetSubcommandObject (cmd_word.c_str()); if (sub_cmd_obj) cmd_obj = sub_cmd_obj; - else // cmd_word was not a valid sub-command word, so we are donee + else // cmd_word was not a valid sub-command word, so we are done done = true; } else @@ -1518,7 +1518,7 @@ CommandInterpreter::PreprocessCommand (std::string &command) { if (start_backtick > 0 && command[start_backtick-1] == '\\') { - // The backtick was preceeded by a '\' character, remove the slash + // The backtick was preceded by a '\' character, remove the slash // and don't treat the backtick as the start of an expression command.erase(start_backtick-1, 1); // No need to add one to start_backtick since we just deleted a char @@ -3214,7 +3214,7 @@ CommandInterpreter::RunCommandInterpreter(bool auto_handle_events, bool spawn_thread, CommandInterpreterRunOptions &options) { - // Always re-create the command intepreter when we run it in case + // Always re-create the command interpreter when we run it in case // any file handles have changed. bool force_create = true; m_debugger.PushIOHandler(GetIOHandler(force_create, &options)); diff --git a/lldb/source/Interpreter/OptionGroupOutputFile.cpp b/lldb/source/Interpreter/OptionGroupOutputFile.cpp index 75ae380a7bc4..e95cd35976ec 100644 --- a/lldb/source/Interpreter/OptionGroupOutputFile.cpp +++ b/lldb/source/Interpreter/OptionGroupOutputFile.cpp @@ -36,7 +36,7 @@ g_option_table[] = { LLDB_OPT_SET_1 , false, "outfile", 'o', OptionParser::eRequiredArgument, nullptr, nullptr, 0, eArgTypeFilename , "Specify a path for capturing command output."}, { LLDB_OPT_SET_1 , false, "append-outfile" , SHORT_OPTION_APND, OptionParser::eNoArgument, nullptr, nullptr, 0, eArgTypeNone , - "Append to the the file specified with '--outfile '."}, + "Append to the file specified with '--outfile '."}, }; uint32_t diff --git a/lldb/source/Interpreter/OptionValueDictionary.cpp b/lldb/source/Interpreter/OptionValueDictionary.cpp index d20454707983..24eeec3b3285 100644 --- a/lldb/source/Interpreter/OptionValueDictionary.cpp +++ b/lldb/source/Interpreter/OptionValueDictionary.cpp @@ -130,7 +130,7 @@ OptionValueDictionary::SetArgs (const Args &args, VarSetOperationType op) { if (key.front() == '[') { - // Key name starts with '[', so the the key value must be in single or double quotes like: + // Key name starts with '[', so the key value must be in single or double quotes like: // [''] // [""] if ((key.size() > 2) && (key.back() == ']')) @@ -324,7 +324,7 @@ OptionValueDictionary::GetSubValue (const ExecutionContext *exe_ctx, const char } if (!value_sp && error.AsCString() == nullptr) { - error.SetErrorStringWithFormat ("invalid value path '%s', %s values only support '[]' subvalues where a string value optionally delimitted by single or double quotes", + error.SetErrorStringWithFormat ("invalid value path '%s', %s values only support '[]' subvalues where a string value optionally delimited by single or double quotes", name, GetTypeAsCString()); } diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 854481e8f1b8..4d3d22a62117 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -2317,7 +2317,7 @@ SymbolFileDWARF::ParseChildMembers Type *base_class_type = ResolveTypeUID(encoding_uid); if (base_class_type == NULL) { - GetObjectFile()->GetModule()->ReportError("0x%8.8x: DW_TAG_inheritance failed to resolve a the base class at 0x%8.8" PRIx64 " from enclosing type 0x%8.8x. \nPlease file a bug and attach the file at the start of this error message", + GetObjectFile()->GetModule()->ReportError("0x%8.8x: DW_TAG_inheritance failed to resolve the base class at 0x%8.8" PRIx64 " from enclosing type 0x%8.8x. \nPlease file a bug and attach the file at the start of this error message", die->GetOffset(), encoding_uid, parent_die->GetOffset()); diff --git a/lldb/source/Symbol/ClangASTType.cpp b/lldb/source/Symbol/ClangASTType.cpp index 94e0663fd256..5ffb78409b8c 100644 --- a/lldb/source/Symbol/ClangASTType.cpp +++ b/lldb/source/Symbol/ClangASTType.cpp @@ -5158,7 +5158,7 @@ ClangASTType::AddMethodToCXXRecordType (const char *name, { // Check the number of operator parameters. Sometimes we have // seen bad DWARF that doesn't correctly describe operators and - // if we try to create a methed and add it to the class, clang + // if we try to create a method and add it to the class, clang // will assert and crash, so we need to make sure things are // acceptable. if (!ClangASTContext::CheckOverloadedOperatorKindParameterCount (op_kind, num_params)) @@ -6145,7 +6145,7 @@ ClangASTType::DumpValue (ExecutionContext *exe_ctx, for (field = record_decl->field_begin(), field_end = record_decl->field_end(); field != field_end; ++field, ++field_idx, ++child_idx) { // Print the starting squiggly bracket (if this is the - // first member) or comman (for member 2 and beyong) for + // first member) or comma (for member 2 and beyond) for // the struct/union/class member. if (child_idx == 0) s->PutChar('{'); @@ -6260,7 +6260,7 @@ ClangASTType::DumpValue (ExecutionContext *exe_ctx, for (element_idx = 0; element_idx < element_count; ++element_idx) { // Print the starting squiggly bracket (if this is the - // first member) or comman (for member 2 and beyong) for + // first member) or comma (for member 2 and beyond) for // the struct/union/class member. if (element_idx == 0) s->PutChar('{'); @@ -6367,7 +6367,7 @@ ClangASTType::DumpValue (ExecutionContext *exe_ctx, break; default: - // We are down the a scalar type that we just need to display. + // We are down to a scalar type that we just need to display. data.Dump(s, data_byte_offset, format, @@ -6476,7 +6476,7 @@ ClangASTType::DumpTypeValue (Stream *s, // format was not enum, just fall through and dump the value as requested.... default: - // We are down the a scalar type that we just need to display. + // We are down to a scalar type that we just need to display. { uint32_t item_count = 1; // A few formats, we might need to modify our size and count for depending diff --git a/lldb/source/Symbol/CompileUnit.cpp b/lldb/source/Symbol/CompileUnit.cpp index d8e95ce72714..d43ef44a1376 100644 --- a/lldb/source/Symbol/CompileUnit.cpp +++ b/lldb/source/Symbol/CompileUnit.cpp @@ -149,9 +149,9 @@ CompileUnit::GetFunctionAtIndex (size_t idx) } //---------------------------------------------------------------------- -// Find functions using the a Mangled::Tokens token list. This -// function currently implements an interative approach designed to find -// all instances of certain functions. It isn't designed to the the +// Find functions using the Mangled::Tokens token list. This +// function currently implements an interactive approach designed to find +// all instances of certain functions. It isn't designed to the // quickest way to lookup functions as it will need to iterate through // all functions and see if they match, though it does provide a powerful // and context sensitive way to search for all functions with a certain @@ -292,7 +292,7 @@ CompileUnit::FindLineEntry (uint32_t start_idx, uint32_t line, const FileSpec* f else { // All the line table entries actually point to the version of the Compile - // Unit that is in the support files (the one at 0 was artifically added.) + // Unit that is in the support files (the one at 0 was artificially added.) // So prefer the one further on in the support files if it exists... FileSpecList &support_files = GetSupportFiles(); const bool full = true; diff --git a/lldb/source/Symbol/DWARFCallFrameInfo.cpp b/lldb/source/Symbol/DWARFCallFrameInfo.cpp index 49e8dc570b6e..e153bec8ab30 100644 --- a/lldb/source/Symbol/DWARFCallFrameInfo.cpp +++ b/lldb/source/Symbol/DWARFCallFrameInfo.cpp @@ -197,7 +197,7 @@ DWARFCallFrameInfo::ParseCIE (const dw_offset_t cie_offset) const size_t aug_str_len = strlen(cie_sp->augmentation); // A 'z' may be present as the first character of the string. // If present, the Augmentation Data field shall be present. - // The contents of the Augmentation Data shall be intepreted + // The contents of the Augmentation Data shall be interpreted // according to other characters in the Augmentation String. if (cie_sp->augmentation[0] == 'z') { diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 637360d4864c..e60fe22cf9d1 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -2472,7 +2472,7 @@ Process::DisableSoftwareBreakpoint (BreakpointSite *bp_site) if (DoReadMemory (bp_addr, curr_break_op, break_op_size, error) == break_op_size) { bool verify = false; - // Make sure we have the a breakpoint opcode exists at this address + // Make sure the breakpoint opcode exists at this address if (::memcmp (curr_break_op, break_op, break_op_size) == 0) { break_op_found = true; diff --git a/lldb/source/Target/ThreadPlanStepOverRange.cpp b/lldb/source/Target/ThreadPlanStepOverRange.cpp index 0296d4051956..701e93d3c4de 100644 --- a/lldb/source/Target/ThreadPlanStepOverRange.cpp +++ b/lldb/source/Target/ThreadPlanStepOverRange.cpp @@ -246,7 +246,7 @@ ThreadPlanStepOverRange::ShouldStop (Event *event_ptr) && sc.comp_unit == m_addr_context.comp_unit && sc.function == m_addr_context.function) { - // Okay, find the next occurance of this file in the line table: + // Okay, find the next occurrence of this file in the line table: LineTable *line_table = m_addr_context.comp_unit->GetLineTable(); if (line_table) { @@ -259,7 +259,7 @@ ThreadPlanStepOverRange::ShouldStop (Event *event_ptr) bool step_past_remaining_inline = false; if (entry_idx > 0) { - // We require the the previous line entry and the current line entry come + // We require the previous line entry and the current line entry come // from the same file. // The other requirement is that the previous line table entry be part of an // inlined block, we don't want to step past cases where people have inlined diff --git a/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py b/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py index 41b791d94f80..87be6d9bba98 100644 --- a/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py +++ b/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py @@ -66,7 +66,7 @@ class StopHookMechanismTestCase(TestBase): child.expect_exact(prompt) child.sendline('target stop-hook list') - # Now run the program, expect to stop at the the first breakpoint which is within the stop-hook range. + # Now run the program, expect to stop at the first breakpoint which is within the stop-hook range. child.expect_exact(prompt) child.sendline('run') # Make sure we see the stop hook text from the stop of the process from the run hitting the first breakpoint diff --git a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py index 276bb433daa3..1792bf994cb6 100644 --- a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py +++ b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py @@ -62,7 +62,7 @@ class StopHookForMultipleThreadsTestCase(TestBase): child.sendline('breakpoint set -f main.cpp -l %d' % self.thread_function) child.expect_exact(prompt) - # Now run the program, expect to stop at the the first breakpoint which is within the stop-hook range. + # Now run the program, expect to stop at the first breakpoint which is within the stop-hook range. child.sendline('run') child.expect_exact("Process") # 'Process 2415 launched', 'Process 2415 stopped' child.expect_exact(prompt) diff --git a/lldb/test/functionalities/thread/create_during_step/main.cpp b/lldb/test/functionalities/thread/create_during_step/main.cpp index f64831be5cbb..c5a36e02394d 100644 --- a/lldb/test/functionalities/thread/create_during_step/main.cpp +++ b/lldb/test/functionalities/thread/create_during_step/main.cpp @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// // This test is intended to create a situation in which one thread will be -// created while a the debugger is stepping in another thread. +// created while the debugger is stepping in another thread. #include #include diff --git a/lldb/test/functionalities/thread/exit_during_step/main.cpp b/lldb/test/functionalities/thread/exit_during_step/main.cpp index 99492123fdee..8c641699256f 100644 --- a/lldb/test/functionalities/thread/exit_during_step/main.cpp +++ b/lldb/test/functionalities/thread/exit_during_step/main.cpp @@ -8,7 +8,7 @@ //===----------------------------------------------------------------------===// // This test is intended to create a situation in which one thread will exit -// while a the debugger is stepping in another thread. +// while the debugger is stepping in another thread. #include #include diff --git a/lldb/test/python_api/function_symbol/main.c b/lldb/test/python_api/function_symbol/main.c index 1eb90d5fc23e..b60b2faf18dc 100644 --- a/lldb/test/python_api/function_symbol/main.c +++ b/lldb/test/python_api/function_symbol/main.c @@ -12,11 +12,11 @@ // SBFunction, SBSymbol, and SBAddress. // // When stopped on breakppint 1, we can get the line entry using SBFrame API -// SBFrame.GetLineEntry(). We'll get the start address for the the line entry +// SBFrame.GetLineEntry(). We'll get the start address for the line entry // with the SBAddress type, resolve the symbol context using the SBTarget API // SBTarget.ResolveSymbolContextForAddress() in order to get the SBSymbol. // -// We then stop at breakpoint 2, get the SBFrame, and the the SBFunction object. +// We then stop at breakpoint 2, get the SBFrame, and the SBFunction object. // // The address from calling GetStartAddress() on the symbol and the function // should point to the same address, and we also verify that. diff --git a/lldb/test/redo.py b/lldb/test/redo.py index ac42b2b69b86..62954a16a55f 100755 --- a/lldb/test/redo.py +++ b/lldb/test/redo.py @@ -44,7 +44,7 @@ def usage(): print"""\ Usage: redo.py [-F filename_component] [-n] [session_dir] [-d] where options: --F : only consider the test for re-run if the session filename conatins the filename component +-F : only consider the test for re-run if the session filename contains the filename component for example: -F x86_64 -n : when running the tests, do not turn on trace mode, i.e, no '-t' option is passed to the test driver (this will run the tests faster) diff --git a/lldb/test/types/AbstractBase.py b/lldb/test/types/AbstractBase.py index 87ff38b3d91e..2d35601d610b 100644 --- a/lldb/test/types/AbstractBase.py +++ b/lldb/test/types/AbstractBase.py @@ -125,7 +125,7 @@ class GenericTester(TestBase): gl.append((var, val)) #print "golden list:", gl - # This test uses a #include of a the "basic_type.cpp" so we need to enable + # This test uses a #include of "basic_type.cpp" so we need to enable # always setting inlined breakpoints. self.runCmd('settings set target.inline-breakpoint-strategy always') # And add hooks to restore the settings during tearDown(). @@ -154,7 +154,7 @@ class GenericTester(TestBase): output = self.res.GetOutput() # The input type is in a canonical form as a set of named atoms. - # The display type string must conatin each and every element. + # The display type string must contain each and every element. # # Example: # runCmd: frame variable --show-types a_array_bounded[0] @@ -209,7 +209,7 @@ class GenericTester(TestBase): gl.append((var, val)) #print "golden list:", gl - # This test uses a #include of a the "basic_type.cpp" so we need to enable + # This test uses a #include of "basic_type.cpp" so we need to enable # always setting inlined breakpoints. self.runCmd('settings set target.inline-breakpoint-strategy always') # And add hooks to restore the settings during tearDown(). @@ -238,7 +238,7 @@ class GenericTester(TestBase): output = self.res.GetOutput() # The input type is in a canonical form as a set of named atoms. - # The display type string must conatin each and every element. + # The display type string must contain each and every element. # # Example: # runCmd: expr a diff --git a/lldb/tools/compact-unwind/compact-unwind-dumper.c b/lldb/tools/compact-unwind/compact-unwind-dumper.c index 0f898dbc76b4..d6bd72d93027 100644 --- a/lldb/tools/compact-unwind/compact-unwind-dumper.c +++ b/lldb/tools/compact-unwind/compact-unwind-dumper.c @@ -1051,7 +1051,7 @@ print_second_level_index_regular (struct baton baton) // UNWIND_SECOND_LEVEL_REGULAR entries have a funcOffset which includes the // functionOffset from the containing index table already. UNWIND_SECOND_LEVEL_COMPRESSED // entries only have the offset from the containing index table functionOffset. - // So strip off the contianing index table functionOffset value here so they can + // So strip off the containing index table functionOffset value here so they can // be treated the same at the lower layers. print_function_encoding (baton, idx, encoding, (uint32_t) -1, func_offset - baton.first_level_index_entry.functionOffset); diff --git a/lldb/tools/debugserver/source/DNBDefs.h b/lldb/tools/debugserver/source/DNBDefs.h index a8c5fd91842d..15c33d5a3c5f 100644 --- a/lldb/tools/debugserver/source/DNBDefs.h +++ b/lldb/tools/debugserver/source/DNBDefs.h @@ -329,7 +329,7 @@ struct DNBExecutableImageInfo char name[PATH_MAX]; // Name of the executable image (usually a full path) uint32_t state; // State of the executable image (see enum DNBSharedLibraryState) nub_addr_t header_addr; // Executable header address - uuid_t uuid; // Unique indentifier for matching with symbols + uuid_t uuid; // Unique identifier for matching with symbols uint32_t num_segments; // Number of contiguous memory segments to in SEGMENTS array DNBSegment *segments; // Array of contiguous memory segments in executable }; diff --git a/lldb/tools/lldb-mi/MICmdArgValString.cpp b/lldb/tools/lldb-mi/MICmdArgValString.cpp index 37e02787c25f..7dd5b2e20943 100644 --- a/lldb/tools/lldb-mi/MICmdArgValString.cpp +++ b/lldb/tools/lldb-mi/MICmdArgValString.cpp @@ -271,7 +271,7 @@ CMICmdArgValString::IsStringArgQuotedText(const CMIUtilString &vrTxt) const if (nPos == (MIint)(vrTxt.length() - 1)) return false; - // Quote must be the first character in the string or be preceeded by a space + // Quote must be the first character in the string or be preceded by a space // Also check for embedded string formating quote const MIchar cBckSlash = '\\'; const MIchar cSpace = ' '; @@ -313,7 +313,7 @@ CMICmdArgValString::IsStringArgQuotedTextEmbedded(const CMIUtilString &vrTxt) co if (nPos == (MIint)std::string::npos) return false; - // Slash must be the first character in the string or be preceeded by a space + // Slash must be the first character in the string or be preceded by a space const MIchar cSpace = ' '; if ((nPos > 0) && (vrTxt[nPos - 1] != cSpace)) return false; diff --git a/lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp b/lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp index 1535aca9f474..e7fc5d38389b 100644 --- a/lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp +++ b/lldb/tools/lldb-mi/MICmdCmdMiscellanous.cpp @@ -399,7 +399,7 @@ CMICmdCmdListThreadGroups::CreateSelf(void) // Throws: None. //-- CMICmdCmdInterpreterExec::CMICmdCmdInterpreterExec(void) - : m_constStrArgNamedInterpreter("intepreter") + : m_constStrArgNamedInterpreter("interpreter") , m_constStrArgNamedCommand("command") { // Command factory matches this name with that received from the stdin stream diff --git a/lldb/tools/lldb-mi/MICmdInterpreter.cpp b/lldb/tools/lldb-mi/MICmdInterpreter.cpp index c420fa8622fe..6d4731515531 100644 --- a/lldb/tools/lldb-mi/MICmdInterpreter.cpp +++ b/lldb/tools/lldb-mi/MICmdInterpreter.cpp @@ -105,8 +105,8 @@ CMICmdInterpreter::ValidateIsMi(const CMIUtilString &vTextLine, bool &vwbYesVali m_miCmdData.Clear(); m_miCmdData.strMiCmd = vTextLine; - // The following change m_miCmdData as valid parts are indentified - vwbYesValid = (MiHasCmdTokenEndingHypthen(vTextLine) || MiHasCmdTokenEndingAlpha(vTextLine)); + // The following change m_miCmdData as valid parts are identified + vwbYesValid = (MiHasCmdTokenEndingHyphen(vTextLine) || MiHasCmdTokenEndingAlpha(vTextLine)); vwbYesValid = vwbYesValid && MiHasCmd(vTextLine); if (vwbYesValid) { @@ -150,9 +150,9 @@ CMICmdInterpreter::HasCmdFactoryGotMiCmd(const SMICmdData &vCmd) const // Throws: None. //-- bool -CMICmdInterpreter::MiHasCmdTokenEndingHypthen(const CMIUtilString &vTextLine) +CMICmdInterpreter::MiHasCmdTokenEndingHyphen(const CMIUtilString &vTextLine) { - // The hythen is mandatory + // The hyphen is mandatory const MIint nPos = vTextLine.find("-", 0); if ((nPos == (MIint)std::string::npos)) return false; @@ -206,7 +206,7 @@ CMICmdInterpreter::MiHasCmdTokenEndingAlpha(const CMIUtilString &vTextLine) //++ ------------------------------------------------------------------------------------ // Details: Does the command entered match the criteria for a MI command format. -// Is the command token present before the hypen? +// Is the command token present before the hyphen? // Type: Method. // Args: vTextLine - (R) Text data to interpret. // Return: bool - True = yes command token present, false = token not present. @@ -221,7 +221,7 @@ CMICmdInterpreter::MiHasCmdTokenPresent(const CMIUtilString &vTextLine) //++ ------------------------------------------------------------------------------------ // Details: Does the command name entered match the criteria for a MI command format. -// Is a recogised command present? The command name is entered into the +// Is a recognised command present? The command name is entered into the // command meta data structure whether correct or not for reporting or later // command execution purposes. Command options is present are also put into the // command meta data structure. diff --git a/lldb/tools/lldb-mi/MICmdInterpreter.h b/lldb/tools/lldb-mi/MICmdInterpreter.h index 8b56b6fce7a6..acb052289ba2 100644 --- a/lldb/tools/lldb-mi/MICmdInterpreter.h +++ b/lldb/tools/lldb-mi/MICmdInterpreter.h @@ -46,7 +46,7 @@ class CMICmdInterpreter : public CMICmnBase, public MI::ISingleton class CommandObjectType:
    def __init__(self, debugger, session_dict):
-         this call should initialize the command with respect to the command interpeter for the passed-in debugger
+         this call should initialize the command with respect to the command interpreter for the passed-in debugger
    def __call__(self, debugger, command, exe_ctx, result):
        this is the actual bulk of the command, akin to Python command functions
    def get_short_help(self):
@@ -444,7 +444,7 @@ Enter your Python command(s). Type 'DONE' to end.

where debugger and internal_dict are as above, that function will get run when the module is loaded allowing you to add whatever commands you want into the current debugger. Note that - this function will only be run when using the LLDB comand command script import, + this function will only be run when using the LLDB command command script import, it will not get run if anyone imports your module from another module. If you want to always run code when your module is loaded from LLDB or when loaded via an import statement in python code diff --git a/lldb/www/python_reference/lldb-module.html b/lldb/www/python_reference/lldb-module.html index dc972a752fde..5b351bceb7d6 100644 --- a/lldb/www/python_reference/lldb-module.html +++ b/lldb/www/python_reference/lldb-module.html @@ -71,9 +71,9 @@ o SBFrame: Represents one of the stack frames associated with a thread. SBThread o SBSymbolContext: A container that stores various debugger related info. o SBValue: Represents the value of a variable, a register, or an expression. o SBModule: Represents an executable image and its associated object and symbol - files. SBTarget conatins SBModule(s). + files. SBTarget contains SBModule(s). o SBBreakpoint: Represents a logical breakpoint and its associated settings. - SBTarget conatins SBBreakpoint(s). + SBTarget contains SBBreakpoint(s). o SBSymbol: Represents the symbol possibly associated with a stack frame. o SBCompileUnit: Represents a compilation unit, or compiled source file. o SBFunction: Represents a generic function, which can be inlined or not. diff --git a/lldb/www/python_reference/lldb-pysrc.html b/lldb/www/python_reference/lldb-pysrc.html index b9200eee28ad..43a1c03a79d1 100644 --- a/lldb/www/python_reference/lldb-pysrc.html +++ b/lldb/www/python_reference/lldb-pysrc.html @@ -77,9 +77,9 @@ 18 o SBSymbolContext: A container that stores various debugger related info. 19 o SBValue: Represents the value of a variable, a register, or an expression. 20 o SBModule: Represents an executable image and its associated object and symbol - 21 files. SBTarget conatins SBModule(s). + 21 files. SBTarget contains SBModule(s). 22 o SBBreakpoint: Represents a logical breakpoint and its associated settings. - 23 SBTarget conatins SBBreakpoint(s). + 23 SBTarget contains SBBreakpoint(s). 24 o SBSymbol: Represents the symbol possibly associated with a stack frame. 25 o SBCompileUnit: Represents a compilation unit, or compiled source file. 26 o SBFunction: Represents a generic function, which can be inlined or not. diff --git a/lldb/www/remote.html b/lldb/www/remote.html index 913228a0abcd..e5fc2d2b6a63 100644 --- a/lldb/www/remote.html +++ b/lldb/www/remote.html @@ -64,7 +64,7 @@

On Linux and Android, all required remote functionality is contained in the lldb-server binary. This binary combines the functionality of the - platform and gdb-remote stub. A single binary fascilitates deployment and reduces + platform and gdb-remote stub. A single binary facilitates deployment and reduces code size, since the two functions share a lot of code. The lldb-server binary is also statically linked with the rest of LLDB (unlike lldb, which dynamically links to liblldb.so by