Skip to content

Commit e9264b7

Browse files
committed
[lldb] NFC: Fix trivial typo in comments, documents, and messages
Differential Revision: https://reviews.llvm.org/D77460
1 parent ad08ecb commit e9264b7

File tree

91 files changed

+133
-133
lines changed

Some content is hidden

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

91 files changed

+133
-133
lines changed

lldb/bindings/interface/SBBlock.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public:
152152
sibling = property(GetSibling, None, doc='''A read only property that returns the same result as GetSibling().''')
153153
name = property(GetInlinedName, None, doc='''A read only property that returns the same result as GetInlinedName().''')
154154
inlined_block = property(GetContainingInlinedBlock, None, doc='''A read only property that returns the same result as GetContainingInlinedBlock().''')
155-
range = property(get_ranges_access_object, None, doc='''A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAdddress (find the range that contains the specified lldb.SBAddress like "pc_range = lldb.frame.block.range[frame.addr]").''')
155+
range = property(get_ranges_access_object, None, doc='''A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAddress (find the range that contains the specified lldb.SBAddress like "pc_range = lldb.frame.block.range[frame.addr]").''')
156156
ranges = property(get_ranges_array, None, doc='''A read only property that returns a list() object that contains all of the address ranges for the block.''')
157157
num_ranges = property(GetNumRanges, None, doc='''A read only property that returns the same result as GetNumRanges().''')
158158
%}

lldb/bindings/interface/SBExpressionOptions.i

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public:
5959
uint32_t
6060
GetTimeoutInMicroSeconds () const;
6161

62-
%feature("docstring", "Sets the timeout in microseconds to run the expression for. If try all threads is set to true and the expression doesn't complete within the specified timeout, all threads will be resumed for the same timeout to see if the expresson will finish.") SetTimeoutInMicroSeconds;
62+
%feature("docstring", "Sets the timeout in microseconds to run the expression for. If try all threads is set to true and the expression doesn't complete within the specified timeout, all threads will be resumed for the same timeout to see if the expression will finish.") SetTimeoutInMicroSeconds;
6363
void
6464
SetTimeoutInMicroSeconds (uint32_t timeout = 0);
6565

@@ -80,7 +80,7 @@ public:
8080
bool
8181
GetStopOthers () const;
8282

83-
%feature("docstring", "Sets whether to stop other threads at all while running expressins. If false, TryAllThreads does nothing.") SetTryAllThreads;
83+
%feature("docstring", "Sets whether to stop other threads at all while running expressions. If false, TryAllThreads does nothing.") SetTryAllThreads;
8484
void
8585
SetStopOthers (bool stop_others = true);
8686

lldb/bindings/interface/SBFile.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public:
9292
SBFile, call SBFile.Close().
9393
9494
If there is no underlying python file to unwrap, GetFile will
95-
use the file descriptor, if availble to create a new python
95+
use the file descriptor, if available to create a new python
9696
file object using `open(fd, mode=..., closefd=False)`
9797
");
9898
FileSP GetFile();

lldb/docs/lldb-platform-packets.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ incompatible with the flags that gdb specifies.
351351
// response is F followed by the opened file descriptor in base 10.
352352
// "F-1,errno" with the errno if an error occurs.
353353
//
354-
// COMPATABILITY
354+
// COMPATIBILITY
355355
// The gdb-remote serial protocol documentatio defines a vFile:open:
356356
// packet which uses incompatible flag values, e.g. 1 means O_WRONLY
357357
// in gdb's vFile:open:, but it means eOpenOptionRead to lldb's

lldb/examples/interposing/darwin/fd_interposing/FDInterposing.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ typedef std::tr1::shared_ptr<String> StringSP;
147147

