Skip to content

Commit e171da5

Browse files
Fix typos.
Summary: Fix a bunch of typos. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11386 llvm-svn: 242856
1 parent a534a31 commit e171da5

File tree

32 files changed

+65
-65
lines changed

32 files changed

+65
-65
lines changed

lldb/examples/darwin/heap_find/heap/heap_find.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ range_info_callback (task_t task,
144144
uint64_t ptr_size);
145145

146146
//----------------------------------------------------------------------
147-
// Redefine private gloval variables prototypes from
147+
// Redefine private global variables prototypes from
148148
// "/usr/local/include/stack_logging.h"
149149
//----------------------------------------------------------------------
150150

@@ -556,7 +556,7 @@ class ObjCClassInfo
556556
static int
557557
compare_bytes (const Entry *a, const Entry *b)
558558
{
559-
// Reverse the comparisong to most bytes entries end up at top of list
559+
// Reverse the comparison to most bytes entries end up at top of list
560560
if (a->bytes > b->bytes) return -1;
561561
if (a->bytes < b->bytes) return +1;
562562
return 0;
@@ -565,7 +565,7 @@ class ObjCClassInfo
565565
static int
566566
compare_count (const Entry *a, const Entry *b)
567567
{
568-
// Reverse the comparisong to most count entries end up at top of list
568+
// Reverse the comparison to most count entries end up at top of list
569569
if (a->count > b->count) return -1;
570570
if (a->count < b->count) return +1;
571571
return 0;
@@ -659,7 +659,7 @@ foreach_zone_in_this_process (range_callback_info_t *info)
659659
// dump_malloc_block_callback
660660
//
661661
// A simple callback that will dump each malloc block and all available
662-
// info from the enumeration callback perpective.
662+
// info from the enumeration callback perspective.
663663
//----------------------------------------------------------------------
664664
static void
665665
dump_malloc_block_callback (task_t task, void *baton, unsigned type, uint64_t ptr_addr, uint64_t ptr_size)

lldb/include/lldb/Core/Connection.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Connection
5858
///
5959
/// @param[out] error_ptr
6060
/// A pointer to an error object that should be given an
61-
/// approriate error value if this method returns false. This
61+
/// appropriate error value if this method returns false. This
6262
/// value can be NULL if the error value should be ignored.
6363
///
6464
/// @return
@@ -77,7 +77,7 @@ class Connection
7777
///
7878
/// @param[out] error_ptr
7979
/// A pointer to an error object that should be given an
80-
/// approriate error value if this method returns false. This
80+
/// appropriate error value if this method returns false. This
8181
/// value can be NULL if the error value should be ignored.
8282
///
8383
/// @return
@@ -115,12 +115,12 @@ class Connection
115115
/// The number of microseconds to wait for the data.
116116
///
117117
/// @param[out] status
118-
/// On return, indicates whether the call was sucessful or terminated
118+
/// On return, indicates whether the call was successful or terminated
119119
/// due to some error condition.
120120
///
121121
/// @param[out] error_ptr
122122
/// A pointer to an error object that should be given an
123-
/// approriate error value if this method returns zero. This
123+
/// appropriate error value if this method returns zero. This
124124
/// value can be NULL if the error value should be ignored.
125125
///
126126
/// @return
@@ -151,7 +151,7 @@ class Connection
151151
///
152152
/// @param[out] error_ptr
153153
/// A pointer to an error object that should be given an
154-
/// approriate error value if this method returns zero. This
154+
/// appropriate error value if this method returns zero. This
155155
/// value can be NULL if the error value should be ignored.
156156
///
157157
/// @return
@@ -182,7 +182,7 @@ class Connection
182182
/// operation).
183183
///
184184
/// @return
185-
/// Returns true is the interrupt request was sucessful.
185+
/// Returns true is the interrupt request was successful.
186186
//------------------------------------------------------------------
187187
virtual bool
188188
InterruptRead() = 0;

lldb/include/lldb/Core/Log.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class LogChannel : public PluginInterface
192192

193193
static lldb::LogChannelSP FindPlugin(const char *plugin_name);
194194

195-
// categories is a an array of chars that ends with a NULL element.
195+
// categories is an array of chars that ends with a NULL element.
196196
virtual void Disable(const char **categories, Stream *feedback_strm) = 0;
197197

198198
virtual bool Enable(

lldb/include/lldb/Core/Timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Timer
4343
Timer(const char *category, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
4444

4545
//--------------------------------------------------------------
46-
/// Desstructor
46+
/// Destructor
4747
//--------------------------------------------------------------
4848
~Timer();
4949

lldb/include/lldb/Host/Mutex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Mutex
8585
Locker(Mutex* m);
8686

8787
//--------------------------------------------------------------
88-
/// Desstructor
88+
/// Destructor
8989
///
9090
/// Unlocks any valid pthread_mutex_t that this object may
9191
/// contain.
@@ -120,7 +120,7 @@ class Mutex
120120
/// will not take ownership of the mutex.
121121
///
122122
/// @return
123-
/// Returns \b true if the lock was aquired and the this
123+
/// Returns \b true if the lock was acquired and the this
124124
/// object will unlock the mutex when it goes out of scope,
125125
/// returns \b false otherwise.
126126
//--------------------------------------------------------------

lldb/source/Core/FastDemangle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class SymbolDemangler
161161
/// the Itanium C++ ABI mangling specification as implemented by Clang
162162
///
163163
/// @result Newly allocated null-terminated demangled name when demangling
164-
/// is succesful, and nullptr when demangling fails. The caller is
164+
/// is successful, and nullptr when demangling fails. The caller is
165165
/// responsible for freeing the allocated memory.
166166

167167
char *

lldb/source/Core/ModuleList.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ModuleList::operator= (const ModuleList& rhs)
7070
// That's probably me nit-picking, but in theoretical situation:
7171
//
7272
// * that two threads A B and
73-
// * two ModuleList's x y do opposite assignemnts ie.:
73+
// * two ModuleList's x y do opposite assignments ie.:
7474
//
7575
// in thread A: | in thread B:
7676
// x = y; | y = x;
@@ -684,7 +684,7 @@ ModuleList::FindTypes (const SymbolContext& sc, const ConstString &name, bool na
684684
{
685685
// Search the module if the module is not equal to the one in the symbol
686686
// context "sc". If "sc" contains a empty module shared pointer, then
687-
// the comparisong will always be true (valid_module_ptr != NULL).
687+
// the comparison will always be true (valid_module_ptr != NULL).
688688
if (sc.module_sp.get() != (*pos).get())
689689
total_matches += (*pos)->FindTypes (world_sc, name, name_is_fully_qualified, max_matches, types);
690690

lldb/source/Core/RegisterValue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ RegisterValue::GetAsMemoryData (const RegisterInfo *reg_info,
119119
return 0;
120120
}
121121

122-
// ReadRegister should have already been called on tgus object prior to
122+
// ReadRegister should have already been called on this object prior to
123123
// calling this.
124124
if (GetType() == eTypeInvalid)
125125
{
@@ -217,7 +217,7 @@ RegisterValue::SetFromMemoryData (const RegisterInfo *reg_info,
217217
{
218218
m_data.buffer.byte_order = src_byte_order;
219219
// Make sure to set the buffer length of the destination buffer to avoid
220-
// problems due to uninitalized variables.
220+
// problems due to uninitialized variables.
221221
m_data.buffer.length = src_len;
222222
}
223223

lldb/source/Host/common/XML.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ XMLNode::ForEachSiblingElementWithName (const char *name, NodeCallback const &ca
329329
else
330330
{
331331
if (node->name)
332-
continue; // nullptr name specified and this elemnt has a name, ignore this one
332+
continue; // nullptr name specified and this element has a name, ignore this one
333333
}
334334

335335
if (callback(XMLNode(node)) == false)

lldb/source/Host/windows/ConnectionGenericFileWindows.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using namespace lldb_private;
2121
namespace
2222
{
2323
// This is a simple helper class to package up the information needed to return from a Read/Write
24-
// operation function. Since there is alot of code to be run before exit regardless of whether the
24+
// operation function. Since there is a lot of code to be run before exit regardless of whether the
2525
// operation succeeded or failed, combined with many possible return paths, this is the cleanest
2626
// way to represent it.
2727
class ReturnInfo
@@ -251,7 +251,7 @@ ConnectionGenericFile::Read(void *dst, size_t dst_len, uint32_t timeout_usec, ll
251251
}
252252
else
253253
{
254-
// An unknown error occured. Fail out.
254+
// An unknown error occurred. Fail out.
255255
return_info.Set(0, eConnectionStatusError, ::GetLastError());
256256
}
257257
goto finish;

lldb/source/Host/windows/EditLineWin.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct el_binding
3535
// stored key bindings
3636
static std::vector<el_binding*> _bindings;
3737

38-
//TODO: this should infact be related to the exact edit line context we create
38+
//TODO: this should in fact be related to the exact edit line context we create
3939
static void *clientData = NULL;
4040

4141
// store the current prompt string
@@ -125,7 +125,7 @@ el_get_s (char *buffer, int chars)
125125
DWORD _read = 0;
126126
if ( ReadConsoleInputA( GetStdHandle( STD_INPUT_HANDLE ), &_record, 1, &_read ) == FALSE )
127127
break;
128-
// if we didnt read a key
128+
// if we didn't read a key
129129
if ( _read == 0 )
130130
continue;
131131
// only interested in key events
@@ -179,7 +179,7 @@ el_get_s (char *buffer, int chars)
179179
}
180180
#endif
181181

182-
// edit line initalise
182+
// edit line initialize
183183
EditLine *
184184
el_init (const char *, FILE *, FILE *, FILE *)
185185
{
@@ -263,15 +263,15 @@ el_set (EditLine *el, int code, ...)
263263
case ( EL_HIST ):
264264
{
265265
// EL_HIST, History *(*fun)(History *, int op, ... ), const char *ptr
266-
// defines which histroy function to use, which is usualy history(). Ptr should be the
266+
// defines which history function to use, which is usually history(). Ptr should be the
267267
// value returned by history_init().
268268
}
269269
break;
270270
case ( EL_ADDFN ):
271271
{
272272
// EL_ADDFN, const char *name, const char *help, unsigned char (*func)(EditLine *e, int ch)
273273
// add a user defined function, func), referred to as 'name' which is invoked when a key which is bound to 'name' is
274-
// entered. 'help' is a description of 'name'. at involcation time, 'ch' is the key which caused the invocation. the
274+
// entered. 'help' is a description of 'name'. at invocation time, 'ch' is the key which caused the invocation. the
275275
// return value of 'func()' should be one of:
276276
// CC_NORM add a normal character
277277
// CC_NEWLINE end of line was entered
@@ -280,8 +280,8 @@ el_set (EditLine *el, int code, ...)
280280
// CC_REFRESH refresh display.
281281
// CC_REFRESH_BEEP refresh display and beep.
282282
// CC_CURSOR cursor moved so update and perform CC_REFRESH
283-
// CC_REDISPLAY redisplay entire input line. this is usefull if a key binding outputs extra information.
284-
// CC_ERROR an error occured. beep and flush tty.
283+
// CC_REDISPLAY redisplay entire input line. this is useful if a key binding outputs extra information.
284+
// CC_ERROR an error occurred. beep and flush tty.
285285
// CC_FATAL fatal error, reset tty to known state.
286286

287287
el_binding *binding = new el_binding;
@@ -296,7 +296,7 @@ el_set (EditLine *el, int code, ...)
296296
case ( EL_BIND ):
297297
{
298298
// EL_BIND, const char *, ..., NULL
299-
// perform the BIND buildin command. Refer to editrc(5) for more information.
299+
// perform the BIND built-in command. Refer to editrc(5) for more information.
300300

301301
const char *name = va_arg( vl, const char* );
302302

lldb/source/Interpreter/Args.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ Args::StringToAddress (const ExecutionContext *exe_ctx, const char *s, lldb::add
719719
else
720720
{
721721
// Since the compiler can't handle things like "main + 12" we should
722-
// try to do this for now. The compliler doesn't like adding offsets
722+
// try to do this for now. The compiler doesn't like adding offsets
723723
// to function pointer types.
724724
static RegularExpression g_symbol_plus_offset_regex("^(.*)([-\\+])[[:space:]]*(0x[0-9A-Fa-f]+|[0-9]+)[[:space:]]*$");
725725
RegularExpression::Match regex_match(3);

lldb/source/Interpreter/CommandObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ CommandObject::HandleCompletion
395395
StringList &matches
396396
)
397397
{
398-
// Default implmentation of WantsCompletion() is !WantsRawCommandString().
398+
// Default implementation of WantsCompletion() is !WantsRawCommandString().
399399
// Subclasses who want raw command string but desire, for example,
400400
// argument completion should override WantsCompletion() to return true,
401401
// instead.

lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ ObjectFileELF::CreateSections(SectionList &unified_section_list)
17311731
if (eSectionTypeOther == sect_type)
17321732
{
17331733
// the kalimba toolchain assumes that ELF section names are free-form. It does
1734-
// supports linkscripts which (can) give rise to various arbitarily named
1734+
// support linkscripts which (can) give rise to various arbitrarily named
17351735
// sections being "Code" or "Data".
17361736
sect_type = kalimbaSectionType(m_header, header);
17371737
}
@@ -2069,7 +2069,7 @@ ObjectFileELF::ParseSymbols (Symtab *symtab,
20692069
Mangled mangled(ConstString(symbol_bare), is_mangled);
20702070

20712071
// Now append the suffix back to mangled and unmangled names. Only do it if the
2072-
// demangling was sucessful (string is not empty).
2072+
// demangling was successful (string is not empty).
20732073
if (has_suffix)
20742074
{
20752075
llvm::StringRef suffix = symbol_ref.substr(version_pos);
@@ -2221,7 +2221,7 @@ ObjectFileELF::PLTRelocationType()
22212221
}
22222222

22232223
// Returns the size of the normal plt entries and the offset of the first normal plt entry. The
2224-
// 0th entry in the plt table is ususally a resolution entry which have different size in some
2224+
// 0th entry in the plt table is usually a resolution entry which have different size in some
22252225
// architectures then the rest of the plt entries.
22262226
static std::pair<uint64_t, uint64_t>
22272227
GetPltEntrySizeAndOffset(const ELFSectionHeader* rel_hdr, const ELFSectionHeader* plt_hdr)
@@ -2237,8 +2237,8 @@ GetPltEntrySizeAndOffset(const ELFSectionHeader* rel_hdr, const ELFSectionHeader
22372237
{
22382238
// The linker haven't set the plt_hdr->sh_entsize field. Try to guess the size of the plt
22392239
// entries based on the number of entries and the size of the plt section with the
2240-
// asumption that the size of the 0th entry is at least as big as the size of the normal
2241-
// entries and it isn't mutch bigger then that.
2240+
// assumption that the size of the 0th entry is at least as big as the size of the normal
2241+
// entries and it isn't much bigger then that.
22422242
if (plt_hdr->sh_addralign)
22432243
plt_entsize = plt_hdr->sh_size / plt_hdr->sh_addralign / (num_relocations + 1) * plt_hdr->sh_addralign;
22442244
else

lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,17 +649,17 @@ PlatformDarwin::GetSoftwareBreakpointTrapOpcode (Target &target, BreakpointSite
649649
bool
650650
PlatformDarwin::GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info)
651651
{
652-
bool sucess = false;
652+
bool success = false;
653653
if (IsHost())
654654
{
655-
sucess = Platform::GetProcessInfo (pid, process_info);
655+
success = Platform::GetProcessInfo (pid, process_info);
656656
}
657657
else
658658
{
659659
if (m_remote_platform_sp)
660-
sucess = m_remote_platform_sp->GetProcessInfo (pid, process_info);
660+
success = m_remote_platform_sp->GetProcessInfo (pid, process_info);
661661
}
662-
return sucess;
662+
return success;
663663
}
664664

665665
uint32_t

lldb/source/Plugins/Process/elf-core/ProcessElfCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// 2) The ELF file's PT_NOTE and PT_LOAD segments describes the program's
1111
// address space and thread contexts.
1212
// 3) PT_NOTE segment contains note entries which describes a thread context.
13-
// 4) PT_LOAD segment describes a valid contigous range of process address
13+
// 4) PT_LOAD segment describes a valid contiguous range of process address
1414
// space.
1515
//===----------------------------------------------------------------------===//
1616

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ GDBRemoteCommunicationClient::SendPacketAndWaitForResponse
782782
Log *log (ProcessGDBRemoteLog::GetLogIfAllCategoriesSet (GDBR_LOG_PROCESS));
783783

784784
// In order to stop async notifications from being processed in the middle of the
785-
// send/recieve sequence Hijack the broadcast. Then rebroadcast any events when we are done.
785+
// send/receive sequence Hijack the broadcast. Then rebroadcast any events when we are done.
786786
static Listener hijack_listener("lldb.NotifyHijacker");
787787
HijackBroadcaster(&hijack_listener, eBroadcastBitGdbReadThreadGotNotify);
788788

@@ -878,10 +878,10 @@ GDBRemoteCommunicationClient::SendPacketAndWaitForResponse
878878
}
879879
}
880880

881-
// Remove our Hijacking listner from the broadcast.
881+
// Remove our Hijacking listener from the broadcast.
882882
RestoreBroadcaster();
883883

884-
// If a notification event occured, rebroadcast since it can now be processed safely.
884+
// If a notification event occurred, rebroadcast since it can now be processed safely.
885885
EventSP event_sp;
886886
if (hijack_listener.GetNextEvent(event_sp))
887887
BroadcastEvent(event_sp);

lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class ProcessGDBRemote : public Process
376376
bool m_destroy_tried_resuming;
377377
lldb::CommandObjectSP m_command_sp;
378378
int64_t m_breakpoint_pc_offset;
379-
lldb::tid_t m_initial_tid; // The inital thread ID, given by stub on attach
379+
lldb::tid_t m_initial_tid; // The initial thread ID, given by stub on attach
380380

381381
bool
382382
HandleNotifyPacket(StringExtractorGDBRemote &packet);

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,7 +3331,7 @@ SymbolFileDWARF::Index ()
33313331
s.Printf("\nObjective C class selectors:\n"); m_objc_class_selectors_index.Dump (&s);
33323332
s.Printf("\nGlobals and statics:\n"); m_global_index.Dump (&s);
33333333
s.Printf("\nTypes:\n"); m_type_index.Dump (&s);
3334-
s.Printf("\nNamepaces:\n"); m_namespace_index.Dump (&s);
3334+
s.Printf("\nNamespaces:\n") m_namespace_index.Dump (&s);
33353335
#endif
33363336
}
33373337
}
@@ -8014,7 +8014,7 @@ SymbolFileDWARF::DumpIndexes ()
80148014
s.Printf("\nObjective C class selectors:\n"); m_objc_class_selectors_index.Dump (&s);
80158015
s.Printf("\nGlobals and statics:\n"); m_global_index.Dump (&s);
80168016
s.Printf("\nTypes:\n"); m_type_index.Dump (&s);
8017-
s.Printf("\nNamepaces:\n"); m_namespace_index.Dump (&s);
8017+
s.Printf("\nNamespaces:\n"); m_namespace_index.Dump (&s);
80188018
}
80198019

80208020
void

0 commit comments

Comments
 (0)