gcc/libgo/runtime
Ian Lance Taylor 053a1f2320 runtime: use the call instruction's PC for panic-in-runtime detection
If a panic happens in the runtime we turn that into a fatal error.
    We use the caller's PC to determine if the panic call is inside
    the runtime. getcallerpc returns the PC immediately after the
    call instruction. If the call is the very last instruction of a
    function, it may not find this PC belong to a runtime function,
    giving false result. We need to back off the PC by 1 to the call
    instruction.
    
    The gc runtime doesn't do this because the gc compiler always
    emit an instruction following a panic call, presumably an UNDEF
    instruction which turns into an architecture-specific illegal
    instruction. Our compiler doesn't do this.
    
    Reviewed-on: https://go-review.googlesource.com/c/159437

From-SVN: r268358
2019-01-29 00:49:23 +00:00
..
aeshash.c runtime: add arm64 version of AES hash code 2018-10-01 20:14:29 +00:00
arch.h
array.h
defs.h
env_posix.c
getncpu-aix.c
getncpu-bsd.c
getncpu-irix.c
getncpu-linux.c
getncpu-none.c
getncpu-solaris.c
go-assert.c
go-assert.h
go-caller.c runtime: prevent deadlock when profiling signal arrives during traceback 2019-01-05 00:40:04 +00:00
go-callers.c runtime: prevent deadlock when profiling signal arrives during traceback 2019-01-05 00:40:04 +00:00
go-cdiv.c
go-cgo.c
go-construct-map.c
go-ffi.c
go-fieldtrack.c
go-libmain.c libgo: fix building, and some testing, on Solaris 2019-01-21 23:05:52 +00:00
go-main.c
go-matherr.c
go-memclr.c
go-memcmp.c
go-memequal.c
go-memmove.c
go-nanotime.c
go-nosys.c
go-now.c
go-reflect-call.c
go-runtime-error.c runtime: use the call instruction's PC for panic-in-runtime detection 2019-01-29 00:49:23 +00:00
go-setenv.c
go-signal.c
go-string.h
go-strslice.c
go-type.h
go-typedesc-equal.c
go-unsafe-pointer.c
go-unsetenv.c
go-unwind.c runtime: prevent deadlock when profiling signal arrives in stack scan 2018-12-29 00:07:06 +00:00
go-varargs.c
panic.c
print.c
proc.c runtime: in doscanstackswitch, set gp->m before gogo 2019-01-07 22:07:26 +00:00
rtems-task-variable-add.c
runtime.h libgo: update to Go1.12beta2 2019-01-18 19:04:36 +00:00
runtime_c.c
stack.c runtime: add precise stack scan support 2018-12-05 23:09:51 +00:00
thread.c
yield.c