Implement -break-commands

* breakpoint.c (get_breakpoint, breakpoint_set_commands): New.
	(commands_command): Use breakpoint_set_commands.
	* breakpoint.h (get_breakpoint, breakpoint_set_commands): Declare.

	* mi/mi-cmds.h (mi_cmd_break_commands): New.
	* mi/mi-cmds.c: Register -break-commands.
	* mi/mi-cmd-break.c (mi_cmd_break_commands, mi_read_next_line)
	(mi_command_line_array, mi_command_line_array_cnt)
	(mi_command_line_array_ptr): New.
This commit is contained in:
Vladimir Prus
2009-08-03 12:39:01 +00:00
parent 3c1179ff51
commit 48cb2d8581
11 changed files with 173 additions and 11 deletions

View File

@ -840,6 +840,8 @@ extern int get_number (char **);
extern int get_number_or_range (char **);
extern struct breakpoint *get_breakpoint (int num);
/* The following are for displays, which aren't really breakpoints, but
here is as good a place as any for them. */
@ -855,6 +857,9 @@ extern void disable_breakpoint (struct breakpoint *);
extern void enable_breakpoint (struct breakpoint *);
extern void breakpoint_set_commands (struct breakpoint *b,
struct command_line *commands);
/* Clear the "inserted" flag in all breakpoints. */
extern void mark_breakpoints_out (void);