aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2015-07-02 18:48:40 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2015-07-02 18:48:40 +0000
commitabb3e2d47067cc0272b023e23db2557c199db9a4 (patch)
treed5bc494b07233e6ce0af65da5572759a80f07c73
parente2d7d8ed7431884190f1c47b9d90a395652b8ff2 (diff)
downloadlldb-abb3e2d47067cc0272b023e23db2557c199db9a4.tar.gz
Fix typos
Summary: Fixes more typos. Reviewers: clayborg Subscribers: lldb-commits-list Differential Revision: http://reviews.llvm.org/D10898 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@241289 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--examples/synthetic/unordered_multi.py6
-rw-r--r--source/Plugins/Platform/Linux/PlatformLinux.cpp2
-rw-r--r--source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp2
-rw-r--r--source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp2
-rw-r--r--source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp2
-rw-r--r--test/lang/c/stepping/TestStepAndBreakpoints.py12
-rw-r--r--test/lang/c/stepping/main.c8
7 files changed, 17 insertions, 17 deletions
diff --git a/examples/synthetic/unordered_multi.py b/examples/synthetic/unordered_multi.py
index a5cb981b4..15bcb02a5 100644
--- a/examples/synthetic/unordered_multi.py
+++ b/examples/synthetic/unordered_multi.py
@@ -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
diff --git a/source/Plugins/Platform/Linux/PlatformLinux.cpp b/source/Plugins/Platform/Linux/PlatformLinux.cpp
index b4e13d108..df44281d2 100644
--- a/source/Plugins/Platform/Linux/PlatformLinux.cpp
+++ b/source/Plugins/Platform/Linux/PlatformLinux.cpp
@@ -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
diff --git a/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp b/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
index e9761474a..1849d3b2a 100644
--- a/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
+++ b/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
@@ -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();
diff --git a/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
index 2acc81bb4..fc2ff3082 100644
--- a/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
+++ b/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
@@ -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 ();
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index f0cce2c0e..ae0a2f5e6 100644
--- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -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;
diff --git a/test/lang/c/stepping/TestStepAndBreakpoints.py b/test/lang/c/stepping/TestStepAndBreakpoints.py
index 903b2fe7f..74d509bdc 100644
--- a/test/lang/c/stepping/TestStepAndBreakpoints.py
+++ b/test/lang/c/stepping/TestStepAndBreakpoints.py
@@ -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]
diff --git a/test/lang/c/stepping/main.c b/test/lang/c/stepping/main.c
index cd72cac4a..d8b4a2da7 100644
--- a/test/lang/c/stepping/main.c
+++ b/test/lang/c/stepping/main.c
@@ -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.