diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-02-08 15:37:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-02-08 15:37:43 +0000 |
commit | 74e6f14adb7057b29d361cc35c76f16663d1e649 (patch) | |
tree | f26b729ad50f3c18a319ff63f115f7eeb5c01eb5 /libgo/testsuite | |
parent | 080eaf7a88ee8039b6acf6c10394db18e9f34615 (diff) | |
download | gcc-74e6f14adb7057b29d361cc35c76f16663d1e649.tar.gz |
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
Diffstat (limited to 'libgo/testsuite')
-rwxr-xr-x | libgo/testsuite/gotest | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index f5c908adef8..f978042cccc 100755 --- a/libgo/testsuite/gotest +++ b/libgo/testsuite/gotest @@ -348,18 +348,18 @@ x) fi match=false ;; - $goos | $goarch | cgo | go1.[0-9]) + $goos | $goarch | cgo | gccgo | go1.[0-9]) match=true ;; - "!"$goos | "!"$goarch | "!cgo" | "!"go1.[0-9]) + "!"$goos | "!"$goarch | "!cgo" | "!gccgo" | "!"go1.[0-9]) ;; *,*) cmatch=true for ctag in `echo $tag | sed -e 's/,/ /g'`; do case $ctag in - $goos | $goarch | cgo | go1.[0-9]) + $goos | $goarch | cgo | gccgo | go1.[0-9]) ;; - "!"$goos | "!"$goarch | "!cgo" | "!"go1.[0-9]) + "!"$goos | "!"$goarch | "!cgo" | "!gccgo" | "!"go1.[0-9]) cmatch=false ;; "!"*) |