hints on debugging memory corruption...
Laurynas Biveinis
laurynas.biveinis@gmail.com
Fri Feb 4 17:11:00 GMT 2011
2011/2/4 Basile Starynkevitch <basile@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
More information about the Gcc
mailing list