Quote:
Originally Posted by alpine9000
I wonder why the behaviour is different when the debugger is running. I have a small chip ram data hunk in the executable.
|
Which is it? First you said AllocMem/AllocVec with MEMF_CHIP returns zero but now you talk about chip RAM hunks?
Chip RAM hunks are handled like it was using normal memory (they go to "debug ram") but extra emulator switch is activated that enables chip ram DMA to any RAM address.
If debugged program calls AllocMem/AllocVec (exec->ThisTask == debugged program), allocation comes from debug RAM except if MEMF_CHIP is set, which redirects call back to original function. (=invalid accesses are not detected)
MEMF_CHIP really should use separate "debug ram" region. Maybe later..