delve/vendor/github.com
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
..
aquasecurity/libbpfgo *: Initial eBPF tracing support (#2625) 2021-07-31 17:16:26 +02:00
cosiner/argv Update cosiner/argv to v0.1.0 (#2088) 2020-06-24 10:00:37 -07:00
cpuguy83/go-md2man/v2 all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
creack/pty vendor: Update vendor 2020-04-10 09:53:13 -07:00
derekparker/trie pkg/terminal: Allow fuzzy searching tab completions (#2633) 2021-08-05 19:55:27 +02:00
google/go-dap dap: define LaunchConfig/AttachConfig types (#2571) 2021-08-26 14:42:58 +02:00
hashicorp/golang-lru vendor: Update vendor 2020-04-10 09:53:13 -07:00
inconshreveable/mousetrap tests: fix typecheckrpc.go and convert it to a test 2019-01-07 11:47:49 -08:00
konsorten/go-windows-terminal-sequences vendor: update logrus dependency (#2048) 2020-05-11 15:44:01 -07:00
mattn all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
peterh/liner tests: fix typecheckrpc.go and convert it to a test 2019-01-07 11:47:49 -08:00
russross/blackfriday/v2 all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
shurcooL/sanitized_anchor_name all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
sirupsen/logrus vendor: update logrus dependency (#2048) 2020-05-11 15:44:01 -07:00
spf13 all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00