No way to enable a disabled segment in memory map UI
The memory map has a way to disable segments, but once a user does that, there is no way to enable said view from the UI.
We should likely show the segment as disabled (i think the best way would be to just have it greyed out?). With the disabled segments you can then show the "Enable segment option".
If the user needs to they can enable the disabled segment using the API for the time being.
https://api.binary.ninja/binaryninja.binaryview-module.html#binaryninja.binaryview.MemoryMap.set_memory_region_enabled
Considering this a bug because UI actions should where applicable be reversible from the UI.
I just ran into this. I'm new with using the Python API, what is the name that needs to be passed to set_memory_region_enabled?
I just ran into this. I'm new with using the Python API, what is the
namethat needs to be passed toset_memory_region_enabled?
Because the memory region is now hidden in the UI you must also use the python console to figure out the name of the region unfortunately.
If you look for <DISABLED> it will be the name like 'origin<COFF>@0x555'
I see, thanks for this! Ideally, I'd like to make a script to enable all regions that are disabled. I've been accidentally disabling them. Would a request to make bv.memory_map an iterable make sense?
https://github.com/Vector35/binaryninja-api/issues/7359 tracks some improvements we'd like to make to the memory map API, including making bv.memory_map iterable.