runtime: don't always show frames with no function in traceback

If there is no function name, the traceback is generally
uninformative.  In earlier versions we did not show such frames.
Restore that behavior.  These frames can be seen with GOTRACEBACK=system.

Change-Id: Ibab70de7c7f80e6f66ab0c9f0d17d2f13701c7f0
Reviewed-on: https://go-review.googlesource.com/45431
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/go/runtime/traceback_gccgo.go b/libgo/go/runtime/traceback_gccgo.go
index fb51043..0da5171 100644
--- a/libgo/go/runtime/traceback_gccgo.go
+++ b/libgo/go/runtime/traceback_gccgo.go
@@ -94,7 +94,7 @@
 	// We want to print those in the traceback.
 	// But unless GOTRACEBACK > 1 (checked below), still skip
 	// internal C functions and cgo-generated functions.
-	if !contains(name, ".") && !hasprefix(name, "__go_") && !hasprefix(name, "_cgo_") {
+	if name != "" && !contains(name, ".") && !hasprefix(name, "__go_") && !hasprefix(name, "_cgo_") {
 		return true
 	}