delve/service
Alessandro Arzilli 60830c2b1d More Function Calls, parts 2 (#1504)
* proc: support nested function calls

Changes the code in fncall.go to support nested function calls.

This changes delays argument evaluation until after we have used
the call injection protocol to allocate an argument frame. When
evaluating the parse tree of an expression we'll initiate each
function call we find on the way down and then complete the function
call on the way up.

For example. in:

	f(g(x))

we will:

1. initiate the call injection protocol for f(...)
2. progress it until the point where we have space for the arguments
   of 'f' (i.e. when we receive the debugCallAXCompleteCall message
   from the target runtime)
3. inititate the call injection protocol for g(...)
4. progress it until the point where we have space for the arguments
   of 'g'
5. copy the value of x into the argument frame of 'g'
6. finish the call to g(...)
7. copy the return value of g(x) into the argument frame of 'f'
8. finish the call to f(...)

Updates #119

* proc: bugfix: closure addr was wrong for non-closure functions
2019-05-30 08:08:37 -07:00
..
api proc: allow function calls to appear inside an expression (#1503) 2019-05-09 08:29:58 -07:00
debugger proc: allow function calls to appear inside an expression (#1503) 2019-05-09 08:29:58 -07:00
rpc1 *: Update import name to github.com/go-delve/delve 2019-01-04 19:43:13 +01:00
rpc2 proc,debugger,terminal: read goroutine ancestors 2019-03-28 13:55:32 +01:00
rpccommon cmd/dlv: add Go version check (#1533) 2019-04-26 10:24:21 -07:00
test More Function Calls, parts 2 (#1504) 2019-05-30 08:08:37 -07:00
client.go proc,debugger,terminal: read goroutine ancestors 2019-03-28 13:55:32 +01: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