diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-24 21:07:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-24 21:07:18 +0000 |
commit | bac564c53e908cff16f9938320a344d62bca26a7 (patch) | |
tree | a27dc3ab64413eb9182aec30bb5d15c96e7bb5e3 /libgo/runtime/runtime.h | |
parent | 27c53c0cceefe287c5dd8776fc6668d419bfc1b1 (diff) | |
download | gcc-bac564c53e908cff16f9938320a344d62bca26a7.zip gcc-bac564c53e908cff16f9938320a344d62bca26a7.tar.gz gcc-bac564c53e908cff16f9938320a344d62bca26a7.tar.bz2 |
runtime: Make runtime.Stack actually work.
From-SVN: r187854
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 8828aa5..5b3283a 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -71,6 +71,8 @@ typedef struct __go_panic_stack Panic; typedef struct __go_func_type FuncType; typedef struct __go_map_type MapType; +typedef struct Traceback Traceback; + /* * per-cpu declaration. */ @@ -151,7 +153,7 @@ struct G // uintptr sigpc; uintptr gopc; // pc of go statement that created this goroutine - G* dotraceback; + Traceback* traceback; ucontext_t context; void* stack_context[10]; @@ -299,6 +301,7 @@ void runtime_goroutineheader(G*); void runtime_goroutinetrailer(G*); void runtime_traceback(); void runtime_tracebackothers(G*); +void runtime_printtrace(uintptr*, int32); String runtime_gostringnocopy(const byte*); void* runtime_mstart(void*); G* runtime_malg(int32, byte**, size_t*); |