OSDN Git Service

* breakpoint.h (struct counted_command_line): New struct.
authortromey <tromey>
Wed, 24 Mar 2010 21:12:18 +0000 (21:12 +0000)
committertromey <tromey>
Wed, 24 Mar 2010 21:12:18 +0000 (21:12 +0000)
commitc5f5babe4d45d04a0411648751cbbfc89704097f
tree8281203c1993a033fa8658f674c25d0d1320621e
parentb18db62618914da2c1af790bd0d3fe2cceb6568d
* breakpoint.h (struct counted_command_line): New struct.
(struct breakpoint) <commands>: Change type.
(struct bpstats) <commands>: Change type.
<commands_left>: New field.
* breakpoint.c (alloc_counted_command_line): New function.
(incref_counted_command_line): Likewise.
(decref_counted_command_line): Likewise.
(do_cleanup_counted_command_line): Likewise.
(make_cleanup_decref_counted_command_line): Likewise.
(breakpoint_set_commands): Use decref_counted_command_line and
alloc_counted_command_line.
(commands_command): Don't error if breakpoint commands are
executing.
(commands_from_control_command): Likewise.
(bpstat_free): Update.
(bpstat_copy): Likewise.
(bpstat_clear_actions): Likewise.
(bpstat_do_actions_1): Likewise.
(bpstat_stop_status): Likewise.
(print_one_breakpoint_location): Likewise.
(delete_breakpoint): Likewise.
(bpstat_alloc): Initialize new field.
(tracepoint_save_command): Update.
* tracepoint.c (encode_actions): Update.
(trace_dump_command): Update.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/tracepoint.c