Fix typos
Summary: Fixes more typos. Reviewers: clayborg Subscribers: lldb-commits-list Differential Revision: http://reviews.llvm.org/D10898 llvm-svn: 241289
This commit is contained in:
parent
b1ca4eb6ae
commit
a868c13c51
|
@ -15,7 +15,7 @@ class libcxx_hash_table_SynthProvider:
|
|||
self.next_element = None
|
||||
self.bucket_count = None
|
||||
try:
|
||||
# unordered_map is made up a a hash_map, which has 4 pieces in it:
|
||||
# unordered_map is made up of a hash_map, which has 4 pieces in it:
|
||||
# bucket list :
|
||||
# array of buckets
|
||||
# p1 (pair):
|
||||
|
@ -27,7 +27,7 @@ class libcxx_hash_table_SynthProvider:
|
|||
# first - max_load_factor
|
||||
# second - equality operator function
|
||||
#
|
||||
# For display, we actually dont need to go inside the buckets, since 'p1' has a way to iterate over all
|
||||
# For display, we actually don't need to go inside the buckets, since 'p1' has a way to iterate over all
|
||||
# the elements directly.
|
||||
#
|
||||
# We will calculate other values about the map because they will be useful for the summary.
|
||||
|
@ -46,7 +46,7 @@ class libcxx_hash_table_SynthProvider:
|
|||
logger >> "Num elements = %r" % self.num_elements
|
||||
|
||||
# save the pointers as we get them
|
||||
# -- dont access this first element if num_element==0!
|
||||
# -- don't access this first element if num_element==0!
|
||||
self.elements_cache = []
|
||||
if self.num_elements:
|
||||
self.next_element = self.begin_ptr
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include "../../Process/Linux/NativeProcessLinux.h"
|
||||
#endif
|
||||
|
||||
// Define these constants from Linux mman.h for use when targetting
|
||||
// Define these constants from Linux mman.h for use when targeting
|
||||
// remote linux systems even when host has different values.
|
||||
#define MAP_PRIVATE 2
|
||||
#define MAP_ANON 0x20
|
||||
|
|
|
@ -80,7 +80,7 @@ PlatformSP
|
|||
PlatformDarwinKernel::CreateInstance (bool force, const ArchSpec *arch)
|
||||
{
|
||||
// This is a special plugin that we don't want to activate just based on an ArchSpec for normal
|
||||
// userlnad debugging. It is only useful in kernel debug sessions and the DynamicLoaderDarwinPlugin
|
||||
// userland debugging. It is only useful in kernel debug sessions and the DynamicLoaderDarwinPlugin
|
||||
// (or a user doing 'platform select') will force the creation of this Platform plugin.
|
||||
if (force == false)
|
||||
return PlatformSP();
|
||||
|
|
|
@ -582,7 +582,7 @@ ProcessKDP::UpdateThreadList (ThreadList &old_thread_list, ThreadList &new_threa
|
|||
log->Printf ("ProcessKDP::%s (pid = %" PRIu64 ")", __FUNCTION__, GetID());
|
||||
|
||||
// Even though there is a CPU mask, it doesn't mean we can see each CPU
|
||||
// indivudually, there is really only one. Lets call this thread 1.
|
||||
// individually, there is really only one. Lets call this thread 1.
|
||||
ThreadSP thread_sp (old_thread_list.FindThreadByProtocolID(g_kernel_tid, false));
|
||||
if (!thread_sp)
|
||||
thread_sp = GetKernelThread ();
|
||||
|
|
|
@ -1113,7 +1113,7 @@ GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse
|
|||
{
|
||||
continue_after_async = false;
|
||||
|
||||
// We didn't get a a SIGINT or SIGSTOP, so try for a
|
||||
// We didn't get a SIGINT or SIGSTOP, so try for a
|
||||
// very brief time (1 ms) to get another stop reply
|
||||
// packet to make sure it doesn't get in the way
|
||||
StringExtractorGDBRemote extra_stop_reply_packet;
|
||||
|
|
|
@ -185,17 +185,17 @@ class TestCStepping(TestBase):
|
|||
self.assertTrue (thread.GetFrameAtIndex(0).GetLineEntry().GetLine() == current_line)
|
||||
self.assertTrue (thread.GetFrameAtIndex(0).GetLineEntry().GetFileSpec() == current_file)
|
||||
|
||||
# Now we are going to test step in targetting a function:
|
||||
# Now we are going to test step in targeting a function:
|
||||
|
||||
break_in_b.SetEnabled (False)
|
||||
|
||||
break_before_complex_1 = target.BreakpointCreateBySourceRegex ('// Stop here to try step in targetting b.', self.main_source_spec)
|
||||
break_before_complex_1 = target.BreakpointCreateBySourceRegex ('// Stop here to try step in targeting b.', self.main_source_spec)
|
||||
self.assertTrue(break_before_complex_1, VALID_BREAKPOINT)
|
||||
|
||||
break_before_complex_2 = target.BreakpointCreateBySourceRegex ('// Stop here to try step in targetting complex.', self.main_source_spec)
|
||||
break_before_complex_2 = target.BreakpointCreateBySourceRegex ('// Stop here to try step in targeting complex.', self.main_source_spec)
|
||||
self.assertTrue(break_before_complex_2, VALID_BREAKPOINT)
|
||||
|
||||
break_before_complex_3 = target.BreakpointCreateBySourceRegex ('// Stop here to step targetting b and hitting breakpoint.', self.main_source_spec)
|
||||
break_before_complex_3 = target.BreakpointCreateBySourceRegex ('// Stop here to step targeting b and hitting breakpoint.', self.main_source_spec)
|
||||
self.assertTrue(break_before_complex_3, VALID_BREAKPOINT)
|
||||
|
||||
break_before_complex_4 = target.BreakpointCreateBySourceRegex ('// Stop here to make sure bogus target steps over.', self.main_source_spec)
|
||||
|
@ -218,7 +218,7 @@ class TestCStepping(TestBase):
|
|||
thread.StepInto ("complex")
|
||||
self.assertTrue (thread.GetFrameAtIndex(0).GetFunctionName() == "complex")
|
||||
|
||||
# Now continue out and stop at the next call to complex. This time enable breakpoints in a and c and then step targetting b:
|
||||
# Now continue out and stop at the next call to complex. This time enable breakpoints in a and c and then step targeting b:
|
||||
threads = lldbutil.continue_to_breakpoint (process, break_before_complex_3)
|
||||
self.assertTrue (len(threads) == 1)
|
||||
thread = threads[0]
|
||||
|
@ -241,7 +241,7 @@ class TestCStepping(TestBase):
|
|||
process.Continue()
|
||||
self.assertTrue (thread.GetFrameAtIndex(0).GetFunctionName() == "b")
|
||||
|
||||
# Now continue out and stop at the next call to complex. This time enable breakpoints in a and c and then step targetting b:
|
||||
# Now continue out and stop at the next call to complex. This time enable breakpoints in a and c and then step targeting b:
|
||||
threads = lldbutil.continue_to_breakpoint (process, break_before_complex_4)
|
||||
self.assertTrue (len(threads) == 1)
|
||||
thread = threads[0]
|
||||
|
|
|
@ -42,7 +42,7 @@ int c(int val)
|
|||
|
||||
int complex (int first, int second, int third)
|
||||
{
|
||||
return first + second + third; // Step in targetting complex should stop here
|
||||
return first + second + third; // Step in targeting complex should stop here
|
||||
}
|
||||
|
||||
int main (int argc, char const *argv[])
|
||||
|
@ -56,11 +56,11 @@ int main (int argc, char const *argv[])
|
|||
int A3 = a(3); // frame select 1, thread step-out while stopped at "c(3)"
|
||||
printf("a(3) returns %d\n", A3);
|
||||
|
||||
int A4 = complex (a(1), b(2), c(3)); // Stop here to try step in targetting b.
|
||||
int A4 = complex (a(1), b(2), c(3)); // Stop here to try step in targeting b.
|
||||
|
||||
int A5 = complex (a(2), b(3), c(4)); // Stop here to try step in targetting complex.
|
||||
int A5 = complex (a(2), b(3), c(4)); // Stop here to try step in targeting complex.
|
||||
|
||||
int A6 = complex (a(4), b(5), c(6)); // Stop here to step targetting b and hitting breakpoint.
|
||||
int A6 = complex (a(4), b(5), c(6)); // Stop here to step targeting b and hitting breakpoint.
|
||||
|
||||
int A7 = complex (a(5), b(6), c(7)); // Stop here to make sure bogus target steps over.
|
||||
|
||||
|
|
Loading…
Reference in New Issue