[PATCH] Test for double freeing in breakpoint_re_set_one
Andrew Cagney
cagney@gnu.org
Thu Jan 29 14:06:00 GMT 2004
> Per Andrew's request, I have added the following test to the testsuite
> in gdb.base. This particular problem, since it involves memory corruption,
> won't reliably show itself (i.e., on earlier versions of GDB) unless one
> is "lucky" enough to have it cause a segmentation fault or one is using
> a checked version of malloc/free in GDB. I will leave to others Andrew's
> question concerning file descriptors on IDT/SIM.
Just FYI, I did some digging. The IDT/SIM problem would have been on
cygwin. The simulators would hold open the executable making the
instalation of a new one impossible. Since the simulators now close the
bfd cache (releasing the executable) that specific problem will no
longer occure. However, I think GDB still keeps the executable open
leading to the second of the problems.
Andrew
More information about the Gdb-patches
mailing list