hints on debugging memory corruption...

Richard Henderson rth@redhat.com
Fri Feb 4 16:17:00 GMT 2011


On 02/04/2011 07:42 AM, Basile Starynkevitch wrote:
> 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.

I typically find the location at which the object containing the address
is allocated.  E.g. in alloc_block on the return statement.  Make this
bp conditional on the object you're looking for.


r~



More information about the Gcc mailing list