binsync / libbs

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

Support Artifact Watchers for Global Variables #47

Closed Flipout50 closed 6 months ago

Flipout50 commented 7 months ago

This code should make a proper callback when a global variable name is changed. This needs to occur when the ProgramChangeRecord caught by the DataMonitor indicates that this type of change has occurred. The eventType needs to be determined and added to the if/elif/else structure with the commented code executed at that point. https://github.com/binsync/libbs/blob/33a0114a932543d1849a64e3044cc1b6e19d4da0/libbs/decompilers/ghidra/hooks.py#L91-L95