Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.486 diff -u -r1.486 breakpoint.c --- breakpoint.c 13 May 2010 22:44:02 -0000 1.486 +++ breakpoint.c 2 Jun 2010 19:39:12 -0000 @@ -1355,7 +1355,10 @@ /* We don't free locations. They are stored in bp_location array and update_global_locations will eventually delete them and remove breakpoints if needed. */ - b->loc = NULL; + + if (b->type != bp_watchpoint && b->type != bp_hardware_watchpoint && + b->enable_state != bp_call_disabled) + b->loc = NULL; if (b->disposition == disp_del_at_next_stop) return;