projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d28b0b0
)
runtime: Implement runtime.Callers.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Mon, 5 Mar 2012 17:07:37 +0000
(17:07 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Mon, 5 Mar 2012 17:07:37 +0000
(17:07 +0000)
From-SVN: r184944
libgo/runtime/go-callers.c
patch
|
blob
|
history
diff --git
a/libgo/runtime/go-callers.c
b/libgo/runtime/go-callers.c
index 65babbe12215360bd6d5488aee740090aaa71e9d..0089c67e0cd70fdf4ac3c01703c5b18ae2a34bec 100644
(file)
--- a/
libgo/runtime/go-callers.c
+++ b/
libgo/runtime/go-callers.c
@@
-55,3
+55,12
@@
runtime_callers (int32 skip, uintptr *pcbuf, int32 m)
_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);
+}