Implement 'trace' subcommand

Allows a user to execute `dlv trace [regexp]` and Delve will execute the
program and output information on functions matching [regexp].
This commit is contained in:
Derek Parker
2015-07-12 15:18:14 -05:00
parent c6ca18ff07
commit 3cee10d8bc
8 changed files with 117 additions and 11 deletions

View File

@ -66,7 +66,7 @@ func (c *RPCClient) Continue() <-chan *api.DebuggerState {
state.Err = fmt.Errorf("Process %d has exited with status %d", c.ProcessPid(), state.ExitStatus)
}
ch <- state
if err != nil || state.Breakpoint == nil || !state.Breakpoint.Tracepoint {
if err != nil || state.Exited || state.Breakpoint == nil || !state.Breakpoint.Tracepoint {
close(ch)
return
}