X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=70736f5cc3e7b3f42b0485519af947d5d7c4db2e;hb=ff4ca5ac6a2e85177dc7efe5cbda7b956bb71fd5;hp=f3b88e18e02992fee104824148305bb659c7eabc;hpb=f532ab94387d1bc47de619ae08ead522753d89fa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f3b88e18e0..70736f5cc3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,643 @@ +2017-06-08 Alan Hayward + + * mi/mi-main.c (register_changed_p): Use cooked_read_value. + +2017-06-07 Sergio Durigan Junior + + * NEWS (Changes since GDB 8.0): Announce that GDBserver is now + able to start inferiors using a shell. + (New remote packets): Announce new packet "QStartupWithShell". + * remote.c: Add PACKET_QStartupWithShell. + (extended_remote_create_inferior): Handle new + PACKET_QStartupWithShell. + (remote_protocol_features) : New entry for + PACKET_QStartupWithShell. + (_initialize_remote): Call "add_packet_config_cmd" for + QStartupShell. + +2017-06-07 Sergio Durigan Junior + Pedro Alves + + * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" + and "nat/fork-inferior.h". + * common/common-inferior.h: New file, with contents from + "gdb/inferior.h". + * commom/common-utils.c: Include "common-utils.h". + (stringify_argv): New function. + * common/common-utils.h (stringify_argv): New prototype. + * configure.nat: Add "fork-inferior.o" as a dependency for + "*linux*", "fbsd*" and "nbsd*" hosts. + * corefile.c (get_exec_file): Update comment. + * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" + instead of "startup_inferior". + (darwin_create_inferior): Call "add_thread_silent" after + "fork_inferior". + * fork-child.c: Cleanup unnecessary includes. + (SHELL_FILE): Move to "common/common-fork-child.c". + (environ): Likewise. + (exec_wrapper): Initialize. + (get_exec_wrapper): New function. + (breakup_args): Move to "common/common-fork-child.c"; rename to + "breakup_args_for_exec". + (escape_bang_in_quoted_argument): Move to + "common/common-fork-child.c". + (saved_ui): New variable. + (prefork_hook): New function. + (postfork_hook): Likewise. + (postfork_child_hook): Likewise. + (gdb_startup_inferior): Likewise. + (fork_inferior): Move to "common/common-fork-child.c". Update + function to support gdbserver. + (startup_inferior): Likewise. + * gdbcore.h (get_exec_file): Remove declaration. + * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" + instead of "startup_inferior". Call "add_thread_silent" after + "fork_inferior". + * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". + (inf_ptrace_create_inferior): Call "gdb_startup_inferior" + instead of "startup_inferior". Call "add_thread_silent" after + "fork_inferior". + * inferior.h: Include "common-inferior.h". + (trace_start_error): Move to "common/common-utils.h". + (trace_start_error_with_name): Likewise. + (fork_inferior): Move prototype to "nat/fork-inferior.h". + (startup_inferior): Likewise. + (gdb_startup_inferior): New prototype. + * nat/fork-inferior.c: New file, with contents from "fork-child.c". + * nat/fork-inferior.h: New file. + * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" + instead of "startup_inferior". Call "add_thread_silent" after + "fork_inferior". + * target.h (target_terminal_init): Move prototype to + "target/target.h". + (target_terminal_inferior): Likewise. + (target_terminal_ours): Likewise. + * target/target.h (target_terminal_init): New prototype, moved + from "target.h". + (target_terminal_inferior): Likewise. + (target_terminal_ours): Likewise. + * utils.c (gdb_flush_out_err): New function. + +2017-06-07 Sergio Durigan Junior + + * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". + * common/common-gdbthread.h: New file, with parts from + "gdb/gdbthread.h". + * gdbthread.h: Include "common-gdbthread.h". + (switch_to_thread): Moved to "common/common-gdbthread.h". + +2017-06-07 Sergio Durigan Junior + + * Makefile.in (SFILES): Add "common/job-control.c". + (HFILES_NO_SRCDIR): Add "common/job-control.h". + (COMMON_OBS): Add "job-control.o". + * common/job-control.c: New file, with contents from + "gdb/inflow.c". + * common/job-control.h: New file, with contents from "terminal.h". + * fork-child.c: Include "job-control.h". + * inflow.c: Include "job-control.h". + (gdb_setpgid): Move to "common/common-inflow.c". + (_initialize_inflow): Move setting of "job_control" to + "handle_job_control". + * terminal.h (job_control): Moved to "common/common-terminal.h". + (gdb_setpgid): Likewise. + * top.c: Include "job_control.h". + * utils.c: Likewise. + (job_control): Moved to "job-control.c". + +2017-06-07 Pedro Alves + + * Makefile.in (SFILES): Add gdb_regex.c. + (COMMON_OBS): Add gdb_regex.o. + * ada-lang.c (ada_add_standard_exceptions) + (ada_add_exceptions_from_frame, name_matches_regex) + (ada_add_global_exceptions, ada_exceptions_list_1): Change regex + parameter type to compiled_regex. Adjust. + (ada_exceptions_list): Use compiled_regex. + * break-catch-throw.c (exception_catchpoint::pattern): Now a + std::unique_ptr. + (exception_catchpoint::~exception_catchpoint): Remove regfree + call. + (check_status_exception_catchpoint): Adjust to use compiled_regex. + (handle_gnu_v3_exceptions): Adjust to use compiled_regex. + * breakpoint.c (solib_catchpoint::compiled): Now a + std::unique_ptr. + (solib_catchpoint::~solib_catchpoint): Remove regfree call. + (check_status_catch_solib): Adjust to use compiled_regex. + (add_solib_catchpoint): Adjust to use compiled_regex. + * cli/cli-cmds.c (apropos_command): Use compiled_regex. + * cli/cli-decode.c (apropos_cmd): Change regex parameter to + compiled_regex reference. Adjust to use it. + * cli/cli-decode.h: Remove struct re_pattern_buffer forward + declaration. Include "gdb_regex.h". + (apropos_cmd): Change regex parameter to compiled_regex reference. + * gdb_regex.c: New file. + * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete + declarations. + (class compiled_regex): New. + * linux-tdep.c: Include "common/gdb_optional.h". + (struct mapping_regexes): New, factored out from + mapping_is_anonymous_p, and adjusted to use compiled_regex. + (mapping_is_anonymous_p): Use mapping_regexes wrapped in a + gdb::optional and remove cleanups. Adjust to compiled_regex. + * probe.c: Include "common/gdb_optional.h". + (collect_probes): Use compiled_regex and gdb::optional and remove + cleanups. + * skip.c: Include "common/gdb_optional.h". + (skiplist_entry::compiled_function_regexp): Now a + gdb::optional. + (skiplist_entry::compiled_function_regexp_is_valid): Delete field. + (free_skiplist_entry): Remove regfree call. + (compile_skip_regexp, skip_rfunction_p): Adjust to use + compiled_regex and gdb::optional. + * symtab.c: Include "common/gdb_optional.h". + (search_symbols): Use compiled_regex and gdb::optional. + * utils.c (do_regfree_cleanup, make_regfree_cleanup) + (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved + to gdb_regex.c. + +2017-06-07 Alan Hayward + + * regcache.c (regcache::save): Avoid buffer use. + (regcache::dump): Likewise. + +2017-06-07 Alan Hayward + + * sh-tdep.c (sh_pseudo_register_read): Remove + MAX_REGISTER_SIZE. + (sh_pseudo_register_write): Likewise. + * sh64-tdep.c (sh64_pseudo_register_read): Likewise. + (sh64_pseudo_register_write): Likewise + +2017-06-07 Alan Hayward + + * aarch64-tdep.c (aarch64_store_return_value): Use + V_REGISTER_SIZE. + (aarch64_pseudo_read_value): Likewise. + (aarch64_pseudo_write): Likewise. + +2017-06-06 Yao Qi + + * regformats/regdef.h (set_register_cache): Remove the + declaration. + +2017-06-06 Alan Hayward + + * frame.c (frame_unwind_register_signed): Use + frame_unwind_register_value. + +2017-06-06 Pedro Alves + + PR breakpoints/21553 + * breakpoint.c (create_breakpoints_sal_default) + (init_breakpoint_sal, create_breakpoint_sal): Use + gdb::unique_xmalloc_ptr for string parameters. + (create_breakpoint): Constify 'extra_string' and 'cond_string' + parameters. Replace cleanups with gdb::unique_xmalloc_ptr. + (base_breakpoint_create_breakpoints_sal) + (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) + (strace_marker_create_breakpoints_sal) + (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for + string parameters. + * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use + gdb::unique_xmalloc_ptr for string parameters. + (create_breakpoint): Constify 'extra_string' and 'cond_string' + parameters. + +2017-06-06 Alan Hayward + + * alpha-tdep.c (alpha_register_to_value): Use + get_frame_register_value. + (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. + +2017-06-06 Alan Hayward + + * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. + (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. + (ia64_value_to_register): Likewise. + (ia64_extract_return_value): Likewise. + (ia64_store_return_value): Likewise. + (ia64_push_dummy_call): Likewise. + +2017-06-04 Joel Brobecker + + GDB 8.0 released. + +2017-06-03 Simon Marchi + + * x86-linux-nat.c (struct arch_lwp_info): Remove. + +2017-06-03 Simon Marchi + + * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST + parameter. + (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. + +2017-06-02 Simon Marchi + + * event-loop.c (poll_timers): Unallocate timer using delete + instead of xfree. + +2017-06-02 Simon Marchi + + * breakpoint.h (struct breakpoint_ops) : Remove. + (struct breakpoint) <~breakpoint>: New. + (struct watchpoint): Inherit from breakpoint. + <~watchpoint>: New. + : Remove. + (struct tracepoint): Inherit from breakpoint. + : Remove. + * breakpoint.c (longjmp_breakpoint_ops): Remove. + (struct longjmp_breakpoint): Inherit from breakpoint. + <~longjmp_breakpoint>: New. + : Remove. + (new_breakpoint_from_type): Remove casts. + (watchpoint_in_thread_scope): Remove reference to base field. + (watchpoint_del_at_next_stop): Likewise. + (update_watchpoint): Likewise. + (watchpoint_check): Likewise. + (bpstat_check_watchpoint): Likewise. + (set_longjmp_breakpoint): Likewise. + (struct fork_catchpoint): Inherit from breakpoint. + : Remove. + (struct solib_catchpoint): Inherit from breakpoint. + <~solib_catchpoint>: New. + : Remove. + (dtor_catch_solib): Change to ... + (solib_catchpoint::~solib_catchpoint): ... this. + (breakpoint_hit_catch_solib): Remove reference to base field. + (add_solib_catchpoint): Likewise. + (create_fork_vfork_event_catchpoint): Likewise. + (struct exec_catchpoint): Inherit from breakpoint. + <~exec_catchpoint>: New. + : Remove. + (dtor_catch_exec): Change to ... + (exec_catchpoint::~exec_catchpoint): ... this. + (dtor_watchpoint): Change to ... + (watchpoint::~watchpoint): ... this. + (watch_command_1): Remove reference to base field. + (catch_exec_command_1): Likewise. + (base_breakpoint_dtor): Change to ... + (breakpoint::~breakpoint): ... this. + (base_breakpoint_ops): Remove dtor field value. + (longjmp_bkpt_dtor): Change to ... + (longjmp_breakpoint::~longjmp_breakpoint): ... this. + (strace_marker_create_breakpoints_sal): Remove reference to base + field. + (delete_breakpoint): Don't manually call breakpoint destructor. + (create_tracepoint_from_upload): Remove reference to base field. + (trace_pass_set_count): Likewise. + (initialize_breakpoint_ops): Don't initialize + momentary_breakpoint_ops, don't set dtors. + * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. + <~ada_catchpoint>: New. + : Remove. + (create_excep_cond_exprs): Remove reference to base field. + (dtor_exception): Change to ... + (ada_catchpoint::~ada_catchpoint): ... this. + (dtor_catch_exception): Remove. + (dtor_catch_exception_unhandled): Remove. + (dtor_catch_assert): Remove. + (create_ada_exception_catchpoint): Remove reference to base + field. + (initialize_ada_catchpoint_ops): Don't set dtors. + * break-catch-sig.c (struct signal_catchpoint): Inherit from + breakpoint. + <~signal_catchpoint>: New. + : Remove. + (signal_catchpoint_dtor): Change to ... + (signal_catchpoint::~signal_catchpoint): ... this. + (create_signal_catchpoint): Remove reference to base field. + (initialize_signal_catchpoint_ops): Don't set dtor. + * break-catch-syscall.c (struct syscall_catchpoint): Inherit + from breakpoint. + <~syscall_catchpoint>: New. + : Remove. + (dtor_catch_syscall): Change to ... + (syscall_catchpoint::~syscall_catchpoint): ... this. + (create_syscall_event_catchpoint): Remove reference to base + field. + (initialize_syscall_catchpoint_ops): Don't set dtor. + * break-catch-throw.c (struct exception_catchpoint): Inherit + from breakpoint. + <~exception_catchpoint>: New. + : Remove. + (dtor_exception_catchpoint): Change to ... + (exception_catchpoint::~exception_catchpoint): ... this. + (handle_gnu_v3_exceptions): Remove reference to base field. + (initialize_throw_catchpoint_ops): Don't set dtor. + * ctf.c (ctf_get_traceframe_address): Remove reference to base + field. + * remote.c (remote_get_tracepoint_status): Likewise. + * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. + * tracefile.c (tracefile_fetch_registers): Likewise. + * tracepoint.c (actions_command): Likewise. + (validate_actionline): Likewise. + (tfind_1): Likewise. + (get_traceframe_location): Likewise. + (find_matching_tracepoint_location): Likewise. + (parse_tracepoint_status): Likewise. + * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. + +2017-06-02 Simon Marchi + + * breakpoint.c (struct longjmp_breakpoint): New struct. + (is_tracepoint_type): Change return type to bool. + (is_longjmp_type): New function. + (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. + (set_raw_breakpoint_without_location): Use + new_breakpoint_from_type. + (set_raw_breakpoint): Likewise. + +2017-06-02 Simon Marchi + + * breakpoint.c (new_breakpoint_from_type): New function. + (create_breakpoint_sal): Use new_breakpoint_from_type and + unique_ptr. + (create_breakpoint): Likewise. + +2017-05-31 Simon Marchi + + * memattr.c (mem_info_command): Rename to ... + (info_mem_command): ... this. + (mem_enable_command): Rename to ... + (enable_mem_command): ... this. + (mem_disable_command): Rename to ... + (disable_mem_command): ... this. + (mem_delete_command): Rename to ... + (delete_mem_command): ... this. + (_initialize_mem): Adjust function names. + +2017-05-31 Markus Metzger + + * btrace.c (handle_pt_insn_events): New. + (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into + STATUS. Split into this and ... + (handle_pt_insn_event_flags): ... this. + +2017-05-31 Markus Metzger + + * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, + and struct pt_insn.resynced. + * configure: Regenerated. + * config.in: Regenerated. + +2017-05-30 Tim Wiederhake + + * btrace.c (ftrace_find_call_by_number): New function. + (ftrace_new_function): Store objects, not pointers. + (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, + ftrace_new_gap, ftrace_update_function, + ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, + btrace_insn_get, btrace_insn_get_error, btrace_insn_end, + btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, + btrace_ends_with_single_insn, btrace_call_get): Account for + btrace_thread_info::functions now storing objects. + * btrace.h (struct btrace_thread_info): Add constructor. + (struct btrace_thread_info) : Make std::vector. + (struct btrace_thread_info) + + * btrace.c: Remove typedef bfun_s. + (ftrace_new_gap): Directly add gaps to the list of gaps. + (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, + ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, + btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector + instead of gdb VEC. + +2017-05-30 Tim Wiederhake + + * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, + ftrace_bridge_gap): Replace references to btrace_thread_info::segment + with btrace_thread_info::next_segment and + btrace_thread_info::prev_segment. + * btrace.h: Remove struct btrace_func_link. + (struct btrace_function): Replace pair of function segment pointers + with pair of indices. + * python/py-record-btrace.c (btpy_call_prev_sibling, + btpy_call_next_sibling): Replace references to + btrace_thread_info::segment with btrace_thread_info::next_segment and + btrace_thread_info::prev_segment. + * record-btrace.c (record_btrace_frame_this_id): Use + btrace_find_call_by_number. + +2017-05-30 Tim Wiederhake + + * btrace.c (ftrace_new_function, ftrace_fixup_level, + ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, + btrace_insn_next, btrace_insn_prev): Remove references to + btrace_thread_info::flow. + * btrace.h (struct btrace_function): Remove FLOW. + +2017-05-30 Tim Wiederhake + + * btrace.c (ftrace_find_call_by_number): New function. + (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, + ftrace_get_caller, ftrace_find_call, ftrace_new_return, + ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, + ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an + index. + * btrace.h (struct btrace_function): Turn UP into an index. + * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up + as an index. + * record-btrace.c (record_btrace_frame_unwind_stop_reason, + record_btrace_frame_prev_register, record_btrace_frame_sniffer, + record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. + +2017-05-30 Tim Wiederhake + + * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, + ftrace_new_return, ftrace_new_switch, ftrace_new_gap, + ftrace_update_function, ftrace_compute_global_level_offset, + btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, + btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, + btrace_insn_end, btrace_is_empty): Remove references to + btrace_thread_info::begin and btrace_thread_info::end. + * btrace.h (struct btrace_thread_info): Remove BEGIN and END. + (struct btrace_thread_info) : Adjust comment. + * record-btrace.c (record_btrace_start_replaying): Remove reference to + btrace_thread_info::begin. + +2017-05-30 Tim Wiederhake + + * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, + ftrace_new_return, ftrace_new_switch, ftrace_new_gap, + ftrace_update_function): Remove arguments that implicitly were always + BTINFO->END. + (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): + Don't pass BTINFO->END. + +2017-05-30 Tim Wiederhake + + * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, + btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, + btrace_find_insn_by_number): Replace function segment pointer with + index. + (btrace_insn_cmp): Simplify. + * btrace.h: (struct btrace_insn_iterator) Rename index to + insn_index. Replace function segment pointer with index into function + segment vector. + * record-btrace.c (record_btrace_call_history): Replace function + segment pointer use with index. + (record_btrace_frame_sniffer): Retrieve function call segment through + vector. + (record_btrace_set_replay): Remove defunc't safety check. + +2017-05-30 Tim Wiederhake + + * btrace.c (btrace_ends_with_single_insn): New function. + (btrace_call_get, btrace_call_number, btrace_call_begin, + btrace_call_end, btrace_call_next, btrace_call_prev, + btrace_find_call_by_number): Use index into call segment vector + instead of pointer. + (btrace_call_cmp): Simplify. + * btrace.h (struct btrace_call_iterator): Replace function call segment + pointer with index into vector. + * record-btrace.c (record_btrace_call_history): Use index instead of + pointer. + +2017-05-30 Tim Wiederhake + + * btrace.c (btrace_insn_begin, btrace_insn_end, + btrace_find_insn_by_number): Add btinfo to iterator. + * btrace.h (struct btrace_insn_iterator): Add btinfo. + +2017-05-30 Tim Wiederhake + + * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments + and save pointers directly. + (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, + ftrace_new_switch, ftrace_new_gap, ftrace_update_function, + ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for + changed signature of functions. + (btrace_compute_ftrace_pt): Adjust for changed signature of functions. + (btrace_fetch): Remove code that adds btrace_function pointers to + vector of btrace_functions. + (btrace_clear): Simplify freeing vector of btrace_functions. + +2017-05-30 Tim Wiederhake + + * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): + Replace VEC_* with std::vector functions. + * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. + (struct btrace_thread_info): Change type to std::vector. + +2017-05-30 Simon Marchi + + * NEWS (Changes in GDB 8.0): Remove extra empty line. Move + "Removed targets and native configurations" up. Merge duplicate + "New commands" sub-sections. Add "New options" sub-sections. + +2017-05-26 Alan Hayward + + * defs.h (copy_integer_to_size): New declaration. + * findvar.c (copy_integer_to_size): New function. + (do_cint_test): New selftest function. + (copy_integer_to_size_test): Likewise. + (_initialize_findvar): Likewise. + * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. + (mips_fbsd_collect_reg): Use raw_collect_integer. + * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. + (mips64_fill_gregset): Use raw_collect_integer + (mips64_fill_fpregset): Use raw_supply_integer. + * regcache.c (regcache::raw_supply_integer): New function. + (regcache::raw_collect_integer): Likewise. + * regcache.h: (regcache::raw_supply_integer): New declaration. + (regcache::raw_collect_integer): Likewise. + +2017-05-24 Yao Qi + + * Makefile.in (SFILES): Add gdbarch-selftests.c. + (COMMON_OBS): Add gdbarch-selftests.o. + * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. + * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. + * gdbarch-selftests.c: New file. + * regcache.h (regcache) <~regcache>: Mark it virtual if + GDB_SELF_TEST. + : Likewise. + +2017-05-24 Yao Qi + + * regcache.c (current_regcache): Change it to + regcache::current_regcache. + (regcache_observer_target_changed): Update. + (regcache_thread_ptid_changed): Make it a regcache static + method. + (regcache_thread_ptid_changed): Update. + (class regcache_access): New. + (current_regcache_test): Update. + (_initialize_regcache): Update. + * regcache.h: Include forward_list. + (regcache): Declare regcache_thread_ptid_changed and declare + registers_changed_ptid as friend. + +2017-05-24 Yao Qi + + * i387-tdep.c (i387_register_to_value): Use register_size + instead of TYPE_LENGTH. + * m68k-tdep.c (m68k_register_to_value): Likewise. + +2017-05-24 Yao Qi + + * i387-tdep.c (i387_convert_register_p): Return false if type + code isn't TYPE_CODE_FLT. + +2017-05-24 Yao Qi + + * alpha-tdep.c (alpha_convert_register_p): Return true if type + length is 4. + (alpha_register_to_value): Remove type length check. + (alpha_value_to_register): Likewise. + +2017-05-24 Yao Qi + + * ia64-tdep.c (ia64_convert_register_p): Check type's code is + TYPE_CODE_FLT. + +2017-05-24 Yao Qi + + * m68k-tdep.c (m68k_convert_register_p): Check type's code is + TYPE_CODE_FLT or not. + +2017-05-24 Yao Qi + + * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. + * avr-tdep.c (avr_gdbarch_init): Likewise. + * bfin-tdep.c (bfin_gdbarch_init): Likewise. + * cris-tdep.c (cris_gdbarch_init): Likewise. + * ft32-tdep.c (ft32_gdbarch_init): Likewise. + * lm32-tdep.c (lm32_gdbarch_init): Likewise. + * m32r-tdep.c (m32r_gdbarch_init): Likewise. + * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. + * mep-tdep.c (mep_gdbarch_init): Likewise. + * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. + * mips-tdep.c (mips_gdbarch_init): Likewise. + * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. + * moxie-tdep.c (moxie_gdbarch_init): Likewise. + * msp430-tdep.c (msp430_gdbarch_init): Likewise. + * sh64-tdep.c (sh64_gdbarch_init): Likewise. + * v850-tdep.c (v850_gdbarch_init): Likewise. + +2017-05-24 Yao Qi + + * selftest-arch.c (tests_with_arch): Call registers_changed + and reinit_frame_cache. + * selftest.c (run_self_tests): Likewise. + +2017-05-24 Yao Qi + + * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. + (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. + +2017-05-24 Yao Qi + + * rl78-tdep.c (rl78_gdbarch_init): Don't call + set_gdbarch_print_insn. + 2017-05-24 Yao Qi * h8300-tdep.c (h8300_gdbarch_init): Don't call