Target FP: Introduce target-float.{c,h}
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 47a4ac52ec239ce258d988a29ee8353ff9f4a58d..df06c84e29c9434f4c23a540922e94ef8fdbaf33 100644 (file)
@@ -1,3 +1,447 @@
+2017-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * Makefile.c (SFILES): Add target-float.c.
+       (HFILES_NO_SRCDIR): Add target-float.h.
+       (COMMON_OBS): Add target-float.o.
+       * target-float.h: New file.
+       * target-float.c: New file.
+
+       * doublest.c (floatformat_classify): Fix detection of float_zero.
+
+       * gdbtypes.c (is_floating_type): New function.
+       * gdbtypes.h (is_floating_type): Add prototype.
+
+       * value.c: Do not include "floatformat.h".
+       (unpack_double): Use target_float_is_valid.
+       (is_floating_value): New function.
+       * value.h (is_floating_value): Add prototype-
+
+       * valarith.c: Include "target-float.h".
+       (value_logical_not): Use target_float_is_zero.
+
+       * python/py-value.c: Include "target-float.h".
+       (valpy_nonzero): Use target_float_is_zero.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c (set_momentary_breakpoint): Return
+       breakpoint_up.
+       (until_break_command): Update.
+       (new_until_break_fsm): Change argument types to
+       breakpoint_up.
+       (set_momentary_breakpoint_at_pc): Return breakpoint_up.
+       (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
+       Remove.
+       * infcmd.c (finish_forward): Update.
+       * breakpoint.h (set_momentary_breakpoint)
+       (set_momentary_breakpoint_at_pc): Return breakpoint_up.
+       (make_cleanup_delete_breakpoint): Remove.
+       (struct breakpoint_deleter): New.
+       (breakpoint_up): New typedef.
+       * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
+       (insert_exception_resume_breakpoint): Update.
+       (insert_exception_resume_from_probe): Update.
+       (insert_longjmp_resume_breakpoint): Update.
+       * arm-linux-tdep.c (arm_linux_copy_svc): Update.
+       * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
+       * infcall.c (call_function_by_hand_dummy): Update
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * linux-tdep.c (linux_core_info_proc_mappings): Use
+       gdb::def_vector.
+       (linux_get_siginfo_data): Return gdb::byte_vector.  Remove
+       "size" argument.
+       (linux_corefile_thread): Update.
+       (linux_make_corefile_notes): Remove unused variable.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
+       gdb::byte_vector.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * objfiles.c (do_free_objfile_cleanup): Remove.
+       * compile/compile-object-load.c (compile_object_load): Update.
+       * objfiles.h (make_cleanup_free_objfile): Remove.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * sparc64-tdep.c (do_examine): Use gdb::def_vector.
+       (adi_read_versions): Change "tags" to "gdb_byte *".
+       (adi_print_versions): Likewise.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c
+       (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
+       from start_rbreak_breakpoints.
+       (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
+       * breakpoint.h (class scoped_rbreak_breakpoints): New.
+       (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
+       * symtab.c (do_end_rbreak_breakpoints): Remove.
+       (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * cp-namespace.c (reset_directive_searched): Remove.
+       (cp_lookup_symbol_via_imports): Use scoped_restore.
+       * cp-support.c (reset_directive_searched): Remove.
+       (make_symbol_overload_list_using): Use scoped_restore.
+       * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
+       (reset_directive_searched): Remove.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * symfile.c (find_separate_debug_file_by_debuglink): Use
+       unique_xmalloc_ptr.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * compile/compile-loc2c.c (compute_stack_depth_worker): Change
+       type of "info".
+       (compute_stack_depth): Likewise.
+       (do_compile_dwarf_expr_to_c): Use std::vector.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * compile/compile-object-load.c (link_callbacks_einfo): Use
+       std::string.
+
+2017-11-04  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
+       Use scoped_free_pendings.
+       * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
+       scoped_free_pendings.
+       * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
+       (xcoff_initial_scan): Likewise.
+       * buildsym.c (reset_symtab_globals): Update comment.
+       (scoped_free_pendings): Rename from really_free_pendings.
+       (prepare_for_building): Update comment.
+       (buildsym_init): Likewise.
+       * buildsym.h (class scoped_free_pendings): New class.
+       (really_free_pendings): Don't declare.
+
+2017-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
+       output when converting a zero value to a special byteorder format.
+
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * frame.c (do_frame_register_read): Remove aspace.
+       * jit.c (jit_frame_sniffer): Likwise.
+       * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
+       * regcache.c (regcache::regcache): Pass nullptr.
+       (regcache_print): Caller updated.
+       * regcache.h (regcache::regcache): Remove one constructor
+       parameter aspace.
+
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
+
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * breakpoint.c (insert_single_step_breakpoints): Update.
+       * frame.c (struct frame_info) <aspace>: Add const.
+       (frame_save_as_regcache): Add const.
+       (get_frame_address_space): Return const address_space *.
+       * frame.h (get_frame_address_space): Update declaration.
+       * infrun.c (struct step_over_info) <aspace>: Add const.
+       (set_step_over_info): Make aspace const.
+       (displaced_step_prepare_throw): Change variable const.
+       (resume): Likewise.
+       (proceed): Likewise.
+       (adjust_pc_after_break): Likewise.
+       (save_waitstatus): Likewise.
+       (handle_signal_stop): Likewise.
+       (keep_going_pass_signal): Likewise.
+       * jit.c (jit_frame_sniffer): Add const.
+       * mips-tdep.c (mips_single_step_through_delay): Likewise.
+       * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
+       * record-full.c (record_full_wait_1): Likewise.
+       * regcache.c (regcache::regcache): Change parameter to const.
+       * regcache.h (regcache::regcache): Likewise.
+       (regcache::aspace): Return const address_space *.
+       (regcache) <m_aspace>: Add const.
+
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
+       * frame.c (create_sentinel_frame): Likewise.
+       * infrun.c (displaced_step_prepare_throw): Likewise.
+       (resume): Likewise.
+       (thread_still_needs_step_over_bp): Likewise.
+       (proceed): Likewise.
+       (do_target_wait): Likewise.
+       (adjust_pc_after_break): Likewise.
+       (handle_syscall_event): Likewise.
+       (save_waitstatus): Likewise.
+       (handle_inferior_event_1): Likewise.
+       (handle_signal_stop): Likewise.
+       (keep_going_pass_signal): Likewise.
+       * linux-nat.c (status_callback): Likewise.
+       (save_stop_reason): Likewise.
+       (resume_stopped_resumed_lwps): Likewise.
+       * record-full.c (record_full_exec_insn): Likewise.
+       (record_full_wait_1): Likewise.
+       * regcache.c (get_regcache_aspace): Remove.
+       * regcache.h (get_regcache_aspace): Remove.
+
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
+       (init_regcache_descr): Use gdbarch_num_regs.
+       (regcache::regcache): Likewise.
+       (regcache::get_register_status): Likewise.
+       (regcache::assert_raw_regnum): Likewise.
+       (regcache::cooked_read): Likewise.
+       (regcache::cooked_read_value): Likewise.
+       (regcache::cooked_write): Likewise.
+       (regcache::dump): Likewise.
+       (regcache::num_raw_registers): New method.
+       * regcache.h (class regcache) <num_raw_registers>: New.
+
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.c (regcache::assert_regnum): New method.
+       (regcache::invalidate): Call assert_regnum.
+       (regcache::raw_update): Likewise.
+       (regcache::raw_write): Likewise.
+       (regcache::raw_read_part): Likewise.
+       (regcache::raw_write_part): Likewise.
+       (regcache::raw_supply): Likewise.
+       (regcache::raw_supply_integer): Likewise.
+       (regcache::raw_supply_zeroed): Likewise.
+       (regcache::raw_collect): Likewise.
+       (regcache::raw_collect_integer): Likewise.
+       * regcache.h (regcache::assert_regnum): Declare.
+
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.c (regcache::dump): Remove code.
+
+2017-11-02  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
+       Remove.
+       <sizeof_cooked_register_status>: Remove.
+       (init_regcache_descr): Update.
+       (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
+       (regcache::save): Likewise.
+       (regcache::dump): Likewise.
+
+2017-11-01  James Bowman  <james.bowman@ftdichip.com>
+
+       * ft32-tdep.c (ft32_fetch_instruction): New function.
+       (ft32_analyze_prologue): Use ft32_fetch_instruction().
+
+2017-10-31  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * cli/cli-script.c (execute_control_command): Rename to ...
+       (execute_control_command_1): ... this.
+       (execute_control_command): New function.
+
+2017-10-31  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * tracepoint.c (tfind_command): Remove const_cast.
+
+2017-10-30  Mike Gulick  <mgulick@mathworks.com>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
+
+2017-10-30  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * common/common-utils.h (in_inclusive_range): New function.
+       * arm-tdep.c (arm_record_extension_space): Use
+       in_inclusive_range.
+       (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
+       * cris-tdep.c (cris_spec_reg_applicable): Use
+       in_inclusive_range.
+
+2017-10-30  Pedro Alves  <palves@redhat.com>
+           Simon Marchi <simon.marchi@ericsson.com>
+
+       * remote.c (remote_set_syscall_catchpoint): Build a std::string
+       instead of a gdb::unique_xmalloc_ptr, using string_appendf.
+
+2017-10-30  Pedro Alves  <palves@redhat.com>
+
+       * common/common-utils.c (string_appendf, string_vappendf): New
+       functions.
+       * common/common-utils.h (string_appendf, string_vappendf): New
+       declarations.
+       * unittests/common-utils-selftests.c (string_appendf_func)
+       (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
+       (string_vappendf_tests): New functions.
+       (_initialize_common_utils_selftests): Register "string_appendf" and
+       "string_vappendf tests".
+
+2017-10-30  Pedro Alves  <palves@redhat.com>
+
+       * unittests/common-utils-selftests.c (format_func): New typedef.
+       (string_printf_tests, string_vprintf_tests): Tests factored out
+       and merged to ...
+       (test_format_func): ... this new function.
+       (string_printf_tests, string_vprintf_tests): Reimplement on top of
+       test_format_func.
+
+2017-10-29  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * darwin-nat.c: Remove include of gdb.h.
+
+2017-10-29  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * xtensa-xtregs.c: Fix formatting issues.
+
+2017-10-29  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
+
+2017-10-28  Maksim Dzabraev  <dzabraew@gmail.com>
+
+       PR python/21213
+       * python/py-infthread.c (thpy_get_inferior): Increment reference
+       of inferior before returning it.
+
+2017-10-27  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * unittests/common-utils-selftests.c (format): Add
+       ATTRIBUTE_PRINTF.
+
+2017-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * xml-syscall.c (struct syscall_desc): Add constructor.
+       <name>: Change type to std::string.
+       (syscall_desc_up): New typedef.
+       (syscall_desc_p): Remove typeder.
+       (DEF_VEC_P(syscall_desc_p)): Remove.
+       (struct syscall_group_desc): Add constructor.
+       <name>: Change type to std::string.
+       <syscalls>: Change type to std::vector.
+       (syscall_group_desc_up): New typedef.
+       (syscall_group_desc_p): Remove typedef.
+       (DEF_VEC_P(syscall_group_desc_p)): Remove.
+       (struct syscalls_info) <syscalls>: Change type to std::vector of
+       unique_ptr.
+       <groups>: Likewise.
+       <my_gdb_datadir>: Change type to std::string.
+       (syscalls_info_up): New typedef.
+       (allocate_syscalls_info): Remove.
+       (syscalls_info_free_syscalls_desc): Remove.
+       (syscalls_info_free_syscall_group_desc): Remove.
+       (free_syscalls_info): Remove.
+       (make_cleanup_free_syscalls_info): Remove.
+       (syscall_group_create_syscall_group_desc): Adjust.
+       (syscall_group_add_syscall): Adjust.
+       (syscall_create_syscall_desc): Adjust.
+       (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
+       (init_syscalls_info): Adjust.
+       (syscall_group_get_group_by_name): Adjust.
+       (xml_get_syscall_number): Adjust.
+       (xml_get_syscall_name): Adjust.
+       (xml_list_of_syscalls): Adjust.
+       (xml_list_syscalls_by_group): Adjust.
+       (xml_list_of_groups): Adjust.
+
+2017-10-27  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * probe.h: Don't include gdb_vecs.h.
+       (DEF_VEC_P (probe_p)): Remove.
+       (find_probes_in_objfile): Return an std::vector.
+       * probe.c (find_probes_in_objfile): Likewise.
+       * breakpoint.c (breakpoint_objfile_data)
+       <longjmp_probes>: Change type to std::vector.
+       <exception_probes>: Likewise.
+       (free_breakpoint_probes): Don't manually free vectors.
+       (create_longjmp_master_breakpoint): Adjust.
+       (create_exception_master_breakpoint): Adjust.
+       * solib-svr4.c (svr4_create_probe_breakpoints): Change
+       parameter type, adjust.
+       (svr4_create_solib_event_breakpoints): Adjust.
+
+2017-10-27  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * breakpoint.c (breakpoint_objfile_data): Initialize fields.
+       (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
+       with new.
+       (free_breakpoint_probes): Rename to ...
+       (free_breakpoint_objfile_data): ... this, and call delete on
+       bp_objfile_data..
+
+2017-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * auto-load.c: Don't include gdb_vecs.h, include algorithm.
+       (loaded_script_ptr): Remove typedef.
+       (DEF_VEC_P (loaded_script_ptr)): Remove.
+       (struct collect_matching_scripts_data): Add constructor.
+       <scripts_p>: Change type to (pointer to) std::vector.
+       (collect_matching_scripts_data): Adjust.
+       (sort_scripts_by_name): Make suitable for std::sort.
+       (print_scripts): Don't sort vector, adjust to std::vector.
+       (auto_load_info_scripts): Sort vectors, adjust to std::vector.
+
+2017-10-27  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * symfile.c (filename_language): Make struct, not typedef.  Add
+       constructor.
+       <ext>: Change type to std::string.
+       (DEF_VEC_O (filename_language)): Remove.
+       (filename_language_table): Change type to std::vector.
+       (add_filename_language): Adjust.
+       (set_ext_lang_command): Adjust.
+       (info_ext_lang_command): Adjust.
+       (deduce_language_from_filename): Adjust.
+       (class scoped_restore_filename_language_table): Remove.
+       (test_filename_language): Use scoped_restore.
+       (test_set_ext_lang_command): Use scoped_restore, adjust to
+       std::vector change.
+
+2017-10-27  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * symfile.c: Include selftest.h.
+       (class scoped_restore_filename_language_table): New.
+       (test_filename_language): New test.
+       (test_set_ext_lang_command): New test.
+       (_initialize_symfile): Register tests.
+
+2017-10-27  Keith Seitz  <keiths@redhat.com>
+
+       * breakpoint.c (print_breakpoint_location): Use the symbol saved
+       in the bp_location, falling back to find_pc_sect_function when
+       needed.
+       (add_location_to_breakpoint): Save sal->symbol.
+       * breakpoint.h (struct bp_location) <symbol>: New field.
+       * symtab.c (find_function_start_sal): Save the symbol into the SaL.
+       * symtab.h (struct symtab_and_line) <symbol>: New field.
+
+2017-10-26  Patrick Frants  <osscontribute@gmail.com>
+
+       PR gdb/13669
+       * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
+       to rewind obstack.
+
+2017-10-26  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (remote_async_terminal_ours_p): Delete.
+       (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
+       Remove references to 'remote_async_terminal_ours_p'.
+
+2017-10-26  Yao Qi  <yao.qi@linaro.org>
+
+       * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
+
 2017-10-26  Yao Qi  <yao.qi@linaro.org>
 
        * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
This page took 0.031792 seconds and 4 git commands to generate.