Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
Summary: Another round of minor typo fixes.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D13026

llvm-svn: 248243
  • Loading branch information
waywardmonkeys committed Sep 22, 2015
1 parent f11e748 commit adb9982
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lldb/examples/python/symbolication.py
Expand Up @@ -223,7 +223,7 @@ def __init__(self, path, uuid = None):

@classmethod
def InitWithSBTargetAndSBModule(cls, target, module):
'''Initalize this Image object with a module from a target.'''
'''Initialize this Image object with a module from a target.'''
obj = cls(module.file.fullpath, module.uuid)
obj.resolved_path = module.platform_file.fullpath
obj.resolved = True
Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/summaries/cocoa/CFArray.py
Expand Up @@ -147,7 +147,7 @@ def update(self):
return
self.wrapper.update()

# this code acts as our defense against NULL and unitialized
# this code acts as our defense against NULL and uninitialized
# NSArray pointers, which makes it much longer than it would be otherwise
def make_wrapper(self):
logger = lldb.formatters.Logger.Logger()
Expand Down
4 changes: 2 additions & 2 deletions lldb/examples/synthetic/gnu_libstdcpp.py
Expand Up @@ -27,7 +27,7 @@ def value(self,node):
logger = lldb.formatters.Logger.Logger()
return node.GetValueAsUnsigned()

# Floyd's cyle-finding algorithm
# Floyd's cycle-finding algorithm
# try to detect if this list has a loop
def has_loop(self):
global _list_uses_loop_detector
Expand Down Expand Up @@ -154,7 +154,7 @@ def num_children_impl(self):
end_val = self.end.GetValueAsUnsigned(0)
# Before a vector has been constructed, it will contain bad values
# so we really need to be careful about the length we return since
# unitialized data can cause us to return a huge number. We need
# uninitialized data can cause us to return a huge number. We need
# to also check for any of the start, finish or end of storage values
# being zero (NULL). If any are, then this vector has not been
# initialized yet and we should return zero
Expand Down
4 changes: 2 additions & 2 deletions lldb/examples/synthetic/libcxx.py
Expand Up @@ -73,7 +73,7 @@ def num_children(self):
finish_val = self.finish.GetValueAsUnsigned(0)
# Before a vector has been constructed, it will contain bad values
# so we really need to be careful about the length we return since
# unitialized data can cause us to return a huge number. We need
# uninitialized data can cause us to return a huge number. We need
# to also check for any of the start, finish or end of storage values
# being zero (NULL). If any are, then this vector has not been
# initialized yet and we should return zero
Expand Down Expand Up @@ -219,7 +219,7 @@ def value(self,node):
logger = lldb.formatters.Logger.Logger()
return node.GetValueAsUnsigned()

