summaryrefslogtreecommitdiff
path: root/usr/austin/ogle/rruntime.go
diff options
context:
space:
mode:
authorAustin Clements <aclements@csail.mit.edu>2009-09-03 16:59:41 -0700
committerAustin Clements <aclements@csail.mit.edu>2009-09-03 16:59:41 -0700
commit774753af3559171c5483c71543c20d56a26d65bb (patch)
tree2859c2997ce02024c5af54362ca89cdaf854d78f /usr/austin/ogle/rruntime.go
parent06bd2bfefe102b8ae2bd17ab1ae6034a8791c08c (diff)
downloadgolang-774753af3559171c5483c71543c20d56a26d65bb.tar.gz
Implement Go threads. Implement a general event system
including breakpoints and Go thread create/exit. R=rsc APPROVED=rsc DELTA=751 (729 added, 6 deleted, 16 changed) OCL=34345 CL=34351
Diffstat (limited to 'usr/austin/ogle/rruntime.go')
-rw-r--r--usr/austin/ogle/rruntime.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/austin/ogle/rruntime.go b/usr/austin/ogle/rruntime.go
index e0a654691..758f1c708 100644
--- a/usr/austin/ogle/rruntime.go
+++ b/usr/austin/ogle/rruntime.go
@@ -110,20 +110,24 @@ type rt1ArrayType struct {
* See $GOROOT/src/pkg/runtime/runtime.h
*/
+// Fields beginning with _ are only for padding
+
type rt1Stktop struct {
stackguard uintptr;
stackbase *rt1Stktop;
gobuf rt1Gobuf;
+ _args uint32;
+ _fp uintptr;
}
type rt1Gobuf struct {
sp uintptr;
pc uintptr;
g *rt1G;
+ r0 uintptr;
}
type rt1G struct {
- // Fields beginning with _ are only for padding
_stackguard uintptr;
stackbase *rt1Stktop;
_defer uintptr;
@@ -133,6 +137,7 @@ type rt1G struct {
alllink *rt1G;
_param uintptr;
status int16;
+ // Incomplete
}
var rt1GStatus = runtimeGStatus{
@@ -193,7 +198,7 @@ type runtimeIndexes struct {
Sp, Pc, G int;
};
G struct {
- Stackbase, Sched, Status int;
+ Stackbase, Sched, Status, Alllink int;
};
}