delve/pkg
Alessandro Arzilli ed35dce7a3 terminal: adds embedded scripting language (#1466)
If the argument of 'source' ends in '.star' it will be interpreted as a
starlark script.
If the argument of 'source' is '-' an interactive starlark repl will be
started.

For documentation on how the starlark execution environment works see
Documentation/cli/starlark.md.

The starlark API is autogenerated from the JSON-RPC API by
script/gen-starlark-bindings.go.
In general for each JSON-RPC API a single global starlark function is
created.
When one of those functions is called (through a starlark script) the
arguments are converted to go structs using reflection. See
unmarshalStarlarkValue in pkg/terminal/starbind/conv.go.
If there are no type conversion errors the JSON-RPC call is executed.
The return value of the JSON-RPC call is converted back into a starlark
value by interfaceToStarlarkValue (same file):

* primitive types (such as integers, floats or strings) are converted
  by creating the corresponding starlark value.
* compound types (such as structs and slices) are converted by wrapping
  their reflect.Value object into a type that implements the relevant
  starlark interfaces.
* api.Variables are treated specially so that their Value field can be
  of the proper type instead of always being a string.

Implements #1415, #1443
2019-07-02 10:55:27 -07:00
..
config pkg/config: try to use XDG_CONFIG_HOME when present 2019-02-11 14:22:44 -08:00
dwarf proc: added *BinaryInfo.AllPCsForFileLine for faster bulk queries (#1592) 2019-06-27 19:39:15 -07:00
goversion Go 1.13 support (#1546) 2019-06-30 10:34:47 -07:00
logflags Miscellaneous logging improvements (#1525) 2019-03-27 14:58:36 -07:00
proc gdbserial: Fix go vet warnings (#1594) 2019-07-01 11:10:34 -07:00
terminal terminal: adds embedded scripting language (#1466) 2019-07-02 10:55:27 -07:00
version all: Bump to v1.2.0 2019-02-14 09:28:00 +01:00