From 3693cd2988df1ec6c26a92c7f65aabdad41c1dd2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 29 Aug 2011 10:55:21 -0400 Subject: [PATCH] =?UTF-8?q?runtime:=20add=20runtime=C2=B7=20prefix=20to=20?= =?UTF-8?q?showframe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit R=ken2 CC=golang-dev https://golang.org/cl/4978042 --- src/pkg/runtime/amd64/traceback.c | 2 +- src/pkg/runtime/arm/traceback.c | 2 +- src/pkg/runtime/symtab.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pkg/runtime/amd64/traceback.c b/src/pkg/runtime/amd64/traceback.c index 6b758c270d0..c03a6f7cc1d 100644 --- a/src/pkg/runtime/amd64/traceback.c +++ b/src/pkg/runtime/amd64/traceback.c @@ -123,7 +123,7 @@ runtime·gentraceback(byte *pc0, byte *sp, byte *lr0, G *g, int32 skip, uintptr else if(pcbuf != nil) pcbuf[n++] = pc; else { - if(showframe(f)) { + if(runtime·showframe(f)) { // Print during crash. // main(0x1, 0x2, 0x3) // /home/rsc/go/src/runtime/x.go:23 +0xf diff --git a/src/pkg/runtime/arm/traceback.c b/src/pkg/runtime/arm/traceback.c index f99d738a932..63528104c64 100644 --- a/src/pkg/runtime/arm/traceback.c +++ b/src/pkg/runtime/arm/traceback.c @@ -117,7 +117,7 @@ runtime·gentraceback(byte *pc0, byte *sp, byte *lr0, G *g, int32 skip, uintptr else if(pcbuf != nil) pcbuf[n++] = pc; else { - if(showframe(f)) { + if(runtime·showframe(f)) { // Print during crash. // main(0x1, 0x2, 0x3) // /home/rsc/go/src/runtime/x.go:23 +0xf diff --git a/src/pkg/runtime/symtab.c b/src/pkg/runtime/symtab.c index b9035119fe2..d0468c6dd45 100644 --- a/src/pkg/runtime/symtab.c +++ b/src/pkg/runtime/symtab.c @@ -496,7 +496,7 @@ contains(String s, int8 *p) } bool -showframe(Func *f) +runtime·showframe(Func *f) { // return 1; // for debugging - show all frames return contains(f->name, ".") && !hasprefix(f->name, "runtime.");