* From Peter Schauer:
authorJeff Law <law@redhat.com>
Thu, 2 May 1996 18:43:28 +0000 (18:43 +0000)
committerJeff Law <law@redhat.com>
Thu, 2 May 1996 18:43:28 +0000 (18:43 +0000)
commite51481f96757303b0f4e7034de800b1fb5c87aa7
treefb0d6dddf9d93cfa78d5dc241ee6293cc3a08081
parentd124785e82f44000d0dcfad95388c767a54b46d6
    * From Peter Schauer:
        * breakpoint.h (enum bpdisp):  Add del_at_next_stop.
        * breakpoint.c (insert_breakpoints, watchpoint_check,
        bpstat_stop_status):  Avoid bad references to memory freed via
        delete_breakpoint on watchpoints going out of scope.
        Do not delete these watchpoints, disable them and change their
        disposition to del_at_next_stop instead.
        (breakpoint_auto_delete):  Delete all breakpoints whose disposition
        is del_at_next_stop.
        (breakpoint_init_inferior):  Use switch to avoid reference to
        already deleted breakpoint.
Fixes dangling pointer problems with watchpoints.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h