148148
// FDEvent
149149
//
150-
// A class that describes a file desciptor event.
150+
// A class that describes a file descriptor event.
151151
//
152152
// File descriptor events fall into one of two categories: create events
153153
// and delete events.
@@ -185,7 +185,7 @@ class FDEvent {
185185
// The frames for the stack backtrace for this event
186186
Frames m_frames;
187187
// If this is a file descriptor delete event, this might contain
188-
// the correspoding file descriptor create event
188+
// the corresponding file descriptor create event
189189
FDEventSP m_create_event_sp;
190190
// The file descriptor for this event
191191
int m_fd;
@@ -232,18 +232,18 @@ typedef std::map<int, FDEventArray> FDEventMap;
232232
// event is detected, the open event will be removed and placed into
233233
// the close event so if something tries to double close a file
234234
// descriptor we can show the previous close event and the file
235-
// desctiptor event that created it. When a new file descriptor create
235+
// descriptor event that created it. When a new file descriptor create
236236
// event comes in, we will remove the previous one for that file
237-
// desctiptor unless the environment variable
237+
// descriptor unless the environment variable
238238
// "FileDescriptorStackLoggingNoCompact"
239-
// is set. The file desctiptor history can be accessed using the
239+
// is set. The file descriptor history can be accessed using the
240240
// get_fd_history() function.
241241
static FDEventMap g_fd_event_map;
242242
// A mutex to protect access to our data structures in g_fd_event_map
243243
// and also our logging messages
244244
static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER;
245245
// Log all file descriptor create and close events by default. Only log
246-
// warnings and erros if the "FileDescriptorMinimalLogging" environment
246+
// warnings and errors if the "FileDescriptorMinimalLogging" environment
247247
// variable is set.
248248
static int g_log_all_calls = 1;
249249
// We compact the file descriptor events by default. Set the environment
@@ -498,7 +498,7 @@ void save_backtrace(int fd, int err, const StringSP &string_sp,
498498
fd);
499499
} else if (g_compact) {
500500
// We are compacting so we remove previous create event
501-
// when we get the correspinding delete event
501+
// when we get the corresponding delete event
502502
event_array.pop_back();
503503
}
504504
} else {
@@ -518,7 +518,7 @@ void save_backtrace(int fd, int err, const StringSP &string_sp,
518518
// that this close if for...
519519
fd_event_sp->SetCreateEvent(event_array.back());
520520
// We are compacting so we remove previous create event
521-
// when we get the correspinding delete event
521+
// when we get the corresponding delete event
522522
event_array.pop_back();
523523
}
524524
}

lldb/examples/python/mach_o.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ def compare(self, rhs):
965965
result = False
966966
print('error: section %s is missing in %s' % (lhs_section.sectname, rhs.path))
967967
else:
968-
print('error: comaparing a %s mach-o file with a %s mach-o file is not supported' % (self.type, rhs.type))
968+
print('error: comparing a %s mach-o file with a %s mach-o file is not supported' % (self.type, rhs.type))
969969
result = False
970970
if not result:
971971
print('error: mach files differ')

lldb/include/lldb/Symbol/LineEntry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct LineEntry {
118118
/// range.
119119
///
120120
/// If the initial LineEntry this method is called on is a line #0, only the
121-
/// range of contiuous LineEntries with line #0 will be included in the
121+
/// range of continuous LineEntries with line #0 will be included in the
122122
/// complete range.
123123
///
124124
/// @param[in] include_inlined_functions

lldb/include/lldb/Symbol/SymbolFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class SymbolFile : public PluginInterface {
182182
};
183183
/// If \c type_uid points to an array type, return its characteristics.
184184
/// To support variable-length array types, this function takes an
185-
/// optional \p ExtecutionContext. If \c exe_ctx is non-null, the
185+
/// optional \p ExecutionContext. If \c exe_ctx is non-null, the
186186
/// dynamic characteristics for that context are returned.
187187
virtual llvm::Optional<ArrayInfo>
188188
GetDynamicArrayInfoForUID(lldb::user_id_t type_uid,

lldb/include/lldb/Target/Platform.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -827,18 +827,18 @@ class Platform : public PluginInterface {
827827
virtual size_t ConnectToWaitingProcesses(lldb_private::Debugger &debugger,
828828
lldb_private::Status &error);
829829

830-
/// Gather all of crash informations into a structured data dictionnary.
830+
/// Gather all of crash informations into a structured data dictionary.
831831
///
832832
/// If the platform have a crashed process with crash information entries,
833-
/// gather all the entries into an structured data dictionnary or return a
834-
/// nullptr. This dictionnary is generic and extensible, as it contains an
833+
/// gather all the entries into an structured data dictionary or return a
834+
/// nullptr. This dictionary is generic and extensible, as it contains an
835835
/// array for each different type of crash information.
836836
///
837837
/// \param[in] process
838838
/// The crashed process.
839839
///
840840
/// \return
841-
/// A structured data dictionnary containing at each entry, the crash
841+
/// A structured data dictionary containing at each entry, the crash
842842
/// information type as the entry key and the matching an array as the
843843
/// entry value. \b nullptr if not implemented or if the process has no
844844
/// crash information entry. \b error if an error occured.

lldb/include/lldb/Target/Process.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2922,7 +2922,7 @@ void PruneThreadPlans();
29222922
DISALLOW_COPY_AND_ASSIGN(Process);
29232923
};
29242924

2925-
/// RAII guard that should be aquired when an utility function is called within
2925+
/// RAII guard that should be acquired when an utility function is called within
29262926
/// a given process.
29272927
class UtilityFunctionScope {
29282928
Process *m_process;

0 commit comments

Comments
 (0)