mirror of
https://github.com/golang/go
synced 2024-11-21 21:54:40 -07:00
runtime: add runtime· prefix to showframe
R=ken2 CC=golang-dev https://golang.org/cl/4978042
This commit is contained in:
parent
683df29f7c
commit
3693cd2988
@ -123,7 +123,7 @@ runtime·gentraceback(byte *pc0, byte *sp, byte *lr0, G *g, int32 skip, uintptr
|
|||||||
else if(pcbuf != nil)
|
else if(pcbuf != nil)
|
||||||
pcbuf[n++] = pc;
|
pcbuf[n++] = pc;
|
||||||
else {
|
else {
|
||||||
if(showframe(f)) {
|
if(runtime·showframe(f)) {
|
||||||
// Print during crash.
|
// Print during crash.
|
||||||
// main(0x1, 0x2, 0x3)
|
// main(0x1, 0x2, 0x3)
|
||||||
// /home/rsc/go/src/runtime/x.go:23 +0xf
|
// /home/rsc/go/src/runtime/x.go:23 +0xf
|
||||||
|
@ -117,7 +117,7 @@ runtime·gentraceback(byte *pc0, byte *sp, byte *lr0, G *g, int32 skip, uintptr
|
|||||||
else if(pcbuf != nil)
|
else if(pcbuf != nil)
|
||||||
pcbuf[n++] = pc;
|
pcbuf[n++] = pc;
|
||||||
else {
|
else {
|
||||||
if(showframe(f)) {
|
if(runtime·showframe(f)) {
|
||||||
// Print during crash.
|
// Print during crash.
|
||||||
// main(0x1, 0x2, 0x3)
|
// main(0x1, 0x2, 0x3)
|
||||||
// /home/rsc/go/src/runtime/x.go:23 +0xf
|
// /home/rsc/go/src/runtime/x.go:23 +0xf
|
||||||
|
@ -496,7 +496,7 @@ contains(String s, int8 *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
showframe(Func *f)
|
runtime·showframe(Func *f)
|
||||||
{
|
{
|
||||||
// return 1; // for debugging - show all frames
|
// return 1; // for debugging - show all frames
|
||||||
return contains(f->name, ".") && !hasprefix(f->name, "runtime.");
|
return contains(f->name, ".") && !hasprefix(f->name, "runtime.");
|
||||||
|
Loading…
Reference in New Issue
Block a user