fork-child.c: Avoid unnecessary heap-allocation / string copying
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index f6cad842b51c414b9b3503b5cf54a4fa50c659f7..90ed21caff54c10f5cf349a68d0b877c0cf87270 100644 (file)
@@ -1,3 +1,161 @@
+2017-04-13  Pedro Alves  <palves@redhat.com>
+
+       * fork-child.c (execv_argv): New class.
+       (breakup_args): Refactored as ...
+       (execv_argv::init_for_no_shell): .. this method of execv_argv.
+       Copy arguments to storage and replace separators with NULL
+       terminators in place.
+       (escape_bang_in_quoted_argument): Adjust to return bool.
+       (execv_argv::execv_argv): New ctor.
+       (execv_argv::init_for_shell): New method, factored out from
+       fork_inferior.  Don't strdup strings into the vector.
+       (fork_inferior): Eliminate "shell" local and use execv_argv.  Use
+       Remove free_vector_argv call.
+
+2017-04-13  Yao Qi  <yao.qi@linaro.org>
+
+       * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
+       tdep->rx_psw_type.
+
+2017-04-13  Yao Qi  <yao.qi@linaro.org>
+
+       * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
+       * rx-tdep.c (rx_gdbarch_init): Likewise.
+
+2017-04-13  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.h (struct breakpoint): Reindent.
+
+2017-04-13  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (bp_location): Rename to ...
+       (bp_locations): ... this.  All references updated.
+       (bp_location_count): Rename to ...
+       (bp_locations_count): ... this.  All references updated.
+       (bp_location_placed_address_before_address_max): Rename to ...
+       (bp_locations_placed_address_before_address_max): ... this.  All
+       references updated.
+       (bp_location_shadow_len_after_address_max): Rename to ...
+       (bp_locations_shadow_len_after_address_max): ... this.  All
+       references updated.
+       (bp_location_compare_addrs): Rename to ...
+       (bp_locations_compare_addrs): ... this.  All references updated.
+       (bp_location_compare):Rename to ...
+       (bp_locations_compare): ... this.  All references updated.
+       (bp_location_target_extensions_update): Rename to ...
+       (bp_locations_target_extensions_update): ... this.  All references
+       updated.
+
+2017-04-12  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
+       * common/common.m4: Check headers 'termios.h', 'termio.h' and
+       'sgtty.h'.
+       * common/gdb_termios.h: New file, with parts of "terminal.h".
+       * inflow.c: Include "gdb_termios.h".
+       * ser-unix.c: Include "gdb_termios.h".
+       * terminal.h: Move terminal-related defines to
+       "common/gdb_termios.h".
+
+2017-04-12  Tom Tromey  <tom@tromey.com>
+
+       * probe.c (parse_probes): Update.
+       * location.h (delete_event_location): Don't declare.
+       (event_location_deleter::operator()): Update.
+       * location.c (event_location_deleter::operator()): Rename from
+       delete_event_location.
+       * linespec.h (linespec_result) <location>: Change type to
+       event_location_up.
+       * linespec.c (canonicalize_linespec, event_location_to_sals)
+       (decode_objc): Update.
+       (linespec_result): Don't call delete_event_location.
+       * breakpoint.c (create_breakpoints_sal)
+       (bkpt_probe_create_sals_from_location)
+       (strace_marker_create_sals_from_location): Update.
+
+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.
        * frame.c (get_frame_register_bytes): Unwind using value.
        (put_frame_register_bytes): Likewise.
 
+2017-03-30  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
+       aggregate-like.
+
 2017-03-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
This page took 0.026018 seconds and 4 git commands to generate.