binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

No way to enable a disabled segment in memory map UI

Open emesare opened this issue 8 months ago • 4 comments

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.

emesare avatar Apr 17 '25 22:04 emesare

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?

blopker avatar Dec 10 '25 17:12 blopker

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?

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.

Image

If you look for <DISABLED> it will be the name like 'origin<COFF>@0x555'

emesare avatar Dec 10 '25 19:12 emesare

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?

blopker avatar Dec 10 '25 21:12 blopker

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.

bdash avatar Dec 10 '25 21:12 bdash