Call target_can_download_tracepoint if there are tracepoints to download
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index db3b1b96483a67b8c7c9da215bd43a11a496dab3..ba521c078c245e7819cb6e3e384b58bd9193180f 100644 (file)
@@ -1,3 +1,478 @@
+2015-09-10  Yao Qi  <yao.qi@linaro.org>
+
+       * breakpoint.c (download_tracepoint_locations): New local
+       can_download_tracepoint.  Check the result of
+       target_can_download_tracepoint and save it in
+       can_download_tracepoint if there are tracepoints to download.
+       * linux-nat.h (enum tribool): Move it to ...
+       * common/common-types.h: ... here.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
+       * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * continuations.c (add_continuation, restore_thread_cleanup)
+       (do_all_continuations_ptid, do_all_continuations_thread_callback)
+       (do_all_continuations_thread, do_all_continuations)
+       (discard_all_continuations_thread_callback)
+       (discard_all_continuations_thread, discard_all_continuations)
+       (add_intermediate_continuation)
+       (do_all_intermediate_continuations_thread_callback)
+       (do_all_intermediate_continuations_thread)
+       (do_all_intermediate_continuations)
+       (discard_all_intermediate_continuations_thread_callback)
+       (discard_all_intermediate_continuations_thread)
+       (discard_all_intermediate_continuations): Delete.
+       * continuations.h (add_continuation, do_all_continuations)
+       (do_all_continuations_thread, discard_all_continuations)
+       (discard_all_continuations_thread, add_intermediate_continuation)
+       (do_all_intermediate_continuations)
+       (do_all_intermediate_continuations_thread)
+       (discard_all_intermediate_continuations)
+       (discard_all_intermediate_continuations_thread): Delete
+       declarations.
+       * event-top.c (stdin_event_handler): Delete references to
+       continuations.
+       * gdbthread.h (struct thread_info): Delete continuations and
+       intermediate_continuations fields.
+       * inf-loop.c (inferior_event_handler): Remove references to
+       continuations.
+       * infrun.c (infrun_thread_stop_requested_callback): Remove
+       references to continuations.
+       * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
+       * thread.c: Don't include "continuations.h".
+       (clear_thread_inferior_resources): Remove references to
+       continuations.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * infcall.c (struct dummy_frame_context_saver): Delete.
+       (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
+       (dummy_frame_context_saver_drop)
+       (dummy_frame_context_saver_cleanup)
+       (dummy_frame_context_saver_get_regs)
+       (dummy_frame_context_saver_setup): Delete.
+       * infcall.h (dummy_frame_context_saver_drop)
+       (dummy_frame_context_saver_cleanup)
+       (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
+       Delete.
+       (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
+       * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
+       * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c: Include "thread-fsm.h".
+       (struct until_break_command_continuation_args): Delete.
+       (struct until_break_fsm): New.
+       (until_break_fsm_ops): New global.
+       (new_until_break_fsm, until_break_fsm_should_stop): New functions.
+       (until_break_command_continuation): Delete.
+       (until_break_fsm_clean_up): New function.
+       (until_break_fsm_async_reply_reason): New function.
+       (until_break_command): Adjust to create an until_break_fsm instead
+       of a continuation.
+       (momentary_bkpt_print_it): No longer print MI's async-stop-reason
+       here.
+       * infcmd.c (struct until_next_fsm): New.
+       (until_next_fsm_ops): New global.
+       (new_until_next_fsm, until_next_fsm_should_stop): New function.
+       (until_next_continuation): Delete.
+       (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
+       functions.
+       (until_next_command): Adjust to create a new until_next_fsm
+       instead of a continuation.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * infcall.c: Include thread_fsm.h.
+       (struct call_return_meta_info): New.
+       (get_call_return_value): New function, factored out from
+       call_function_by_hand_dummy.
+       (struct call_thread_fsm): New.
+       (call_thread_fsm_ops): New global.
+       (new_call_thread_fsm, call_thread_fsm_should_stop)
+       (call_thread_fsm_should_notify_stop): New functions.
+       (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
+       the thread.
+       (call_function_by_hand_dummy): Create a new call_thread_fsm
+       instance, associate it with the thread, and wait for the FSM to
+       finish.  If finished successfully, fetch the function's result
+       value out of the FSM.
+       * infrun.c (fetch_inferior_event): If the FSM says the stop
+       shouldn't be notified, don't call normal_stop.
+       (maybe_remove_breakpoints): New function, factored out from ...
+       (normal_stop): ... here.  Simplify.
+       * infrun.h (maybe_remove_breakpoints): Declare.
+       * thread-fsm.c (thread_fsm_should_notify_stop): New function.
+       (thread-fsm.h) <struct thread_fsm_ops>: New field.
+       (thread_fsm_should_notify_stop): Declare.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (COMMON_OBS): Add thread-fsm.o.
+       * breakpoint.c (handle_jit_event): Print debug output.
+       (bpstat_what): Split event callback handling to ...
+       (bpstat_run_callbacks): ... this new function.
+       (momentary_bkpt_print_it): No longer handle bp_finish here.
+       * breakpoint.h (bpstat_run_callbacks): Declare.
+       * gdbthread.h (struct thread_info) <step_multi>: Delete field.
+       <thread_fsm>: New field.
+       (thread_cancel_execution_command): Declare.
+       * infcmd.c: Include thread-fsm.h.
+       (struct step_command_fsm): New.
+       (step_command_fsm_ops): New global.
+       (new_step_command_fsm, step_command_fsm_prepare): New functions.
+       (step_1): Adjust to use step_command_fsm_prepare and
+       prepare_one_step.
+       (struct step_1_continuation_args): Delete.
+       (step_1_continuation): Delete.
+       (step_command_fsm_should_stop): New function.
+       (step_once): Delete.
+       (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
+       (prepare_one_step): New function, based on step_once.
+       (until_next_command): Remove step_multi reference.
+       (struct return_value_info): New.
+       (print_return_value): Rename to ...
+       (print_return_value_1): ... this.  New struct return_value_info
+       parameter.  Adjust.
+       (print_return_value): Reimplement as wrapper around
+       print_return_value_1.
+       (struct finish_command_fsm): New.
+       (finish_command_continuation): Delete.
+       (finish_command_fsm_ops): New global.
+       (new_finish_command_fsm, finish_command_fsm_should_stop): New
+       functions.
+       (finish_command_fsm_clean_up, finish_command_fsm_return_value):
+       New.
+       (finish_command_continuation_free_arg): Delete.
+       (finish_command_fsm_async_reply_reason): New.
+       (finish_backward, finish_forward): Change symbol parameter to a
+       finish_command_fsm.  Adjust.
+       (finish_command): Create a finish_command_fsm.  Adjust.
+       * infrun.c: Include "thread-fsm.h".
+       (clear_proceed_status_thread): Delete the thread's FSM.
+       (infrun_thread_stop_requested_callback): Cancel the thread's
+       execution command.
+       (clean_up_just_stopped_threads_fsms): New function.
+       (fetch_inferior_event): Handle the event_thread's should_stop
+       method saying the command isn't done yet.
+       (process_event_stop_test): Run breakpoint callbacks here.
+       (print_stop_event): Rename to ...
+       (print_stop_location): ... this.
+       (restore_current_uiout_cleanup): New function.
+       (print_stop_event): Reimplement.
+       (normal_stop): No longer notify the end_stepping_range observers
+       here handle "step N" nor "finish" here.  No longer call
+       print_stop_event here.
+       * infrun.h (struct return_value_info): Forward declare.
+       (print_return_value): Declare.
+       (print_stop_event): Change prototype.
+       * thread-fsm.c: New file.
+       * thread-fsm.h: New file.
+       * thread.c: Include "thread-fsm.h".
+       (thread_cancel_execution_command): New function.
+       (clear_thread_inferior_resources): Call it.
+       * cli/cli-interp.c (cli_on_normal_stop): New function.
+       (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
+       observer.
+       * mi/mi-interp.c: Include "thread-fsm.h".
+       (restore_current_uiout_cleanup): Delete.
+       (mi_on_normal_stop): If the thread has an FSM associated, and it
+       finished, ask it for the async-reply-reason to print.  Always call
+       print_stop_event here, regardless of the top-level interpreter.
+       Check bpstat_what to tell whether an asynchronous breakpoint hit
+       triggered.
+       * tui/tui-interp.c (tui_on_normal_stop): New function.
+       (tui_init): Install tui_on_normal_stop as normal_stop observer.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
+       check whether the target can async.
+       * inf-loop.c (inferior_event_handler): Only call target_async if
+       the target can async.
+       * infcall.c: Include top.h and interps.h.
+       (run_inferior_call): For the interpreter to sync mode while
+       running the infcall.  Call wait_sync_command_done instead of
+       wait_for_inferior plus normal_stop.
+       * infcmd.c (prepare_execution_command): Don't check whether the
+       target can async when running in the foreground.
+       (step_1): Delete synchronous case handling.
+       (step_once): Always install a continuation, even in sync mode.
+       (until_next_command, finish_forward): Don't check whether the
+       target can async.
+       (attach_command_post_wait, notice_new_inferior): Always install a
+       continuation, even in sync mode.
+       * infrun.c (mark_infrun_async_event_handler): New function.
+       (proceed): In sync mode, mark infrun's event source instead of
+       waiting for events here.
+       (fetch_inferior_event): If the target can't async, do a blocking
+       wait.
+       (prepare_to_wait): In sync mode, mark infrun's event source.
+       (infrun_async_inferior_event_handler): No longer bail out if the
+       target can't async.
+       * infrun.h (mark_infrun_async_event_handler): New declaration.
+       * linux-nat.c (linux_nat_wait_1): Remove calls to
+       set_sigint_trap/clear_sigint_trap.
+       (linux_nat_terminal_inferior): No longer check whether the target
+       can async.
+       * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
+       comment.
+       (mi_execute_command_input_handler): No longer check whether the
+       target is async.  Update and simplify comment.
+       * target.c (default_target_wait): New function.
+       * target.h (struct target_ops) <to_wait>: Now defaults to
+       default_target_wait.
+       (default_target_wait): Declare.
+       * top.c (wait_sync_command_done): New function, factored out from
+       ...
+       (maybe_wait_sync_command_done): ... this.
+       * top.h (wait_sync_command_done): Declare.
+       * target-delegates.c: Regenerate.
+
+2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
+       * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
+       Remove include of sys/utsname.h.
+       (linux_determine_kernel_ptr_bits): Remove.
+       (linux_determine_kernel_start): New.
+       (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
+       Update check.
+       (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
+       (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
+       initialization.
+       * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
+       assignment.
+
+2015-09-07  Pedro Alves  <palves@redhat.com>
+
+       * guile/guile-internal.h (as_a_scm_t_subr): New.
+       * guile/guile.c (misc_guile_functions): Use it.
+       * guile/scm-arch.c (arch_functions): Use it.
+       * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
+       Use it.
+       * guile/scm-breakpoint.c (breakpoint_functions): Use it.
+       * guile/scm-cmd.c (command_functions): Use it.
+       * guile/scm-disasm.c (disasm_functions): Use it.
+       * guile/scm-exception.c (exception_functions)
+       (private_exception_functions): Use it.
+       * guile/scm-frame.c (frame_functions)
+       * guile/scm-gsmob.c (gsmob_functions): Use it.
+       * guile/scm-iterator.c (iterator_functions): Use it.
+       * guile/scm-lazy-string.c (lazy_string_functions): Use it.
+       * guile/scm-math.c (math_functions): Use it.
+       * guile/scm-objfile.c (objfile_functions): Use it.
+       * guile/scm-param.c (parameter_functions): Use it.
+       * guile/scm-ports.c (port_functions, private_port_functions): Use
+       it.
+       * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
+       * guile/scm-progspace.c (pspace_functions): Use it.
+       * guile/scm-string.c (string_functions): Use it.
+       * guile/scm-symbol.c (symbol_functions): Use it.
+       * guile/scm-symtab.c (symtab_functions): Use it.
+       * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
+       it.
+       * guile/scm-value.c (value_functions): Use it.
+
+2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
+       (tui_next_win): Likewise.
+       (tui_prev_win): Likewise.
+       (tui_partial_win_by_name): Likewise.
+       (tui_init_generic_part): Likewise.
+       (init_content_element): Likewise.
+       (tui_del_window): Likewise.
+       (tui_free_window): Likewise.
+       (tui_del_data_windows): Likewise.
+       (tui_free_data_content): Likewise.
+       * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
+       * tui/tui-regs.c (tui_show_register_group): Likewise.
+       * tui/tui-win.c (tui_resize_all): Likewise.
+       (tui_set_focus): Likewise.
+       (tui_set_win_height): Likewise.
+       (make_invisible_and_set_new_height): Likewise.
+       * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
+       * tui/tui-wingeneral.c (make_visible): Likewise.
+
+2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
+
+2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
+       pointer.
+       * dbxread.c (dbx_end_psymtab): Likewise.
+       * gnu-nat.c (gnu_write_inferior): Likewise.
+       * mdebugread.c (cross_ref): Likewise.
+       * p-valprint.c (pascal_val_print): Likewise.
+       * xcoffread.c (xcoff_end_psymtab): Likewise.
+
+2015-09-04  Yao Qi  <yao.qi@linaro.org>
+
+       * NEWS: Mention the aarch64 multi-arch debugging support.
+
+2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
+       type instead of a TYPE_CODE_INT one for the string_char_type
+       and the ada_primitive_type_char types.
+
+2015-09-03  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
+       Move code to aarch64_linux_region_ok_for_watchpoint.  Call
+       aarch64_linux_region_ok_for_watchpoint.
+       * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
+       New function.
+       * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
+       Declare it.
+
+2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * gdb_obstack.h (obstack_strdup): Declare.
+       * gdb_obstack.c (obstack_strdup): Define.
+       * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
+       * gdbarch.c: Regenerate.
+       * gdbarch.h: Regenerate.
+       * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
+
+2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * gdbtypes.c (copy_type_recursive): Update documentation.
+
+2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
+       as zero.
+
+2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
+
+2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * solib-svr4.c (solib_event_probe_action): Call
+       get_probe_argument_count using TRY...CATCH.
+       (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
+
+2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * probe.h (struct probe_ops) <get_probe_argument_count,
+       evaluate_probe_argument, enable_probe, disable_probe>: Mention in
+       the comment that the function can throw an exception.
+       (get_probe_argument_count): Likewise.
+       (evaluate_probe_argument): Likewise.
+       * stap-probe.c (stap_get_opcode): Call error instead of
+       internal_error.
+       (stap_get_expected_argument_type): Likewise.  Add argument
+       'probe'.  Improve error message by mentioning the probe's name.
+       (stap_parse_probe_arguments): Adjust call to
+       stap_get_expected_argument_type.
+       (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
+       not zero.  Call internal_error if GDB requests an argument but the
+       probe has no arguments.
+
+2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-lang.c (ada_resolve_function): Do not ask the user what
+       match to use when in completion mode.
+
+2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-data.c (tui_win_name): Make local variable const, remove
+       cast of NULL.
+
+2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
+       call_abi using XSHAL_ABI macro.
+
+2015-08-29  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.h (struct symbol): Tweak comment.
+
+2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * gdbtypes.c (alloc_type_arch): Allocate the type on the given
+       gdbarch obstack instead of on the heap.  Update commentary
+       accordingly.
+
+2015-08-28  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.10 released.
+
+2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * NEWS: Update entry about non-8-bits addressable memory.
+
+2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       Revert:
+       2014-11-06  Doug Evans  <xdje42@gmail.com>
+       * solib.c (solib_global_lookup): Fetch arch from objfile,
+       not target_gdbarch.
+
+2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
+       attempt to relocate a TLS variable offset.
+
+2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
+       registered yet.  Set inferior_ptid while calling target_read_memory.
+
+2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
+       (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
+       * linux-nat.c (check_stopped_by_breakpoint): Use
+       GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
+
+2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * linux-thread-db.c (thread_db_get_thread_local_address): If the
+       thread was not yet discovered, use thread_from_lwp instead of
+       calling thread_db_find_new_threads_1.
+
+2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
+       statements.
+
+2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * NEWS: Document support for non-8-bits addressable memory.
+
+2015-08-27  Pedro Alves  <palves@redhat.com>
+
+       * configure.ac: Remove AC_TYPE_SIGNAL call.
+       * configure, config.in: Regenerate.
+
+2015-08-27  Pedro Alves  <palves@redhat.com>
+
+       * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
+       * extension-priv.h: Include signal.h.
+       (struct signal_handler) <handler>: Change type to sighandler_t.
+       * extension.c (install_gdb_sigint_handler): Use sighandler_t.
+       * inflow.c (sigint_ours, sigquit_ours): Change type to
+       sighandler_t.
+       (child_terminal_inferior): Remove casts.
+       (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
+       (osig): Change type to sighandler_t.
+       * nto-procfs.c (ofunc): Change type to sighandler_t.
+       (procfs_wait): Remove casts.
+       * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
+       * remote-sim.c (gdbsim_wait): Use sighandler_t.
+       * utils.c (wait_to_die_with_timeout): Use sighandler_t.
+
 2015-08-27  Pedro Alves  <palves@redhat.com>
 
        * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
 
 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
 
-       * aarch64-linux-nat.c (aarch64_add_process): Likewise.
+       * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
+       function with the XNEW-family equivalent.
        * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
        * ada-exp.y (write_ambiguous_var): Likewise.
        * ada-lang.c (resolve_subexp): Likewise.
This page took 0.034189 seconds and 4 git commands to generate.