diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-15 06:28:19 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-11-15 06:28:19 +0000 |
commit | d6e956e5c23eada4b0349092fb2864f69369cfd3 (patch) | |
tree | 165a103bf96839535e7880aa9f62b104d5b678a8 /gdb/breakpoint.h | |
parent | 615b9dba457a9d625112f48bb3171baa710750ea (diff) | |
download | gdb-d6e956e5c23eada4b0349092fb2864f69369cfd3.zip gdb-d6e956e5c23eada4b0349092fb2864f69369cfd3.tar.gz gdb-d6e956e5c23eada4b0349092fb2864f69369cfd3.tar.bz2 |
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.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 08a10ab..19b880c 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -22,6 +22,7 @@ #include "frame.h" #include "value.h" +#include "vec.h" #include "gdb-events.h" @@ -457,6 +458,9 @@ struct breakpoint the condition in. */ int condition_not_parsed; }; + +typedef struct breakpoint *breakpoint_p; +DEF_VEC_P(breakpoint_p); /* The following stuff is an abstract data type "bpstat" ("breakpoint status"). This provides the ability to determine whether we have |