binsync / libbs

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

Support Artifact Watcher Function Argument Names #46

Open Flipout50 opened 5 months ago

Flipout50 commented 5 months ago

The code commented out below should work but it needs to be executed when the ProgramChangeRecord indicates a change to function argument names. Its current position isn't correct. Likely this is a subEventType of a function event, but the exact details need to be figured out so that this code can be called at the correct time. https://github.com/binsync/libbs/blob/33a0114a932543d1849a64e3044cc1b6e19d4da0/libbs/decompilers/ghidra/hooks.py#L100-L104

As an additional note, on this line: https://github.com/binsync/libbs/blob/33a0114a932543d1849a64e3044cc1b6e19d4da0/libbs/decompilers/ghidra/hooks.py#L102 We can't use None as the key, it will require a real offset.