diff options
author | Tom Tromey <tom@tromey.com> | 2017-04-05 21:14:09 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-04-12 11:16:17 -0600 |
commit | 93921405a46c0a58eae19fffb92e02416082801a (patch) | |
tree | c3a9c2a4407cb09bc571d5af47dce812a68169b0 /gdb/ChangeLog | |
parent | ffc2605c41d026cf5710704848b7c3b1cdbdcf49 (diff) | |
download | gdb-93921405a46c0a58eae19fffb92e02416082801a.zip gdb-93921405a46c0a58eae19fffb92e02416082801a.tar.gz gdb-93921405a46c0a58eae19fffb92e02416082801a.tar.bz2 |
Introduce command_line_up
This introduces command_line_up, a unique_ptr for command_line
objects, and changes many places to use it. This removes a number of
cleanups.
Command lines are funny in that sometimes they are reference counted.
Once there is more C++-ification of some of the users, perhaps all of
these can be changed to use shared_ptr instead.
gdb/ChangeLog
2017-04-12 Tom Tromey <tom@tromey.com>
* tracepoint.c (actions_command): Update.
* python/python.c (python_command, python_interactive_command):
Update.
* mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
* guile/guile.c (guile_command): Update.
* defs.h (read_command_lines, read_command_lines_1): Return
command_line_up.
(command_lines_deleter): New struct.
(command_line_up): New typedef.
* compile/compile.c (compile_code_command)
(compile_print_command): Update.
* cli/cli-script.h (get_command_line, copy_command_lines): Return
command_line_up.
(make_cleanup_free_command_lines): Remove.
* cli/cli-script.c (get_command_line, read_command_lines_1)
(copy_command_lines): Return command_line_up.
(while_command, if_command, read_command_lines, define_command)
(document_command): Update.
(do_free_command_lines_cleanup, make_cleanup_free_command_lines):
Remove.
* breakpoint.h (breakpoint_set_commands): Change type of
"commands".
* breakpoint.c (breakpoint_set_commands): Change type of
"commands". Update.
(do_map_commands_command, update_dprintf_command_list)
(create_tracepoint_from_upload): Update.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68777c6..aecbcaa 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,34 @@ 2017-04-12 Tom Tromey <tom@tromey.com> + * tracepoint.c (actions_command): Update. + * python/python.c (python_command, python_interactive_command): + Update. + * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. + * guile/guile.c (guile_command): Update. + * defs.h (read_command_lines, read_command_lines_1): Return + command_line_up. + (command_lines_deleter): New struct. + (command_line_up): New typedef. + * compile/compile.c (compile_code_command) + (compile_print_command): Update. + * cli/cli-script.h (get_command_line, copy_command_lines): Return + command_line_up. + (make_cleanup_free_command_lines): Remove. + * cli/cli-script.c (get_command_line, read_command_lines_1) + (copy_command_lines): Return command_line_up. + (while_command, if_command, read_command_lines, define_command) + (document_command): Update. + (do_free_command_lines_cleanup, make_cleanup_free_command_lines): + Remove. + * breakpoint.h (breakpoint_set_commands): Change type of + "commands". + * breakpoint.c (breakpoint_set_commands): Change type of + "commands". Update. + (do_map_commands_command, update_dprintf_command_list) + (create_tracepoint_from_upload): Update. + +2017-04-12 Tom Tromey <tom@tromey.com> + * tracepoint.c (scope_info): Update. * spu-tdep.c (spu_catch_start): Update. * python/python.c (gdbpy_decode_line): Update. |