2011/2/4 Basile Starynkevitch <bas...@starynkevitch.net>:
> An obvious strategy is to use the hardware watchpoint feature of GDB.
> However, one cannot nicely put a watchpoint on an address which is not
> mmap-ed yet.

Actually, you can do this with a recent enough GDB (7.1 AFAIK). It
will keep watchpoint disabled until the page is mapped in, then
enables it automatically (perhaps might have false hits if the page is
cleared etc.) However I still like the method described by Ian and rth
better.

-- 
Laurynas

Reply via email to