Skip to content

Commit 710dd5a

Browse files
author
Greg Clayton
committed
Spelling changes applied from lldb_spelling.diffs from Bruce Mitchener.
Thanks Bruce! llvm-svn: 123083
1 parent 9dbbc49 commit 710dd5a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+78
-78
lines changed

lldb/docs/lldb-for-gdb-users.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ You can also choose particular variables to view:
367367
(SKTGraphicView *) self = 0x0000000100208b40
368368

369369
The frame variable command is not a full expression parser but it
370-
does support some common operations like defererencing:
370+
does support some common operations like dereferencing:
371371

372372
(lldb) fr v *self
373373
(SKTGraphicView *) self = 0x0000000100208b40

lldb/docs/testsuite/a-detailed-walkthrough.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ binary for us. The base class TestBase has defined three instance methods:
119119
if not module.buildDwarf(self, architecture, compiler, dictionary):
120120
raise Exception("Don't know how to build binary with dwarf")
121121

122-
And the test/plugins/darwin.py provides the implmentation for all three build
122+
And the test/plugins/darwin.py provides the implementation for all three build
123123
methods using the makefile mechanism. We envision that linux plugin can use a
124124
similar approach to accomplish the task of building the binaries.
125125

lldb/examples/lookup/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ main (int argc, char const *argv[])
4141

4242
// The first argument is the file path we want to look something up in
4343
const char *exe_file_path = argv[1];
44-
// The second arguemnt in the address that we want to lookup
44+
// The second argument in the address that we want to lookup
4545
lldb::addr_t file_addr = strtoull (argv[2], NULL, 0);
4646

4747
// Make a file spec out of our executable path

lldb/source/Commands/CommandCompletions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ DiskFilesOrDirectories
141141
memcpy(partial_name_copy, partial_file_name, partial_name_len);
142142
partial_name_copy[partial_name_len] = '\0';
143143

144-
// We'll need to save a copy of the remainder for comparision, which we do here.
144+
// We'll need to save a copy of the remainder for comparison, which we do here.
145145
char remainder[PATH_MAX];
146146

147147
// end_ptr will point past the last / in partial_name_copy, or if there is no slash to the beginning of the string.

