• Austin Clements's avatar
    Subtract one from PCs recorded by getcallerpcs · 1e043e92
    Austin Clements 提交于
    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.
    1e043e92
trap.cc 6.8 KB