X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=bbb0aab41910b55f83c3f8dda2113b5c18780a01;hb=c8ba13ad37c98262b94f99cc4f84ac0066c48cc2;hp=d7e4117af22a7005b5998a79c294c8a0fc22d7dd;hpb=a2f63b2e7a5da01ff828b45c7e0e57265ee24131;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d7e4117af2..bbb0aab419 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,546 @@ +2017-11-18 Keith Seitz + + * c-exp.y (oper): Canonicalize conversion operators of user-defined + types. + Add whitespace to front of type name. + +2017-10-18 Keith Seitz + + * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled + DW_AT_accessibility. + +2017-10-18 Yao Qi + + * features/tic6x-c62x-linux.c: Remove. + +2017-10-17 Tom Tromey + + * disasm.c (do_mixed_source_and_assembly_deprecated): Use + gdb::optional, ui_out_emit_list, ui_out_emit_tuple. + (do_mixed_source_and_assembly): Likewise. + +2017-10-17 Tom Tromey + + * regcache.c (regcache::xfer_part): Remove assertion. + +2017-10-17 Pedro Alves + + * xml-support.c (xml_fetch_content_from_file): Call + unique_ptr::release() instead unique_ptr::get() when passing + through xrealloc. + +2017-10-17 Yao Qi + + * regcache.c (regcache::xfer_part): Remove parameters read and + write, add parameter is_raw. All callers are updated. + +2017-10-16 Keith Seitz + + * c-typeprint.c (enum access_specifier): Moved here from + c_type_print_base. + (output_access_specifier): New function. + (c_type_print_base): Consider typedefs when assessing + whether access labels are needed. + Use output_access_specifier as needed. + Output access specifier for typedefs, if needed. + * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility. + * gdbtypes.h (struct typedef_field) : New + fields. + (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New + accessor macros. + +2017-10-16 Tom Tromey + + * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full) + (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update. + * target.c (target_fileio_read_stralloc): Update. + * sparc64-tdep.c (adi_is_addr_mapped): Update. + * target.h (target_fileio_read_stralloc): Return + unique_xmalloc_ptr. + +2017-10-16 Tom Tromey + + * xml-syscall.c (xml_init_syscalls_info): Update. + * xml-support.c (xinclude_start_include): Update. + (xml_fetch_content_from_file): Return unique_xmalloc_ptr. + * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr. + (xml_fetch_content_from_file): Likewise. + * osdata.c (get_osdata): Update. + * target.h (target_read_stralloc, target_get_osdata): Return + unique_xmalloc_ptr. + * solib-aix.c (solib_aix_get_library_list): Update. + * solib-target.c (solib_target_current_sos): Update. + * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update. + * xml-tdesc.c (fetch_available_features_from_target): Update. + (target_fetch_description_xml): Update. + (file_read_description_xml): Update. + * remote.c (remote_get_threads_with_qxfer, remote_memory_map) + (remote_traceframe_info, btrace_read_config, remote_read_btrace) + (remote_pid_to_exec_file): Update. + * target.c (target_read_stralloc): Return unique_xmalloc_ptr. + (target_get_osdata): Likewise. + +2017-10-16 Tom Tromey + + * remote.c (remote_register_number_and_offset): Use std::vector. + (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr. + (putpkt_binary): Use gdb::def_vector. + (compare_sections_command): Use gdb::byte_vector. + +2017-10-16 Tom Tromey + + * ppc-linux-nat.c (hwdebug_insert_point): Use + gdb::unique_xmalloc_ptr, XDUP. + +2017-10-16 Tom Tromey + + * probe.c (parse_probes): Use std::string. + (info_probes_for_ops, enable_probes_command) + (disable_probes_command): Remove cleanups. + +2017-10-16 Tom Tromey + + * buildsym.c (block_compar): Remove. + (end_symtab_get_static_block): Use std::vector. + +2017-10-16 Simon Marchi + + * memrange.h (struct mem_range): Define operator< and operator==. + (mem_range_s): Remove. + (DEF_VEC_O (mem_range_s)): Remove. + (normalize_mem_ranges): Change parameter type to std::vector. + * memrange.c (compare_mem_ranges): Remove. + (normalize_mem_ranges): Change parameter type to std::vector, + adjust to vector change. + * exec.c (section_table_available_memory): Return vector, remove + parameter. + (section_table_read_available_memory): Adjust to std::vector + change. + * remote.c (remote_read_bytes): Adjust to std::vector + change. + * tracepoint.h (traceframe_available_memory): Change parameter + type to std::vector. + * tracepoint.c (traceframe_available_memory): Change parameter + type to std::vector, adjust. + * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to + std::vector change. + * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/memrange-selftests.c. + (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o. + * gdb/unittests/memrange-selftests.c: New file. + +2017-10-16 Pedro Alves + + * elfread.c (probe_key_free): Rename range-for variable. + * probe.c (parse_probes_in_pspace, find_probes_in_objfile) + (find_probe_by_pc, collect_probes): Rename range-for variable. + +2017-10-16 Yao Qi + + * features/Makefile (XMLTOC): Remove tic6x-*.xml. + * features/tic6x-c62x.c: Remove. + * features/tic6x-c64x-linux.c: Remove. + * features/tic6x-c64x.c: Remove. + * features/tic6x-c64xp-linux.c: Remove. + * features/tic6x-c64xp.c: Remove. + * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call + initialize_tdesc_tic6x_*_linux functions. + * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call + initialize_tdesc_tic6x_* functions. + +2017-10-16 Yao Qi + + * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x + tic6x-c62x. + * regformats/tic6x-c62x.dat: Remove. + * regformats/tic6x-c64x.dat: Remove. + * regformats/tic6x-c64xp.dat: Remove. + +2017-10-15 Simon Marchi + + * tracepoint.c (parse_traceframe_info): Return a unique_ptr + (the !HAVE_LIBEXPAT version). + +2017-10-14 Simon Marchi + + * nat/linux-osdata.c (struct pid_pgid_entry) : Make + const. + +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