From 48cd836f73a91f430cc8088d7be8159a08162f8c Mon Sep 17 00:00:00 2001 From: ian Date: Thu, 22 Feb 2018 18:52:33 +0000 Subject: runtime: funcfileline: get missing function name from symbol table Copy the idea of https://golang.org/cl/92756 to funcfileline, which is used by runtime.FuncForPC, runtime.(*Frames).Next, and others. Reviewed-on: https://go-review.googlesource.com/96175 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257913 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/runtime/runtime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libgo/runtime/runtime.h') diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 0fafe821441..0ffcf4bde9e 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -456,7 +456,8 @@ extern uintptr runtime_stacks_sys; struct backtrace_state; extern struct backtrace_state *__go_get_backtrace_state(void); -extern _Bool __go_file_line(uintptr, int, String*, String*, intgo *); +extern void __go_syminfo_fnname_callback(void*, uintptr_t, const char*, + uintptr_t, uintptr_t); extern void runtime_main(void*) __asm__(GOSYM_PREFIX "runtime.main"); -- cgit v1.2.1