This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hints on debugging memory corruption...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]