debugger: fix off-by-one error in ListDynamicLibraries
This commit is contained in:
parent
4a6b53c08c
commit
348432c3b9
@ -1305,7 +1305,7 @@ func (d *Debugger) ListDynamicLibraries() []api.Image {
|
|||||||
r := make([]api.Image, 0, len(bi.Images)-1)
|
r := make([]api.Image, 0, len(bi.Images)-1)
|
||||||
// skips the first image because it's the executable file
|
// skips the first image because it's the executable file
|
||||||
for i := range bi.Images[1:] {
|
for i := range bi.Images[1:] {
|
||||||
r = append(r, api.ConvertImage(bi.Images[i]))
|
r = append(r, api.ConvertImage(bi.Images[i+1]))
|
||||||
}
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user