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
18 lines
299 B
C
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;
|
|
}
|