delve/service
Suzy Mueller 5632cf92be
service/dap: add "panic" and "fatal error" as stopped reasons (#2186)
* service/dap: add "panic" and "fatal error" as stopped reasons

The unrecovered panic and fatal throw breakpoints are not set by the
user. We now check for these special breakpoints and send appropriate
stopped reasons to the client.

* Add getter for StopReason

* Set threadID and stop reason correctly

If there is no selected goroutine, no goroutine ID should be set in
the stopped event.

The stopped reason can be better determined using the process
StopReason.

* Update panic breakpoint on next test to work with Go 1.13 runtime

When running panic.go with Go1.13, the next line that is stepped to
after panic('boom') is the defer function in the runtime package. The
unrecovered panic breakpoint is not hit until after several steps.

The test now steps until the breakpoint is hit, or the program terminates
without hitting the unrecovered panic breakpoint, in which case it fails.

* Skip breakpoint on next test in < Go 1.14
2020-10-07 08:24:40 -07:00
..
api terminal: add -size argument to examinemem command 2020-09-11 08:21:11 +02:00
dap service/dap: add "panic" and "fatal error" as stopped reasons (#2186) 2020-10-07 08:24:40 -07:00
debugger service/dap: add "panic" and "fatal error" as stopped reasons (#2186) 2020-10-07 08:24:40 -07:00
rpc1 service/*: remove threadID argument of (*Debugger).PackageVariables (#2182) 2020-09-24 08:02:29 -07:00
rpc2 service/*: remove threadID argument of (*Debugger).PackageVariables (#2182) 2020-09-24 08:02:29 -07:00
rpccommon *: Consolidate service/debugger config 2020-04-14 21:02:38 +02:00
test pkg/proc: fix dlv panic when sameGCond is nil. (#2164) 2020-09-08 15:18:49 -07:00
client.go terminal: add -size argument to examinemem command 2020-09-11 08:21:11 +02: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 Replaced net/rpc with custom version 2016-07-02 12:16:06 +02:00
server.go cmd,service: remove temporary def of Server interface in func 2018-10-09 07:56:48 -07:00