summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/c
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/c')
-rw-r--r--lldb/test/lang/c/stepping/TestStepAndBreakpoints.py12
-rw-r--r--lldb/test/lang/c/stepping/main.c8
2 files changed, 10 insertions, 10 deletions
diff --git a/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py b/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py
index 903b2fe7f49..74d509bdc85 100644
--- a/lldb/test/lang/c/stepping/TestStepAndBreakpoints.py
+++ b/lldb/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/lldb/test/lang/c/stepping/main.c b/lldb/test/lang/c/stepping/main.c
index cd72cac4a25..d8b4a2da761 100644
--- a/lldb/test/lang/c/stepping/main.c
+++ b/lldb/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.
OpenPOWER on IntegriCloud