diff options
author | Eli Zaretskii <eliz@gnu.org> | 2007-01-27 12:30:46 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2007-01-27 12:30:46 +0000 |
commit | 6f7c6fd96dcbb962e5c1103642f71a07a694e57d (patch) | |
tree | 343587f391081b9d0b9862ac24b7fbe0810545c1 /gdb/breakpoint.h | |
parent | 0642ba891cf8e3a3baf2e7333c15946aaa8cd361 (diff) | |
download | gdb-6f7c6fd96dcbb962e5c1103642f71a07a694e57d.tar.gz |
* cli/cli-script.c: Include breakpoint.h.
(build_command_line): Require arguments only for if and while commands.
(get_command_line, execute_user_command, execute_control_command):
Fix wording of warning messages.
(print_command_lines): Print breakpoint commands.
(execute_control_command): Call commands_from_control_command to
handle the `commands' command inside a body of a flow-control command.
(read_next_line): Recognize the `commands' command and build a
command line structure for it.
(recurse_read_control_structure, read_command_lines): Handle
`commands' similarly to `if' and `while'.
* breakpoint.c (get_number_trailer): Document the special meaning
of NULL as the first argument PP.
(commands_from_control_command): New function.
* breakpoint.h (commands_from_control_command): Add prototype.
* defs.h (commands_control): New enumerated value for enum
command_control_type.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r-- | gdb/breakpoint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 79f1c1fcaf0..9eebfc8761d 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -759,6 +759,10 @@ extern void disable_watchpoints_before_interactive_call_start (void); extern void enable_watchpoints_after_interactive_call_stop (void); +/* For script interpreters that need to define breakpoint commands + after they've already read the commands into a struct command_line. */ +extern enum command_control_type commands_from_control_command + (char *arg, struct command_line *cmd); extern void clear_breakpoint_hit_counts (void); |