# Floyd's cyle-finding algorithm
# Floyd's cycle-finding algorithm
# try to detect if this list has a loop
def has_loop(self):
global _list_uses_loop_detector
Expand Down
2 changes: 1 addition & 1 deletion lldb/include/lldb/lldb-private-types.h
Expand Up @@ -51,7 +51,7 @@ namespace lldb_private
// for this register will be valid. For example, the value list for ah
// would be eax (x86) or rax (x64).
uint32_t *invalidate_regs; // List of registers (terminated with LLDB_INVALID_REGNUM). If this value is not
// null, all registers in this list will be invalidateed when the value of this
// null, all registers in this list will be invalidated when the value of this
// register changes. For example, the invalidate list for eax would be rax
// ax, ah, and al.
} RegisterInfo;
Expand Down
2 changes: 1 addition & 1 deletion lldb/source/API/SBProcess.cpp
Expand Up @@ -409,7 +409,7 @@ SBProcess::GetAsyncProfileData(char *dst, size_t dst_len) const

Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
if (log)
log->Printf ("SBProcess(%p)::GetProfileData (dst=\"%.*s\", dst_len=%" PRIu64 ") => %" PRIu64,
log->Printf ("SBProcess(%p)::GetAsyncProfileData (dst=\"%.*s\", dst_len=%" PRIu64 ") => %" PRIu64,
static_cast<void*>(process_sp.get()),
static_cast<int>(bytes_read), dst,
static_cast<uint64_t>(dst_len),
Expand Down
2 changes: 1 addition & 1 deletion lldb/source/Core/RegisterValue.cpp
Expand Up @@ -217,7 +217,7 @@ RegisterValue::SetFromMemoryData (const RegisterInfo *reg_info,
{
buffer.byte_order = src_byte_order;
// Make sure to set the buffer length of the destination buffer to avoid
// problems due to uninitalized variables.
// problems due to uninitialized variables.
buffer.length = src_len;
}

Expand Down
2 changes: 1 addition & 1 deletion lldb/tools/debugserver/source/RNBRemote.cpp
Expand Up @@ -236,7 +236,7 @@ RNBRemote::CreatePacketTable ()
t.push_back (Packet (continue_with_sig, &RNBRemote::HandlePacket_C, NULL, "C", "Continue with signal"));
t.push_back (Packet (detach, &RNBRemote::HandlePacket_D, NULL, "D", "Detach gdb from remote system"));
// t.push_back (Packet (step_inferior_one_cycle, &RNBRemote::HandlePacket_UNIMPLEMENTED, NULL, "i", "Step inferior by one clock cycle"));
// t.push_back (Packet (signal_and_step_inf_one_cycle, &RNBRemote::HandlePacket_UNIMPLEMENTED, NULL, "I", "Signal inferior, then step one clock cyle"));
// t.push_back (Packet (signal_and_step_inf_one_cycle, &RNBRemote::HandlePacket_UNIMPLEMENTED, NULL, "I", "Signal inferior, then step one clock cycle"));
t.push_back (Packet (kill, &RNBRemote::HandlePacket_k, NULL, "k", "Kill"));
// t.push_back (Packet (restart, &RNBRemote::HandlePacket_UNIMPLEMENTED, NULL, "R", "Restart inferior"));
// t.push_back (Packet (search_mem_backwards, &RNBRemote::HandlePacket_UNIMPLEMENTED, NULL, "t", "Search memory backwards"));
Expand Down
Expand Up @@ -116,7 +116,7 @@ <h1 class="epydoc">Source Code for <a href="lldb.formatters.cpp.gnu_libstdcpp-mo
lldb.formatters.Logger.Logger" class="py-name" href="#" onclick="return doclink('link-23', 'Logger', 'link-2');">Logger</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">node</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Method lldb.SBValue.GetValueAsUnsigned()=lldb.SBValue-class.html#GetValueAsUnsigned"><a title="lldb.SBValue.GetValueAsUnsigned" class="py-name" href="#" onclick="return doclink('link-24', 'GetValueAsUnsigned', 'link-24');">GetValueAsUnsigned</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L29"></a><tt class="py-lineno"> 29</tt> <tt class="py-line"> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt> <tt class="py-line"> <tt class="py-comment"># Floyd's cyle-finding algorithm</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt> <tt class="py-line"> <tt class="py-comment"># Floyd's cycle-finding algorithm</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt> <tt class="py-line"> <tt class="py-comment"># try to detect if this list has a loop</tt> </tt>
<a name="StdListSynthProvider.has_loop"></a><div id="StdListSynthProvider.has_loop-def"><a name="L32"></a><tt class="py-lineno"> 32</tt> <a class="py-toggle" href="#" id="StdListSynthProvider.has_loop-toggle" onclick="return toggle('StdListSynthProvider.has_loop');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider-class.html#has_loop">has_loop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="StdListSynthProvider.has_loop-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="StdListSynthProvider.has_loop-expanded"><a name="L33"></a><tt class="py-lineno"> 33</tt> <tt class="py-line"> <tt class="py-keyword">global</tt> <tt id="link-25" class="py-name" targets="Variable lldb.formatters.cpp.gnu_libstdcpp._list_uses_loop_detector=lldb.formatters.cpp.gnu_libstdcpp-module.html#_list_uses_loop_detector,Variable lldb.formatters.cpp.libcxx._list_uses_loop_detector=lldb.formatters.cpp.libcxx-module.html#_list_uses_loop_detector"><a title="lldb.formatters.cpp.gnu_libstdcpp._list_uses_loop_detector
Expand Down Expand Up @@ -410,7 +410,7 @@ <h1 class="epydoc">Source Code for <a href="lldb.formatters.cpp.gnu_libstdcpp-mo
<a name="L163"></a><tt class="py-lineno">163</tt> <tt class="py-line"> <tt class="py-name">end_val</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">end</tt><tt class="py-op">.</tt><tt id="link-149" class="py-name"><a title="lldb.SBValue.GetValueAsUnsigned" class="py-name" href="#" onclick="return doclink('link-149', 'GetValueAsUnsigned', 'link-24');">GetValueAsUnsigned</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt> <tt class="py-line"> <tt class="py-comment"># Before a vector has been constructed, it will contain bad values</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt> <tt class="py-line"> <tt class="py-comment"># so we really need to be careful about the length we return since</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt> <tt class="py-line"> <tt class="py-comment"># unitialized data can cause us to return a huge number. We need</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt> <tt class="py-line"> <tt class="py-comment"># uninitialized data can cause us to return a huge number. We need</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt> <tt class="py-line"> <tt class="py-comment"># to also check for any of the start, finish or end of storage values</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt> <tt class="py-line"> <tt class="py-comment"># being zero (NULL). If any are, then this vector has not been </tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt> <tt class="py-line"> <tt class="py-comment"># initialized yet and we should return zero</tt> </tt>
Expand Down
Expand Up @@ -188,7 +188,7 @@ <h1 class="epydoc">Source Code for <a href="lldb.formatters.cpp.libcxx-module.ht
<a name="L73"></a><tt class="py-lineno"> 73</tt> <tt class="py-line"> <tt class="py-name">finish_val</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">finish</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="lldb.SBValue.GetValueAsUnsigned" class="py-name" href="#" onclick="return doclink('link-56', 'GetValueAsUnsigned', 'link-21');">GetValueAsUnsigned</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt> <tt class="py-line"> <tt class="py-comment"># Before a vector has been constructed, it will contain bad values</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt> <tt class="py-line"> <tt class="py-comment"># so we really need to be careful about the length we return since</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt> <tt class="py-line"> <tt class="py-comment"># unitialized data can cause us to return a huge number. We need</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt> <tt class="py-line"> <tt class="py-comment"># uninitialized data can cause us to return a huge number. We need</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt> <tt class="py-line"> <tt class="py-comment"># to also check for any of the start, finish or end of storage values</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt> <tt class="py-line"> <tt class="py-comment"># being zero (NULL). If any are, then this vector has not been </tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt> <tt class="py-line"> <tt class="py-comment"># initialized yet and we should return zero</tt> </tt>
Expand Down Expand Up @@ -543,7 +543,7 @@ <h1 class="epydoc">Source Code for <a href="lldb.formatters.cpp.libcxx-module.ht
lldb.formatters.Logger.Logger" class="py-name" href="#" onclick="return doclink('link-172', 'Logger', 'link-3');">Logger</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">node</tt><tt class="py-op">.</tt><tt id="link-173" class="py-name"><a title="lldb.SBValue.GetValueAsUnsigned" class="py-name" href="#" onclick="return doclink('link-173', 'GetValueAsUnsigned', 'link-21');">GetValueAsUnsigned</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L221"></a><tt class="py-lineno">221</tt> <tt class="py-line"> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt> <tt class="py-line"> <tt class="py-comment"># Floyd's cyle-finding algorithm</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt> <tt class="py-line"> <tt class="py-comment"># Floyd's cycle-finding algorithm</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt> <tt class="py-line"> <tt class="py-comment"># try to detect if this list has a loop</tt> </tt>
<a name="stdlist_SynthProvider.has_loop"></a><div id="stdlist_SynthProvider.has_loop-def"><a name="L224"></a><tt class="py-lineno">224</tt> <a class="py-toggle" href="#" id="stdlist_SynthProvider.has_loop-toggle" onclick="return toggle('stdlist_SynthProvider.has_loop');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lldb.formatters.cpp.libcxx.stdlist_SynthProvider-class.html#has_loop">has_loop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="stdlist_SynthProvider.has_loop-collapsed" style="display:none;" pad="+++" indent="++++++++++++"></div><div id="stdlist_SynthProvider.has_loop-expanded"><a name="L225"></a><tt class="py-lineno">225</tt> <tt class="py-line"> <tt class="py-keyword">global</tt> <tt id="link-174" class="py-name" targets="Variable lldb.formatters.cpp.gnu_libstdcpp._list_uses_loop_detector=lldb.formatters.cpp.gnu_libstdcpp-module.html#_list_uses_loop_detector,Variable lldb.formatters.cpp.libcxx._list_uses_loop_detector=lldb.formatters.cpp.libcxx-module.html#_list_uses_loop_detector"><a title="lldb.formatters.cpp.gnu_libstdcpp._list_uses_loop_detector
Expand Down

0 comments on commit adb9982

Please sign in to comment.