btrace: add format argument to supports_btrace
[binutils-gdb.git] / gdb / ChangeLog
index e7e60bb787d02296afd5e93bdddf6e754b354b93..255daa1cf8a6fbc05cc02c92de112e56f4624f42 100644 (file)
@@ -1,3 +1,211 @@
+2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
+       * record-btrace.c (record_btrace_open): Remove call to
+       target_supports_btrace.
+       * remote.c (remote_supports_btrace): Update parameters.
+       * target.c (target_supports_btrace): Update parameters.
+       * target.h (to_supports_btrace, target_supports_btrace): Update
+       parameters.
+       * target-delegates.c: Regenerate.
+       * target-debug.h (target_debug_print_enum_btrace_format): New.
+       * nat/linux-btrace.c
+       (kernel_supports_btrace): Rename into ...
+       (kernel_supports_bts): ... this.  Update users.  Update warning text.
+       (intel_supports_btrace): Rename into ...
+       (intel_supports_bts): ... this.  Update users.
+       (cpu_supports_btrace): Rename into ...
+       (cpu_supports_bts): ... this.  Update users.
+       (linux_supports_btrace): Update parameters.  Split into this and ...
+       (linux_supports_bts): ... this.
+       * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
+
+2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * Makefile.in (SFILES): Add common/btrace-common.c.
+       (COMMON_OBS): Add common/btrace-common.o.
+       (btrace-common.o): Add build rules.
+       * btrace.c (parse_xml_btrace): Update parameters.
+       (parse_xml_btrace_block): Set format field.
+       (btrace_add_pc, btrace_fetch): Use struct btrace_data.
+       (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
+       (btrace_compute_ftrace): Split into this and...
+       (btrace_compute_ftrace_bts): ...this.
+       (btrace_stitch_trace): Split into this and...
+       (btrace_stitch_bts): ...this.
+       * btrace.h (parse_xml_btrace): Update parameters.
+       (make_cleanup_btrace_data): New.
+       * common/btrace-common.c: New.
+       * common/btrace-common.h: Include common-defs.h.
+       (btrace_block_s): Update comment.
+       (btrace_format): New.
+       (btrace_format_string): New.
+       (btrace_data_bts): New.
+       (btrace_data): New.
+       (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
+       * remote.c (remote_read_btrace): Update parameters.
+       * target.c (target_read_btrace): Update parameters.
+       * target.h (target_read_btrace): Update parameters.
+       (target_ops)<to_read_btrace>: Update parameters.
+       * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
+       * target-delegates.c: Regenerate.
+       * target-debug (target_debug_print_struct_btrace_data_p): New.
+       * nat/linux-btrace.c (linux_read_btrace): Split into this and...
+       (linux_read_bts): ...this.
+       * nat/linux-btrace.h (linux_read_btrace): Update parameters.
+
+2015-02-06  Doug Evans  <dje@google.com>
+
+       * remote-m32r-sdi.c: Include symfile.h.
+
+2015-02-06  Doug Evans  <dje@google.com>
+
+       * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
+       * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
+       to here.
+
+2015-02-06  Pedro Alves  <palves@redhat.com>
+
+       * linux-thread-db.c (find_new_threads_callback): Add debug output.
+
+2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
+
+       PR gdb/15678
+       * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
+       (enable_count_command): Check args for NULL value.
+
+2015-02-05  Doug Evans  <xdje42@gmail.com>
+
+       * guile/scm-frame.c: Fix spelling errors in a comment.
+
+2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
+       * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
+       return type.
+
+2015-02-04  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
+       (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
+       returns true.
+       (resume_stopped_resumed_lwps): Don't check whether the thread is
+       marked as executing.
+       (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
+
+2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * regset.h (struct regset): Add flags field.
+       (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
+       * corelow.c (get_core_register_section): Add warning if the size
+       exceeds the requested size and the regset does not have the
+       REGSET_VARIABLE_SIZE flag set.
+       * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
+       flag.
+       * armbsd-tdep.c (armbsd_gregset): Likewise.
+       * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
+       * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
+       * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
+       * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
+
+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