binsync / libbs

A library for writing plugins in any decompiler: includes API lifting, common data formatting, and GUI abstraction!
BSD 2-Clause "Simplified" License
61 stars 4 forks source link

Support IDA Pro Local Types #43

Closed crowell closed 2 days ago

crowell commented 1 year ago

Description

binsync currently doesn't support local types which are not imported into the "known" struct by double clicking on them. Personally I almost never double click on local types to import them, so binsync does not see the new types added.

Alternatives

you could consider this to be user error, but in a short survey of shellphish team members, this is a popular way to add struct.

Additional context

we discussed this in person, if there's anything else i can provide here i'm happy to do elaborate

crowell commented 1 year ago

there seems to already be a hook here: https://github.com/binsync/binsync/blob/d902cd1351d0d8c7042fad7440599ad5053f8930/binsync/decompilers/ida/hooks.py#L87 just nothing is implementing the logic.