+2016-12-09 Yao Qi <yao.qi@linaro.org>
+
+ PR tdep/20954
+ * rx-tdep.c (rx_psw_type): New function.
+ (rx_fpsw_type): New function.
+ (rx_register_type): Call rx_psw_type and rx_fpsw_type.
+ (rx_gdbarch_init): Move code to rx_psw_type and
+ rx_fpsw_type.
+
+2016-12-09 Yao Qi <yao.qi@linaro.org>
+
+ PR tdep/20953
+ * rl78-tdep.c (rl78_psw_type): New function.
+ (rl78_register_type): Call rl78_psw_type.
+ (rl78_gdbarch_init): Move code to rl78_psw_type.
+
+2016-12-09 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-tdep.c (instruction_reader::read): Call
+ read_code_unsigned_integer instead of
+ read_memory_unsigned_integer.
+
+2016-12-09 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (skip_prologue_function): Call
+ read_code_unsigned_integer instead of
+ read_memory_unsigned_integer.
+ (thumb_analyze_prologue): Likewise.
+ (arm_analyze_load_stack_chk_guard): Likewise.
+ (arm_skip_stack_protector): Likewise.
+ (arm_analyze_prologue):Likewise.
+ (extend_buffer_earlier): Call target_read_code instead
+ of target_read_memory.
+ (arm_adjust_breakpoint_address): Likewise.
+
+2016-12-09 Thomas Schwinge <thomas@codesourcery.com>
+
+ * gnu-nat.c (gnu_create_inferior): After startup_inferior, call
+ prune_threads.
+
+ * inferior.c (print_selected_inferior): Avoid PATH_MAX usage.
+
+2016-12-08 Simon Marchi <simon.marchi@ericsson.com>
+ Thomas Schwinge <thomas@codesourcery.com>
+
+ * gnu-nat.c (set_sig_thread_cmd): Use parse_thread_id instead of
+ global_thread_id_to_ptid.
+
+2016-12-08 Thomas Schwinge <thomas@codesourcery.com>
+
+ * config/i386/i386gnu.mh (%_S.o %_U.o): Add "-x c" to
+ "COMPILE.post".
+ * gnu-nat.c: #include Mach/Hurd headers before all others. Wrap
+ Mach/Hurd headers and MIG stubs' prototypes in 'extern "C"'.
+ * i386-gnu-nat.c: Likewise.
+
+ * gnu-nat.c (proc_get_exception_port, proc_set_exception_port)
+ (INF_RESUME_MSGPORT_RPC, proc_get_state, _proc_get_exc_port)
+ (proc_steal_exc_port, proc_restore_exc_port, make_proc)
+ (inf_startup, inf_set_pid, inf_validate_procinfo)
+ (inf_validate_task_sc, inf_set_traced, inf_validate_procs)
+ (inf_signal, inf_continue, gnu_wait, S_exception_raise_request)
+ (do_mach_notify_dead_name, S_proc_wait_reply)
+ (S_msg_sig_post_untraced_reply, S_msg_sig_post_reply)
+ (port_msgs_queued, gnu_read_inferior, gnu_write_inferior)
+ (gnu_find_memory_regions, steal_exc_port, thread_takeover_sc_cmd)
+ (flush_inferior_icache): Instead of "error_t" use "kern_return_t".
+ * i386-gnu-nat.c (fetch_fpregs, store_fpregs, i386_gnu_dr_get)
+ (i386_gnu_dr_set): Likewise.
+
+ * gnu-nat.c (set_task_pause_cmd, set_signals_cmd)
+ (set_exceptions_cmd): Add variants taking an "int arg" instead of
+ a "char *". Make the "char *" variants use the former.
+ (set_noninvasive_cmd): Also use the "int arg" variants.
+
+ * gnu-nat.c (gnu_create_inferior): Move nested "trace_me"
+ function...
+ (gnu_ptrace_me): ... here.
+
+ * i386-gnu-nat.c (i386_gnu_dr_set_control_one)
+ (i386_gnu_dr_set_addr_one): Explicitly cast "void *".
+
+2016-12-07 Thomas Schwinge <thomas@codesourcery.com>
+
+ * gnu-nat.c (set_sig_thread_cmd): Call global_thread_id_to_ptid
+ instead of thread_id_to_pid.
+
+2016-12-06 Simon Marchi <simon.marchi@ericsson.com>
+
+ * inferior.c (inferior_command): Remove duplicate
+ find_inferior_id call.
+
+2016-12-06 Yao Qi <yao.qi@linaro.org>
+
+ * frame.c (frame_register_unwind): Set *realnump if *lvalp is
+ lval_register.
+ * value.c (deprecated_value_next_frame_id_hack): Assert
+ value->lval is lval_register.
+ (deprecated_value_regnum_hack): Likewise.
+
+2016-12-02 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.h: Include "common/enum-flags.h".
+ (enum ui_flags): Rename to ...
+ (enum ui_out_flag): ... this.
+ (ui_out_flags): Define enum flag type.
+ (ui_out_test_flags): Change type of parameter to ui_out_flags.
+ (ui_out_new): Likewise.
+ * ui-out.c (ui_out_test_flags): Likewise.
+ (ui_out_new): Likewise.
+ * cli-out.c (cli_out_new): Update variable type.
+ * mi/mi-out.c (mi_out_new): Likewise.
+ * tui/tui-out.c (tui_out_new): Likewise.
+
+2016-12-02 Pedro Alves <palves@redhat.com>
+
+ * NEWS: Mention that user commands now accept an unlimited number
+ of arguments.
+ * cli/cli-script.c: Include <vector>.
+ (struct string_view): New type.
+ (MAXUSERARGS): Delete.
+ (struct user_args): Now a C++ class.
+ (user_args_stack): New.
+ (struct scoped_user_args_level): New type.
+ (execute_user_command): Use scoped_user_args_level.
+ (arg_cleanup): Delete.
+ (setup_user_args): Deleted, and refactored as ...
+ (user_args::user_args): ... this new constructor. Limit of number
+ of arguments removed.
+ (insert_user_defined_cmd_args): Defer to user_args_stack.
+ (user_args::insert_args): New, bits based on old
+ insert_user_defined_cmd_args with limit of number of arguments
+ eliminated.
+
+2016-12-02 Pedro Alves <palves@redhat.com>
+
+ PR cli/20559
+ * NEWS: Mention "eval" expands user-defined command arguments.
+ * cli/cli-script.c (execute_control_command): Adjust to rename.
+ (insert_args): Rename to ...
+ (insert_user_defined_cmd_args): ... this, and make extern.
+ * cli/cli-script.h (insert_user_defined_cmd_args): New
+ declaration.
+ * printcmd.c: Include "cli/cli-script.h".
+ (eval_command): Call insert_user_defined_cmd_args.
+
+2016-12-02 Tom Tromey <tom@tromey.com>
+
+ PR symtab/16264:
+ * dwarf2read.c (struct partial_die_info) <main_subprogram>: New
+ member.
+ (add_partial_symbol): Call set_objfile_main_name.
+ (read_partial_die): Handle DW_AT_main_subprogram.
+ <DW_AT_calling_convention>: don't call set_objfile_main_name, but
+ set main_subprogram flag.
+
+2016-12-02 Simon Marchi <simon.marchi@ericsson.com>
+
+ * tracefile-tfile.c (tfile_write_status): Adjust to renames.
+ * tracefile.c (trace_save_command): Rename to...
+ (tsave_command): ...this.
+ (_initialize_tracefile): Adjust to renames.
+ * tracepoint.c (trace_actions_command): Rename to...
+ (actions_command): ...this.
+ (trace_start_command): Rename to...
+ (tstart_command): ...this, and adjust to renames..
+ (trace_stop_command): Rename to...
+ (tstop_command): ...this.
+ (trace_status_command): Rename to...
+ (tstatus_command): ...this, and adjust to renames.
+ (trace_find_command): Rename to...
+ (tfind_command): ...this.
+ (trace_find_pc_command): Rename to...
+ (tfind_pc_command): ...this.
+ (trace_find_tracepoint_command): Rename to...
+ (tfind_tracepoint_command): ...this.
+ (trace_find_line_command): Rename to...
+ (tfind_line_command): ...this.
+ (trace_find_range_command): Rename to...
+ (tfind_range_command): ...this.
+ (trace_find_outside_command): Rename to...
+ (tfind_outside_command): ...this.
+ (trace_dump_command): Rename to...
+ (tdump_command): ...this.
+ (tfind_1): Adjust to renames.
+ (trace_find_end_command): Rename to...
+ (tfind_end_command): ...this, and adjust to renames..
+ (trace_status_mi): Adjust to renames.
+ (parse_trace_status): Adjust to renames.
+ (_initialize_tracepoint): Adjust to renames.
+ * tracepoint.h (enum trace_stop_reason) <tstop_command>: Rename
+ to...
+ <trace_stop_command>: ...this.
+
+2016-12-02 Simon Marchi <simon.marchi@ericsson.com>
+
+ * mi/mi-out.c (mi_ui_out_data) <suppress_output>: Remove.
+ (mi_table_body): Remove suppress_output check.
+ (mi_table_end): Likewise.
+ (mi_table_header): Likewise.
+ (mi_begin): Likewise.
+ (mi_end): Likewise.
+ (mi_field_int): Likewise.
+ (mi_field_string): Likewise.
+ (mi_field_fmt): Likewise.
+ (mi_out_data_ctor): Likewise.
+
+2016-12-02 Yao Qi <yao.qi@linaro.org>
+ Pedro Alves <palves@redhat.com>
+
+ * aarch64-tdep.c (aarch64_analyze_prologue): Recognize STR
+ instruction.
+ (aarch64_analyze_prologue_test): More tests.
+
+2016-12-02 Yao Qi <yao.qi@linaro.org>
+ Pedro Alves <palves@redhat.com>
+
+ * aarch64-tdep.c: Include "selftest.h".
+ (abstract_instruction_reader): New class.
+ (instruction_reader): New class.
+ (aarch64_analyze_prologue): Add new parameter reader. Call
+ reader.read instead of read_memory_unsigned_integer.
+ [GDB_SELF_TEST] (instruction_reader_test): New class.
+ (aarch64_analyze_prologue_test): New function.
+ (_initialize_aarch64_tdep) [GDB_SELF_TEST]: Register
+ selftests::aarch64_analyze_prologue_test.
+ * trad-frame.c (trad_frame_cache_zalloc):
+ (trad_frame_alloc_saved_regs): Add a new function.
+ * trad-frame.h (trad_frame_alloc_saved_regs): Declare.
+
+2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (enum ui_out_table_state): Move to class
+ ui_out_table as ui_out_table::state.
+ (struct ui_out_table): Change to ...
+ (class ui_out_table): ... this.
+ <flag>: Remove.
+ <entry_level>: Rename to ...
+ <m_entry_level>: ... this.
+ <columns>: Rename to ...
+ <m_nr_cols>: ... this.
+ <id>: Rename to ...
+ <m_id>: ... this.
+ <headers>: Rename to ...
+ <m_headers>: ... this.
+ <headers_iterator>: Rename to ...
+ <m_headers_iterator>: ... this.
+ <start_body, append_header, start_row, get_next_header,
+ query_field, current_state, entry_level>: New methods.
+ (struct ui_out) <table>: Change type to unique_ptr to
+ ui_out_table.
+ (append_header_to_list, get_next_header, clear_header_list,
+ clear_table): Remove.
+ (ui_out_table_begin): Instantiate ui_out_table object. Update
+ table check.
+ (ui_out_table_body): Update table check, replace code with call
+ to ui_out_table::start_body.
+ (ui_out_table_end): Update table check, replace manual cleanup
+ with assignment of uiout->table unique_ptr to nullptr.
+ (ui_out_table_header): Update table check, replace call to
+ append_header_to_list with call to append_header method.
+ (ui_out_begin): Remove one table state check, update another.
+ Replace code with call to start_row method.
+ (verify_field): Update table checks.
+ (ui_out_query_field): Update table check, replace code with call
+ to query_field method.
+ (ui_out_new): Remove table initialization code.
+
+2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (enum ui_out_table_state): New enum.
+ (struct ui_out_table) <body_flag>: Remove field.
+ <state>: New field.
+ (ui_out_table_begin): Replace usages of body_flag with state.
+ (ui_out_table_body): Likewise.
+ (ui_out_table_end): Likewise.
+ (ui_out_table_header): Likewise.
+ (ui_out_begin): Likewise.
+ (verify_field): Likewise.
+ (ui_out_new): Likewise.
+
+2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.h (ui_out_begin_ftype): Remove level parameter.
+ (ui_out_end_ftype): Likewise.
+ * ui-out.c (struct ui_out) <level>: Replace field with a method
+ that dynamically computes the result.
+ (current_level): Get vector's back item instead of using
+ uiout->level.
+ (push_level): Make return type void.
+ (pop_level): Make return type void and update access to
+ ui_out::level.
+ (uo_begin): Remove level parameter.
+ (uo_end): Likewise.
+ (ui_out_table_begin): Update access to uiout::level.
+ (ui_out_begin): Don't read return value from push_level, call
+ uiout->level() instead, update call to uo_begin.
+ (ui_out_end): Don't read return value from pop_level, update
+ call to uo_end.
+ (verify_field): Update access to uiout->level.
+ (ui_out_new): Don't initialize ui_out::level, call push_level
+ to push the initial level instead of doing it by hand.
+ * cli-out.c (cli_begin): Remove level parameter.
+ (cli_end): Likewise.
+ * mi/mi-out.c (mi_begin): Likewise.
+ (mi_end): Likewise.
+
+2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (struct ui_out_level): Replace with ...
+ (class ui_out_level): ... this.
+ (current_level): Update.
+ (push_level): Update.
+ (pop_level): Update.
+ (verify_field): Update.
+ (ui_out_new): Update.
+
+2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (struct ui_out_hdr): Replace with ...
+ (class ui_out_hdr): ... this.
+ (append_header_to_list): Update.
+ (get_next_header): Update.
+ (ui_out_query_field): Update.
+
+2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * mi/mi-out.c (mi_table_header): Change char * args to
+ std::string.
+ * cli-out.c (cli_table_header): Likewise.
+ * ui-out.h (table_header_ftype): Likewise.
+ (ui_out_table_header): Constify colhdr argument.
+ (ui_out_query_field): Constify col_name argument.
+ * ui-out.c (ui_out_hdr) <col_name, colhdr>: Change type to
+ std::string.
+ (uo_table_header): Change char * args to std::string.
+ (ui_out_table_header): Likewise.
+ (get_next_header): Constify colhdr argument and adapt.
+ (clear_header_list): Don't free col_name/colhdr fields.
+ (append_header_to_list): Change char * args to std::string and
+ adapt.
+ (verify_field): Constify variable.
+ (ui_out_query_field): Constify col_name argument and adapt.
+ * breakpoint.c (wrap_indent_at_field): Constify variable.
+
+2016-12-01 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (struct ui_out_hdr) <next>: Remove.
+ (struct ui_out_table) <header_first, header_last, header_next>: Remove.
+ <headers, headers_iterator>: New fields.
+ (ui_out_table_body): Update for the new data structure.
+ (ui_out_begin): Likewise.
+ (clear_header_list): Likewise.
+ (append_header_to_list): Likewise.
+ (get_next_header): Likewise.
+ (ui_out_query_field): Likewise.
+ (ui_out_new): Likewise.
+
+2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (struct ui_out_table) <id>: Change type to
+ std::string.
+ (ui_out_table_begin): Change tblid parameter type to
+ std::string, adapt code.
+ update following type change.
+ (clear_table): Update.
+ (ui_out_new): Update.
+
+2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * cli-out.h (cli_ui_out_data) <streams>: Change type to
+ std::vector.
+ * cli-out.c: Remove vec.h include.
+ (cli_uiout_dtor): Update.
+ (cli_field_fmt): Update.
+ (cli_spaces): Update.
+ (cli_text): Update.
+ (cli_message): Update.
+ (cli_flush): Update.
+ (cli_redirect): Update.
+ (out_field_fmt): Update.
+ (field_separator): Update.
+ (cli_out_data_ctor): Update.
+ (cli_out_new): Update.
+ (cli_out_set_stream): Update.
+
+2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * mi/mi-out.c: Remove vec.h include.
+ (mi_ui_out_data) <streams>: Change type to std::vector.
+ (mi_field_string): Update.
+ (mi_field_fmt): Update.
+ (mi_flush): Update.
+ (mi_redirect): Update.
+ (field_separator): Update.
+ (mi_open): Update.
+ (mi_close): Update.
+ (mi_out_buffered): Update.
+ (mi_out_rewind): Update.
+ (mi_out_put): Update.
+ (mi_out_data_ctor): Update.
+ (mi_out_data_dtor): Don't free streams.
+
+2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (ui_out_level_p): Remove typedef.
+ (DEF_VEC_P (ui_out_level_p)): Remove definition.
+ (struct ui_out) <levels>: Change type to vector of unique_ptr of
+ ui_out_level.
+ (current_level): Update.
+ (push_level): Update.
+ (pop_level): Update, don't manually delete the ui_out_level
+ instance.
+ (ui_out_new): Update.
+
+2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * cli-out.c (cli_uiout_dtor): Use delete instead of xfree.
+ (cli_out_new): Use new instead of XNEW.
+ * mi/mi-out.c (mi_out_data_dtor): Use delete instead of xfree.
+ (mi_out_new): Use new instead of XNEW.
+ * tui/tui-out.c (tui_out_new): Likewise.
+ * ui-out.c (push_level): Likewise.
+ (pop_level): Use delete instead of xfree.
+ (clear_header_list): Use delete instead of xfree.
+ (append_header_to_list): Use new instead of XNEW.
+ (ui_out_new): Likewise.
+
+2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * disable-implicit-rules.mk: New file.
+ * Makefile.in: Include disable-implicit-rules.mk.
+ * data-directory/Makefile.in: Likewise.
+ * gnulib/Makefile.in: Likewise.
+
+2016-11-30 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (arm_scan_prologue): Read memory as unsigned integer.
+ (arm_exidx_unwind_sniffer): Likewise.
+
+2016-11-28 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * record-full.c (record_full_open_1): Fix debug output.
+
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * mi/mi-out.c (mi_message): Remove verbosity argument.
+ * ada-tasks.c (print_ada_task_info, info_task, task_command):
+ Update call.
+ * auto-load.c (auto_load_info_scripts): Likewise.
+ * breakpoint.c (breakpoint_1, watchpoints_info, tracepoints_info):
+ Likewise.
+ * cli-out.c (cli_message): Remove verbosity argument.
+ * inferior.c (print_inferior): Update call.
+ * linux-thread-db.c (info_auto_load_libthread_db): Likewise.
+ * probe.c (info_probes_for_ops): Likewise.
+ * skip.c (skip_info): Likewise.
+ * solib.c (info_sharedlibrary_command): Likewise.
+ * symfile.c (load_progress): Likewise.
+ * thread.c (print_thread_info_1): Likewise.
+ * ui-out.c (uo_message, ui_out_message): Remove verbosity argument.
+ (ui_out_get_verblvl): Remove.
+ * ui-out.h (ui_out_message): Remove verbosity argument.
+ (ui_out_get_verblvl): Remove.
+ (message_ftype): Remove verbosity argument.
+
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * mi/mi-out.c (mi_wrap_hint): Constify argument.
+ * cli-out.c (cli_wrap_hint): Likewise.
+ * ui-out.c (ui_out_wrap_hint, uo_wrap_hint): Likewise.
+ * ui-out.h (ui_out_wrap_hint, wrap_hint_ftype): Likewise.
+ * utils.c (wrap_here): Likewise.
+ (wrap_indent): Constify.
+ * utils.h (wrap_here): Constify argument.
+
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (uo_redirect): Return the return value from the
+ implementation function.
+
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (ui_out_destroy, uo_data_destroy): Remove.
+ * ui-out.h (ui_out_destroy): Remove.
+
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * mi/mi-out.c (ui_out_data): Rename to ...
+ (mi_ui_out_data): ... this.
+
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.c (_initialize_ui_out): Remove.
+ (ui_out_set_flags): Remove.
+ (ui_out_clear_flags): Remove.
+ * ui-out.h (ui_out_begin_cleanup_end): Remove.
+ (ui_out_begin_cleanup_end): Remove.
+ (ui_out_set_flags): Remove.
+ (ui_out_clear_flags): Remove.
+ * mi/mi-out.c (_initialize_mi_out): Remove.
+ (mi_out_buffered): Remove.
+ * mi/mi-out.h (mi_out_buffered): Remove.
+
+2016-11-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * ui-out.h (struct ui_out_impl): Remove comment.
+ * ui-out.c (struct ui_out): Remove comment.
+
+2016-11-25 John Baldwin <jhb@FreeBSD.org>
+
+ * contrib/ari/gdb_ari.sh (no parameter function): Remove check.
+
+2016-11-25 Simon Marchi <simon.marchi@ericsson.com>
+
+ * Makefile.in: Fix typo.
+
+2016-11-25 Simon Marchi <simon.marchi@ericsson.com>
+
+ * record-full.c (record_full_resume): Fix typos in comment.
+
+2016-11-25 Simon Marchi <simon.marchi@ericsson.com>
+
+ * infcmd.c (interrupt_command): Fix typo in comment.
+
+2016-11-24 John Baldwin <jhb@FreeBSD.org>
+
+ * ada-lang.c (create_excep_cond_exprs): Do not use 'std::move'.
+ * ax-gdb.c (agent_eval_command_one): Likewise.
+ (agent_eval_command_one): Likewise.
+ * breakpoint.c (parse_cond_to_aexpr): Likewise.
+ (parse_cmd_to_aexpr): Likewise.
+ * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
+ * parse.c (parse_expression_for_completion): Likewise.
+
+2016-11-24 John Baldwin <jhb@FreeBSD.org>
+
+ * common/new-op.c (operator new): Mark 'noexcept'.
+ (operator new[]): Likewise.
+
+2016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * dwarf2loc.c (copy_bitwise): Use memcpy for the middle part, if
+ it is byte-aligned.
+
+2016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
+ Pedro Alves <palves@redhat.com>
+
+ * dwarf2loc.c (bits_to_str, check_copy_bitwise)
+ (copy_bitwise_tests): New functions.
+ (_initialize_dwarf2loc): Register the new function
+ copy_bitwise_tests as a unit test.
+ * selftest.c (run_self_tests): Improve the failure message's
+ wording and formatting.
+
+2016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * dwarf2loc.c (extract_bits_primitive): Remove.
+ (extract_bits): Remove.
+ (copy_bitwise): Rewrite. Fixes a possible corruption that may
+ occur for non-byte-aligned copies.
+
+2016-11-24 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ PR gdb/12616
+ * dwarf2read.c (dwarf2_add_field): Handle the DWARF V4 attribute
+ DW_AT_data_bit_offset.
+
+2016-11-23 Pedro Alves <palves@redhat.com>
+
+ * Makefile.in (SFILES): Add common/run-time-clock.c.
+ (HFILES_NO_SRCDIR): Add common/run-time-clock.h.
+ (COMMON_OBS): Add run-time-clock.o.
+ * common/run-time-clock.c, common/run-time-clock.h: New files.
+ * defs.h (struct timeval, print_transfer_performance): Delete
+ declarations.
+ * event-loop.c (struct gdb_timer) <when>: Now a
+ std::chrono::steady_clock::time_point.
+ (create_timer): use std::chrono::steady_clock instead of
+ gettimeofday. Use new instead of malloc.
+ (delete_timer): Use delete instead of xfree.
+ (duration_cast_timeval): New.
+ (update_wait_timeout): Use std::chrono::steady_clock instead of
+ gettimeofday.
+ * maint.c: Include <chrono> instead of "gdb_sys_time.h", <time.h>
+ and "timeval-utils.h".
+ (scoped_command_stats::~scoped_command_stats)
+ (scoped_command_stats::scoped_command_stats): Use
+ std::chrono::steady_clock instead of gettimeofday. Use
+ user_cpu_time_clock instead of get_run_time.
+ * maint.h: Include "run-time-clock.h" and <chrono>.
+ (scoped_command_stats): <m_start_cpu_time>: Now a
+ user_cpu_time_clock::time_point.
+ <m_start_wall_time>: Now a std::chrono::steady_clock::time_point.
+ * mi/mi-main.c: Include "run-time-clock.h" and <chrono> instead of
+ "gdb_sys_time.h" and <sys/resource.h>.
+ (rusage): Delete.
+ (mi_execute_command): Use new instead of XNEW.
+ (mi_load_progress): Use std::chrono::steady_clock instead of
+ gettimeofday.
+ (timestamp): Rewrite in terms of std::chrono::steady_clock,
+ user_cpu_time_clock and system_cpu_time_clock.
+ (timeval_diff): Delete.
+ (print_diff): Adjust to use std::chrono::steady_clock,
+ user_cpu_time_clock and system_cpu_time_clock.
+ * mi/mi-parse.h: Include "run-time-clock.h" and <chrono> instead
+ of "gdb_sys_time.h".
+ (struct mi_timestamp): Change fields types to
+ std::chrono::steady_clock::time_point, user_cpu_time_clock::time
+ and system_cpu_time_clock::time_point, instead of struct timeval.
+ * symfile.c: Include <chrono> instead of <time.h> and
+ "gdb_sys_time.h".
+ (struct time_range): New.
+ (generic_load): Use std::chrono::steady_clock instead of
+ gettimeofday.
+ (print_transfer_performance): Replace timeval parameters with a
+ std::chrono::steady_clock::duration parameter. Adjust.
+ * utils.c: Include <chrono> instead of "timeval-utils.h",
+ "gdb_sys_time.h", and <time.h>.
+ (prompt_for_continue_wait_time): Now a
+ std::chrono::steady_clock::duration.
+ (defaulted_query, prompt_for_continue): Use
+ std::chrono::steady_clock instead of
+ gettimeofday/timeval_sub/timeval_add.
+ (reset_prompt_for_continue_wait_time): Use
+ std::chrono::steady_clock::duration instead of struct timeval.
+ (get_prompt_for_continue_wait_time): Return a
+ std::chrono::steady_clock::duration instead of struct timeval.
+ (vfprintf_unfiltered): Use std::chrono::steady_clock instead of
+ gettimeofday. Use std::string. Use '.' instead of ':'.
+ * utils.h: Include <chrono>.
+ (get_prompt_for_continue_wait_time): Return a
+ std::chrono::steady_clock::duration instead of struct timeval.
+
+2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * Makefile.in: Fix whitespace formatting.
+
+2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS,
+ HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
+ * alphabsd-nat.c: Rename to ...
+ * alpha-bsd-nat.c: ... this, adjust include.
+ * alphabsd-tdep.c: Rename to ...
+ * alpha-bsd-tdep.c: ... this, adjust include.
+ * alphabsd-tdep.h: Rename to ...
+ * alpha-bsd-tdep.h: ... this, adjust include barrier and comment.
+ * alphafbsd-tdep.c: Rename to ...
+ * alpha-fbsd-tdep.c: ... this.
+ * alphanbsd-tdep.c: Rename to ...
+ * alpha-nbsd-tdep.c: ... this, adjust include.
+ * alphaobsd-tdep.c: Rename to ...
+ * alpha-obsd-tdep.c: ... this, adjust include.
+ * amd64bsd-nat.c: Rename to ...
+ * amd64-bsd-nat.c: ... this, adjust include.
+ * amd64fbsd-nat.c: Rename to ...
+ * amd64-fbsd-nat.c: ... this, adjust include.
+ * amd64fbsd-tdep.c: Rename to ...
+ * amd64-fbsd-tdep.c: ... this, adjust include.
+ * amd64nbsd-nat.c: Rename to ...
+ * amd64-nbsd-nat.c: ... this.
+ * amd64nbsd-tdep.c: Rename to ...
+ * amd64-nbsd-tdep.c: ... this.
+ * amd64obsd-nat.c: Rename to ...
+ * amd64-obsd-nat.c: ... this.
+ * amd64obsd-tdep.c: Rename to ...
+ * amd64-obsd-tdep.c: ... this.
+ * amd64-tdep.h: Update comments.
+ * armbsd-tdep.c: Rename to ...
+ * arm-bsd-tdep.c: ... this.
+ * armnbsd-nat.c: Rename to ...
+ * arm-nbsd-nat.c: ... this.
+ * armnbsd-tdep.c: Rename to ...
+ * arm-nbsd-tdep.c: ... this.
+ * armobsd-tdep.c: Rename to ...
+ * arm-obsd-tdep.c: ... this.
+ * arm-tdep.h: Update comments.
+ * hppabsd-tdep.c: Rename to ...
+ * hppa-bsd-tdep.c: ... this, adjust include.
+ * hppabsd-tdep.h: Rename to ...
+ * hppa-bsd-tdep.h: ... this, adjust include barrier and comment.
+ * hppanbsd-nat.c: Rename to ...
+ * hppa-nbsd-nat.c: ... this.
+ * hppanbsd-tdep.c: Rename to ...
+ * hppa-nbsd-tdep.c: ... this, adjust include.
+ * hppaobsd-nat.c: Rename to ...
+ * hppa-obsd-nat.c: ... this.
+ * hppaobsd-tdep.c: Rename to ...
+ * hppa-obsd-tdep.c: ... this, adjust include.
+ * i386bsd-nat.c: Rename to ...
+ * i386-bsd-nat.c: ... this, adjust include.
+ * i386bsd-nat.h: Rename to ...
+ * i386-bsd-nat.h: ... this, adjust include barrier and comment.
+ * i386bsd-tdep.c: Rename to ...
+ * i386-bsd-tdep.c: ... this.
+ * i386fbsd-nat.c: Rename to ...
+ * i386-fbsd-nat.c: ... this, adjust include.
+ * i386fbsd-tdep.c: Rename to ...
+ * i386-fbsd-tdep.c: ... this, adjust include.
+ * i386fbsd-tdep.h: Rename to ...
+ * i386-fbsd-tdep.h: ... this, adjust include barrier and comment.
+ * i386gnu-nat.c: Rename to ...
+ * i386-gnu-nat.c: ... this.
+ * i386gnu-tdep.c: Rename to ...
+ * i386-gnu-tdep.c: ... this.
+ * i386nbsd-nat.c: Rename to ...
+ * i386-nbsd-nat.c: ... this, adjust include.
+ * i386nbsd-tdep.c: Rename to ...
+ * i386-nbsd-tdep.c: ... this.
+ * i386obsd-nat.c: Rename to ...
+ * i386-obsd-nat.c: ... this, adjust include.
+ * i386obsd-tdep.c: Rename to ...
+ * i386-obsd-tdep.c: ... this.
+ * i386v4-nat.c: Rename to ...
+ * i386-v4-nat.c: ... this.
+ * i386-tdep.h: Update comments.
+ * m68k-tdep.h: Update comments.
+ * m68kbsd-nat.c: Rename to ...
+ * m68k-bsd-nat.c: ... this.
+ * m68kbsd-tdep.c: Rename to ...
+ * m68k-bsd-tdep.c: ... this.
+ * m68klinux-nat.c: Rename to ...
+ * m68k-linux-nat.c: ... this.
+ * m68klinux-tdep.c: Rename to ...
+ * m68k-linux-tdep.c: ... this.
+ * m88kbsd-nat.c: Rename to ...
+ * m88k-bsd-nat.c: ... this.
+ * mipsnbsd-nat.c: Rename to ...
+ * mips-nbsd-nat.c: ... this, adjust include.
+ * mipsnbsd-tdep.c: Rename to ...
+ * mips-nbsd-tdep.c: ... this, adjust include.
+ * mipsnbsd-tdep.h: Rename to ...
+ * mips-nbsd-tdep.h: ... this, adjust include barrier and comment.
+ * mips64obsd-nat.c: Rename to ...
+ * mips64-obsd-nat.c: ... this.
+ * mips64obsd-tdep.c: Rename to ...
+ * mips64-obsd-tdep.c: ... this.
+ * ppcfbsd-nat.c: Rename to ...
+ * ppc-fbsd-nat.c: ... this, adjust include.
+ * ppcfbsd-tdep.c: Rename to ...
+ * ppc-fbsd-tdep.c: ... this, adjust include.
+ * ppcfbsd-tdep.h: Rename to ...
+ * ppc-fbsd-tdep.h: ... this, adjust include barrier and comment.
+ * ppcnbsd-nat.c: Rename to ...
+ * ppc-nbsd-nat.c: ... this, adjust include.
+ * ppcnbsd-tdep.c: Rename to ...
+ * ppc-nbsd-tdep.c: ... this, adjust include.
+ * ppcnbsd-tdep.h: Rename to ...
+ * ppc-nbsd-tdep.h: ... this, adjust include barrier and comment.
+ * ppcobsd-nat.c: Rename to ...
+ * ppc-obsd-nat.c: ... this, adjust include.
+ * ppcobsd-tdep.c: Rename to ...
+ * ppc-obsd-tdep.c: ... this, adjust include.
+ * ppcobsd-tdep.h: Rename to ...
+ * ppc-obsd-tdep.h: ... this, adjust include barrier and comment.
+ * shnbsd-nat.c: Rename to ...
+ * sh-nbsd-nat.c: ... this.
+ * shnbsd-tdep.c: Rename to ...
+ * sh-nbsd-tdep.c: ... this.
+ * sparcnbsd-nat.c: Rename to ...
+ * sparc-nbsd-nat.c: ... this.
+ * sparcnbsd-tdep.c: Rename to ...
+ * sparc-nbsd-tdep.c: ... this.
+ * sparcobsd-tdep.c: Rename to ...
+ * sparc-obsd-tdep.c: ... this.
+ * sparc64fbsd-nat.c: Rename to ...
+ * sparc64-fbsd-nat.c: ... this.
+ * sparc64fbsd-tdep.c: Rename to ...
+ * sparc64-fbsd-tdep.c: ... this.
+ * sparc64nbsd-nat.c: Rename to ...
+ * sparc64-nbsd-nat.c: ... this.
+ * sparc64nbsd-tdep.c: Rename to ...
+ * sparc64-nbsd-tdep.c: ... this.
+ * sparc64obsd-nat.c: Rename to ...
+ * sparc64-obsd-nat.c: ... this.
+ * sparc64obsd-tdep.c: Rename to ...
+ * sparc64-obsd-tdep.c: ... this.
+ * sparc64-tdep.h: Update comments.
+ * vaxbsd-nat.c: Rename to ...
+ * vax-bsd-nat.c: ... this.
+ * vaxnbsd-tdep.c: Rename to ...
+ * vax-nbsd-tdep.c: ... this.
+ * vaxobsd-tdep.c: Rename to ...
+ * vax-obsd-tdep.c: ... this.
+ * x86bsd-nat.h: Rename to ...
+ * x86-bsd-nat.h: ... this, adjust include barrier and comment.
+ * x86bsd-nat.c: Rename to ...
+ * x86-bsd-nat.c: ... this, adjust include.
+ * configure.tgt: Update renamed files.
+ * config/alpha/fbsd.mh: Update renamed files.
+ * config/alpha/nbsd.mh: Update renamed files.
+ * config/arm/nbsdelf.mh: Update renamed files.
+ * config/djgpp/fnchange.lst: Update renamed files.
+ * config/i386/fbsd.mh: Update renamed files.
+ * config/i386/fbsd64.mh: Update renamed files.
+ * config/i386/i386gnu.mh: Update renamed files.
+ * config/i386/i386sol2.mh: Update renamed files.
+ * config/i386/nbsd64.mh: Update renamed files.
+ * config/i386/nbsdelf.mh: Update renamed files.
+ * config/i386/obsd.mh: Update renamed files.
+ * config/i386/obsd64.mh: Update renamed files.
+ * config/i386/sol2-64.mh: Update renamed files.
+ * config/m68k/linux.mh: Update renamed files.
+ * config/m68k/nbsdelf.mh: Update renamed files.
+ * config/m68k/obsd.mh: Update renamed files.
+ * config/m88k/obsd.mh: Update renamed files.
+ * config/mips/nbsd.mh: Update renamed files.
+ * config/mips/obsd64.mh: Update renamed files.
+ * config/pa/nbsd.mh: Update renamed files.
+ * config/pa/obsd.mh: Update renamed files.
+ * config/powerpc/fbsd.mh: Update renamed files.
+ * config/powerpc/nbsd.mh: Update renamed files.
+ * config/powerpc/obsd.mh: Update renamed files.
+ * config/sh/nbsd.mh: Update renamed files.
+ * config/sparc/fbsd.mh: Update renamed files.
+ * config/sparc/nbsd64.mh: Update renamed files.
+ * config/sparc/nbsdelf.mh: Update renamed files.
+ * config/sparc/obsd64.mh: Update renamed files.
+ * config/vax/nbsdelf.mh: Update renamed files.
+ * config/vax/obsd.mh: Update renamed files.
+
+2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * Makefile.in: Add comment about file lists ordering.
+ (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_MI_OBS, SUBDIR_MI_SRCS,
+ SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_GCC_COMPILE_OBS,
+ SUBDIR_GCC_COMPILE_SRCS, SUBDIR_GUILE_OBS, SUBDIR_GUILE_SRCS,
+ SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, SUBDIR_GDBTK_OBS,
+ SUBDIR_GDBTK_SRCS, XMLFILES, REMOTE_OBS, ALL_64_TARGET_OBS,
+ ALL_TARGET_OBS, SFILES, HFILES_NO_SRCDIR, HFILES_WITH_SRCDIR,
+ COMMON_OBS, YYFILES, YYOBJ, generated_files, ALLDEPFILES):
+ Flatten list and order alphabetically.
+ * data-directory/Makefile.in: Add comment about file lists
+ ordering.
+ (GEN_SYSCALLS_FILES, PYTHON_FILE_LIST): Flatten list and order
+ alphabetically.
+
+2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
+
+ * contrib/expect-read1.sh: Fix spelling in comments.
+ * gdb_buildall.sh: Fix spelling in comments.
+ * gdb_mbuild.sh: Fix spelling in comments.
+
+2016-11-22 Ambrogino Modigliani <ambrogino.modigliani@gmail.com>
+
+ * configure.ac: Fix spelling in comments.
+ * configure: Regenerate.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * gdbarch.sh (software_single_step): Change parameter from frame_info
+ to regcache.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * aarch64-tdep.c (aarch64_software_single_step): Change parameter
+ from frame_info to regcache. Don't call get_current_regcache.
+ * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
+ (alpha_software_single_step): Likewise.
+ * alpha-tdep.h (alpha_software_single_step): Update declaration.
+ * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
+ * arm-tdep.c (arm_software_single_step): Likewise.
+ * arm-tdep.h (arm_software_single_step): Likewise.
+ * breakpoint.c (insert_single_step_breakpoint): Pass regcache to
+ gdbarch_software_single_step.
+ * cris-tdep.c (cris_software_single_step): Change parameter from
+ frame_info to regcache. Don't call get_current_regcache.
+ * mips-tdep.c (mips_software_single_step): Likewise.
+ * mips-tdep.h (mips_software_single_step): Update declaration.
+ * moxie-tdep.c (moxie_software_single_step): Likewise.
+ * nios2-tdep.c (nios2_software_single_step): Likewise.
+ * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update declaration.
+ * rs6000-aix-tdep.c (rs6000_software_single_step): Likewise.
+ * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
+ * s390-linux-tdep.c (s390_software_single_step): Likewise.
+ * sparc-tdep.c (sparc_software_single_step): Likewise.
+ * spu-tdep.c (spu_software_single_step): Likewise.
+ * tic6x-tdep.c (tic6x_software_single_step): Likewise.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * spu-tdep.c (spu_software_single_step): Call get_regcache_arch
+ instead of get_frame_arch. Call regcache_read_pc instead of
+ get_frame_pc. Call regcache_raw_get_unsigned instead of
+ get_frame_register_unsigned.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * tic6x-tdep.c (tic6x_condition_true): Replace frame with
+ regcache. Call regcache_raw_get_signed instead of
+ get_frame_register_signed.
+ (tic6x_get_next_pc): Likewise. Caller updated.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * rs6000-aix-tdep.c (branch_dest): Replace parameter frame with
+ regcache. Call get_regcache_arch instead of get_frame_arch.
+ Call regcache_raw_get_unsigned instead of
+ get_frame_register_unsigned.
+ (rs6000_software_single_step): Likewise.
+ * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Call
+ get_regcache_arch instead of get_frame_arch. Call
+ regcache_read_pc instead of get_frame_pc.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * s390-linux-tdep.c (s390_software_single_step): Call
+ get_regcache_arch instead of get_frame_arch. Call
+ regcache_read_pc instead of get_frame_pc.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * sparc-tdep.c (sparc_analyze_control_transfer): Replace parameter
+ frame with regcache. Call get_current_frame.
+ (sparc_software_single_step): Call get_regcache_arch instead of
+ get_frame_arch. Call regcache_raw_get_unsigned instead of
+ get_frame_register_unsigned.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * nios2-tdep.c (nios2_get_next_pc): Replace parameter frame
+ with regcache. Call regcache_raw_get_signed instead of
+ get_frame_register_unsigned.
+ (nios2_software_single_step): Call get_regcache_arch
+ instead of get_frame_arch.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * moxie-tdep.c (moxie_software_single_step): Call
+ get_regcache_arch instead of get_frame_arch. Call
+ regcache_read_pc instead of get_frame_pc.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * mips-tdep.c (mips32_bc1_pc): Replace parameter frame with
+ regcache. Call regcache_raw_get_unsigned instead of
+ get_frame_register_unsigned.
+ (mips32_next_pc): Likewise.
+ (micromips_bc1_pc): Likewise.
+ (micromips_next_pc): Likewise.
+ (extended_mips16_next_pc): Likewise.
+ (mips16_next_pc): Likewise.
+ (mips_next_pc): Likewise.
+ (mips_software_single_step): Call get_regcache_arch instead
+ of get_frame_arch.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * cris-tdep.c (find_step_target): Replace parameter frame
+ with regcache. Call get_regcache_arch instead of
+ get_frame_arch. Call regcache_raw_get_unsigned instead of
+ get_frame_register_unsigned.
+ (cris_software_single_step): Call get_regcache_arch instead
+ of get_frame_arch.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * alpha-tdep.c (alpha_deal_with_atomic_sequence): Call
+ get_regcache_arch instead of get_frame_arch. Call
+ regcache_read_pc instead of get_frame_pc.
+ (alpha_next_pc): Replace parameter frame with regcache.
+ Call regcache_raw_get_unsigned instead of
+ get_frame_register_unsigned.
+
+2016-11-22 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-tdep.c (aarch64_software_single_step): Call
+ get_regcache_arch instead of get_frame_arch. Call
+ regcache_read_pc instead of get_frame_pc.
+
2016-11-22 Yao Qi <yao.qi@linaro.org>
* regcache.c (regcache_raw_get_signed): New function.