Skip to content

Commit

Permalink
[lldb/testsuite] Tweak TestBreakpointLocations.py to pass for arm64
Browse files Browse the repository at this point in the history
The test checks that we correctly set the right number of breakpoints
when breaking into an `always_inline` function. The line of this
funstion selected for this test was the return statement, but with
recent compiler, this return statement doesn't necessarily exist after
inlining, even at O0.

Switch the breakpoint to a different line of the inline function.
  • Loading branch information
fredriss committed Mar 19, 2020
1 parent 52b2bae commit c182be2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -14,9 +14,9 @@ func_inlined (void)
{
static int func_inline_call_count = 0;
printf ("Called func_inlined.\n");
++func_inline_call_count;
++func_inline_call_count; // Set break point at this line.
printf ("Returning func_inlined call count: %d.\n", func_inline_call_count);
return func_inline_call_count; // Set break point at this line.
return func_inline_call_count;
}

extern int func_inlined (void);
Expand Down

0 comments on commit c182be2

Please sign in to comment.