Prevent clear_command from directly modifying breakpoint list.
authorVladimir Prus <vladimir@codesourcery.com>
Thu, 15 Nov 2007 06:28:19 +0000 (06:28 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Thu, 15 Nov 2007 06:28:19 +0000 (06:28 +0000)
commitd6e956e5c23eada4b0349092fb2864f69369cfd3
tree165a103bf96839535e7880aa9f62b104d5b678a8
parent615b9dba457a9d625112f48bb3171baa710750ea
Prevent clear_command from directly modifying breakpoint list.
* Makefile.in (breakpoint_h): Update dependency.
* breakpoint.c (clear_command): Do not remove
breakpoints from breakpoint_chain.  Collect breakpoints
to delete in a vector.
* breakpoint.h (breakpoint_p): New typedef for pointer to
breakpoint.  Register vector of breakpoint_p.
ChangeLog
gdb/Makefile.in
gdb/breakpoint.c
gdb/breakpoint.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/ending-run.exp