mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(binana): add check command for profiles
This commit is contained in:
parent
b5ddafb89a
commit
ebf88595d9
11 changed files with 151 additions and 39 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue