x86: Use correct .reg-xstate section size
[binutils-gdb.git] / gdb / ChangeLog
index e88cd57e1a433bcce52a7dfcc883edeb22433929..822d0d40bc85d46cc78a098def3b46c3fed2e7d8 100644 (file)
@@ -1,3 +1,214 @@
+2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
+       For ".reg-xstate", explicitly specify the requested section size
+       via X86_XSTATE_SIZE instead of just 0 on input and
+       X86_XSTATE_MAX_SIZE on output.
+       * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
+       Likewise.
+
+2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       PR corefiles/17808:
+       * gdbarch.sh (iterate_over_regset_sections_cb): Document this
+       function type, particularly its SIZE parameter.
+       * gdbarch.h: Regenerate.
+       * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
+       actual against required size using ">=" instead of "==".
+       (amd64_collect_fpregset): Likewise.
+       * i386-tdep.c (i386_supply_gregset): Likewise.
+       (i386_collect_gregset): Likewise.
+       (i386_supply_fpregset): Likewise.
+       (i386_collect_fpregset): Likewise.
+       * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
+       (mips_fill_gregset_wrapper): Likewise.
+       (mips_supply_fpregset_wrapper): Likewise.
+       (mips_fill_fpregset_wrapper): Likewise.
+       (mips64_supply_gregset_wrapper): Likewise.
+       (mips64_fill_gregset_wrapper): Likewise.
+       (mips64_supply_fpregset_wrapper): Likewise.
+       (mips64_fill_fpregset_wrapper): Likewise.
+       * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
+       (am33_supply_fpregset_method): Likewise.
+       (am33_collect_gregset_method): Likewise.
+       (am33_collect_fpregset_method): Likewise.
+
+2015-02-04  Doug Evans  <dje@google.com>
+           Pedro Alves  <palves@redhat.com>
+           Eli Zaretskii  <eliz@gnu.org>
+
+       PR tui/17810
+       * tui/tui-command.c (tui_refresh_cmd_win): New function.
+       * tui/tui-command.c (tui_refresh_cmd_win): Declare.
+       * tui/tui-file.c: #include tui/tui-command.h.
+       (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
+       (tui_file_flush): Refresh command window if stream is gdb_stdout.
+       * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
+
+2015-02-04  Pedro Alves  <palves@redhat.com>
+
+       Fix build breakage.
+       * event-loop.c (gdb_do_one_event): Add default switch case.
+
+2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Filter out inferior gcc option -fpreprocessed.
+       * compile/compile.c (filter_args): New function.
+       (get_args): Use it.
+
+2015-02-03  Pedro Alves  <palves@redhat.com>
+
+       * event-loop.c: Don't declare nor define a queue type for
+       gdb_event_p.
+       (event_queue): Delete.
+       (create_event, create_file_event, gdb_event_xfree)
+       (initialize_event_loop, process_event): Delete.
+       (gdb_do_one_event): Return as soon as one event is handled.
+       (handle_file_event): Change prototype.  Used the passed in
+       file_handler pointer and ready_mask instead of looping over all
+       file handlers.
+       (gdb_wait_for_event): Update the poll/select timeouts before
+       blocking.  Run event handlers directly instead of queueing events.
+       Return as soon as one event is handled.
+       (struct async_event_handler_data): Delete.
+       (invoke_async_event_handler): Delete.
+       (check_async_event_handlers): Change return type to int.  Run
+       event handlers directly instead of queueing events.  Return as
+       soon as one event is handled.
+       (handle_timer_event): Delete.
+       (update_wait_timeout): New function, factored out from
+       poll_timers.
+       (poll_timers): Reimplement.
+       * event-loop.h (initialize_event_loop): Delete declaration.
+       * top.c (gdb_init): Don't call initialize_event_loop.
+
+2015-02-03  Pedro Alves  <palves@redhat.com>
+
+       * event-loop.c (clear_async_event_handler): New function.
+       * event-loop.h (clear_async_event_handler): New declaration.
+       * record-btrace.c (record_btrace_async): New function.
+       (init_record_btrace_ops): Install record_btrace_async.
+       * record-full.c (record_full_async): New function.
+       (record_full_resume): Don't mark the async event source here.
+       (init_record_full_ops): Install record_full_async.
+       (record_full_core_resume): Don't mark the async event source here.
+       (init_record_full_core_ops): Install record_full_async.
+       * remote.c (remote_async): Mark and clear the async stop reply
+       queue event-loop token as appropriate.
+
+2015-02-03  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
+       target_is_async_p instead of target_can_async.
+       (linux_nat_wait): Use target_is_async_p instead of
+       target_can_async.  Don't enable async here.
+       * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
+       target_is_async_p instead of target_can_async.
+
+2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * varobj.h (lang_varobj_ops): Mention which return values need
+       to be freed.
+
+2015-02-02  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
+
+2015-02-02  Joel Brobecker  <brobecker@adacore.com>
+
+       PR gdb/17856:
+       * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
+       results found in the cache.
+
+2015-02-02  Joel Brobecker  <brobecker@adacore.com>
+
+       PR gdb/17854:
+       * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
+       when allocating a new one.
+
+2015-02-01  Tom Tromey  <tom@tromey.com>
+
+       * MAINTAINERS: Remove myself.
+
+2015-01-31  Doug Evans  <xdje42@gmail.com>
+
+       * dwarf2read.c (process_structure_scope): Update setting of
+       TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
+       * gdbtypes.c (internal_type_vptr_fieldno): New function.
+       (set_type_vptr_fieldno): New function.
+       (internal_type_vptr_basetype): New function.
+       (set_type_vptr_basetype): New function.
+       (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
+       TYPE_VPTR_BASETYPE.
+       (allocate_cplus_struct_type): Initialize vptr_fieldno.
+       (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
+       (print_cplus_stuff): ... moved here.
+       (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
+       * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
+       moved to ...
+       (struct cplus_struct_type): ... here.  All uses updated.
+       (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
+       (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
+       (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
+       * stabsread.c (read_tilde_fields): Update setting of
+       TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
+
+2015-01-31  Doug Evans  <xdje42@gmail.com>
+
+       * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
+       to self_p.
+       (cp_print_class_member): Rename local domain to self_type.
+       * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
+       domain_type to self_type.
+       (set_die_type) <need_gnat_info>: Handle
+       TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
+       * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
+       TYPE_SPECIFIC_SELF_TYPE.
+       * gdbtypes.c (internal_type_self_type): New function.
+       (set_type_self_type): New function.
+       (smash_to_memberptr_type): Rename parameter domain to self_type.
+       Update setting of TYPE_SELF_TYPE.
+       (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
+       (smash_to_method_type): Rename parameter domain to self_type.
+       Update setting of TYPE_SELF_TYPE.
+       (check_stub_method): Call smash_to_method_type.
+       (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
+       (copy_type_recursive): Ditto.
+       * gdbtypes.h (enum type_specific_kind): New value
+       TYPE_SPECIFIC_SELF_TYPE.
+       (struct main_type) <type_specific>: New member self_type.
+       (struct cplus_struct_type) <fn_field.type>: Update comment.
+       (TYPE_SELF_TYPE): Rewrite.
+       (internal_type_self_type, set_type_self_type): Declare.
+       * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
+       self_type.
+       (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
+       * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
+       TYPE_TARGET_TYPE.
+       * stabsread.c (read_member_functions): Mark methods with
+       TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
+       TYPE_SELF_TYPE.
+
+2015-01-31  Doug Evans  <xdje42@gmail.com>
+
+       * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
+       All uses updated.
+
+2015-01-31  Doug Evans  <xdje42@gmail.com>
+
+       * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
+       or unions.  Return zero if union.
+       (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
+       (gnuv3_rtti_type): Pass already-check_typedef'd value to
+       gnuv3_get_vtable.
+       (compute_vtable_size): Assert only passed structs.
+       (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
+
+2015-01-31  Doug Evans  <xdje42@gmail.com>
+
+       * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
+       kinds.
+
 2015-01-31  Gary Benson <gbenson@redhat.com>
            Doug Evans  <dje@google.com>