summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-11-15 06:28:19 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-11-15 06:28:19 +0000
commitb795ecc357d0d67829f8b3e12ee5d9d8f3c701d9 (patch)
tree1f9a316f4413f9189160cc7855c1b4252d61e49f /gdb/breakpoint.h
parenta4df8f2752286fedb93ec5c29d6421902b2915b7 (diff)
downloadgdb-b795ecc357d0d67829f8b3e12ee5d9d8f3c701d9.tar.gz
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 08a10abe9a0..19b880ca985 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