ELF/BFD,GDB: Handle both variants of the 32-bit Linux core PRPSINFO note
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 87f84ca31200a4d7abdddb3d0002183020fc16de..d7e4117af22a7005b5998a79c294c8a0fc22d7dd 100644 (file)
@@ -1,3 +1,435 @@
+2017-10-11  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
+       `set_gdbarch_elfcore_write_linux_prpsinfo'.
+
+2017-10-11  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (reattach_breakpoints): Delete.
+       * breakpoint.h (reattach_breakpoints): Delete.
+
+2017-10-11  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * 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  <Anton.Kolesov@synopsys.com>
+
+       * 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  <egeyar.bagcioglu@oracle.com>
+
+       * 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  <markrages@gmail.com>
+
+       * target-memory.c (block_boundaries): Fix for block address not
+       aligned on block size.
+
+2017-10-10  Pedro Alves <palves@redhat.com>
+           Tom Tromey  <tom@tromey.com>
+
+       * 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  <palves@redhat.com>
+           Tom Tromey  <tom@tromey.com>
+
+       * 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) <open_symbol_file_object>:
+       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  <tom@tromey.com>
+
+       * 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  <tom@tromey.com>
+
+       * mi/mi-main.c (do_nothing): Remove.
+       (list_available_thread_groups): Update.
+
+2017-10-09  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
+       reading registers when switching context.
+
+2017-10-09  John Baldwin  <jhb@FreeBSD.org>
+
+       * 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  <simon.marchi@polymtl.ca>
+
+       * configure.ac (try_guile_versions): Remove guile-2.2.
+       * configure: Regenerate.
+
+2017-10-09  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
+       (COMPILE.pre): Use $(CXX).
+
+2017-10-09  Pedro Alves  <palves@redhat.com>
+
+       * 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  <tom@tromey.com>
+
+       * 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  <tom@tromey.com>
+
+       * 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  <tom@tromey.com>
+
+       * utils.h (make_cleanup_value_free): Remove.
+       * utils.c (do_value_free, struct cleanup): Remove.
+       * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
+       Use gdb_value_up.
+       * value.h (struct value_deleter): New.
+       (gdb_value_up): New typedef.
+
+2017-10-08  Tom Tromey  <tom@tromey.com>
+
+       * 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) <next>: 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  <yao.qi@linaro.org>
+
+       * 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  <yao.qi@linaro.org>
+
+       * 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  <yao.qi@linaro.org>
+
+       * 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  <palves@redhat.com>
+
+       * windows-nat.c: Include <algorithm>.
+
+2017-10-06  Yao Qi  <yao.qi@linaro.org>
+
+       * configure.tgt (i386_tobjs): New variable.
+       (amd64_tobjs): New variable.
+       Set $cpu_obs and $os_obs.
+
+2017-10-06  Yao Qi  <yao.qi@linaro.org>
+
+       * 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  <jose.marchesi@oracle.com>
+
+       PR build/22188
+       * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
+       and SETEND.
+
+2017-10-05  Pedro Alves  <palves@redhat.com>
+
+       * 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  <uweigand@de.ibm.com>
+
+       * ax.h: Do not include "doublest.h".
+       (union agent_val): Remove.
+
+2017-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * 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  <uweigand@de.ibm.com>
+
+       * 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  <jhb@FreeBSD.org>
+
+       * 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  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
+       AT_HWCAP.
+
+2017-10-05  Tristan Gingold  <tgingold@free.fr>
+
+       * MAINTAINERS (Misc): Update my email address.
+
+2017-10-04  Pedro Alves  <palves@redhat.com>
+
+       * 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) <arch>: 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  <palves@redhat.com>
+
+       * regcache.c (get_thread_arch_regcache): Remove null_ptid special
+       case.
+       (regcache_print): Handle !target_has_registers here instead.
+
+2017-10-04  Pedro Alves  <palves@redhat.com>
+
+       * 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  <simon.marchi@ericsson.com>
+
+       * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
+
 2017-10-04  Pedro Alves  <palves@redhat.com>
 
        * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
This page took 0.03173 seconds and 4 git commands to generate.