mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 01:27:16 +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
@ -1118,6 +1118,18 @@ func (d *Debugger) ClearCheckpoint(id int) error {
|
||||
return d.target.ClearCheckpoint(id)
|
||||
}
|
||||
|
||||
// ListDynamicLibraries returns a list of loaded dynamic libraries.
|
||||
func (d *Debugger) ListDynamicLibraries() []api.Image {
|
||||
d.processMutex.Lock()
|
||||
defer d.processMutex.Unlock()
|
||||
bi := d.target.BinInfo()
|
||||
r := make([]api.Image, len(bi.Images))
|
||||
for i := range bi.Images {
|
||||
r[i] = api.ConvertImage(bi.Images[i])
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
func go11DecodeErrorCheck(err error) error {
|
||||
if _, isdecodeerr := err.(dwarf.DecodeError); !isdecodeerr {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user