Introduce JSON-RPC service

This commit is contained in:
Derek Parker
2015-06-20 22:47:44 -05:00
parent 5642e0a106
commit 687dc4172d
12 changed files with 574 additions and 45 deletions

View File

@ -101,7 +101,10 @@ func (dbp *Process) Detach(kill bool) (err error) {
// Clean up any breakpoints we've set.
for _, bp := range dbp.Breakpoints {
if bp != nil {
dbp.ClearBreakpoint(bp.Addr)
_, err := dbp.ClearBreakpoint(bp.Addr)
if err != nil {
return err
}
}
}
dbp.execPtraceFunc(func() {