diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-02-22 18:52:33 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-02-22 18:52:33 +0000 |
commit | afedc99bd2e1f2c8b64e3deaf5ef4e1231a756af (patch) | |
tree | 5eca75e24abe6155adb44ab8c29ea40cb0bea840 /libgo/runtime/runtime.h | |
parent | 35e7db41cab1a2b134b8ccd4407675ab20fde578 (diff) | |
download | gcc-afedc99bd2e1f2c8b64e3deaf5ef4e1231a756af.zip gcc-afedc99bd2e1f2c8b64e3deaf5ef4e1231a756af.tar.gz gcc-afedc99bd2e1f2c8b64e3deaf5ef4e1231a756af.tar.bz2 |
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
From-SVN: r257913
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 0fafe82..0ffcf4b 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"); |