Files
clang-p2996/lldb/test/API/commands/frame/recognizer/main.c
Adrian Vogelsgesang d8d252fe96 [lldb] Add support for disabling frame recognizers (#109219)
Sometimes you only want to temporarily disable a frame recognizer
instead of deleting it. In particular, when dealing with one of the
builtin frame recognizers, which cannot be restored after deletion.

To be able to write test cases for this functionality, I also changed
`lldb/test/API/commands/frame/recognizer` to use normal C instead of
Objective-C
2024-09-20 22:17:42 +02:00

18 lines
299 B
C

#include <stdio.h>
void foo(int a, int b) { printf("%d %d\n", a, b); }
void bar(int *ptr) { printf("%d\n", *ptr); }
void nested(int *ptr) { bar(ptr); }
void baz(int *ptr) { nested(ptr); }
int main(int argc, const char *argv[]) {
foo(42, 56);
int i = 78;
bar(&i);
baz(&i);
return 0;
}