feat(binana): add check command for profiles

This commit is contained in:
phaneron 2025-06-04 17:40:52 -04:00
parent b5ddafb89a
commit ebf88595d9
11 changed files with 151 additions and 39 deletions

View file

@ -13,7 +13,7 @@ const min_columns = 3
type loader struct {
input *bufio.Reader
table Table
line_number int
line_number uint64
}
func (l *loader) read_line() (line string, err error) {
@ -32,6 +32,7 @@ func (l *loader) parse_line(line string) (err error) {
err = fmt.Errorf("%w: line %d", err, l.line_number)
return
}
entry.LineNumber = l.line_number
err = l.table.Insert(&entry)
return

View file

@ -22,6 +22,7 @@ var (
// An entry in the table
type Entry struct {
LineNumber uint64
// Undecorated, raw name
Name string
// Offset to the start of the function or data