Skip to content

Commit

Permalink
bininfo: Strip whitespace from debuginfod-find output (go-delve#2876)
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron authored Jan 19, 2022
1 parent 5862e40 commit 3b6099c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/proc/bininfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ func (bi *BinaryInfo) openSeparateDebugInfo(image *Image, exe *elf.File, debugIn
if err != nil {
return nil, nil, ErrNoDebugInfoFound
}
debugFilePath = string(out)
debugFilePath = strings.TrimSpace(string(out))
} else {
return nil, nil, ErrNoDebugInfoFound
}
Expand Down

0 comments on commit 3b6099c

Please sign in to comment.