delve/service
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
..
api proc: allow simultaneous call injection to multiple goroutines (#1591) 2019-06-30 10:44:30 -07:00
debugger Fix argument length checks (#1595) 2019-07-01 11:10:09 -07:00
rpc1 *: Update import name to github.com/go-delve/delve 2019-01-04 19:43:13 +01:00
rpc2 terminal: adds embedded scripting language (#1466) 2019-07-02 10:55:27 -07:00
rpccommon service: return an error when a client calls an unknown method (#1571) 2019-06-04 14:33:19 -07:00
test proc: allow simultaneous call injection to multiple goroutines (#1591) 2019-06-30 10:44:30 -07:00
client.go terminal: adds embedded scripting language (#1466) 2019-07-02 10:55:27 -07:00
config.go cmd/dlv: add Go version check (#1533) 2019-04-26 10:24:21 -07: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