This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Test for double freeing in breakpoint_re_set_one
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