Files
clang-p2996/lldb/test/API/functionalities/thread/step_until/main.c
Pavel Labath f66a5e220c [lldb] Fix SBThread::StepOverUntil for discontinuous functions (#123046)
I think the only issue here was that we would erroneously consider
functions which are "in the middle" of the function were stepping to as
a part of the function, and would try to step into them (likely stepping
out of the function instead) instead of giving up early.
2025-01-17 12:13:30 +01:00

29 lines
610 B
C

#include <stdio.h>
/* The return statements are purposefully so simple, and
* unrelated to the program, just to achieve consistent
* debug line tables, across platforms, that are not
* dependent on compiler optimzations. */
int foo(int x) { return x; /* In foo */ }
int call_me(int argc) {
printf ("At the start, argc: %d.\n", argc);
if (argc < 2)
return 1; /* Less than 2. */
else
return argc; /* Greater than or equal to 2. */
}
int
main(int argc, char **argv)
{
int res = 0;
res = call_me(argc); /* Back out in main. */
if (res)
printf("Result: %d. \n", res);
return 0;
}