* gdb.base/watchpoint-solib.exp: Likewise. Update tests to handle software watchpoints. * gdb.base/watch_thread_num.exp: Likewise.
* breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL. gdb/testsuite/ * gdb.base/value-double-free.exp, gdb.base/value-double-free.c: New.