Subtract one from PCs recorded by getcallerpcs
This gets the call PCs instead of the return PCs, since this turns out
to be what we really want everywhere we use this. This was
particularly annoying for panics: since the compiler knows that panic
doesn't return, when it's the last thing in the function, the compiler
doesn't emit any further code after the call, which means the "return"
PC either doesn't map to anything or maps to another function
entirely.
正在显示
请
注册
或者
登录
后发表评论