Storing metadata with PyGhidra #7395
-
Following on to #7343 - Is there a simple way store extra metadata with the program/project? In the past, I've used prop_mgr = program.getUsrPropertyManager()
string_map = prop_mgr.createStringPropertyMap("user_data")
map_addr = program.getMinAddress()
string_map.add(map_addr, "my data") Then when using the program later, I can just get the property manager and access the data that way. This seems to work, but I'm wondering if there's a more generic approach that I'm missing. The data in this case isn't address-specific, it's just required by the API. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What are you trying to store? Is is program-specific or project-specific? |
Beta Was this translation helpful? Give feedback.
Here's one way to store some basic metadata in a program:
This will then be visible in the CodeBrowser under
Help -> About <program>