X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=af22deb2c6cced06f5fdc5c3f2bd69b4b2cebc30;hb=2098b39391a5ade9ed308d76f2dfc7ceedd2d9a3;hp=230735b1ece642fb13fa0a957209fe1e595201d6;hpb=dcd5ddccd7d7917caf42b8d429a7535857c6e9b2;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 230735b1ec..af22deb2c6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,1021 @@ +2017-10-14 Simon Marchi + + * target.h: Include tracepoint.h. + (enum trace_find_type): Move to tracepoint.h. + (struct target_ops) : Return a unique ptr. + * tracepoint.h: Don't include target.h + (enum trace_find_type): Move from target.h. + (parse_traceframe_info): Return a unique ptr. + * tracepoint.c (current_traceframe_info): Change type to unique + ptr. + (free_traceframe_info): Remove. + (clear_traceframe_info): Don't manually free + current_traceframe_info. + (free_result): Remove. + (parse_traceframe_info): Return a unique ptr. + (get_traceframe_info): Adjust to unique ptr. + * ctf.c (ctf_traceframe_info): Return a unique ptr. + * remote.c (remote_traceframe_info): Return a unique ptr. + * tracefile-tfile.c (tfile_traceframe_info): Return a unique + ptr. + * target-debug.h (target_debug_print_traceframe_info_up): New + macro. + * target-delegates.c: Regenerate. + +2017-10-14 Simon Marchi + + * memrange.h (struct mem_range): Add constructors. + * tracepoint.h (struct traceframe_info) : Change type to + std::vector. + * tracepoint.c (free_traceframe_info): Don't manually free + vector. + (traceframe_info_start_memory): Adjust to vector change. + (traceframe_available_memory): Likewise. + * tracefile-tfile.c (build_traceframe_info): Likewise. + * ctf.c (ctf_traceframe_info): Likewise. + +2017-10-14 Simon Marchi + + * tracepoint.h (struct traceframe_info) : Change type to + std::vector. + * tracepoint.c (free_traceframe_info): Deallocate with delete. + (traceframe_info_start_tvar): Adjust to vector change. + (parse_traceframe_info): Allocate with new. + * ctf.c (ctf_traceframe_info): Allocate with new, adjust to + vector change. + * tracefile-tfile.c (build_traceframe_info): Adjust to vector + change. + tfile_traceframe_info): Allocate with new. + * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector + change. + +2017-10-14 Simon Marchi + + * tracepoint.c (traceframe_info): Rename to... + (current_traceframe_info): ...this. + (clear_traceframe_info): Adjust. + (get_traceframe_info): Adjust. + +2017-10-14 Simon Marchi + + * nat/linux-osdata.c: Include algorithm. + (compare_processes): Remove. + (struct pid_pgid_entry): New struct. + (linux_xfer_osdata_processgroups): Use std::vector instead of + XNEWVEC. + +2017-10-14 Simon Marchi + + * objfiles.h: Don't include symfile.h. + (struct partial_symbol): Remove forward-declaration. + (struct objfile) : Change type + to std::vector. + * objfiles.c (objfile::objfile): Don't memset those fields. + (objfile::~objfile): Don't free those fields. + * psympriv.h (struct psymbol_allocation_list): Remove + forward-declaration. + (add_psymbol_to_list): Change psymbol_allocation_list parameter + to std::vector. + (start_psymtab_common): Change parameters to std::vector. + * psymtab.c: Include algorithm. + (require_partial_symbols): Call shrink_to_fit. + (find_pc_sect_psymbol): Adjust to vector change. + (match_partial_symbol): Likewise. + (lookup_partial_symbol): Likewise. + (psym_relocate): Likewise. + (dump_psymtab): Likewise. + (recursively_search_psymtabs): Likewise. + (compare_psymbols): Remove. + (sort_pst_symbols): Adjust to vector change. + (start_psymtab_common): Likewise. + (end_psymtab_common): Likewise. + (psymbol_bcache_full): De-constify return value. + (add_psymbol_to_bcache): Likewise. + (extend_psymbol_list): Remove. + (append_psymbol_to_list): Adjust to vector change. + (add_psymbol_to_list): Likewise. + (init_psymbol_list): Likewise. + (maintenance_info_psymtabs): Likewise. + (maintenance_check_psymtabs): Likewise. + * symfile.h (struct psymbol_allocation_list): Remove. + * symfile.c (reread_symbols): Adjust to vector change. + * dbxread.c (start_psymtab): Change type of parameters. + (dbx_symfile_read): Adjust to vector change. + (read_dbx_symtab): Likewise. + (start_psymtab): Change type of parameters. + * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change. + (create_partial_symtab): Likewise. + (add_partial_symbol): Likewise. + (write_one_signatured_type): Likewise. + (recursively_write_psymbols): Likewise. + * mdebugread.c (parse_partial_symbols): Likewise. + * xcoffread.c (xcoff_start_psymtab): Change type of parameters. + (scan_xcoff_symtab): Adjust to vector change. + (xcoff_initial_scan): Likewise. + +2017-10-13 Simon Marchi + + * ada-typeprint.c (print_dynamic_range_bound): Use std::string. + +2017-10-13 Yao Qi + + * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite. + Remove s390x-*-expedite, add s390x-expedite. + +2017-10-13 Yao Qi + + * features/s390-gs-linux64.c: Regenerated. + * features/s390x-gs-linux64.c: Regenerated. + +2017-10-13 Tom Tromey + + * compile/compile-object-run.c (do_module_cleanup): Use delete. + * solib.c (update_solib_list, reload_shared_libraries_1): Use + delete. + * symfile.c (symbol_file_add_with_addrs): Use new. + (symbol_file_add_separate): Update comment. + (syms_from_objfile_1, remove_symbol_file_command): Use delete. + * jit.c (jit_object_close_impl): Use new. + (jit_unregister_code): Use delete. + * objfiles.c (objfile::objfile): Rename from allocate_objfile. + (~objfile): Rename from free_objfile. + (free_objfile_separate_debug, do_free_objfile_cleanup) + (free_all_objfiles, objfile_purge_solibs): Use delete. + * objfiles.h (struct objfile): Add constructor and destructor. + Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members. + (allocate_objfile, free_objfile): Don't declare. + (struct objstats): Add initializers. + +2017-10-12 Simon Marchi + + * arch-utils.h (simple_displaced_step_copy_insn): Remove. + * arch-utils.c (simple_displaced_step_copy_insn): Remove. + * gdbarch.sh (displaced_step_copy_insn): Adjust comment. + * gdbarch.h: Regenerate. + * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): + Adjust comment. + * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment. + (i386_displaced_step_fixup): Adjust comment. + * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment. + +2017-10-12 Tom Tromey + + * prologue-value.h (pv_area::store_would_trash): Return bool. + (pv_area::find_reg): Likewise. + * prologue-value.c (pv_area::store_would_trash): Return bool. + (pv_area::find_reg): Likewise. + +2017-10-12 Tom Tromey + + * s390-linux-tdep.c (s390_store, s390_load) + (s390_check_for_saved, s390_analyze_prologue): Update. + * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update. + * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update. + * prologue-value.h (class pv_area): Move from prologue-value.c. + Change names of members. Add constructor, destructor, member + functions. + (make_pv_area, free_pv_area, make_cleanup_free_pv_area) + (pv_area_store, pv_area_fetch, pv_area_store_would_trash) + (pv_area_fetch, pv_area_scan): Don't declare. + * prologue-value.c (struct pv_area::area_entry): Now member of + pv_area. + (struct pv_area): Move to prologue-value.h. + (pv_area::pv_area): Rename from make_pv_area. + (pv_area::~pv_area): Rename from free_pv_area. + (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove. + (clear_entries, find_entry, overlaps, store_would_trash, store) + (fetch, find_reg, scan): Now member of pv_area. + Remove "area" argument. Update. + * msp430-tdep.c (check_for_saved, msp430_analyze_prologue): + Update. + * mn10300-tdep.c (push_reg, check_for_saved) + (mn10300_analyze_prologue): Update. + * mep-tdep.c (is_arg_spill, check_for_saved) + (mep_analyze_prologue): Update. + * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch) + (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill) + (m32c_is_struct_return, m32c_analyze_prologue): Update. + * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue): + Update. + * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update. + * aarch64-tdep.c (aarch64_analyze_prologue): Update. + +2017-10-12 Simon Marchi + + * linux-nat.h (linux_nat_set_delete_thread): New declaration. + * linux-nat.c (linux_nat_delete_thread): New variable. + (lwp_free): Invoke linux_nat_delete_thread if set. + (linux_nat_set_delete_thread): New function. + * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign + thread delete callback. + * arm-linux-nat.c (arm_linux_delete_thread): New function. + (_initialize_arm_linux_nat): Assign thread delete callback. + * s390-linux-nat.c (s390_delete_thread): New function. + (_initialize_s390_nat): Assign thread delete callback. + * x86-linux-nat.c (x86_linux_add_target): Likewise. + * nat/aarch64-linux.c (aarch64_linux_delete_thread): New + function. + * nat/aarch64-linux.h (aarch64_linux_delete_thread): New + declaration. + * nat/x86-linux.c (x86_linux_delete_thread): New function. + * nat/x86-linux.h (x86_linux_delete_thread): New declaration. + +2017-10-09 Tom Tromey + + * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use + std::string. + * tui/tui-layout.c (enum tui_status): Use std::string. + +2017-10-11 Tom Tromey + + * gdbthread.h (thread_command): Constify. + * inferior.h (detach_command): Constify. + * top.h (set_history, show_history): Constify. + * arm-tdep.c (set_arm_command, show_arm_command): Constify. + * serial.c (serial_set_cmd, serial_show_cmd): Constify. + * bsd-kvm.c (bsd_kvm_cmd): Constify. + * printcmd.c (set_command): Constify. + (non_const_set_command): New function. + * dcache.c (set_dcache_command, show_dcache_command): Constify. + * breakpoint.c (enable_command, disable_command, delete_command) + (catch_command, tcatch_command, set_breakpoint_cmd) + (show_breakpoint_cmd): Constify. + * macrocmd.c (macro_command): Constify. + * infcmd.c (unset_command, kill_command, detach_command) + (info_proc_cmd): Constify. + * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify. + * auto-load.c (show_auto_load_cmd, set_auto_load_cmd) + (info_auto_load_cmd): Constify. + * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) + (unset_tdesc_cmd): Constify. + * ada-lang.c (set_ada_command, show_ada_command) + (maint_set_ada_cmd, maint_show_ada_cmd): Constify. + * guile/guile.c (set_guile_command, show_guile_command) + (info_guile_command): Constify. + * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd): + Constify. + * skip.c (skip_command): Constify. + * compile/compile.c (_initialize_compile): Constify. + * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify. + * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) + (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) + (maint_btrace_pt_show_cmd): Constify. + * remote.c (set_remote_cmd, show_remote_cmd, remote_command): + Constify. + * python/python.c (user_show_python, user_set_python): Constify. + * mips-tdep.c (set_mips_command, show_mips_command) + (set_mipsfpu_command): Constify. + * record-btrace.c (cmd_record_btrace_start) + (cmd_set_record_btrace, cmd_show_record_btrace) + (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts) + (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify. + * rs6000-tdep.c (set_powerpc_command, show_powerpc_command): + Constify. + * symfile.c (overlay_command): Constify. + * spu-tdep.c (set_spu_command, show_spu_command): Constify. + * cli/cli-logging.c (set_logging_command, show_logging_command): + Constify. + * cli/cli-dump.c (dump_command, append_command) + (srec_dump_command, ihex_dump_command, verilog_dump_command) + (tekhex_dump_command, binary_dump_command) + (binary_append_command): Constify. + * cli/cli-decode.c (struct cmd_list_element): Change type of + "fun". + * cli/cli-cmds.c (info_command, show_command, set_debug) + (show_debug): Constify. + (show_command): Add non-const overload. + * top.c (set_history, show_history): Constify. + * sh-tdep.c (set_sh_command, show_sh_command): Constify. + * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype. + * target.c (target_command): Constify. + * sparc64-tdep.c (info_adi_command): Constify. + * record-full.c (cmd_record_full_start): Constify. + (set_record_full_command): Constify. Fix typo. + (show_record_full_command): Constify. + * thread.c (thread_command, thread_apply_command): Constify. + * memattr.c (dummy_cmd): Constify. + * value.c (function_command): Constify. + * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify. + * probe.c (info_probes_command): Constify. + * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify. + * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd) + (show_thread_cmd, set_thread_default_cmd) + (show_thread_default_cmd): Constify. + (check_empty): Constify. + * tracepoint.c (tfind_command): Constify. + * cp-support.c (maint_cplus_command): Constify. + * windows-tdep.c (info_w32_command): Constify. + * record.c (cmd_record_start, set_record_command) + (show_record_command, info_record_command, cmd_record_goto): + Constify. + * ravenscar-thread.c (set_ravenscar_command) + (show_ravenscar_command): Constify. + * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): + Constify. + (add_internal_problem_command): Remove casts. + * arc-tdep.c (maintenance_print_arc_command): Constify. + * valprint.c (set_print, show_print, set_print_raw) + (show_print_raw): Constify. + * maint.c (maintenance_command, maintenance_info_command) + (maintenance_print_command, maintenance_set_cmd) + (maintenance_show_cmd, set_per_command_cmd) + (show_per_command_cmd, maintenance_check_command): Constify. + * language.c (set_check, show_check): Constify. + * typeprint.c (show_print_type, set_print_type): Constify. + * go32-nat.c (go32_info_dos_command): Constify. + +2017-10-11 Tom Tromey + + * breakpoint.c (prepare_re_set_context): Remove. + (breakpoint_re_set_one): Update. Don't use cleanups. + (breakpoint_re_set): Use scoped_restore, std::string, and + scoped_restore_current_language. + +2017-10-11 Tom Tromey + + * breakpoint.c (commands_command_1): Use std::string. + (cleanup_executing_breakpoints): Remove. + (bpstat_do_actions_1): Use scoped_restore. + (bpstat_check_watchpoint): Use std::string. + (decode_static_tracepoint_spec): Likewise. + (break_range_command): Likewise. + (watch_command_1): Likewise. + (compare_breakpoints): Change argument types. + (clear_command): Use std::vector. + (cleanup_executing_breakpoints): Remove. + (update_global_location_list): Use unique_xmalloc_ptr. + (strace_command): Remove unused declaration. + +2017-10-11 John Baldwin + + * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c. + * NEWS: Mention new FreeBSD/arm native configuration. + * configure.host: Add arm*-*-freebsd*. + * configure.nat: Likewise. + * arm-fbsd-nat.c: New file. + +2017-10-11 John Baldwin + + * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o. + (ALLDEPFILES): Add arm-fbsd-tdep.c. + * NEWS: Mention new FreeBSD/arm target. + * configure.tgt: Add arm*-*-freebsd*. + * arm-fbsd-tdep.c: New file. + * arm-fbsd-tdep.h: New file. + +2017-10-11 Maciej W. Rozycki + + * linux-tdep.c (linux_make_corefile_notes): Remove call to + `gdbarch_elfcore_write_linux_prpsinfo'. + * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture + method. + (elf_internal_linux_prpsinfo): Remove declaration. + * gdbarch.h: Regenerate. + * gdbarch.c: Regenerate. + +2017-10-11 Maciej W. Rozycki + + * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to + `set_gdbarch_elfcore_write_linux_prpsinfo'. + +2017-10-11 Pedro Alves + + * breakpoint.c (reattach_breakpoints): Delete. + * breakpoint.h (reattach_breakpoints): Delete. + +2017-10-11 Simon Marchi + + * symfile.c (registered_sym_fns): Make struct, not typedef. + (DEF_VEC_O (registered_sym_fns)): Remove. + (symtab_fns): Change type to std::vector. + (add_symtab_fns): Adjust. + (find_sym_fns): Adjust. + +2017-10-11 Anton Kolesov + + * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler. + * arc-tdep.h (arc_arch_is_em): New function. + (arc_arch_is_hs): Likewise. + +2017-10-11 Egeyar Bagcioglu + + * macrotab.h (macro_lookup_inclusion): Remove unnecessary + parentheses in the declaration. + (macro_lookup_inclusion): Likewise. + (macro_lookup_definition): Likewise. + * p-lang.h (pascal_builtin_types): Likewise. + * tui/tui-data.c (tui_win_list): Likewise. + * tui/tui-data.h (tui_win_list): Likewise. + * utils.h (make_cleanup_free_section_addr_info): Likewise. + +2017-10-11 Mark Rages + + * target-memory.c (block_boundaries): Fix for block address not + aligned on block size. + +2017-10-10 Pedro Alves + Tom Tromey + + * breakpoint.c (struct captured_breakpoint_query_args) + (do_captured_breakpoint_query, gdb_breakpoint_query): Delete. + (print_breakpoint): New. + * breakpoint.h (print_breakpoint): Declare. + * common/common-exceptions.h (enum return_reason): Remove + references to catch_exceptions. + * exceptions.c (catch_exceptions, catch_exceptions_with_msg): + Delete. + * exceptions.h (catch_exceptions_ftype, catch_exceptions) + (catch_exception_ftype, catch_exceptions_with_msg): Delete. + * gdb.h: Delete. + * gdbthread.h (thread_select): Declare. + * mi/mi-cmd-break.c: Don't include gdb.h. + (breakpoint_notify): Use print_breakpoint. + * mi/mi-cmd-catch.c: Don't include gdb.h. + * mi/mi-interp.c: Don't include gdb.h. + (mi_print_breakpoint_for_event): New. + (mi_breakpoint_created, mi_breakpoint_modified): Use + mi_print_breakpoint_for_event. + * mi/mi-main.c: Don't include gdb.h. + (mi_cmd_thread_select): Parse the global thread ID here. Use + thread_select instead of gdb_thread_select. + (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead + of using gdb_list_thread_ids. + * remote-fileio.c (do_remote_fileio_request): Change type. Reply + FILEIO_ENOSYS here. + (remote_fileio_request): Use TRY/CATCH instead of + catch_exceptions. + * symfile-mem.c (struct symbol_file_add_from_memory_args) + (symbol_file_add_from_memory_wrapper): Delete. + (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions. + * thread.c: Don't include gdb.h. + (do_captured_list_thread_ids, gdb_list_thread_ids): Delete. + (thread_alive): Use thread_select. + (do_captured_thread_select): Delete, parts salvaged as ... + (thread_select): ... this new function. + (gdb_thread_select): Delete. + +2017-10-10 Pedro Alves + Tom Tromey + + * breakpoint.c (breakpoint_cond_eval): Change return type to bool + and reverse logic. + (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE): + No longer macros. Instead ... + (enum wp_check_result): They're now values of this new + enumeration. + (watchpoint_check): Change return type to wp_check_result and + parameter type to bpstat. + (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors. + (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of + catch_errors. Reverse logic of watchpoint_check call. + (breakpoint_re_set_one): Now returns void and takes a breakpoint + pointer as parameter. + (breakpoint_re_set): Use TRY/CATCH instead of catch_errors. + * common/common-exceptions.c (throw_exception_sjlj): Update + comments to avoid mentioning catch_errors. + * exceptions.c (catch_errors): Delete. + * exceptions.h: Update comments to avoid mentioning catch_errors. + (catch_errors_ftype, catch_errors): Delete. + * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors. + (hook_stop_stub): Delete. + (restore_selected_frame): Change return type to void, and + parameter type to const frame_id &. + (restore_infcall_control_state): Use TRY/CATCH instead of + catch_errors. + * main.c (captured_command_loop): Return void and remove + parameter. Remove references to catch_errors. + (captured_main): Use TRY/CATCH instead of catch_errors. + * objc-lang.c (objc_submethod_helper_data) + (find_objc_msgcall_submethod_helper): Delete. + (find_objc_msgcall_submethod): Use TRY/CATCH instead of + catch_errors. + * record-full.c (record_full_message): Return void. + (record_full_message_args, record_full_message_wrapper): Delete. + (record_full_message_wrapper_safe): Return bool and use TRY/CATCH + instead of catch_errors. + * solib-aix.c (solib_aix_open_symbol_file_object): Change + parameter type to int. + * solib-darwin.c (open_symbol_file_object): Ditto. + * solib-dsbt.c (open_symbol_file_object): Ditto. + * solib-frv.c (open_symbol_file_object): Ditto. + * solib-svr4.c (open_symbol_file_object): Ditto. + * solib-target.c (solib_target_open_symbol_file_object): Ditto. + * solib.c (update_solib_list): Use TRY/CATCH instead of + catch_errors. + * solist.h (struct target_so_ops) : + Change type. + * symmisc.c (struct print_symbol_args): Remove. + (dump_symtab_1): Use TRY/CATCH instead of catch_errors. + (print_symbol): Change type. + * windows-nat.c (handle_load_dll, handle_unload_dll): Return void + and remove parameters. + (catch_errors): New. + (get_windows_debug_event): Adjust. + +2017-10-09 Tom Tromey + + * mi/mi-main.c (free_splay_tree): Remove. + (list_available_thread_groups): Use splay_tree_up. + * common/gdb_splay_tree.h: New file. + +2017-10-09 Tom Tromey + + * mi/mi-main.c (do_nothing): Remove. + (list_available_thread_groups): Update. + +2017-10-09 Pedro Alves + + * infrun.c (handle_inferior_event_1) : Skip + reading registers when switching context. + +2017-10-09 John Baldwin + + * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit. + (fbsd_convert_siginfo): Likewise. + * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise. + +2017-10-09 Simon Marchi + + * configure.ac (try_guile_versions): Remove guile-2.2. + * configure: Regenerate. + +2017-10-09 Tom Tromey + + * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename). + (COMPILE.pre): Use $(CXX). + +2017-10-09 Pedro Alves + + * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr. + Use bool. + (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr. + * cp-support.h (cp_remove_params): Now returns a + gdb::unique_xmalloc_ptr. + * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool. + Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr. + * psymtab.c (psymtab_search_name): Adjust to cp_remove_params + returning a gdb::unique_xmalloc_ptr. + (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr. + * stack.c (find_frame_funname): Adjust to cp_remove_params + returning a gdb::unique_xmalloc_ptr. + +2017-10-08 Tom Tromey + + * dwarf2read.c (dwarf2_get_dwz_file): Use + gdb::unique_xmalloc_ptr. + (find_slot_in_mapped_hash): Likewise. + (dwarf2_physname): Likewise. + (create_dwo_unit_in_dwp_v1): Use std::string. + (create_dwo_unit_in_dwp_v2): Likewise. + (lookup_dwo_cutu): Likewise. + (inherit_abstract_dies): Use std::vector. + (read_array_type): Likewise. + (dwarf_decode_macros): Remove unused declaration. + (unsigned_int_compar): Remove. + (dwarf2_build_psymtabs_hard): Use scoped_restore. + (psymtabs_addrmap_cleanup): Remove. + +2017-10-08 Tom Tromey + + * frame-unwind.c (frame_unwind_try_unwinder): Update. + * frame.h (frame_cleanup_after_sniffer): Declare. + (frame_prepare_for_sniffer): Return void. + * frame.c (frame_cleanup_after_sniffer): No longer static. Change + type of argument. + (frame_prepare_for_sniffer): Return void. + +2017-10-08 Tom Tromey + + * utils.h (make_cleanup_value_free): Remove. + * utils.c (do_value_free, struct cleanup): Remove. + * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) : + Use gdb_value_up. + * value.h (struct value_deleter): New. + (gdb_value_up): New typedef. + +2017-10-08 Tom Tromey + + * symtab.c (free_search_symbols, do_free_search_symbols_cleanup) + (make_cleanup_free_search_symbols): Remove. + (search_symbols): Return std::vector. + (symbol_search::compare_search_syms): Now member of + symbol_search. Change arguments. + (sort_search_symbols_remove_dups): Change arguments. Rewrite. + (symtab_symbol_info, rbreak_command): Update. + * symtab.h (struct symbol_search) : Remove. + Add constructors. + (symbol_search::operator<): New function. + (symbol_search::operator==): New function. + (search_symbols): Remove std::vector. + (free_search_symbols, make_cleanup_free_search_symbols): Remove. + (symbol_search::compare_search_syms): Declare. + +2017-10-06 Yao Qi + + * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with + arch/aarch64-insn.o. + Remove one rule. + * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o. + +2017-10-06 Yao Qi + + * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o, + and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and + arch/arm-linux.o respectively. + * configure.tgt: Likewise. + +2017-10-06 Yao Qi + + * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o. + * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o. + +2017-10-06 Pedro Alves + + * windows-nat.c: Include . + +2017-10-06 Yao Qi + + * configure.tgt (i386_tobjs): New variable. + (amd64_tobjs): New variable. + Set $cpu_obs and $os_obs. + +2017-10-06 Yao Qi + + * Makefile.in (CONFIG_SRC_SUBDIR): New. + (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o. + (clean): Remove object files and dependency files. + (distclean): Remove the directory. + * configure.ac: Invoke AC_CONFIG_COMMANDS. + * configure: Re-generated. + * configure.tgt: Replace amd64.o with arch/amd64.o. + +2017-10-05 Jose E. Marchesi + + PR build/22188 + * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS + and SETEND. + +2017-10-05 Pedro Alves + + * linux-nat.c (linux_child_follow_fork): When following the parent + and detaching the child, consult the parent thread's architecture + instead of the child's. + +2017-10-05 Ulrich Weigand + + * ax.h: Do not include "doublest.h". + (union agent_val): Remove. + +2017-10-05 Ulrich Weigand + + * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c. + (decimal_to_string): Return std::string object. + (decimal_from_string): Accept std::string object. Return bool. + (decimal_from_integral, decimal_from_doublest): Remove. + (decimal_from_longest): Add prototype. + (decimal_from_ulongest): Likewise. + (decimal_to_longest): Likewise. + (decimal_from_doublest): Likewise. + * dfp.c: Do not include "gdbtypes.h" or "value.h". + (MAX_DECIMAL_STRING): Move here. + (decimal_to_string): Return std::string object. + (decimal_from_string): Accept std::string object. Return bool. + (decimal_from_integral): Remove, replace by ... + (decimal_from_longest, decimal_from_ulongest): ... these new functions. + (decimal_to_longest): New function. + (decimal_from_floating): Remove, replace by ... + (decimal_from_doublest): ... this new function. + (decimal_to_doublest): Update to new decimal_to_string interface. + + * value.c (unpack_long): Use decimal_to_longest. + * valops.c (value_cast): Use decimal_from_doublest instead of + decimal_from_floating. Use decimal_from_[u]longest isntead of + decimal_from_integral. + * valarith.c (value_args_as_decimal): Likewise. + * valprint.c (print_decimal_floating): Update to new + decimal_to_string interface. + * printcmd.c (printf_decfloat): Likewise. + * c-exp.y (parse_number): Update to new decimal_from_string interface. + +2017-10-05 Ulrich Weigand + + * doublest.h: Do not include "floatformat.h". Remove stale comments. + * gdbtypes.c: Include "floatformat.h". + * value.c: Likewise. + * m68k-tdep.c: Likewise. + + * findvar.c: Do not include "floatformat.h". + * amd64-darwin-tdep.c: Likewise. + * arm-linux-tdep.c: Likewise. + * i386-darwin-tdep.c: Likewise. + * i387-tdep.c: Likewise. + * m68k-linux-tdep.c: Likewise. + * mep-tdep.c: Likewise. + * mips-tdep.c: Likewise. + * nios2-tdep.c: Likewise. + * s390-linux-tdep.c: Likewise. + * sparc-obsd-tdep.c: Likewise. + * sparc-tdep.c: Likewise. + * sparc64-tdep.c: Likewise. + * spu-tdep.c: Likewise. + * tic6x-tdep.c: Likewise. + * tilegx-tdep.c: Likewise. + * vax-tdep.c: Likewise. + * xstormy16-tdep.c: Likewise. + * xtensa-tdep.c: Likewise. + + * top.c: Do not include "doublest.h". + * aarch64-tdep.c: Likewise. + * alpha-tdep.c: Likewise. + * arm-linux-tdep.c: Likewise. + * m68k-linux-tdep.c: Likewise. + * tilegx-tdep.c: Likewise. + * xstormy16-tdep.c: Likewise. + +2017-10-05 John Baldwin + + * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define. + (mipsn32_fbsd_sigframe): Define. + (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder + for FreeBSD/mipsn32. + +2017-10-05 John Baldwin + + * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and + AT_HWCAP. + +2017-10-05 Tristan Gingold + + * MAINTAINERS (Misc): Update my email address. + +2017-10-04 Pedro Alves + + * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use + it instead of target_gdbarch. + (get_remote_state, get_remote_packet_size): Adjust + get_remote_arch_state calls, passing down target_gdbarch + explicitly. + (packet_reg_from_regnum, packet_reg_from_pnum): New parameter + 'gdbarch' and use it instead of target_gdbarch. + (get_memory_packet_size): Adjust get_remote_arch_state calls, + passing down target_gdbarch explicitly. + (struct stop_reply) : New field. + (remote_parse_stop_reply): Use the stopped thread's architecture, + not the current inferior's. Save the architecture in the + stop_reply. + (process_stop_reply): Use the stop reply's architecture. + (process_g_packet, remote_fetch_registers) + (remote_prepare_to_store, store_registers_using_G) + (remote_store_registers): Adjust get_remote_arch_state calls, + using the regcache's architecture. + (remote_get_trace_status): Adjust get_remote_arch_state calls, + passing down target_gdbarch explicitly. + * spu-multiarch.c (spu_thread_architecture): Defer to the target + beneath instead of calling target_gdbarch. + * target.c (default_thread_architecture): Use the specified + inferior's architecture, instead of the current inferior's + architecture (via target_gdbarch). + +2017-10-04 Pedro Alves + + * regcache.c (get_thread_arch_regcache): Remove null_ptid special + case. + (regcache_print): Handle !target_has_registers here instead. + +2017-10-04 Pedro Alves + + * frame.c (create_test_frame): Delete. + * frame.h (create_test_frame): Delete. + * gdbarch-selftests.c: Include gdbthread.h and target.h. + (class regcache_test): Delete. + (test_target_has_registers, test_target_has_stack) + (test_target_has_memory, test_target_prepare_to_store) + (test_target_store_registers): New functions. + (test_target_ops): New class. + (register_to_value_test): Error out if there's already a + process_stratum (or higher) target pushed. Create a fuller mock + environment, with mock target_ops, inferior, address space, thread + and inferior_ptid. + * progspace.c (struct address_space): Move to ... + * progspace.h (struct address_space): ... here. + * regcache.h (regcache::~regcache, regcache::raw_write) + [GDB_SELF_TEST]: No longer virtual. + +2017-10-04 Simon Marchi + + * mi/mi-main.c (list_available_thread_groups): Reverse filter logic. + +2017-10-04 Pedro Alves + + * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code + out of 'between TRY and CATCH'. + +2017-10-04 Pedro Alves + + * cli/cli-cmds.c (complete_command): Add missing END_CATCH. + * common/common-exceptions.h (TRY): Open an outermost scope. + Expand intro comment. + (CATCH): Reindent. + (END_CATCH): Close the outermost scope. + * completer.c (complete_line_internal): Add missing END_CATCH. + +2017-10-04 Sergio Durigan Junior + + * NEWS (Changes since GDB 8.0): Add entry about new + 'set-cwd-on-gdbserver' feature. + (New remote packets): Add entry for QSetWorkingDir. + * common/common-inferior.h (set_inferior_cwd): New prototype. + * infcmd.c (set_inferior_cwd): Remove "static". + (show_cwd_command): Expand text to include remote debugging. + * remote.c: Add PACKET_QSetWorkingDir. + (remote_protocol_features) : New entry for + PACKET_QSetWorkingDir. + (extended_remote_set_inferior_cwd): New function. + (extended_remote_create_inferior): Call + "extended_remote_set_inferior_cwd". + (_initialize_remote): Call "add_packet_config_cmd" for + QSetWorkingDir. + +2017-10-04 Sergio Durigan Junior + + * NEWS (New commands): Mention "set/show cwd". + * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on + "cd" command's help text. + * common/common-inferior.h (get_inferior_cwd): New prototype. + * infcmd.c (inferior_cwd_scratch): New global variable. + (set_inferior_cwd): New function. + (get_inferior_cwd): Likewise. + (set_cwd_command): Likewise. + (show_cwd_command): Likewise. + (_initialize_infcmd): Add "set/show cwd" commands. + * inferior.h (class inferior) : New field. + * nat/fork-inferior.c: Include "gdb_tilde_expand.h". + (fork_inferior): Change inferior's cwd before its execution. + * windows-nat.c (windows_create_inferior): Pass inferior's cwd + to CreateProcess. + +2017-10-04 Sergio Durigan Junior + + * Makefile.in (SFILES): Add gdb_tilde_expand.c. + (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h. + (COMMON_OBS): Add gdb_tilde_expand.o. + * common/gdb_tilde_expand.c: New file. + * common/gdb_tilde_expand.h: Likewise. + +2017-10-03 Maciej W. Rozycki + + * gdbarch.sh (objfile): Remove duplicate declaration. + * gdbarch.h: Regenerate. + +2017-10-03 Tom Tromey + + * utils.c (internal_vproblem): Use string_vprintf. + +2017-10-03 Tom Tromey + + * printcmd.c (info_symbol_command): Use std::string. + +2017-10-03 Tom Tromey + + * top.c (gdb_safe_append_history): Use std::string. + +2017-10-03 Tom Tromey + + * event-top.c (stdin_event_handler): Update. + * main.c (captured_main_1): Update. + * top.h (make_delete_ui_cleanup): Remove. + (struct ui): Add constructor and destructor. + (new_ui, delete_ui): Remove. + * top.c (make_delete_ui_cleanup): Remove. + (new_ui_command): Use std::unique_ptr. + (delete_ui_cleanup): Remove. + (ui::ui): Rename from new_ui. Update. + (free_ui): Remove. + (ui::~ui): Rename from delete_ui. Update. + +2017-10-03 Tom Tromey + + * symfile.c (load_progress): Use gdb::byte_vector. + +2017-10-03 Tom Tromey + + * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused + declaration. + * printcmd.c (x_command): Remove unused declaration. + * symfile.c (symbol_file_command): Remove unused declaration. + +2017-10-03 Tom Tromey + + * utils.c (internal_vproblem): Use std::string. + (defaulted_query): Likewise. + +2017-10-03 Tom Tromey + + * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update. + * top.c (execute_command_to_string): Update. + * utils.c (make_cleanup_restore_page_info): Remove. + (do_restore_page_info_cleanup): Remove. + (set_batch_flag_and_restore_page_info): + New. + (make_cleanup_restore_page_info): Remove. + (set_batch_flag_and_make_cleanup_restore_page_info): Remove. + (~set_batch_flag_and_restore_page_info): New + (make_cleanup_restore_uinteger): Remove. + (make_cleanup_restore_integer): Remove. + (struct restore_integer_closure): Remove. + (restore_integer): Remove. + * utils.h (struct set_batch_flag_and_restore_page_info): New + class. + (set_batch_flag_and_make_cleanup_restore_page_info): Remove. + (make_cleanup_restore_page_info): Remove. + (make_cleanup_restore_uinteger) Remove. + (make_cleanup_restore_integer) Remove. + +2017-10-03 Tom Tromey + + * record-full.h (record_full_gdb_operation_disable_set): Return + scoped_restore_tmpl. + * infrun.c (adjust_pc_after_break): Update. + (handle_signal_stop): Update. + * record-full.c (record_full_gdb_operation_disable_set): Return + scoped_restore_tmpl. + (record_full_wait_1, record_full_insert_breakpoint) + (record_full_remove_breakpoint, record_full_save) + (record_full_goto_insn): Update. + +2017-10-02 Tom Tromey + + PR rust/22236: + * rust-lang.c (rust_val_print_str): New function. + (val_print_struct): Call it. + (rust_subscript): Preserve name of slice type. + +2017-10-02 Tom Tromey + + * rust-lang.c (rust_subscript): Handle slices in + EVAL_AVOID_SIDE_EFFECTS case. + +2017-10-02 Tom Tromey + + * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type. + +2017-10-02 Tom Tromey + + * rust-lang.h (rust_slice_type): Add "extern". + +2017-10-02 Tom Tromey + Pedro Alves + + * ada-lang.h (ada_exc_info::operator<): Make const. + (ada_exc_info::operator==): Make const. + * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==): + Make const. + +2017-09-29 Tom Tromey + + * target.c (read_whatever_is_readable): Change type of "result". + Update. + (free_memory_read_result_vector): Remove. + (read_memory_robust): Change return type. Update. + * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use + bin2hex, std::string. + * target.h (memory_read_result_s): Remove typedef. + (free_memory_read_result_vector): Remove. + (read_memory_robust): Return std::vector. + +2017-09-29 Tom Tromey + + * mi/mi-main.c (captured_mi_execute_command): Use scope_restore. + +2017-09-29 Tom Tromey + + * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update. + * ada-lang.h (struct ada_exc_info): Remove typedef. Declare + operator< and operator==. + (ada_exceptions_list): Return a std::vector. + * ada-lang.c (ada_exc_info::operator<): Rename from + compare_ada_exception_info. + (ada_exc_info::operator==): New. + (sort_remove_dups_ada_exceptions_list): Change type of + "exceptions". + (ada_add_standard_exceptions, ada_add_exceptions_from_frame) + (ada_add_global_exceptions): Likewise. + (ada_exceptions_list_1): Return a std::vector. + (ada_exceptions_list): Likewise. + +2017-09-29 Tom Tromey + + * mi/mi-main.c (struct print_one_inferior_data) : Now a + 'std::set *'. + (print_one_inferior): Update. + (free_vector_of_ints): Remove. + (list_available_thread_groups): Change "ids" to std::set. + (mi_cmd_list_thread_groups): Update. + (struct collect_cores_data) : Now a std::set. + (collect_cores): Update. + (unique): Remove. + (print_one_inferior): Update. + 2017-09-29 Tom Tromey * mi/mi-main.c (mi_execute_cli_command): Use std::string.