Hi,
it's possible this has been discussed/asked in the past (maybe even by myself ;-)) but I can't remember anymore.
Is there any technical reason why Hatari couldn't provide a simple memory manager watching an application's memory writes and reporting if writing outside of the allocated area? From my naive perspective:
- we already parse PRG's header
- we can listen to application's Mshrink() so we know the memory region it uses
- we can listen to M(x)alloc calls, i.e. we can pair the amount + returned address
- we already know which address is memory and which is hardware
- we can easily add a simple "if" + some sorted list of allocated places for each memory write
- profit?
This sounds too good to be true. So what am I missing?
This would tremendously help with debugging software because right now if something crashes in FreeMiNT, one has to install the whole setup, enable all the "slow" checkboxes to make FreeMiNT+MP happy and in general the experience is pretty terrible.
--