Message ID | mcrd38rdlic.fsf@dhcp-172-18-216-180.mtv.corp.google.com |
---|---|
State | New |
Headers | show |
diff -r 2f1b1ab1b4d9 libgo/runtime/go-callers.c --- a/libgo/runtime/go-callers.c Sun Mar 04 22:37:34 2012 -0800 +++ b/libgo/runtime/go-callers.c Mon Mar 05 09:06:45 2012 -0800 @@ -55,3 +55,12 @@ _Unwind_Backtrace (backtrace, &arg); return arg.index; } + +int Callers (int, struct __go_open_array) + __asm__ ("libgo_runtime.runtime.Callers"); + +int +Callers (int skip, struct __go_open_array pc) +{ + return runtime_callers (skip, (uintptr *) pc.__values, pc.__count); +}