2017-09-01 13:34:13 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "_cgo_export.h"
|
|
|
|
|
2020-01-21 17:11:20 +00:00
|
|
|
#ifdef __amd64__
|
2017-09-01 13:34:13 +00:00
|
|
|
#define BREAKPOINT asm("int3;")
|
2020-03-10 16:34:40 +00:00
|
|
|
#elif __i386__
|
|
|
|
#define BREAKPOINT asm("int3;")
|
2020-01-21 17:11:20 +00:00
|
|
|
#elif __aarch64__
|
|
|
|
#define BREAKPOINT asm("brk 0;")
|
|
|
|
#endif
|
2017-09-01 13:34:13 +00:00
|
|
|
|
|
|
|
void helloworld_pt2(int x) {
|
|
|
|
BREAKPOINT;
|
|
|
|
helloWorld(x+1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void helloworld(int x) {
|
|
|
|
helloworld_pt2(x+1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void helloworld_pt4(int x) {
|
|
|
|
BREAKPOINT;
|
|
|
|
helloWorld2(x+1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void helloworld_pt3(int x) {
|
|
|
|
helloworld_pt4(x+1);
|
|
|
|
}
|