diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-14 17:20:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-10-14 17:20:40 +0000 |
commit | db2fb304fe27afd8939aa94a4b11f050e6f625b3 (patch) | |
tree | 9d0eff081f71ed2e0ceaa851807623afe4a7f286 /libgo/runtime/runtime.h | |
parent | d2c4425e86310d44aa8e9f9d91b49e2e61237ef2 (diff) | |
download | gcc-db2fb304fe27afd8939aa94a4b11f050e6f625b3.zip gcc-db2fb304fe27afd8939aa94a4b11f050e6f625b3.tar.gz gcc-db2fb304fe27afd8939aa94a4b11f050e6f625b3.tar.bz2 |
runtime: just do file/line lookup in C, move Func to Go
In order to port stack backtraces to Go, we need the ability to look up
file/line information for PC values without allocating memory. This
patch moves the handling of Func from C code to Go code, and simplifies
the C code to just look up function/file/line/entry information for a PC.
Reviewed-on: https://go-review.googlesource.com/31150
From-SVN: r241172
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 96f550c..27b0649 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -55,7 +55,6 @@ typedef uintptr uintreg; typedef uint8 bool; typedef uint8 byte; -typedef struct Func Func; typedef struct g G; typedef struct mutex Lock; typedef struct m M; @@ -153,16 +152,6 @@ struct SigTab void* fwdsig; }; -// Layout of in-memory per-function information prepared by linker -// See http://golang.org/s/go12symtab. -// Keep in sync with linker and with ../../libmach/sym.c -// and with package debug/gosym. -struct Func -{ - String name; - uintptr entry; // entry pc -}; - #ifdef GOOS_nacl enum { NaCl = 1, @@ -446,7 +435,6 @@ void runtime_crash(void); void runtime_parsedebugvars(void) __asm__(GOSYM_PREFIX "runtime.parsedebugvars"); void _rt0_go(void); -void* runtime_funcdata(Func*, int32); int32 runtime_setmaxthreads(int32); G* runtime_timejump(void); void runtime_iterate_finq(void (*callback)(FuncVal*, void*, const FuncType*, const PtrType*)); |