Add a constructor and destructor to linespec_result
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index f6cad842b51c414b9b3503b5cf54a4fa50c659f7..7ddac5bd50b0416a55caa5356da5e61bad333a1f 100644 (file)
@@ -1,3 +1,86 @@
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * linespec.h (struct linespec_result): Add constructor and
+       destructor.
+       (init_linespec_result, destroy_linespec_result)
+       (make_cleanup_destroy_linespec_result): Don't declare.
+       * linespec.c (init_linespec_result): Remove.
+       (linespec_result::~linespec_result): Rename from
+       destroy_linespec_result.  Update.
+       (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
+       Remove.
+       * breakpoint.c (create_breakpoint, break_range_command)
+       (decode_location_default): Update.
+       * ax-gdb.c (agent_command_1): Update.
+
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * remote.c (remote_download_tracepoint): Update.
+       * python/py-breakpoint.c (bppy_get_location): Update.
+       * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
+       (gdbscm_breakpoint_location): Update.
+       * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
+       * breakpoint.h (struct breakpoint) <location, location_range_end>:
+       Change type to event_location_up.
+       * breakpoint.c (create_overlay_event_breakpoint)
+       (create_longjmp_master_breakpoint)
+       (create_std_terminate_master_breakpoint)
+       (create_exception_master_breakpoint)
+       (breakpoint_event_location_empty_p, print_breakpoint_location)
+       (print_one_breakpoint_location, create_thread_event_breakpoint)
+       (init_breakpoint_sal, create_breakpoint)
+       (print_recreate_ranged_breakpoint, break_range_command)
+       (init_ada_exception_breakpoint, say_where): Update.
+       (base_breakpoint_dtor): Don't call delete_event_location.
+       (bkpt_print_recreate, tracepoint_print_recreate)
+       (dprintf_print_recreate, update_static_tracepoint)
+       (breakpoint_re_set_default): Update.
+
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * compile/compile-loc2c.c (compute_stack_depth_worker): Change
+       type of "to_do".  Update.
+       (compute_stack_depth): Use std::vector.
+
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * printcmd.c (find_instruction_backward): Use std::vector.
+
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * symfile.c (objfilep): Remove typedef.
+       (reread_symbols): Use a std::vector.
+
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-main.c (exec_direction_forward): Remove.
+       (exec_reverse_continue, mi_execute_command): Use scoped_restore.
+       * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
+       scoped_restore.
+       * guile/guile.c (guile_repl_command, guile_command)
+       (gdbscm_execute_gdb_command): Use scoped_restore.
+       * go-exp.y (go_parse): Use scoped_restore.
+       * d-exp.y (d_parse): Use scoped_restore.
+       * cli/cli-decode.c (cmd_func): Use scoped_restore.
+       * c-exp.y (c_parse): Use scoped_restore.
+
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
+       (mi_parse): Update return type.
+       (mi_parse_free): Remove.
+       * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
+       (mi_parse::~mi_parse): Rename from mi_parse_free.
+       (mi_parse_cleanup): Remove.
+       (mi_parse): Return a unique_ptr.  Use new.
+       * mi/mi-main.c (mi_execute_command): Update.
+
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * location.c (explicit_location_lex_one): Return a
+       unique_xmalloc_ptr.
+       (string_to_explicit_location): Update.  Remove cleanups.
+
 2017-04-12  Tom Tromey  <tom@tromey.com>
 
        * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
This page took 0.025061 seconds and 4 git commands to generate.