runtime: get missing function name from symbol table
commit22b83eeea664106638d6d01952bb9f3207b039b5
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Feb 2018 15:37:43 +0000 (8 15:37 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Feb 2018 15:37:43 +0000 (8 15:37 +0000)
treef26b729ad50f3c18a319ff63f115f7eeb5c01eb5
parentf90e86cfd8ce6875498d527bab2275ae7431cb89
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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257495 138bc75d-0d04-0410-961f-82ee72b054a4
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