diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-07 01:16:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-07 01:16:20 +0000 |
commit | 0effc3f961337abd0edb7c1a3dcd4b98636c085c (patch) | |
tree | 28d4e50a31f7428050763b36e3c7bbdeeb541a0f /libgo/runtime/runtime.h | |
parent | 1f3d0afc2623f1728a73971d415ca2991f7b9c18 (diff) | |
download | gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.zip gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.tar.gz gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.tar.bz2 |
libgo: Implement and use runtime.Caller, runtime.Func.FileLine.
From-SVN: r185025
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 40c59a8..e012e18 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -48,6 +48,7 @@ typedef unsigned int uintptr __attribute__ ((mode (pointer))); typedef uint8 bool; typedef uint8 byte; +typedef struct Func Func; typedef struct G G; typedef union Lock Lock; typedef struct M M; @@ -201,6 +202,14 @@ enum #define NSIG 32 #endif +// NOTE(rsc): keep in sync with extern.go:/type.Func. +// Eventually, the loaded symbol table should be closer to this form. +struct Func +{ + String name; + uintptr entry; // entry pc +}; + /* Macros. */ #ifdef GOOS_windows |