lldb/source/Core/Address.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ ReadCStringFromMemory (ExecutionContextScope *exe_scope, const Address &address,
170170
char buf[k_buf_len+1];
171171
buf[k_buf_len] = '\0'; // NULL terminate
172172

173-
// Byte order and adderss size don't matter for C string dumping..
173+
// Byte order and address size don't matter for C string dumping..
174174
DataExtractor data (buf, sizeof(buf), eByteOrderHost, 4);
175175
size_t total_len = 0;
176176
size_t bytes_read;

lldb/source/Core/ValueObject.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ ValueObject::GetIndexOfChildWithName (const ConstString &name)
290290
ValueObjectSP
291291
ValueObject::GetChildMemberWithName (const ConstString &name, bool can_create)
292292
{
293-
// when getting a child by name, it could be burried inside some base
293+
// when getting a child by name, it could be buried inside some base
294294
// classes (which really aren't part of the expression path), so we
295295
// need a vector of indexes that can get us down to the correct child
296296
std::vector<uint32_t> child_indexes;

lldb/source/Host/common/Condition.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Condition::Signal ()
6666

6767
//----------------------------------------------------------------------
6868
// The Wait() function atomically blocks the current thread
69-
// waiting on the owend condition variable, and unblocks the mutex
69+
// waiting on the owned condition variable, and unblocks the mutex
7070
// specified by "mutex". The waiting thread unblocks only after
7171
// another thread calls Signal(), or Broadcast() with the same
7272
// condition variable, or if "abstime" is valid (non-NULL) this

lldb/source/Host/common/Host.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ Host::ResolveExecutableInBundle (FileSpec &file)
662662
bool
663663
Host::GetLLDBPath (PathType path_type, FileSpec &file_spec)
664664
{
665-
// To get paths related to LLDB we get the path to the exectuable that
665+
// To get paths related to LLDB we get the path to the executable that
666666
// contains this function. On MacOSX this will be "LLDB.framework/.../LLDB",
667667
// on linux this is assumed to be the "lldb" main executable. If LLDB on
668668
// linux is actually in a shared library (lldb.so??) then this function will

lldb/source/Host/common/Mutex.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Mutex::Locker::Locker (pthread_mutex_t *mutex_ptr) :
7272
}
7373

7474
//----------------------------------------------------------------------
75-
// Desstructor
75+
// Destructor
7676
//
7777
// Unlocks any owned mutex object (if it is valid).
7878
//----------------------------------------------------------------------

lldb/source/Host/macosx/Host.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
// function, so we do it manually.
5656
auto_zone_register_thread(auto_zone());
5757
#else
58-
// On SnowLoepard and later we just call the thread registration function.
58+
// On SnowLeopard and later we just call the thread registration function.
5959
objc_registerThreadWithCollector();
6060
#endif
6161
}

lldb/source/Host/macosx/cfcpp/CFCReleaser.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// is designed to mimic the std::auto_ptr<T> class and has all of the
2424
// same functions. The one thing to watch out for is the
2525
// CFCReleaser<T>::release() function won't actually CFRelease any owned
26-
// pointer, it is designed to relinquish ownwership of the pointer just
26+
// pointer, it is designed to relinquish ownership of the pointer just
2727
// like std:auto_ptr<T>::release() does.
2828
//----------------------------------------------------------------------
2929
template <class T>

lldb/source/Interpreter/Args.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Args::SetCommandString (const char *command)
145145
if (*arg_start == '\0')
146146
break;
147147

148-
// Arguments can be split into multiple discongituous pieces,
148+
// Arguments can be split into multiple discontiguous pieces,
149149
// for example:
150150
// "Hello ""World"
151151
// this would result in a single argument "Hello World" (without/
@@ -228,7 +228,7 @@ Args::SetCommandString (const char *command)
228228
else
229229
{
230230
// We found the start of a quote scope.
231-
// Make sure there isn't a string that predeces
231+
// Make sure there isn't a string that precedes
232232
// the start of a quote scope like:
233233
// Hello" World"
234234
// If so, then add the "Hello" to the arg

lldb/source/Interpreter/CommandInterpreter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ CommandInterpreter::HandleCommand (const char *command_line,
746746
// the user could have specified an alias, and in translating the alias there may also be command options and/or
747747
// even data (including raw text strings) that need to be found and inserted into the command line as part of
748748
// the translation. So this first step is plain look-up & replacement, resulting in three things: 1). the command
749-
// object whose Execute method will actually be called; 2). a revised command string, with all substituitions &
749+
// object whose Execute method will actually be called; 2). a revised command string, with all substitutions &
750750
// replacements taken care of; 3). whether or not the Execute function wants raw input or not.
751751

752752
StreamString revised_command_line;

lldb/source/Interpreter/CommandObjectRegexCommand.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ CommandObjectRegexCommand::ExecuteRawCommandString
9797
m_cmd_name.c_str());
9898
return false;
9999
}
100-
result.AppendError("empty command passed to regular exression command");
100+
result.AppendError("empty command passed to regular expression command");
101101
result.SetStatus(eReturnStatusFailed);
102102
return false;
103103
}

lldb/source/Interpreter/CommandObjectScript.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ CommandObjectScript::ExecuteRawCommandString
5252

5353
if (script_interpreter == NULL)
5454
{
55-
result.AppendError("no script interpeter");
55+
result.AppendError("no script interpreter");
5656
result.SetStatus (eReturnStatusFailed);
5757
}
5858

lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class DynamicLoaderMacOSXDYLD : public lldb_private::DynamicLoader
372372
bool
373373
ReadAllImageInfosStructure ();
374374

