Implement stack command

Finishes #63 #64
This commit is contained in:
aarzilli
2015-06-17 19:11:57 +02:00
committed by Derek Parker
parent cc5e5c780c
commit 07473f04c5
14 changed files with 371 additions and 40 deletions

View File

@ -53,6 +53,9 @@ type G struct {
// PC of entry to top-most deferred function.
DeferPC uint64
// Thread that this goroutine is currently allocated to
thread *Thread
}
// Returns whether the goroutine is blocked on
@ -68,7 +71,7 @@ func (g *G) chanRecvReturnAddr(dbp *DebuggedProcess) (uint64, error) {
return 0, err
}
topLoc := locs[len(locs)-1]
return topLoc.addr, nil
return topLoc.PC, nil
}
// NoGError returned when a G could not be found