Skip to content

Commit

Permalink
Merge pull request #8 from jschwinger233/pr/gray/fuzzy-symbol
Browse files Browse the repository at this point in the history
Accept fuzzy symbols
  • Loading branch information
jschwinger233 authored Jan 12, 2025
2 parents 4e90696 + a973310 commit f8c27ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func main() {
address, ok = IsDigit(result["addr"])
if !ok {
log.Error("Invalid address", "addr", result["addr"])
return
}
}

Expand All @@ -150,6 +151,12 @@ func main() {
symbol = result["sym"]
offset = address
}
ksym, err := KsymByName(symbol)
if err != nil {
log.Error("Failed to find ksym", "symbol", symbol, "err", err)
return
}
symbol = ksym.Name

if attachByLine {
kcore, err := NewKcore()
Expand Down

0 comments on commit f8c27ac

Please sign in to comment.