runtime: get missing function name from symbol table
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 8 Feb 2018 15:37:43 +0000 (15:37 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 8 Feb 2018 15:37:43 +0000 (15:37 +0000)
commit74e6f14adb7057b29d361cc35c76f16663d1e649
treef26b729ad50f3c18a319ff63f115f7eeb5c01eb5
parent080eaf7a88ee8039b6acf6c10394db18e9f34615
runtime: get missing function name from symbol table

    If we trace back through code that has no debug info, as when calling
    through C code compiled with -g0, we won't have a function name.
    Try to fetch the function name using the symbol table.

    Adding the test case revealed that gotest failed to use the gccgo tag
    when matching files, so add that.

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

From-SVN: r257495
gcc/go/gofrontend/MERGE
libgo/go/runtime/crash_gccgo_test.go [new file with mode: 0644]
libgo/go/runtime/testdata/testprogcgo/traceback_gccgo.go [new file with mode: 0644]
libgo/go/runtime/testdata/testprogcxx/main.go [new file with mode: 0644]
libgo/go/runtime/testdata/testprogcxx/traceback.cc [new file with mode: 0644]
libgo/go/runtime/testdata/testprogcxx/traceback.go [new file with mode: 0644]
libgo/runtime/go-callers.c
libgo/testsuite/gotest