mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
service,terminal: when libraries don't have debug_info print reason (#3419)
Print the reason why libraries don't have debug info in response to the 'libraries' command.
This commit is contained in:
committed by
GitHub
parent
d006538bb6
commit
95dac8f19b
@ -2547,6 +2547,9 @@ func libraries(t *Term, ctx callContext, args string) error {
|
||||
d := digits(len(libs))
|
||||
for i := range libs {
|
||||
fmt.Fprintf(t.stdout, "%"+strconv.Itoa(d)+"d. %#x %s\n", i, libs[i].Address, libs[i].Path)
|
||||
if libs[i].LoadError != "" {
|
||||
fmt.Fprintf(t.stdout, " Load error: %s", libs[i].LoadError)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user