]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: add runtime· prefix to showframe
authorRuss Cox <rsc@golang.org>
Mon, 29 Aug 2011 14:55:21 +0000 (10:55 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 29 Aug 2011 14:55:21 +0000 (10:55 -0400)
R=ken2
CC=golang-dev
https://golang.org/cl/4978042

src/pkg/runtime/amd64/traceback.c
src/pkg/runtime/arm/traceback.c
src/pkg/runtime/symtab.c

index 6b758c270d07221337c305a718e49ab75ed55150..c03a6f7cc1d3c3ead98d122269153f21322e5c35 100644 (file)
@@ -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
index f99d738a93253f9dc5cd20f94b5a41b635833c5a..63528104c6486423584587a536ee3bcdf5f4a4e7 100644 (file)
@@ -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
index b9035119fe2604c0b58bc2e2a8bd28a180c11115..d0468c6dd454e5289a849611ca742c5fc686a01a 100644 (file)
@@ -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.");