Skip to content

Commit 77bcacc

Browse files
committed
Add Call.PC accessor method.
1 parent 6ef2e93 commit 77bcacc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stack.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ func (c Call) Format(s fmt.State, verb rune) {
164164
}
165165
}
166166

167+
// PC returns the program counter for this call frame; multiple frames may
168+
// have the same PC value.
169+
func (c Call) PC() uintptr {
170+
return c.pc
171+
}
172+
167173
// name returns the import path qualified name of the function containing the
168174
// call.
169175
func (c Call) name() string {

0 commit comments

Comments
 (0)