delve/service
Hyang-Ah Hana Kim 1433c07957
dap: define LaunchConfig/AttachConfig types (#2571)
Formally define these types and document their meaning.
We will auto-generate the dlv-dap documentation from these Go type doc.

mapToStruct is a helper that sets the given struct's fields with the
info in map[string]interface{} (launch/attach's Arguments). We achieve
this by reencoding map[string]interface{} to json and decoding back to
the target struct. If go-dap left the implementation-specific arguments
as json.RawMessage and let the implementation decode as needed, this
reencoding could've been avoided.

encoding/json itself does not have mean to enforce required fields.
There was a test case that checks substitutePath elements must set
both from/to fields. Path.UnmarshalJSON implements the check.
I am not yet sure about the need for distinction between missing
'from/to' and empty strings yet. (empty value is useful when dealing with
a binary built with trimpath, right?)

A minor behavior change - previously, if noDebug is not a boolean type,
we ignored the attribute silently. Since we use json decoding, any
mismatched types will cause an error and this non-boolean type noDebug
attribute will result in launch failure.
2021-08-26 14:42:58 +02:00
..
api pkg/proc: Parse Goroutine ID in eBPF tracer (#2654) 2021-08-24 14:53:27 +02:00
dap dap: define LaunchConfig/AttachConfig types (#2571) 2021-08-26 14:42:58 +02:00
debugger pkg/proc: Parse Goroutine ID in eBPF tracer (#2654) 2021-08-24 14:53:27 +02:00
internal/sameuser service: fix sameuser check (#2642) 2021-08-10 11:40:39 +02:00
rpc1 proc,terminal,service: support stack watchpoints (#2521) 2021-08-09 10:41:25 -07:00
rpc2 proc,terminal,service: support stack watchpoints (#2521) 2021-08-09 10:41:25 -07:00
rpccommon service: fix sameuser check (#2642) 2021-08-10 11:40:39 +02:00
test proc,terminal,service: support stack watchpoints (#2521) 2021-08-09 10:41:25 -07:00
client.go proc,terminal,service: support stack watchpoints (#2521) 2021-08-09 10:41:25 -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