mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
feat(go): attributes can now be quoted, symbols can now optionally include a data type (type=void*)
This commit is contained in:
parent
407d29a263
commit
de5bdadc78
4 changed files with 91 additions and 12 deletions
|
|
@ -42,6 +42,15 @@ func (profile *Profile) generate_symbols_idc() (err error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
fmt.Fprintf(output_file, " // Apply data types\n")
|
||||
|
||||
for _, symbol := range profile.SymbolTable.Entries {
|
||||
if symbol.DataType != "" {
|
||||
quoted_data_type := strconv.Quote(symbol.DataType)
|
||||
address := fmt.Sprintf("0x%08X", symbol.StartAddress)
|
||||
fmt.Fprintf(output_file, " apply_type(%s, %s);\n", address, quoted_data_type)
|
||||
}
|
||||
}
|
||||
|
||||
fmt.Fprintf(output_file, "}\n")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue