Sven Barth schrieb:

But the debugger can ask the OS to write protect a page or to enable a page guard (which triggers on write access) and then the corresponding signal/exception can be catched. This reduces the checks necessary from the complete process memory down to only the page size.

Note: I don't know whether it's implemented like that in any debugger, this is just a theory of mine.

Every (reasonable) OS provides such features in its debug API. Available support depends on the actual hardware, of course.

DoDi

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to