aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
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/tracepoint.c
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/tracepoint.c')
-rw-r--r--gdb/tracepoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index d7c9bfd..ac10997 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -1439,7 +1439,7 @@ encode_actions (struct breakpoint *t, struct bp_location *tloc,
gdbarch_virtual_frame_pointer (t->gdbarch,
t->loc->address, &frame_reg, &frame_offset);
- actions = t->commands->commands;
+ actions = breakpoint_commands (t);
/* If there are default expressions to collect, make up a collect
action and prepend to the action list to encode. Note that since
@@ -1458,7 +1458,7 @@ encode_actions (struct breakpoint *t, struct bp_location *tloc,
default_collect_action = xmalloc (sizeof (struct command_line));
make_cleanup (xfree, default_collect_action);
- default_collect_action->next = t->commands->commands;
+ default_collect_action->next = actions;
default_collect_action->line = line;
actions = default_collect_action;
}
@@ -2417,7 +2417,7 @@ trace_dump_command (char *args, int from_tty)
if (loc->address == regcache_read_pc (regcache))
stepping_frame = 0;
- for (action = t->commands->commands; action; action = action->next)
+ for (action = breakpoint_commands (t); action; action = action->next)
{
struct cmd_list_element *cmd;