summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-04-05 12:51:09 -0700
committerRuss Cox <rsc@golang.org>2010-04-05 12:51:09 -0700
commite1b021aaf220611b99a25e40b618d0bddef46766 (patch)
treee2bf4258f564d82aefbc656e700d7ab0d6acbdc4 /src/pkg/runtime/runtime.c
parentbca5b465fee7deddf3c314127803d6acfe236517 (diff)
downloadgolang-e1b021aaf220611b99a25e40b618d0bddef46766.tar.gz
runtime: various arm fixes
* correct symbol table size * do not reorder functions in output * traceback * signal handling * use same code for go + defer * handle leaf functions in symbol table R=kaib, dpx CC=golang-dev http://codereview.appspot.com/884041
Diffstat (limited to 'src/pkg/runtime/runtime.c')
-rw-r--r--src/pkg/runtime/runtime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c
index 27c59218c..9a027d430 100644
--- a/src/pkg/runtime/runtime.c
+++ b/src/pkg/runtime/runtime.c
@@ -32,9 +32,8 @@ panic(int32 unused)
panicking++;
printf("\npanic PC=%X\n", (uint64)(uintptr)&unused);
- sp = (uint8*)&unused;
if(gotraceback()){
- traceback(·getcallerpc(&unused), sp, g);
+ traceback(·getcallerpc(&unused), getcallersp(&unused), 0, g);
tracebackothers(g);
}
breakpoint(); // so we can grab it in a debugger