runtime: just do file/line lookup in C, move Func to Go
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 14 Oct 2016 17:20:40 +0000 (17:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 14 Oct 2016 17:20:40 +0000 (17:20 +0000)
commitdb2fb304fe27afd8939aa94a4b11f050e6f625b3
tree9d0eff081f71ed2e0ceaa851807623afe4a7f286
parentd2c4425e86310d44aa8e9f9d91b49e2e61237ef2
runtime: just do file/line lookup in C, move Func to Go

    In order to port stack backtraces to Go, we need the ability to look up
    file/line information for PC values without allocating memory.  This
    patch moves the handling of Func from C code to Go code, and simplifies
    the C code to just look up function/file/line/entry information for a PC.

    Reviewed-on: https://go-review.googlesource.com/31150

From-SVN: r241172
gcc/go/gofrontend/MERGE
libgo/go/runtime/symtab.go
libgo/runtime/go-caller.c
libgo/runtime/runtime.h