375-
DYLDImageInfo m_dyld; // Info about the curent dyld being used
375+
DYLDImageInfo m_dyld; // Info about the current dyld being used
376376
lldb::addr_t m_dyld_all_image_infos_addr;
377377
DYLDAllImageInfos m_dyld_all_image_infos;
378378
uint32_t m_dyld_all_image_infos_stop_id;

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ AppleObjCTrampolineHandler::AppleObjCTrampolineHandler (ProcessSP process_sp, Mo
560560
const Symbol *msgSend_symbol = m_objc_module_sp->FindFirstSymbolWithNameAndType (name_const_str, eSymbolTypeCode);
561561
if (msgSend_symbol)
562562
{
563-
// FixMe: Make g_dispatch_functions static table of DisptachFunctions, and have the map be address->index.
563+
// FixMe: Make g_dispatch_functions static table of DispatchFunctions, and have the map be address->index.
564564
// Problem is we also need to lookup the dispatch function. For now we could have a side table of stret & non-stret
565565
// dispatch functions. If that's as complex as it gets, we're fine.
566566

lldb/source/Plugins/ObjectContainer/Universal-Mach-O/ObjectContainerUniversalMachO.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ ObjectContainerUniversalMachO::ParseHeader ()
127127
}
128128

129129
// Now we should have enough data for all of the fat headers, so lets index
130-
// them so we know how many architectures that this univeral binary contains.
130+
// them so we know how many architectures that this universal binary contains.
131131
uint32_t arch_idx = 0;
132132
for (arch_idx = 0; arch_idx < m_header.nfat_arch; ++arch_idx)
133133
{

lldb/source/Plugins/ObjectFile/ELF/ELFHeader.h

+13-13
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ struct ELFHeader
6868
elf_half e_machine; ///< Target architecture.
6969
elf_half e_ehsize; ///< Byte size of the ELF header.
7070
elf_half e_phentsize; ///< Size of a program header table entry.
71-
elf_half e_phnum; ///< Number of program header entrys.
71+
elf_half e_phnum; ///< Number of program header entries.
7272
elf_half e_shentsize; ///< Size of a section header table entry.
73-
elf_half e_shnum; ///< Number of section header entrys.
73+
elf_half e_shnum; ///< Number of section header entries.
7474
elf_half e_shstrndx; ///< String table section index.
7575

7676
ELFHeader();
@@ -184,19 +184,19 @@ struct ELFSectionHeader
184184
/// @brief Generic representation of an ELF program header.
185185
struct ELFProgramHeader
186186
{
187-
elf_word p_type; ///< Type of program segement.
188-
elf_word p_flags; ///< Segement attibutes.
189-
elf_off p_offset; ///< Start of segment from begining of file.
187+
elf_word p_type; ///< Type of program segment.
188+
elf_word p_flags; ///< Segment attributes.
189+
elf_off p_offset; ///< Start of segment from beginning of file.
190190
elf_addr p_vaddr; ///< Virtual address of segment in memory.
191191
elf_addr p_paddr; ///< Physical address (for non-VM systems).
192192
elf_xword p_filesz; ///< Byte size of the segment in file.
193193
elf_xword p_memsz; ///< Byte size of the segment in memory.
194-
elf_xword p_align; ///< Segement alignement constraint.
194+
elf_xword p_align; ///< Segment alignment constraint.
195195

196196
ELFProgramHeader();
197197

198-
/// Parse an ELFProgramHeader entry from the given DataExtracter starting at
199-
/// position \p offset. The address size of the DataExtracter determines if
198+
/// Parse an ELFProgramHeader entry from the given DataExtractor starting at
199+
/// position \p offset. The address size of the DataExtractor determines if
200200
/// a 32 or 64 bit object is to be parsed.
201201
///
202202
/// @param[in] data
@@ -234,13 +234,13 @@ struct ELFSymbol
234234
/// Returns the type attribute of the st_info member.
235235
unsigned char getType() const { return st_info & 0x0F; }
236236

237-
/// Sets the bining and type of the st_info member.
237+
/// Sets the binding and type of the st_info member.
238238
void setBindingAndType(unsigned char binding, unsigned char type) {
239239
st_info = (binding << 4) + (type & 0x0F);
240240
}
241241

242-
/// Parse an ELFSymbol entry from the given DataExtracter starting at
243-
/// position \p offset. The address size of the DataExtracter determines if
242+
/// Parse an ELFSymbol entry from the given DataExtractor starting at
243+
/// position \p offset. The address size of the DataExtractor determines if
244244
/// a 32 or 64 bit object is to be parsed.
245245
///
246246
/// @param[in] data
@@ -271,8 +271,8 @@ struct ELFDynamic
271271

272272
ELFDynamic();
273273

274-
/// Parse an ELFDynamic entry from the given DataExtracter starting at
275-
/// position \p offset. The address size of the DataExtracter determines if
274+
/// Parse an ELFDynamic entry from the given DataExtractor starting at
275+
/// position \p offset. The address size of the DataExtractor determines if
276276
/// a 32 or 64 bit object is to be parsed.
277277
///
278278
/// @param[in] data

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class ObjectFileELF :
171171
ParseSectionHeaders();
172172

173173
/// Scans the dynamic section and locates all dependent modules (shared
174-
/// libaries) populating m_filespec_ap. This method will compute the
174+
/// libraries) populating m_filespec_ap. This method will compute the
175175
/// dependent module list only once. Returns the number of dependent
176176
/// modules parsed.
177177
size_t

lldb/source/Plugins/Process/Linux/ProcessLinux.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ ProcessLinux::DoDestroy()
174174

175175
if (!HasExited())
176176
{
177-
// Shut down the private state thread as we will syncronize with events
177+
// Shut down the private state thread as we will synchronize with events
178178
// ourselves. Discard all current thread plans.
179179
PausePrivateStateThread();
180180
GetThreadList().DiscardThreadPlans();

lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ ProcessMonitor::LaunchArgs::~LaunchArgs()
444444
/// "drives" state changes in the debugger.
445445
///
446446
/// The second thread (@see OperationThread) is responsible for two things 1)
447-
/// lauching or attaching to the inferior process, and then 2) servicing
447+
/// launching or attaching to the inferior process, and then 2) servicing
448448
/// operations such as register reads/writes, stepping, etc. See the comments
449449
/// on the Operation class for more info as to why this is needed.
450450
ProcessMonitor::ProcessMonitor(ProcessLinux *process,
@@ -601,7 +601,7 @@ ProcessMonitor::Launch(LaunchArgs *args)
601601
// Let us have our own process group.
602602
setpgid(0, 0);
603603

604-
// Dup file discriptors if needed.
604+
// Dup file descriptors if needed.
605605
//
606606
// FIXME: If two or more of the paths are the same we needlessly open
607607
// the same file multiple times.

lldb/source/Plugins/Process/Linux/ProcessMonitor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ class ProcessMonitor
6565
ProcessLinux &
6666
GetProcess() { return *m_process; }
6767

68-
/// Returns a file descriptor to the controling terminal of the inferior
68+
/// Returns a file descriptor to the controlling terminal of the inferior
6969
/// process.
7070
///
71-
/// Reads from this file descriptor yeild both the standard output and
71+
/// Reads from this file descriptor yield both the standard output and
7272
/// standard error of this debugee. Even if stderr and stdout were
7373
/// redirected on launch it may still happen that data is available on this
7474
/// descriptor (if the inferior process opens /dev/tty, for example).

lldb/source/Plugins/Process/Linux/RegisterContextLinux.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class RegisterContextLinux
3030
/// Updates the register state of the associated thread after hitting a
3131
/// breakpoint (if that make sense for the architecture). Default
3232
/// implementation simply returns true for architectures which do not
33-
/// require any upadte.
33+
/// require any update.
3434
///
3535
/// @return
3636
/// True if the operation succeeded and false otherwise.

lldb/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,16 @@ g_reg_sets[k_num_register_sets] =
291291
(offsetof(RegisterContextLinux_x86_64::UserArea, i387) + \
292292
offsetof(RegisterContextLinux_x86_64::FPU, regname))
293293

294-
// Number of bytes needed to represet a GPR.
294+
// Number of bytes needed to represent a GPR.
295295
#define GPR_SIZE(reg) sizeof(((RegisterContextLinux_x86_64::GPR*)NULL)->reg)
296296

297-
// Number of bytes needed to represet a FPR.
297+
// Number of bytes needed to represent a FPR.
298298
#define FPR_SIZE(reg) sizeof(((RegisterContextLinux_x86_64::FPU*)NULL)->reg)
299299

300-
// Number of bytes needed to represet the i'th FP register.
300+
// Number of bytes needed to represent the i'th FP register.
301301
#define FP_SIZE sizeof(((RegisterContextLinux_x86_64::MMSReg*)NULL)->bytes)
302302

303-
// Number of bytes needed to represet an XMM register.
303+
// Number of bytes needed to represent an XMM register.
304304
#define XMM_SIZE sizeof(RegisterContextLinux_x86_64::XMMReg)
305305

306306
#define DEFINE_GPR(reg, alt, kind1, kind2, kind3, kind4) \

lldb/source/Plugins/Process/Linux/RegisterContextLinux_x86_64.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class RegisterContextLinux_x86_64
131131
FPU i387; // FPU registers.
132132
uint64_t tsize; // Text segment size.
133133
uint64_t dsize; // Data segment size.
134-
uint64_t ssize; // Stack segement size.
134+
uint64_t ssize; // Stack segment size.
135135
uint64_t start_code; // VM address of text.
136136
uint64_t start_stack; // VM address of stack bottom (top in rsp).
137137
int64_t signal; // Signal causing core dump.

lldb/source/Plugins/Process/MacOSX-User/source/MacOSX/MachTask.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ MachTask::ExceptionThread (void *arg)
477477
// MACH_RCV_TIMEOUT option with a zero timeout to grab all other current
478478
// exceptions for our process. After we have received the last pending
479479
// exception, we will get a timeout which enables us to then notify
480-
// our main thread that we have an exception bundle avaiable. We then wait
480+
// our main thread that we have an exception bundle available. We then wait
481481
// for the main thread to tell this exception thread to start trying to get
482482
// exceptions messages again and we start again with a mach_msg read with
483483
// infinite timeout.

lldb/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ ProcessMacOSX::DoDestroy ()
873873
Task().Resume();
874874
}
875875

876-
// NULL our task out as we have already retored all exception ports
876+
// NULL our task out as we have already restored all exception ports
877877
Task().Clear();
878878

879879
// Clear out any notion of the process we once were
@@ -1238,7 +1238,7 @@ ProcessMacOSX::STDIOThread(void *arg)
12381238
// MACH_RCV_TIMEOUT option with a zero timeout to grab all other current
12391239
// exceptions for our process. After we have received the last pending
12401240
// exception, we will get a timeout which enables us to then notify
1241-
// our main thread that we have an exception bundle avaiable. We then wait
1241+
// our main thread that we have an exception bundle available. We then wait
12421242
// for the main thread to tell this exception thread to start trying to get
12431243
// exceptions messages again and we start again with a mach_msg read with
12441244
// infinite timeout.
@@ -1410,7 +1410,7 @@ ProcessMacOSX::DoDetach()
14101410
// Resume our task
14111411
Task().Resume();
14121412

1413-
// NULL our task out as we have already retored all exception ports
1413+
// NULL our task out as we have already restored all exception ports
14141414
Task().Clear();
14151415

14161416
// Clear out any notion of the process we once were

lldb/source/Plugins/Process/MacOSX-User/source/ProcessMacOSXLog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ ProcessMacOSXLog::ListLogCategories (Stream *strm)
159159
"\ttask - log mach task calls\n"
160160
"\tthread - log thread events and activities\n"
161161
"\tstep - log step related activities\n"
162-
"\tverbose - enable verbose loggging\n"
162+
"\tverbose - enable verbose logging\n"
163163
"\twatch - log watchpoint related activities\n", ProcessMacOSX::GetPluginNameStatic());
164164
}
165165

0 commit comments

Comments
 (0)