runtime: in traceback, print panic rather than runtime.gopanic

The gc toolchain does the same thing, in gentraceback in
runtime/traceback.go.

The test for this is TestPanicTraceback in runtime/crash_test.go.  We
don't yet run that test, but we will in a future change.

Change-Id: I72c6eef5cd8190b5ec804e6970fd7bc24f2fd3a4
Reviewed-on: https://go-review.googlesource.com/46397
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/go/runtime/traceback_gccgo.go b/libgo/go/runtime/traceback_gccgo.go
index 0da5171..715772e 100644
--- a/libgo/go/runtime/traceback_gccgo.go
+++ b/libgo/go/runtime/traceback_gccgo.go
@@ -77,7 +77,11 @@
 func printtrace(locbuf []location, gp *g) {
 	for i := range locbuf {
 		if showframe(locbuf[i].function, gp) {
-			print(locbuf[i].function, "\n\t", locbuf[i].filename, ":", locbuf[i].lineno, "\n")
+			name := locbuf[i].function
+			if name == "runtime.gopanic" {
+				name = "panic"
+			}
+			print(name, "\n\t", locbuf[i].filename, ":", locbuf[i].lineno, "\n")
 		}
 	}
 }