You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to use a DomainObjectListener to catch exact changes to various program artifacts. The issue is that the events do not contain enough information to accurately determine exactly what changes are occurring. For example, when trying to detect when a user changes the data type of a stack variable, a DOCR_SYMBOL_DATA_CHANGED type is triggered. This event is used for multiple things and so I can't tell when this was caused by a data type change. I also can't check what it was before because upon a type change, the oldValue in the record is None. I also can't compare it to the old stack variable because it has already changed. This is some code that demonstrates the idea: https://github.com/binsync/libbs/blob/e00a10aeda5aa45b5d1024bfbc9b4e433512033a/libbs/decompilers/ghidra/hooks.py#L74-L103
This discussion was converted from issue #6405 on April 10, 2024 11:27.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am currently trying to use a DomainObjectListener to catch exact changes to various program artifacts. The issue is that the events do not contain enough information to accurately determine exactly what changes are occurring. For example, when trying to detect when a user changes the data type of a stack variable, a
DOCR_SYMBOL_DATA_CHANGED
type is triggered. This event is used for multiple things and so I can't tell when this was caused by a data type change. I also can't check what it was before because upon a type change, the oldValue in the record is None. I also can't compare it to the old stack variable because it has already changed. This is some code that demonstrates the idea: https://github.com/binsync/libbs/blob/e00a10aeda5aa45b5d1024bfbc9b4e433512033a/libbs/decompilers/ghidra/hooks.py#L74-L103Beta Was this translation helpful? Give feedback.
All reactions