mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 20:53:42 +08:00
proc,proc/native,proc/gdbserial: initial plugin support (#1413)
Adds initial support for plugins, this is only the code needed to keep track of loaded plugins on linux (both native and gdbserial backend). It does not actually implement support for debugging plugins on linux. Updates #865
This commit is contained in:
committed by
Derek Parker
parent
09c92c75b9
commit
af1ffc8504
@ -233,7 +233,7 @@ func (dbp *Process) updateThreadList() error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
return linutil.ElfUpdateSharedObjects(dbp)
|
||||
}
|
||||
|
||||
func findExecutable(path string, pid int) string {
|
||||
@ -453,6 +453,10 @@ func (dbp *Process) stop(trapthread *Thread) (err error) {
|
||||
}
|
||||
}
|
||||
|
||||
if err := linutil.ElfUpdateSharedObjects(dbp); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// set breakpoints on all threads
|
||||
for _, th := range dbp.threads {
|
||||
if th.CurrentBreakpoint.Breakpoint == nil {
|
||||
|
||||
Reference in New Issue
Block a user