aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-08-17 17:06:04 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-08-17 17:06:04 +0000
commit198757a8b19977e7d4bb048dac03fb207ce228ac (patch)
treeb3c9c7e4ff4e7e3d002265eae9d3ae7945247e4d /gdb/breakpoint.h
parent3992d3b7e252d9e75fe1ea0264b2761fe3e85d24 (diff)
downloadgdb-198757a8b19977e7d4bb048dac03fb207ce228ac.zip
gdb-198757a8b19977e7d4bb048dac03fb207ce228ac.tar.gz
gdb-198757a8b19977e7d4bb048dac03fb207ce228ac.tar.bz2
* breakpoint.c (bpstat_free): New.
(bpstat_clear): Use bpstat_free. (delete_breakpoint): Document why we cannot remove bpstats from stop_bpstat. * breakpoint.h (bpstat_free): Declare.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index b7996a5..701d85c 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -430,9 +430,12 @@ struct breakpoint
typedef struct bpstats *bpstat;
-/* Interface: */
-/* Clear a bpstat so that it says we are not at any breakpoint.
- Also free any storage that is part of a bpstat. */
+/* Frees any storage that is part of a bpstat.
+ Does not walk the 'next' chain. */
+extern void bpstat_free (bpstat);
+
+/* Clears a chain of bpstat, freeing storage
+ of each. */
extern void bpstat_clear (bpstat *);
/* Return a copy of a bpstat. Like "bs1 = bs2" but all storage that