i386-tdep: Verify architecture before proceeding with `set/show mpx'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index fd137927a9883b46bd920f1f3aced9d1aae2c4ce..4b642b8ae9eaa7bf84cd5a71651fd222781f0d0c 100644 (file)
@@ -1,3 +1,471 @@
+2016-10-18  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
+       is `bfd_arch_i386' before proceeding.
+       (i386_mpx_set_bounds): Likewise.
+
+2016-10-18  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
+       type for `operands'.
+
+2016-10-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
+       before using it.
+
+2016-10-17  Pedro Alves  <palves@redhat.com>
+
+       * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
+       'int' as type.
+
+2016-10-14  Sangamesh Mallayya  <sangamesh.swamy@in.ibm.com>
+           Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
+       path is set properly if program has a dependency on .a archive and
+       sysroot is set via set sysroot command.
+
+2016-10-14  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * nat/linux-btrace.c: Remove leftover comment.
+
+2016-10-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
+       available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
+
+2016-10-13  Pedro Alves  <palves@redhat.com>
+
+       * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
+       (false, true): Remove checks.
+
+2016-10-12  Tom Tromey  <tom@tromey.com>
+
+       * machoread.c (macho_symfile_read_all_oso): Use std::string.
+
+2016-10-12  Tom Tromey  <tom@tromey.com>
+
+       * tracepoint.c (trace_dump_command): Remove unnecessary
+       null_cleanup.
+
+2016-10-12  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (generic_emit_char, count_next_character)
+       (generic_printstr): Update.
+       * charset.c (struct wchar_iterator): Move to charset.h.
+       (wchar_iterator::wchar_iterator): Rename from
+       make_wchar_iterator, turn into a constructor.
+       (wchar_iterator::~wchar_iterator): Rename from
+       do_cleanup_iterator, turn into a destructor.
+       (make_cleanup_wchar_iterator): Remove.
+       (wchar_iterator::iterate): Rename from wchar_iterate.  Remove
+       "iter" argument.  Update.
+       * charset.h: Include <vector>.
+       (class wchar_iterator): New class, from old struct
+       wchar_iterator.
+       (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
+       declare.
+
+2016-10-12  Tom Tromey  <tom@tromey.com>
+
+       * selftest.c: Include <vector>, not "vec.h".
+       (self_test_function_ptr): Remove.
+       (tests): Now a std::vector.
+       (register_self_test, run_self_tests): Update.
+
+2016-10-13  Pedro Alves  <palves@redhat.com>
+           Tom Tromey  <tom@tromey.com>
+
+       * tid-parse.h (tid_range_parser): New class.
+       (enum tid_range_state): Move into tid_range_parser's scope.
+       Remove TID_RANGE_ prefix from all values.
+       (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
+       (tid_range_parser_star_range, tid_range_parser_finished)
+       (tid_range_parser_skip, tid_range_parser_qualified): Don't
+       declare.
+       (tid_is_in_list): Update comment.
+       * tid-parse.c (tid_range_parser::tid_range_parser): New.
+       (init, finished, get_string, skip, tid_is_qualified)
+       (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
+       turn into methods.
+       (tid_is_in_list): Adjust.
+       * cli/cli-utils.h (number_or_range_parser): New class.
+       (init_number_or_range, get_number_or_range)
+       (number_range_setup_range): Don't declare.
+       * cli/cli-utils.c
+       (number_or_range_parser::number_or_range_parser): New.
+       (init_number_or_range, get_number_or_range)
+       (number_range_setup_range): Rename; turn into methods.
+       (number_is_in_list): Adjust.
+       * breakpoint.c (map_breakpoint_numbers): Adjust.  Use bool.
+       (trace_pass_command, get_tracepoint_by_number): Adjust.
+       * breakpoint.h (get_tracepoint_by_number): Adjust.
+       * inferior.c (detach_inferior_command, kill_inferior_command)
+       (remove_inferior_command): Adjust.
+       * linespec.c (decode_line_2): Adjust.
+       * memattr.c (mem_enable_command, mem_disable_command)
+       (mem_delete_command): Adjust.
+       * printcmd.c (map_display_numbers): Adjust.
+       * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
+       * thread.c (thread_apply_command): Adjust.
+
+2016-10-12  Anton Kolesov  <anton.kolesov@synopsys.com>
+
+       * arc-newlib-tdep.c: New file.
+       * configure.tgt: Add newlib support for ARC.
+
+2016-10-12  Anton Kolesov  <anton.kolesov@synopsys.com>
+
+       * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
+       * arc-tdep.c (arc_get_longjmp_target): New function.
+       (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
+       (arc_dump_tdep): Print jb_pc.
+
+2016-10-12  Anton Kolesov  <anton.kolesov@synopsys.com>
+
+       * arc-tdep.h (struct gdbarch_tdep): New.
+       * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
+
+2016-10-12  Yao Qi  <yao.qi@linaro.org>
+
+       PR tdep/20682
+       * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
+       (aarch64_analyze_prologue): Extend array 'regs' for D registers.
+       Assert that operand 0 and 1 can be X or D registers.  Update
+       register number for D registers.  Update registers in frame
+       cache.
+       * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
+
+2016-10-10  Yao Qi  <yao.qi@linaro.org>
+
+       * arch/arm.h (enum arm_breakpoint_kinds): New.
+       * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
+       ARM_BP_KIND_THUMB2.
+
+2016-10-10  Yao Qi  <yao.qi@linaro.org>
+
+       * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
+       'gdbarch'.
+
+2016-10-10  Yao Qi  <yao.qi@linaro.org>
+
+       * v850-tdep.c (v850_breakpoint_from_pc): Use the right
+       breakpoint instruction.
+       (v850_dbtrap_breakpoint_from_pc): Remove.
+       (v850_gdbarch_init): Update.
+
+2016-10-08  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (push_level): Remove "id" parameter.
+       (ui_out_begin): Update call.
+
+2016-10-07  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.12 released.
+
+2016-10-07  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * python/python.c (gdbpy_decode_line): Call
+       string_to_event_location_basic instead of new_linespec_location.
+
+2016-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * target.c (target_supports_multi_process): New function, moved
+       from...
+       * target.h (target_supports_multi_process): ... here.  Remove
+       macro.
+       * target/target.h (target_supports_multi_process): New prototype.
+
+2016-10-06  Pedro Alves  <palves@redhat.com>
+
+       * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
+       EXPORTED_CONST.
+       * stub-termcap.c: Remove __cplusplus checks.
+       * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
+       EXTERN_C_POP): Delete.
+       * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
+       (GDB_XCPT) [!__cplusplus]: Delete.
+       (throw_exception, throw_exception_sjlj): Update comments.
+       * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
+       * guile/guile.c (extension_language_guile): Write "extern const"
+       instead of EXPORTED_CONST.
+       * features/feature_to_c.sh: Don't emit !__cplusplus code.  Write
+       "extern const" instead of EXPORTED_CONST.
+
+2016-10-06  Doug Evans  <dje@google.com>
+
+       * python/py-value.c (valpy_long): Handle unsigned values.
+
+2016-10-06  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * frame.h: Forward-declare struct ui_out.
+
+2016-10-06  Tom Tromey  <tom@tromey.com>
+
+       * MAINTAINERS: Remove Java test maintainer.
+       * varobj.h (java_varobj_ops): Don't declare.
+       * valprint.h (struct value_print_options)
+       <pascal_static_field_print>: Update comment.
+       * utils.c (producer_is_gcc): Remove java reference.
+       * symtab.h (struct general_symbol_info): Remove java references.
+       (SYMBOL_SEARCH_NAME): Likewise.
+       * objfiles.c (allocate_objfile): Update comment.
+       * linespec.c (find_linespec_symbols): Remove java references.
+       * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
+       java references.
+       * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
+       (TYPE_CPLUS_REALLY_JAVA): Remove.
+       * c-varobj.c (enum vsections): Update comment.
+       * symtab.c (symbol_set_language, symbol_set_names)
+       (symbol_natural_name, symbol_demangled_name)
+       (demangle_for_lookup, symbol_matches_domain)
+       (default_make_symbol_completion_list_break_on_1): Remove java
+       references.
+       (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
+       * psymtab.c (match_partial_symbol, psymtab_search_name)
+       (lookup_partial_symbol): Remove java references.
+       * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
+       (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
+       (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
+       (process_structure_scope, read_subroutine_type)
+       (read_subrange_type, load_partial_dies)
+       (new_symbol_full, determine_prefix, typename_concat)
+       (dwarf2_name): Remove java references.
+       (set_cu_language): Treat Java as C++.
+       * c-typeprint.c (c_type_print_args): Remove java reference.
+       * defs.h (enum language) <language_java>: Remove.
+       * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
+       (YYOBJ, local-maintainer-clean): Don't mention java files.
+       * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
+       jv-varobj.c: Remove.
+
+2016-10-06  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
+       32-bit.
+
+2016-10-06  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
+       throughout.
+
+2016-10-06  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * stack.c (frame_info): Call val_print_not_saved instead of
+       val_print_unavailable if frame_id check fails.
+
+2016-10-06  Pedro Alves  <palves@redhat.com>
+
+       * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
+       the cached code address.
+
+2016-10-06  Doug Evans  <dje@google.com>
+
+       * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
+       "end" in all fields.
+       * features/aarch64.c: Regenerate.
+       * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
+       and "enabled" fields. Correct size of "enabled" field.
+       * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
+       and "enabled" fields.
+       * features/i386/i386-avx-mpx-linux.c: Regenerate.
+       * features/i386/i386-avx-mpx.c: Regenerate.
+       * features/i386/i386-avx512-linux.c: Regenerate.
+       * features/i386/i386-avx512.c: Regenerate.
+       * features/i386/i386-mpx-linux.c: Regenerate.
+       * features/i386/i386-mpx.c: Regenerate.
+       * features/arc-arcompact.c: Regenerate.
+       * features/arc-v2.c: Regenerate.
+       * xml-tdesc.c (tdesc_start_field): Require "end" spec.  Single bit
+       fields default to "bool" type.
+
+       Revert 2016-03-15  Doug Evans  <dje@google.com>
+       * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
+       * features/i386/32bit-sse.xml (i386_eflags): Ditto.
+       * features/i386/64bit-core.xml (i386_eflags): Ditto.
+       * features/i386/64bit-sse.xml (i386_eflags): Ditto.
+       * features/i386/x32-core.xml (i386_eflags): Ditto.
+
+2016-10-05  Tom Tromey  <tom@tromey.com>
+
+       PR breakpoints/20653:
+       * location.c (string_to_explicit_location): Use NULL, not '\0'.
+
+2016-10-05  Tom Tromey  <tom@tromey.com>
+
+       PR symtab/20652:
+       * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
+       fields.
+
+2016-10-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * dwarf2expr.c (dwarf_expr_require_composition): Allow
+       DW_OP_GNU_uninit.
+       (execute_stack_op): Use dwarf_expr_require_composition instead of
+       copying its logic.
+
+2016-10-05  Anton Kolesov  <anton.kolesov@synopsys.com>
+
+       * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
+
+2016-10-05  Yao Qi  <yao.qi@linaro.org>
+
+       * features/Makefile (WHICH): Add
+       rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
+       rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
+       rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
+       * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
+       * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
+       * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
+       * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
+       * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
+       * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
+
+2016-10-05  Yao Qi  <yao.qi@linaro.org>
+
+       * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
+       s390-vx-linux64.xml, s390x-tevx-linux64.xml and
+       s390x-vx-linux64.xml.
+
+2016-10-05  Yao Qi  <yao.qi@linaro.org>
+
+       * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
+       amd64-expedite, and x32-expedite.
+
+2016-10-05  Terry Guo  <terry.guo@arm.com>
+           Yao Qi  <yao.qi@linaro.org>
+
+       * arm-tdep.c: Adjust includes.
+       * features/Makefile (WHICH): Add "arm/" directory to arm
+       target descriptions.
+       (XMLTOC): Likewise.
+       (arm/arm-with-iwmmxt.dat): Adjust the path for
+       dependencies.
+       * features/arm-core.xml: Moved to ...
+       * features/arm/arm-core.xml: ... it.
+       * features/arm-fpa.xml: Moved to ...
+       * features/arm/arm-fpa.xml: ... it.
+       * features/arm-m-profile.xml: Moved to ...
+       * features/arm/arm-m-profile.xm: ... it.
+       * features/arm-vfpv2.xml: Moved to ...
+       * features/arm/arm-vfpv2.xm: ... it.
+       * features/arm-vfpv3.xml: Moved to ...
+       * features/arm/arm-vfpv3.xml: ... it.
+       * features/arm-with-iwmmxt.c: Moved to ...
+       * features/arm/arm-with-iwmmxt.c: ... it.
+       * features/arm-with-iwmmxt.xml: Moved to ...
+       * features/arm/arm-with-iwmmxt.xml: ... it.
+       * features/arm-with-m-fpa-layout.c: Moved to ...
+       * features/arm/arm-with-m-fpa-layout.c: ... it.
+       * features/arm-with-m-fpa-layout.xml: Moved to ...
+       * features/arm/arm-with-m-fpa-layout.xml: ... it.
+       * features/arm-with-m-vfp-d16.c: Moved to ...
+       * features/arm/arm-with-m-vfp-d16.c: ... it.
+       * features/arm-with-m-vfp-d16.xml: Moved to ...
+       * features/arm/arm-with-m-vfp-d16.xml: ... it.
+       * features/arm-with-m.c: Moved to ...
+       * features/arm/arm-with-m.c: ... it.
+       * features/arm-with-m.xml: Moved to ...
+       * features/arm/arm-with-m.xm: ... it.
+       * features/arm-with-neon.c: Moved to ...
+       * features/arm/arm-with-neon.c: ... it.
+       * features/arm-with-neon.xml: Moved to ...
+       * features/arm/arm-with-neon.xml: ... it.
+       * features/arm-with-vfpv2.c: Moved to ...
+       * features/arm/arm-with-vfpv2.c: ... it.
+       * features/arm-with-vfpv2.xml: Moved to ...
+       * features/arm/arm-with-vfpv2.xml: ... it.
+       * features/arm-with-vfpv3.c: Moved to ...
+       * features/arm/arm-with-vfpv3.c: ... it.
+       * features/arm-with-vfpv3.xml: Moved to ...
+       * features/arm/arm-with-vfpv3.xml: ... it.
+       * features/xscale-iwmmxt.xml: Moved to ...
+       * features/arm/xscale-iwmmxt.xml: ... it.
+
+2016-10-03  Antoine Tremblay  <antoine.tremblay@ericsson.com>
+2016-10-03  Simon Marchi  <simon.marchi@ericsson.com>
+
+       PR gdb/20487
+       * NEWS: Mention new frame field of =thread-selected event.
+       * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
+       (add_com_suppress_notification): New function definition.
+       (cmd_func): Set and restore the suppress_notification flag.
+       * cli/cli-deicode.h (struct cmd_list_element)
+       <suppress_notification>: New field.
+       * cli/cli-interp.c (cli_suppress_notification): New global variable.
+       (cli_on_user_selected_context_changed): New function.
+       (_initialize_cli_interp): Attach to user_selected_context_changed
+       observer.
+       * command.h (struct cli_suppress_notification): New structure.
+       (cli_suppress_notification): New global variable declaration.
+       (add_com_suppress_notification): New function declaration.
+       * defs.h (enum user_selected_what_flag): New enum.
+       (user_selected_what): New enum flag type.
+       * frame.h (print_stack_frame_to_uiout): New function declaration.
+       * gdbthread.h (print_selected_thread_frame): New function declaration.
+       * inferior.c (print_selected_inferior): New function definition.
+       (inferior_command): Remove printing of inferior/thread/frame switch
+       notifications, notify user_selected_context_changed observer.
+       * inferior.h (print_selected_inferior): New function declaration.
+       * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
+       suppression to stack-select-frame and thread-select commands.
+       * mi/mi-interp.c (struct mi_suppress_notification)
+       <user_selected_context>: Initialize.
+       (mi_user_selected_context_changed): New function definition.
+       (_initialize_mi_interp): Attach to user_selected_context_changed.
+       * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
+       (mi_execute_command): Handle notification suppression.  Notify
+       user_selected_context_changed observer on thread change instead of printing
+       event directly.  Don't send it if command already sends the notification.
+       (command_notifies_uscc_observer): New function.
+       (mi_cmd_execute): Don't handle notification suppression.
+       * mi/mi-main.h (struct mi_suppress_notification)
+       <user_selected_context>: New field.
+       * stack.c (print_stack_frame_to_uiout): New function definition.
+       (select_frame_command): Notify user_selected_context_changed
+       observer.
+       (frame_command): Call print_selected_thread_frame if there's no frame
+       change or notify user_selected_context_changed observer if there is.
+       (up_command): Notify user_selected_context_changed observer.
+       (down_command): Likewise.
+       (_initialize_stack): Suppress user_selected_context notification for
+       command select-frame.
+       * thread.c (thread_command): Notify
+       user_selected_context_changed if the thread has changed, print
+       thread info directly if it hasn't.
+       (do_captured_thread_select): Do not print thread switch event.
+       (print_selected_thread_frame): New function definition.
+       * tui/tui-interp.c (tui_on_user_selected_context_changed):
+       New function definition.
+       (_initialize_tui_interp): Attach to user_selected_context_changed
+       observer.
+
+2016-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
+       * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
+       Use it.
+       * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
+       * infcmd.c (setup_inferior): Update caller.
+       * remote.c (remote_add_inferior): Likewise.
+
+2016-09-28  Pedro Alves  <palves@redhat.com>
+
+       * infcall.c (run_inferior_call): Remove input from the event
+       loop while running the infcall.
+
+2016-09-27  Fredrik Hederstierna  <fredrik.hederstierna@verisure.com>
+
+       * arm-tdep.c (arm_m_addr_is_magic): New function.
+       (arm_addr_bits_remove): Call arm_m_addr_is_magic.
+       (arm_m_exception_unwind_sniffer): Likewise.
+
+2016-09-23  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * windows-nat.c (windows_delete_thread): Adjusting call to
+       target_mourn_inferior to include ptid_t argument.
+
 2016-09-23  Tom Tromey  <tom@tromey.com>
 
        * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
This page took 0.031599 seconds and 4 git commands to generate.