delve/service
Derek Parker f6681c6090
pkg/proc: Prefer throw instead of fatalthrow (#2616)
* pkg/proc: Prefer throw instead of fatalthrow

Currently there is a breakpoint set at runtime.fatalthrow to catch any
situation where the runtime crashes (e.g. deadlock).
When we do this, we go up a frame in order to parse the crash reason.
The problem is that there is no guarentee the "s" variable we attempt to
parse will still be considered "live".
Since runtime.fatalthrow is never called directly, set a breakpoint on
runtime.throw instead and prevent having
to search up a stack frame in order to
get the throw reason.

Fixes #2602

* service/dap: Fix TestFatalThrowBreakpoint

* Reenable TestFatalThrow DAP test

* service/dap: Don't skip test on < 1.17

* service/dap: Update test constraint for 1.16

* pkg/proc: Reinstate runtime.fatalthrow as switchstack exception
2021-07-27 23:58:02 -07:00
..
api proc: allow multiple overlapping internal breakpoints (#2519) 2021-07-21 08:24:19 -07:00
dap pkg/proc: Prefer throw instead of fatalthrow (#2616) 2021-07-27 23:58:02 -07:00
debugger proc: allow multiple overlapping internal breakpoints (#2519) 2021-07-21 08:24:19 -07:00
internal/sameuser sameuser: log the uid/remoteUID when they are not matching (#2535) 2021-06-15 15:36:39 +02:00
rpc1 Go 1.17 support branch (#2451) 2021-07-08 08:47:53 -07:00
rpc2 service/rpc2: Fix panic in ListDynamicLibraries (#2586) 2021-07-14 18:28:54 +02:00
rpccommon dap: add sameuser check (#2494) 2021-05-19 10:29:05 -07:00
test proc: allow multiple overlapping internal breakpoints (#2519) 2021-07-21 08:24:19 -07:00
client.go terminal,service: Add filtering and grouping to goroutines command (#2504) 2021-07-01 11:25:33 -07:00
config.go cmd/dlv: Fix trace output (#2038) 2020-05-13 08:38:10 +02:00
listenerpipe.go cmd,service: in non-headless mode use an in-memory connection 2018-10-08 15:11:13 -07:00
rpccallback.go service: serialize calls to Command API (#2370) 2021-03-08 10:05:10 -08:00
server.go cmd,service: remove temporary def of Server interface in func 2018-10-09 07:56:48 -07:00