mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +08:00
service/debugger,terminal: API and user interface for follow exec mode (#3286)
Updates #2551
This commit is contained in:
committed by
GitHub
parent
47481fe0ab
commit
a61ccea65a
@ -58,6 +58,7 @@ type Term struct {
|
||||
stdout *transcriptWriter
|
||||
InitFile string
|
||||
displays []displayEntry
|
||||
oldPid int
|
||||
|
||||
historyFile *os.File
|
||||
|
||||
@ -115,6 +116,9 @@ func New(client service.Client, conf *config.Config) *Term {
|
||||
if client != nil {
|
||||
lcfg := t.loadConfig()
|
||||
client.SetReturnValuesLoadConfig(&lcfg)
|
||||
if state, err := client.GetState(); err == nil {
|
||||
t.oldPid = state.Pid
|
||||
}
|
||||
}
|
||||
|
||||
t.starlarkEnv = starbind.New(starlarkContext{t}, t.stdout)
|
||||
|
||||
Reference in New Issue
Block a user