diff options
| author | Russ Cox <rsc@golang.org> | 2010-01-25 18:52:55 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-01-25 18:52:55 -0800 |
| commit | 718be3215ffd6f8d4bfd8fa836cb2799d3366501 (patch) | |
| tree | 5de75ffa5504b39acc53f938e513f3261b173454 /src/pkg/runtime/amd64/traceback.c | |
| parent | c90b05bf7dab3a03a018f018d56b456b7ce7c2c5 (diff) | |
| download | go-718be3215ffd6f8d4bfd8fa836cb2799d3366501.tar.xz | |
in C and asm, replace pkg·name with ·name
(eliminate assumption of package global name space,
make code easier to move between packages).
R=r
CC=golang-dev
https://golang.org/cl/194072
Diffstat (limited to 'src/pkg/runtime/amd64/traceback.c')
| -rw-r--r-- | src/pkg/runtime/amd64/traceback.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/runtime/amd64/traceback.c b/src/pkg/runtime/amd64/traceback.c index a260b7e4cc..8fe23f32ee 100644 --- a/src/pkg/runtime/amd64/traceback.c +++ b/src/pkg/runtime/amd64/traceback.c @@ -24,7 +24,7 @@ traceback(byte *pc0, byte *sp, G *g) stk = (Stktop*)g->stackbase; for(n=0; n<100; n++) { - if(pc == (uint64)runtime·lessstack) { + if(pc == (uint64)·lessstack) { // pop to earlier stack block // printf("-- stack jump %p => %p\n", sp, stk->gobuf.sp); pc = (uintptr)stk->gobuf.pc; @@ -65,7 +65,7 @@ traceback(byte *pc0, byte *sp, G *g) for(i = 0; i < f->args; i++) { if(i != 0) prints(", "); - runtime·printhex(((uint32*)sp)[i]); + ·printhex(((uint32*)sp)[i]); if(i >= 4) { prints(", ..."); break; @@ -82,7 +82,7 @@ traceback(byte *pc0, byte *sp, G *g) // func caller(n int) (pc uint64, file string, line int, ok bool) void -runtime·Caller(int32 n, uint64 retpc, String retfile, int32 retline, bool retbool) +·Caller(int32 n, uint64 retpc, String retfile, int32 retline, bool retbool) { uint64 pc; byte *sp; @@ -109,7 +109,7 @@ runtime·Caller(int32 n, uint64 retpc, String retfile, int32 retline, bool retbo // now unwind n levels stk = (Stktop*)g->stackbase; while(n-- > 0) { - while(pc == (uintptr)runtime·lessstack) { + while(pc == (uintptr)·lessstack) { pc = (uintptr)stk->gobuf.pc; sp = stk->gobuf.sp; stk = (Stktop*)stk->stackbase; |
