aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-04-02 01:18:35 +0000
committerPedro Alves <palves@redhat.com>2010-04-02 01:18:35 +0000
commit5cea2a26596faf0ea2e67dd9f885543ff638cdd0 (patch)
tree12de505d9a0453148d23df614a9395a87fb1b798 /gdb/breakpoint.h
parent9406745256877df5fca7c8b2b672a0da901cb2d2 (diff)
downloadgdb-5cea2a26596faf0ea2e67dd9f885543ff638cdd0.zip
gdb-5cea2a26596faf0ea2e67dd9f885543ff638cdd0.tar.gz
gdb-5cea2a26596faf0ea2e67dd9f885543ff638cdd0.tar.bz2
* breakpoint.h (struct counted_command_line): Moved definition to
breakpoint.c, and forward declare. (breakpoint_commands): Declare. * breakpoint.c (struct counted_command_line): Moved here. (breakpoint_commands): New. * tracepoint.c (encode_actions): Use breakpoint_commands. * remote.c (remote_download_tracepoint): Ditto.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 98a7157..3da6188 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -384,15 +384,9 @@ typedef struct bp_location *bp_location_p;
DEF_VEC_P(bp_location_p);
/* A reference-counted struct command_line. This lets multiple
- breakpoints share a single command list. */
-struct counted_command_line
-{
- /* The reference count. */
- int refc;
-
- /* The command list. */
- struct command_line *commands;
-};
+ breakpoints share a single command list. This is an implementation
+ detail to the breakpoints module. */
+struct counted_command_line;
/* Note that the ->silent field is not currently used by any commands
(though the code is in there if it was to be, and set_raw_breakpoint
@@ -814,6 +808,10 @@ extern void delete_breakpoint (struct breakpoint *);
extern void breakpoint_auto_delete (bpstat);
+/* Return the chain of command lines to execute when this breakpoint
+ is hit. */
+extern struct command_line *breakpoint_commands (struct breakpoint *b);
+
extern void break_command (char *, int);
extern void hbreak_command_wrapper (char *, int);