Call target_can_download_tracepoint if there are tracepoints to download
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index f7c559be5010fae0888d39c8748457ca0e9ddd15..ba521c078c245e7819cb6e3e384b58bd9193180f 100644 (file)
+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.
+       * gnulib/aclocal.m4: Renegerate.
+       * gnulib/config.in: Renegerate.
+       * gnulib/configure: Renegerate.
+       * gnulib/import/Makefile.am: Update.
+       * gnulib/import/Makefile.in: Regenerate.
+       * gnulib/import/m4/gnulib-cache.m4: Update.
+       * gnulib/import/m4/gnulib-comp.m4: Update.
+       * gnulib/import/m4/signal_h.m4: New file.
+       * gnulib/import/signal.in.h: New file.
+
+2015-08-27  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
+       (MIN_MEMORY_PACKET_SIZE): New.
+       (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
+       (get_memory_packet_size): Adjust.  No longer limit the max packet
+       size.
+       (set_memory_packet_size): Adjust, and remove dead code.
+       (remote_check_symbols): Use xmalloc and a cleanup instead of
+       alloca.
+       (remote_packet_size): No longer cap the packet size.
+       (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
+
+2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
+
+       * compile/compile.c (compile_to_object): Mention language in
+       error message.
+
+2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * target.c (target_pre_inferior): Unset attach_flag.
+
+2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
+       * gdbarch.c: Re-generate.
+
+2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * 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.
+       (user_select_syms): Likewise.
+       (assign_aggregate): Likewise.
+       (ada_evaluate_subexp): Likewise.
+       (cache_symbol): Likewise.
+       * addrmap.c (allocate_key): Likewise.
+       (addrmap_create_mutable): Likewise.
+       * aix-thread.c (sync_threadlists): Likewise.
+       * alpha-tdep.c (alpha_push_dummy_call): Likewise.
+       (alpha_gdbarch_init): Likewise.
+       * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
+       * arm-linux-nat.c (arm_linux_add_process): Likewise.
+       * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
+       * arm-tdep.c (push_stack_item): Likewise.
+       (arm_displaced_step_copy_insn): Likewise.
+       (arm_gdbarch_init): Likewise.
+       (_initialize_arm_tdep): Likewise.
+       * avr-tdep.c (push_stack_item): Likewise.
+       * ax-general.c (new_agent_expr): Likewise.
+       * block.c (block_initialize_namespace): Likewise.
+       * breakpoint.c (alloc_counted_command_line): Likewise.
+       (update_dprintf_command_list): Likewise.
+       (parse_breakpoint_sals): Likewise.
+       (decode_static_tracepoint_spec): Likewise.
+       (until_break_command): Likewise.
+       (clear_command): Likewise.
+       (update_global_location_list): Likewise.
+       (get_breakpoint_objfile_data) Likewise.
+       * btrace.c (ftrace_new_function): Likewise.
+       (btrace_set_insn_history): Likewise.
+       (btrace_set_call_history): Likewise.
+       * buildsym.c (add_symbol_to_list): Likewise.
+       (record_pending_block): Likewise.
+       (start_subfile): Likewise.
+       (start_buildsym_compunit): Likewise.
+       (push_subfile): Likewise.
+       (end_symtab_get_static_block): Likewise.
+       (buildsym_init): Likewise.
+       * cli/cli-cmds.c (source_command): Likewise.
+       * cli/cli-decode.c (add_cmd): Likewise.
+       * cli/cli-script.c (build_command_line): Likewise.
+       (setup_user_args): Likewise.
+       (realloc_body_list): Likewise.
+       (process_next_line): Likewise.
+       (copy_command_lines): Likewise.
+       * cli/cli-setshow.c (do_set_command): Likewise.
+       * coff-pe-read.c (read_pe_exported_syms): Likewise.
+       * coffread.c (coff_locate_sections): Likewise.
+       (coff_symtab_read): Likewise.
+       (coff_read_struct_type): Likewise.
+       * common/cleanups.c (make_my_cleanup2): Likewise.
+       * common/common-exceptions.c (throw_it): Likewise.
+       * common/filestuff.c (make_cleanup_close): Likewise.
+       * common/format.c (parse_format_string): Likewise.
+       * common/queue.h (DEFINE_QUEUE_P): Likewise.
+       * compile/compile-object-load.c (munmap_list_add): Likewise.
+       (compile_object_load): Likewise.
+       * compile/compile-object-run.c (compile_object_run): Likewise.
+       * compile/compile.c (append_args): Likewise.
+       * corefile.c (specify_exec_file_hook): Likewise.
+       * cp-support.c (make_symbol_overload_list): Likewise.
+       * cris-tdep.c (push_stack_item): Likewise.
+       (cris_gdbarch_init): Likewise.
+       * ctf.c (ctf_trace_file_writer_new): Likewise.
+       * dbxread.c (init_header_files): Likewise.
+       (add_new_header_file): Likewise.
+       (init_bincl_list): Likewise.
+       (dbx_end_psymtab): Likewise.
+       (start_psymtab): Likewise.
+       (dbx_end_psymtab): Likewise.
+       * dcache.c (dcache_init): Likewise.
+       * dictionary.c (dict_create_hashed): Likewise.
+       (dict_create_hashed_expandable): Likewise.
+       (dict_create_linear): Likewise.
+       (dict_create_linear_expandable): Likewise.
+       * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
+       * dummy-frame.c (register_dummy_frame_dtor): Likewise.
+       * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
+       * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
+       (decode_frame_entry_1): Likewise.
+       * dwarf2expr.c (new_dwarf_expr_context): Likewise.
+       * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
+       * dwarf2read.c (dwarf2_has_info): Likewise.
+       (create_signatured_type_table_from_index): Likewise.
+       (dwarf2_read_index): Likewise.
+       (dw2_get_file_names_reader): Likewise.
+       (create_all_type_units): Likewise.
+       (read_cutu_die_from_dwo): Likewise.
+       (init_tu_and_read_dwo_dies): Likewise.
+       (init_cutu_and_read_dies): Likewise.
+       (create_all_comp_units): Likewise.
+       (queue_comp_unit): Likewise.
+       (inherit_abstract_dies): Likewise.
+       (read_call_site_scope): Likewise.
+       (dwarf2_add_field): Likewise.
+       (dwarf2_add_typedef): Likewise.
+       (dwarf2_add_member_fn): Likewise.
+       (attr_to_dynamic_prop): Likewise.
+       (abbrev_table_alloc_abbrev): Likewise.
+       (abbrev_table_read_table): Likewise.
+       (add_include_dir): Likewise.
+       (add_file_name): Likewise.
+       (dwarf_decode_line_header): Likewise.
+       (dwarf2_const_value_attr): Likewise.
+       (dwarf_alloc_block): Likewise.
+       (parse_macro_definition): Likewise.
+       (set_die_type): Likewise.
+       (write_psymtabs_to_index): Likewise.
+       (create_cus_from_index): Likewise.
+       (dwarf2_create_include_psymtab): Likewise.
+       (process_psymtab_comp_unit_reader): Likewise.
+       (build_type_psymtab_dependencies): Likewise.
+       (read_comp_units_from_section): Likewise.
+       (compute_compunit_symtab_includes): Likewise.
+       (create_dwo_unit_in_dwp_v1): Likewise.
+       (create_dwo_unit_in_dwp_v2): Likewise.
+       (read_func_scope): Likewise.
+       (process_structure_scope): Likewise.
+       (mark_common_block_symbol_computed): Likewise.
+       (load_partial_dies): Likewise.
+       (dwarf2_symbol_mark_computed): Likewise.
+       * elfread.c (elf_symfile_segments): Likewise.
+       (elf_read_minimal_symbols): Likewise.
+       * environ.c (make_environ): Likewise.
+       * eval.c (evaluate_subexp_standard): Likewise.
+       * event-loop.c (create_file_handler): Likewise.
+       (create_async_signal_handler): Likewise.
+       (create_async_event_handler): Likewise.
+       (create_timer): Likewise.
+       * exec.c (build_section_table): Likewise.
+       * fbsd-nat.c (fbsd_remember_child): Likewise.
+       * fork-child.c (fork_inferior): Likewise.
+       * frv-tdep.c (new_variant): Likewise.
+       * gdbarch.sh (gdbarch_alloc): Likewise.
+       (append_name): Likewise.
+       * gdbtypes.c (rank_function): Likewise.
+       (copy_type_recursive): Likewise.
+       (add_dyn_prop): Likewise.
+       * gnu-nat.c (make_proc): Likewise.
+       (make_inf): Likewise.
+       (gnu_write_inferior): Likewise.
+       * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
+       (build_std_type_info_type): Likewise.
+       * guile/scm-param.c (compute_enum_list): Likewise.
+       * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
+       * guile/scm-value.c (gdbscm_value_call): Likewise.
+       * h8300-tdep.c (h8300_gdbarch_init): Likewise.
+       * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
+       (read_unwind_info): Likewise.
+       * ia64-tdep.c (ia64_gdbarch_init): Likewise.
+       * infcall.c (dummy_frame_context_saver_setup): Likewise.
+       (call_function_by_hand_dummy): Likewise.
+       * infcmd.c (step_once): Likewise.
+       (finish_forward): Likewise.
+       (attach_command): Likewise.
+       (notice_new_inferior): Likewise.
+       * inferior.c (add_inferior_silent): Likewise.
+       * infrun.c (add_displaced_stepping_state): Likewise.
+       (save_infcall_control_state): Likewise.
+       (save_inferior_ptid): Likewise.
+       (_initialize_infrun): Likewise.
+       * jit.c (bfd_open_from_target_memory): Likewise.
+       (jit_gdbarch_data_init): Likewise.
+       * language.c (add_language): Likewise.
+       * linespec.c (decode_line_2): Likewise.
+       * linux-nat.c (add_to_pid_list): Likewise.
+       (add_initial_lwp): Likewise.
+       * linux-thread-db.c (add_thread_db_info): Likewise.
+       (record_thread): Likewise.
+       (info_auto_load_libthread_db): Likewise.
+       * m32c-tdep.c (m32c_gdbarch_init): Likewise.
+       * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
+       * m68k-tdep.c (m68k_gdbarch_init): Likewise.
+       * m88k-tdep.c (m88k_analyze_prologue): Likewise.
+       * macrocmd.c (macro_define_command): Likewise.
+       * macroexp.c (gather_arguments): Likewise.
+       * macroscope.c (sal_macro_scope): Likewise.
+       * macrotab.c (new_macro_table): Likewise.
+       * mdebugread.c (push_parse_stack): Likewise.
+       (parse_partial_symbols): Likewise.
+       (parse_symbol): Likewise.
+       (psymtab_to_symtab_1): Likewise.
+       (new_block): Likewise.
+       (new_psymtab): Likewise.
+       (mdebug_build_psymtabs): Likewise.
+       (add_pending): Likewise.
+       (elfmdebug_build_psymtabs): Likewise.
+       * mep-tdep.c (mep_gdbarch_init): Likewise.
+       * mi/mi-main.c (mi_execute_command): Likewise.
+       * mi/mi-parse.c (mi_parse_argv): Likewise.
+       * minidebug.c (lzma_open): Likewise.
+       * minsyms.c (terminate_minimal_symbol_table): Likewise.
+       * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
+       * mips-tdep.c (mips_gdbarch_init): Likewise.
+       * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
+       * msp430-tdep.c (msp430_gdbarch_init): Likewise.
+       * mt-tdep.c (mt_registers_info): Likewise.
+       * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
+       * nat/linux-btrace.c (linux_enable_bts): Likewise.
+       (linux_enable_pt): Likewise.
+       * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
+       (linux_xfer_osdata_processgroups): Likewise.
+       * nios2-tdep.c (nios2_gdbarch_init): Likewise.
+       * nto-procfs.c (procfs_meminfo): Likewise.
+       * objc-lang.c (start_msglist): Likewise.
+       (selectors_info): Likewise.
+       (classes_info): Likewise.
+       (find_methods): Likewise.
+       * objfiles.c (allocate_objfile): Likewise.
+       (update_section_map): Likewise.
+       * osabi.c (gdbarch_register_osabi): Likewise.
+       (gdbarch_register_osabi_sniffer): Likewise.
+       * parse.c (start_arglist): Likewise.
+       * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
+       (hwdebug_insert_point): Likewise.
+       * printcmd.c (display_command): Likewise.
+       (ui_printf): Likewise.
+       * procfs.c (create_procinfo): Likewise.
+       (load_syscalls): Likewise.
+       (proc_get_LDT_entry): Likewise.
+       (proc_update_threads): Likewise.
+       * prologue-value.c (make_pv_area): Likewise.
+       (pv_area_store): Likewise.
+       * psymtab.c (extend_psymbol_list): Likewise.
+       (init_psymbol_list): Likewise.
+       (allocate_psymtab): Likewise.
+       * python/py-inferior.c (add_thread_object): Likewise.
+       * python/py-param.c (compute_enum_values): Likewise.
+       * python/py-value.c (valpy_call): Likewise.
+       * python/py-varobj.c (py_varobj_iter_next): Likewise.
+       * python/python.c (ensure_python_env): Likewise.
+       * record-btrace.c (record_btrace_start_replaying): Likewise.
+       * record-full.c (record_full_reg_alloc): Likewise.
+       (record_full_mem_alloc): Likewise.
+       (record_full_end_alloc): Likewise.
+       (record_full_core_xfer_partial): Likewise.
+       * regcache.c (get_thread_arch_aspace_regcache): Likewise.
+       * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
+       * remote-notif.c (remote_notif_state_allocate): Likewise.
+       * remote.c (demand_private_info): Likewise.
+       (remote_notif_stop_alloc_reply): Likewise.
+       (remote_enable_btrace): Likewise.
+       * reverse.c (save_bookmark_command): Likewise.
+       * rl78-tdep.c (rl78_gdbarch_init): Likewise.
+       * rx-tdep.c (rx_gdbarch_init): Likewise.
+       * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
+       * ser-go32.c (dos_get_tty_state): Likewise.
+       (dos_copy_tty_state): Likewise.
+       * ser-mingw.c (ser_windows_open): Likewise.
+       (ser_console_wait_handle): Likewise.
+       (ser_console_get_tty_state): Likewise.
+       (make_pipe_state): Likewise.
+       (net_windows_open): Likewise.
+       * ser-unix.c (hardwire_get_tty_state): Likewise.
+       (hardwire_copy_tty_state): Likewise.
+       * solib-aix.c (solib_aix_new_lm_info): Likewise.
+       * solib-dsbt.c (dsbt_current_sos): Likewise.
+       (dsbt_relocate_main_executable): Likewise.
+       * solib-frv.c (frv_current_sos): Likewise.
+       (frv_relocate_main_executable): Likewise.
+       * solib-spu.c (spu_bfd_fopen): Likewise.
+       * solib-svr4.c (lm_info_read): Likewise.
+       (svr4_copy_library_list): Likewise.
+       (svr4_default_sos): Likewise.
+       * source.c (find_source_lines): Likewise.
+       (line_info): Likewise.
+       (add_substitute_path_rule): Likewise.
+       * spu-linux-nat.c (spu_bfd_open): Likewise.
+       * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
+       * stabsread.c (dbx_lookup_type): Likewise.
+       (read_type): Likewise.
+       (read_member_functions): Likewise.
+       (read_struct_fields): Likewise.
+       (read_baseclasses): Likewise.
+       (read_args): Likewise.
+       (_initialize_stabsread): Likewise.
+       * stack.c (func_command): Likewise.
+       * stap-probe.c (handle_stap_probe): Likewise.
+       * symfile.c (addrs_section_sort): Likewise.
+       (addr_info_make_relative): Likewise.
+       (load_section_callback): Likewise.
+       (add_symbol_file_command): Likewise.
+       (init_filename_language_table): Likewise.
+       * symtab.c (create_filename_seen_cache): Likewise.
+       (sort_search_symbols_remove_dups): Likewise.
+       (search_symbols): Likewise.
+       * target.c (make_cleanup_restore_target_terminal): Likewise.
+       * thread.c (new_thread): Likewise.
+       (enable_thread_stack_temporaries): Likewise.
+       (make_cleanup_restore_current_thread): Likewise.
+       (thread_apply_all_command): Likewise.
+       * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
+       * top.c (gdb_readline_wrapper): Likewise.
+       * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
+       * tracepoint.c (trace_find_line_command): Likewise.
+       (all_tracepoint_actions_and_cleanup): Likewise.
+       (make_cleanup_restore_current_traceframe): Likewise.
+       (get_uploaded_tp): Likewise.
+       (get_uploaded_tsv): Likewise.
+       * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
+       (tui_alloc_win_info): Likewise.
+       (tui_alloc_content): Likewise.
+       (tui_add_content_elements): Likewise.
+       * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
+       (tui_set_disassem_content): Likewise.
+       * ui-file.c (ui_file_new): Likewise.
+       (stdio_file_new): Likewise.
+       (tee_file_new): Likewise.
+       * utils.c (make_cleanup_restore_integer): Likewise.
+       (add_internal_problem_command): Likewise.
+       * v850-tdep.c (v850_gdbarch_init): Likewise.
+       * valops.c (find_oload_champ): Likewise.
+       * value.c (allocate_value_lazy): Likewise.
+       (record_latest_value): Likewise.
+       (create_internalvar): Likewise.
+       * varobj.c (install_variable): Likewise.
+       (new_variable): Likewise.
+       (new_root_variable): Likewise.
+       (cppush): Likewise.
+       (_initialize_varobj): Likewise.
+       * windows-nat.c (windows_make_so): Likewise.
+       * x86-nat.c (x86_add_process): Likewise.
+       * xcoffread.c (arrange_linetable): Likewise.
+       (allocate_include_entry): Likewise.
+       (process_linenos): Likewise.
+       (SYMBOL_DUP): Likewise.
+       (xcoff_start_psymtab): Likewise.
+       (xcoff_end_psymtab): Likewise.
+       * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
+       * xtensa-tdep.c (xtensa_register_type): Likewise.
+       * gdbarch.c: Regenerate.
+       * gdbarch.h: Regenerate.
+
+2015-08-25  Don Breazeal  <donb@codesourcery.com>
+
+       * infrun.c (follow_exec): Re-order operations for
+       handling follow-exec-mode "new".
+       (handle_inferior_event_1): Assign ecs->event_thread
+       to the current thread.
+       * remote.c (get_remote_arch_state): Add an assertion.
+
+2015-08-26  Pedro Alves  <palves@redhat.com>
+
+       * MAINTAINERS: Add Markus Metzger as btrace maintainer.
+
+2015-08-25  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/18804
+       * defs.h (maybe_quit): Declare.
+       (QUIT): Now calls maybe_quit.
+       * event-loop.c (clear_async_signal_handler)
+       (async_signal_handler_is_marked): New functions.
+       * event-loop.h (async_signal_handler_is_marked)
+       (clear_async_signal_handler): New declarations.
+       * remote.c (remote_check_pending_interrupt): New function.
+       (interrupt_query): Use make_cleanup_restore_target_terminal.  No
+       longer check whether the target is async.  If waiting for a stop
+       reply, and a Ctrl-C as been sent to the target, offer to
+       disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
+       Otherwise do not disconnect and throw a quit.
+       (_initialize_remote): Install remote_check_pending_interrupt as
+       to_check_pending_interrupt.
+       * target.c (target_check_pending_interrupt): New function.
+       * target.h (struct target_ops) <to_check_pending_interrupt>: New
+       field.
+       (target_check_pending_interrupt): New declaration.
+       * utils.c (maybe_quit): New function.
+       * target-delegates.c: Regenerate.
+
+2015-08-25  Yao Qi  <yao.qi@linaro.org>
+
+       * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
+       Rename local variable pid to tid, and get lwpid of lwp.  Update
+       debug output.
+
+2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-lang.c (ada_read_var_value): Add a var_block argument
+       and pass it to default_read_var_value.
+       * block.c (block_static_link): New accessor.
+       * block.h (block_static_link): Declare it.
+       * buildsym.c (finish_block_internal): Add a static_link
+       argument.  If there is a static link, associate it to the new
+       block.
+       (finish_block): Add a static link argument and pass it to
+       finish_block_internal.
+       (end_symtab_get_static_block): Update calls to finish_block and
+       to finish_block_internal.
+       (end_symtab_with_blockvector): Update call to
+       finish_block_internal.
+       * buildsym.h: Forward-declare struct dynamic_prop.
+       (struct context_stack): Add a static_link field.
+       (finish_block): Add a static link argument.
+       * c-exp.y: Remove an obsolete comment (evaluation of variables
+       already start from the selected frame, and now they climb *up*
+       the call stack) and propagate the block information to the
+       produced expression.
+       * d-exp.y: Likewise.
+       * f-exp.y: Likewise.
+       * go-exp.y: Likewise.
+       * jv-exp.y: Likewise.
+       * m2-exp.y: Likewise.
+       * p-exp.y: Likewise.
+       * coffread.c (coff_symtab_read): Update calls to finish_block.
+       * dbxread.c (process_one_symbol): Likewise.
+       * xcoffread.c (read_xcoff_symtab): Likewise.
+       * compile/compile-c-symbols.c (convert_one_symbol): Promote the
+       "sym" parameter to struct block_symbol, update its uses and pass
+       its block to calls to read_var_value.
+       (convert_symbol_sym): Update the calls to convert_one_symbol.
+       * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
+       call to read_var_value.
+       * dwarf2loc.c (block_op_get_frame_base): New.
+       (dwarf2_block_frame_base_locexpr_funcs): Implement the
+       get_frame_base method.
+       (dwarf2_block_frame_base_loclist_funcs): Likewise.
+       (dwarf2locexpr_baton_eval): Add a frame argument and use it
+       instead of the selected frame in order to evaluate the
+       expression.
+       (dwarf2_evaluate_property): Add a frame argument.  Update call
+       to dwarf2_locexpr_baton_eval to provide a frame in available and
+       to handle the absence of address stack.
+       * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
+       * dwarf2read.c (attr_to_dynamic_prop): Add a forward
+       declaration.
+       (read_func_scope): Record any available static link description.
+       Update call to finish_block.
+       (read_lexical_block_scope): Update call to finish_block.
+       * findvar.c (follow_static_link): New.
+       (get_hosting_frame): New.
+       (default_read_var_value): Add a var_block argument.  Use
+       get_hosting_frame to handle non-local references.
+       (read_var_value): Add a var_block argument and pass it to the
+       LA_READ_VAR_VALUE method.
+       * gdbtypes.c (resolve_dynamic_range): Update calls to
+       dwarf2_evaluate_property.
+       (resolve_dynamic_type_internal): Likewise.
+       * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
+       read_var_value, passing it the block coming from symbol lookup.
+       * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
+       read_var_value (TODO).
+       * infcmd.c (finish_command_continuation): Update call to
+       read_var_value, passing it the block coming from symbol lookup.
+       * infrun.c (insert_exception_resume_breakpoint): Likewise.
+       * language.h (struct language_defn): Add a var_block argument to
+       the LA_READ_VAR_VALUE method.
+       * objfiles.c (struct static_link_htab_entry): New.
+       (static_link_htab_entry_hash): New.
+       (static_link_htab_entry_eq): New.
+       (objfile_register_static_link): New.
+       (objfile_lookup_static_link): New.
+       (free_objfile): Free the STATIC_LINKS hashed map if needed.
+       * objfiles.h: Include hashtab.h.
+       (struct objfile): Add a static_links field.
+       (objfile_register_static_link): New.
+       (objfile_lookup_static_link): New.
+       * printcmd.c (print_variable_and_value): Update call to
+       read_var_value.
+       * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
+       * python/py-frame.c (frapy_read_var): Update call to
+       read_var_value, passing it the block coming from symbol lookup.
+       * python/py-framefilter.c (extract_sym): Add a sym_block
+       parameter and set the pointed value to NULL (TODO).
+       (enumerate_args): Update call to extract_sym.
+       (enumerate_locals): Update calls to extract_sym and to
+       read_var_value.
+       * python/py-symbol.c (sympy_value): Update call to
+       read_var_value (TODO).
+       * stack.c (read_frame_local): Update call to read_var_value.
+       (read_frame_arg): Likewise.
+       (return_command): Likewise.
+       * symtab.h (struct symbol_block_ops): Add a get_frame_base
+       method.
+       (struct symbol): Add a block field.
+       (SYMBOL_BLOCK): New accessor.
+       * valops.c (value_of_variable): Remove frame/block handling and
+       pass the block argument to read_var_value, which does this job
+       now.
+       (value_struct_elt_for_reference): Update calls to
+       read_var_value.
+       (value_of_this): Pass the block found to read_var_value.
+       * value.h (read_var_value): Add a var_block argument.
+       (default_read_var_value): Likewise.
+
+2015-08-25  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
+       * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
+       * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
+
+2015-08-25  Yao Qi  <yao.qi@linaro.org>
+
+       * Makefile.in (aarch64-liunx.o): New rule.
+       (HFILES_NO_SRCDIR): Add aarch64-linux.h.
+       * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
+       * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
+       * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
+       extern.
+       (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
+       * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
+       * nat/aarch64-linux.c: New file.
+       * nat/aarch64-linux.h: New file.
+
+2015-08-25  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
+       lwp_arch_private_info and ptid_of_lwp.
+
+2015-08-25  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
+       Move it to nat/aarch64-linux-hw-point.c.
+       (debug_reg_change_callback): Likewise.
+       (aarch64_notify_debug_reg_change): :Likewise.
+       * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
+       (aarch64_dr_update_callback_param): New.
+       (debug_reg_change_callback): New function.
+       (aarch64_notify_debug_reg_change): Likewise.
+       * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
+       Remove the declaration.
+
+2015-08-25  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
+       Call current_lwp_ptid.
+
+2015-08-25  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (debug_reg_change_callback): Use
+       debug_printf.
+
+2015-08-25  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (debug_reg_change_callback): Call
+       ptid_get_pid rather than ptid_get_lwp.
+
+2015-08-24  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (New commands): Mention set/show remote
+       multiprocess-extensions-packet.
+       * remote.c (remote_query_supported): Only tell the server to use
+       the multiprocess extensions if the user hasn't force-disabled them
+       with "set remote multiprocess-extensions-packet off".
+
+2015-08-24  Pedro Alves  <palves@redhat.com>
+
+       * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
+       1029a8112290f6eee9d7878a391c49db42c999bd.
+       * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
+       Regenerate.
+       * gnulib/import/Makefile.am: Update.
+       * gnulib/import/Makefile.in: Update.
+       * gnulib/import/alloca.in.h: Update.
+       * gnulib/import/basename-lgpl.c: Update.
+       * gnulib/import/canonicalize-lgpl.c: Update.
+       * gnulib/import/config.charset: Update.
+       * gnulib/import/dirent.in.h: Update.
+       * gnulib/import/dirfd.c: Update.
+       * gnulib/import/dirname-lgpl.c: Update.
+       * gnulib/import/dirname.h: Update.
+       * gnulib/import/dosname.h: Update.
+       * gnulib/import/errno.in.h: Update.
+       * gnulib/import/extra/snippet/arg-nonnull.h: Update.
+       * gnulib/import/extra/snippet/c++defs.h: Update.
+       * gnulib/import/extra/snippet/warn-on-use.h: Update.
+       * gnulib/import/extra/update-copyright: Update.
+       * gnulib/import/float+.h: Update.
+       * gnulib/import/float.c: Update.
+       * gnulib/import/float.in.h: Update.
+       * gnulib/import/fnmatch.c: Update.
+       * gnulib/import/fnmatch.in.h: Update.
+       * gnulib/import/fnmatch_loop.c: Update.
+       * gnulib/import/fpucw.h: Update.
+       * gnulib/import/frexp.c: Update.
+       * gnulib/import/frexpl.c: Update.
+       * gnulib/import/gettimeofday.c: Update.
+       * gnulib/import/inttypes.in.h: Update.
+       * gnulib/import/isnan.c: Update.
+       * gnulib/import/isnand-nolibm.h: Update.
+       * gnulib/import/isnand.c: Update.
+       * gnulib/import/isnanl-nolibm.h: Update.
+       * gnulib/import/isnanl.c: Update.
+       * gnulib/import/itold.c: Update.
+       * gnulib/import/localcharset.c: Update.
+       * gnulib/import/localcharset.h: Update.
+       * gnulib/import/lstat.c: Update.
+       * gnulib/import/m4/00gnulib.m4: Update.
+       * gnulib/import/m4/absolute-header.m4: Update.
+       * gnulib/import/m4/alloca.m4: Update.
+       * gnulib/import/m4/canonicalize.m4: Update.
+       * gnulib/import/m4/codeset.m4: Update.
+       * gnulib/import/m4/configmake.m4: Update.
+       * gnulib/import/m4/dirent_h.m4: Update.
+       * gnulib/import/m4/dirfd.m4: Update.
+       * gnulib/import/m4/dirname.m4: Update.
+       * gnulib/import/m4/double-slash-root.m4: Update.
+       * gnulib/import/m4/eealloc.m4: Update.
+       * gnulib/import/m4/errno_h.m4: Update.
+       * gnulib/import/m4/exponentd.m4: Update.
+       * gnulib/import/m4/exponentl.m4: Update.
+       * gnulib/import/m4/extensions.m4: Update.
+       * gnulib/import/m4/extern-inline.m4: Update.
+       * gnulib/import/m4/fcntl-o.m4: Update.
+       * gnulib/import/m4/float_h.m4: Update.
+       * gnulib/import/m4/fnmatch.m4: Update.
+       * gnulib/import/m4/fpieee.m4: Update.
+       * gnulib/import/m4/frexp.m4: Update.
+       * gnulib/import/m4/frexpl.m4: Update.
+       * gnulib/import/m4/gettimeofday.m4: Update.
+       * gnulib/import/m4/glibc21.m4: Update.
+       * gnulib/import/m4/gnulib-cache.m4: Update.
+       * gnulib/import/m4/gnulib-common.m4: Update.
+       * gnulib/import/m4/gnulib-comp.m4: Update.
+       * gnulib/import/m4/gnulib-tool.m4: Update.
+       * gnulib/import/m4/include_next.m4: Update.
+       * gnulib/import/m4/inttypes-pri.m4: Update.
+       * gnulib/import/m4/inttypes.m4: Update.
+       * gnulib/import/m4/isnand.m4: Update.
+       * gnulib/import/m4/isnanl.m4: Update.
+       * gnulib/import/m4/largefile.m4: Update.
+       * gnulib/import/m4/localcharset.m4: Update.
+       * gnulib/import/m4/locale-fr.m4: Update.
+       * gnulib/import/m4/locale-ja.m4: Update.
+       * gnulib/import/m4/locale-zh.m4: Update.
+       * gnulib/import/m4/longlong.m4: Update.
+       * gnulib/import/m4/lstat.m4: Update.
+       * gnulib/import/m4/malloc.m4: Update.
+       * gnulib/import/m4/malloca.m4: Update.
+       * gnulib/import/m4/math_h.m4: Update.
+       * gnulib/import/m4/mbrtowc.m4: Update.
+       * gnulib/import/m4/mbsinit.m4: Update.
+       * gnulib/import/m4/mbsrtowcs.m4: Update.
+       * gnulib/import/m4/mbstate_t.m4: Update.
+       * gnulib/import/m4/memchr.m4: Update.
+       * gnulib/import/m4/memmem.m4: Update.
+       * gnulib/import/m4/mmap-anon.m4: Update.
+       * gnulib/import/m4/multiarch.m4: Update.
+       * gnulib/import/m4/nocrash.m4: Update.
+       * gnulib/import/m4/off_t.m4: Update.
+       * gnulib/import/m4/pathmax.m4: Update.
+       * gnulib/import/m4/readlink.m4: Update.
+       * gnulib/import/m4/rename.m4: Update.
+       * gnulib/import/m4/rmdir.m4: Update.
+       * gnulib/import/m4/ssize_t.m4: Update.
+       * gnulib/import/m4/stat.m4: Update.
+       * gnulib/import/m4/stdbool.m4: Update.
+       * gnulib/import/m4/stddef_h.m4: Update.
+       * gnulib/import/m4/stdint.m4: Update.
+       * gnulib/import/m4/stdio_h.m4: Update.
+       * gnulib/import/m4/stdlib_h.m4: Update.
+       * gnulib/import/m4/string_h.m4: Update.
+       * gnulib/import/m4/strstr.m4: Update.
+       * gnulib/import/m4/strtok_r.m4: Update.
+       * gnulib/import/m4/sys_socket_h.m4: Update.
+       * gnulib/import/m4/sys_stat_h.m4: Update.
+       * gnulib/import/m4/sys_time_h.m4: Update.
+       * gnulib/import/m4/sys_types_h.m4: Update.
+       * gnulib/import/m4/time_h.m4: Update.
+       * gnulib/import/m4/unistd_h.m4: Update.
+       * gnulib/import/m4/warn-on-use.m4: Update.
+       * gnulib/import/m4/wchar_h.m4: Update.
+       * gnulib/import/m4/wchar_t.m4: Update.
+       * gnulib/import/m4/wctype_h.m4: Update.
+       * gnulib/import/m4/wint_t.m4: Update.
+       * gnulib/import/malloc.c: Update.
+       * gnulib/import/malloca.c: Update.
+       * gnulib/import/malloca.h: Update.
+       * gnulib/import/math.in.h: Update.
+       * gnulib/import/mbrtowc.c: Update.
+       * gnulib/import/mbsinit.c: Update.
+       * gnulib/import/mbsrtowcs-impl.h: Update.
+       * gnulib/import/mbsrtowcs-state.c: Update.
+       * gnulib/import/mbsrtowcs.c: Update.
+       * gnulib/import/memchr.c: Update.
+       * gnulib/import/memmem.c: Update.
+       * gnulib/import/pathmax.h: Update.
+       * gnulib/import/readlink.c: Update.
+       * gnulib/import/ref-add.sin: Update.
+       * gnulib/import/ref-del.sin: Update.
+       * gnulib/import/rename.c: Update.
+       * gnulib/import/rmdir.c: Update.
+       * gnulib/import/same-inode.h: Update.
+       * gnulib/import/stat.c: Update.
+       * gnulib/import/stdbool.in.h: Update.
+       * gnulib/import/stddef.in.h: Update.
+       * gnulib/import/stdint.in.h: Update.
+       * gnulib/import/stdio.c: Update.
+       * gnulib/import/stdio.in.h: Update.
+       * gnulib/import/stdlib.in.h: Update.
+       * gnulib/import/str-two-way.h: Update.
+       * gnulib/import/streq.h: Update.
+       * gnulib/import/string.in.h: Update.
+       * gnulib/import/stripslash.c: Update.
+       * gnulib/import/strnlen1.c: Update.
+       * gnulib/import/strnlen1.h: Update.
+       * gnulib/import/strstr.c: Update.
+       * gnulib/import/strtok_r.c: Update.
+       * gnulib/import/sys_stat.in.h: Update.
+       * gnulib/import/sys_time.in.h: Update.
+       * gnulib/import/sys_types.in.h: Update.
+       * gnulib/import/time.in.h: Update.
+       * gnulib/import/unistd.in.h: Update.
+       * gnulib/import/verify.h: Update.
+       * gnulib/import/wchar.in.h: Update.
+       * gnulib/import/wctype.in.h: Update.
+       * gnulib/import/gettimeofday.c: New file.
+       * gnulib/import/m4/absolute-header.m4: New file.
+       * gnulib/import/m4/gettimeofday.m4: New file.
+       * gnulib/import/m4/sys_socket_h.m4: New file.
+       * gnulib/import/m4/sys_time_h.m4: New file.
+       * gnulib/import/stdio.c: Delete file.
+       * gnulib/import/sys_time.in.h: New file.
+
+2015-08-24  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
+       * common/gdb_sys_time.h: New file.
+       * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
+       * gdb_select.h: Likewise.
+       * gdb_usleep.c: Likewise.
+       * maint.c: Likewise.
+       * mi/mi-main.c: Likewise.
+       * mi/mi-parse.h: Likewise.
+       * remote-fileio.c: Likewise.
+       * remote-m32r-sdi.c: Likewise.
+       * remote.c: Likewise.
+       * ser-base.c: Likewise.
+       * ser-pipe.c: Likewise.
+       * ser-tcp.c: Likewise.
+       * ser-unix.c: Likewise.
+       * symfile.c: Likewise.
+       * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
+       * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
+       * utils.c: Likewise.
+
+2015-08-24  Pedro Alves  <palves@redhat.com>
+
+       * NEWS: Mention removed support for the various ROM monitors.
+       * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
+       ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
+       * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
+       gdb_target_obs.
+       (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
+       gdb_target_obs.
+       (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
+       dsrec.o from gdb_target_obs.
+       (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
+       from gdb_target_obs.
+       (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
+       gdb_target_obs.
+       (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
+       dink32-rom.o from gdb_target_obs.
+       (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
+       (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
+       * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
+       monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
+
+2015-08-21  Pedro Alves  <palves@redhat.com>
+
+       * frame.c (null_frame_id): Explicitly zero-initialize.
+
+2015-08-21  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (struct dwarf2_section_info): Rename field
+       'asection' to 'section'.
+       (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
+       (dwarf2_locate_sections, dwarf2_locate_sections)
+       (locate_dwz_sections, locate_v1_virtual_dwo_sections)
+       (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
+       (dwarf2_locate_v2_dwp_sections): Adjust.
+
+2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * top.h (gdb_in_secondary_prompt_p): Declare.
+       * top.c (gdb_secondary_prompt_depth): Define.
+       (gdb_in_secondary_prompt_p): Define.
+       (gdb_readline_wrapper_cleanup): Decrement
+       gdb_secondary_prompt_depth.
+       (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
+       * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
+       are in a secondary prompt.
+
+2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
+       emit the newline.
+
+2015-08-21  Gary Benson  <gbenson@redhat.com>
+
+       * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
+
+2015-08-21  Gary Benson  <gbenson@redhat.com>
+
+       * target.h (struct target_ops) <to_fileio_open>: New argument
+       warn_if_slow.  Update comment.  All implementations updated.
+       (target_fileio_open_warn_if_slow): New declaration.
+       * target.c (target_fileio_open): Renamed as...
+       (target_fileio_open_1): ...this.  New argument warn_if_slow.
+       Pass warn_if_slow to implementation.  Update debug printing.
+       (target_fileio_open): New function.
+       (target_fileio_open_warn_if_slow): Likewise.
+       * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
+       target_fileio_open_warn_if_slow.
+
+2015-08-21  Gary Benson  <gbenson@redhat.com>
+
+       * nat/linux-namespaces.c (linux_mntns_access_fs):
+       Do not overwrite old_chain.
+
+2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * arch/xtensa.h: New file.
+       * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
+       (ps_get_thread_area): New function.
+       * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
+       set_gdbarch_fetch_tls_load_module_address to enable TLS support.
+       * xtensa-tdep.c (osabi.h): New #include.
+       (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
+       xtensa-specific hooks.
+       * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
+       member and move the structure to arch/xtensa.h.
+
+2015-08-21  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (struct readahead_cache): New.
+       (struct remote_state) <readahead_cache>: New field.
+       (remote_open_1): Invalidate the cache.
+       (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
+       functions.
+       (remote_hostio_pwrite): Invalidate the readahead cache.
+       (remote_hostio_pread): Rename to ...
+       (remote_hostio_pread_vFile): ... this.
+       (remote_hostio_pread_from_cache): New function.
+       (remote_hostio_pread): Reimplement.
+       (remote_hostio_close): Invalidate the readahead cache.
+
+2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
+
+       PR build/18843
+       * procfs.c: Include "filestuff.h".
+
+2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * tui/tui-data.h (tui_command_info): Remove fields cur_line and
+       curch.
+       * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
+       cur_line or curch, instead call wmove().
+       (init_win_info) [CMD_WIN]: Likewise.
+       * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
+       instead call getcury().
+       (tui_redisplay_readline): Don't set cur_line or curch.
+       (tui_mld_erase_entire_line): Don't read cur_line, instead call
+       getcury().
+       (tui_cont_sig): Remove call to wmove.
+       (tui_getc): Don't read cur_line or curch, instead call getcury()
+       or getyx().  Don't set curch.
+       * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
+       set cur_line or curch.  Always move cursor to (0,0).
+
+2015-08-20  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (print_target_wait_results): Make extern.
+       * infrun.h (print_target_wait_results): Declare.
+       * remote.c (set_stop_requested_callback): Delete.
+       (process_initial_stop_replies): New function.
+       (remote_start_remote): Use it.
+       (stop_reply_queue_length): New function.
+
+2015-08-20  Pedro Alves  <palves@redhat.com>
+
+       * dwarf2read.c (process_full_comp_unit): To tell whether
+       start_subfile managed to deduce a language, test for
+       language_unknown instead of language_c.
+
+2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-lex.l: Reset the start condition to INITIAL in the rule that
+       matches attributes.
+
+2015-08-19  Kevin Buettner  <kevinb@redhat.com>
+
+       * dwarf2read.c (dwarf2_string_attr): New function.
+       (lookup_dwo_unit, process_psymtab_comp_unit_reader)
+       (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
+       (read_call_site_scope, namespace_name, guess_full_die_structure_name)
+       (anonymous_struct_prefix, prepare_one_comp_unit): Use
+       dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
+
+2015-08-18  Doug Evans  <dje@google.com>
+           Adrian Sendroiu <adrian.sendroiu@freescale.com>
+
+       PR mi/18833
+       * cli/cli-logging.c (pop_output_files): Don't restore redirection
+       if MI-like.
+       * mi/mi-out.c: #include "vec.h".
+       (ui_filep): New type.
+       (DEV_VEC_P (ui_filep)): New type.
+       (struct ui_out_data) <buffer, original_buffer>: Delete.
+       (struct ui_out_data) <streams>: New member.
+       (mi_ui_out_impl): Add data_destroy field.
+       (mi_field_string, mi_field_fmt): Update.
+       (mi_flush, mi_redirect, field_separator): Update.
+       (mi_open, mi_close): Update.
+       (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
+       (mi_out_data_ctor, mi_out_data_dtor): New functions.
+       (mi_out_new): Call mi_out_data_ctor.
+
+2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * remote.c (strprefix): New.
+       (remote_parse_stop_reply): Use strprefix instead of strncmp
+       to ensure exact match of keyword.
+
+2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb_bfd.c (debug_bfd_cache): New variable.
+       (show_bfd_cache_debug): New function.
+       (gdb_bfd_open): Add debug logging.
+       (gdb_bfd_ref): Likewise.
+       (gdb_bfd_unref): Likewise.
+       (_initialize_gdb_bfd): Add new set/show command.
+       * NEWS: Mention new command.
+
+2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb_bfd.c (bfd_sharing): New variable.
+       (show_bfd_sharing): New function.
+       (gdb_bfd_open): Check bfd_sharing variable.
+       (_initialize_gdb_bfd): Add new set/show command.
+       * NEWS: Mention new command.
+
+2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
+       field.
+       (struct gdb_bfd_cache_search): Likewise.
+       (eq_bfd): Compare the size, inode, and device id fields.
+       (gdb_bfd_open): Initialise the size, inode, and device id fields.
+       (gdb_bfd_ref): Likewise.
+       (gdb_bfd_unref): Likewise.
+
+2015-08-18  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
+       target implements to_always_non_stop_p, call it.
+       * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
+       (x86_linux_create_target): Install it as to_always_non_stop_p
+       method.
+
+2015-08-17  Doug Evans  <dje@google.com>
+
+       * ui-out.c (default_ui_out_impl): Add comment.
+
+2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * d-exp.y (type_aggregate_p): New function.
+       (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
+       (classify_inner_name): Likewise.
+       * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
+
+2015-08-15  Doug Evans  <xdje42@gmail.com>
+
+       * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
+       updated.
+       (add_psymbol_to_list): Ditto.
+
+2015-08-15  Doug Evans  <xdje42@gmail.com>
+
+       * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
+       updated.  Call end_psymtab_common.
+       * dwarf2read.c (process_psymtab_comp_unit_reader): Call
+       end_psymtab_common.
+       (build_type_psymtabs_reader): Ditto.
+       * psympriv.h (sort_pst_symbols): Delete.
+       (end_psymtab_common): Declare.
+       * psymtab.c (sort_pst_symbols): Make static.
+       (end_psymtab_common): New function.
+       * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
+
+2015-08-15  Doug Evans  <xdje42@gmail.com>
+
+       * defs.h (LANGUAGE_BITS): Define.
+       * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
+       (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
+       * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
+       (minimal_symbol_type): Add nr_minsym_types.
+       (MINSYM_TYPE_BITS): Define.
+       (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
+       (domain_enum_tag): Add NR_DOMAINS.
+       (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
+       (SYMBOL_ACLASS_BITS): Define from 6 to 5.
+
+2015-08-15  Doug Evans  <xdje42@gmail.com>
+
+       * objfiles.h: Whitespace cleanup.
+       * psympriv.h: Whitespace cleanup.
+       * psymtab.c: Whitespace/coding convention cleanup.
+
+2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * inferior.c (detach_inferior_command): Don't call
+       any_thread_of_process when pid is 0.
+       (kill_inferior_command): Likewise.
+
+2015-08-14  Doug Evans  <xdje42@gmail.com>
+
+       PR gdb/11833
+       * NEWS: Document new /s modifier for the disassemble command.
+       * cli/cli-cmds.c (disassemble_command): Add support for /s.
+       (_initialize_cli_cmds): Update online docs of disassemble command.
+       * disasm.c: #include "source.h".
+       (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
+       All uses updated.
+       (dis_line_entry): New struct.
+       (hash_dis_line_entry, eq_dis_line_entry): New functions.
+       (allocate_dis_line_table): New functions.
+       (maybe_add_dis_line_entry, line_has_code_p): New functions.
+       (dump_insns): New arg end_pc.  All callers updated.
+       (do_mixed_source_and_assembly_deprecated): Renamed from
+       do_mixed_source_and_assembly.  All callers updated.
+       (do_mixed_source_and_assembly): New function.
+       (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
+       * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
+       DISASSEMBLY_SOURCE.  All uses updated.
+       (DISASSEMBLY_SOURCE): New macro.
+       * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
+
+2015-08-14  Keith Seitz  <keiths@redhat.com>
+
+       * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
+       `typename' to `type_name' to avoid C++ reserved word.
+
+2015-08-14  Keith Seitz  <keiths@redhat.com>
+
+       * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
+       (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
+       silence ARI errors.
+
+2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
+       xstrprintf instead of malloc and sprintf.
+       (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
+       (lex_one_token): Likewise.
+
+2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
+
+       * solib-svr4.c (read_program_header): Add base_addr argument to
+       report the runtime address of the segment.
+       (find_program_interpreter): Update read_program_header call to pass
+       a NULL pointer for the new argument.
+       (scan_dyntag): Add ptr_addr argument to report the runtime address
+       of the tag payload.
+       (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
+       read_program_header to get the base address of the dynamic segment.
+       (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
+       read_program_header.
+       (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
+
+2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
+
+       * MAINTAINERS (Write After Approval): Add Matthew Fortune.
+
+2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * d-exp.y (%union): Add voidval.
+       (%token): Add UNKNOWN_NAME as a token to represent an unclassified
+       name in the lexing stage.
+       (PostfixExpression): Move symbol completion handling in grammar here
+       from PrimaryExpression.
+       (PrimaryExpression): Move routines to handle resolving identifier
+       tokens in the grammar here from push_expression_name.
+       (IdentifierExp): Remove the handling of alternating '.' and identifier
+       tokens.
+       (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
+       (BasicType): Remove C-style typename rules.
+       (d_type_from_name, d_module_from_name, push_variable)
+       (push_fieldnames, push_type_name, push_module_name)
+       (push_expression_name): Remove.
+       (lex_one_token): Rename from yylex.  Replace pstate with par_state.
+       (token_and_value): New type.
+       (token_fifo, popping, name_obstack): New globals.
+       (classify_name): New function.
+       (classify_inner_name): Likewise.
+       (yylex): Likewise.
+       (d_parse): Initialize token_fifo, popping and name_obstack.
+
+2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * Makefile.in (SFILES): Add d-namespace.c.
+       (COMMON_OBS): Add d-namespace.o.
+       * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
+       la_lookup_symbol_nonlocal callback function pointer.
+       * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
+       (d_lookup_nested_symbol): New declaration.
+       * d-namespace.c: New file.
+
+2015-08-13  Pedro Alves  <palves@redhat.com>
+
+       * python/py-unwind.c (pyuw_sniffer): Install the invalidate
+       cleanup after the decref cleanup, not before.
+
+2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-lang.c: Include namespace.h
+       (aux_add_nonlocal_symbols): Fix a function name in comment.
+       (ada_add_block_renamings): New.
+       (add_nonlocal_symbols): Add global renamings handling.
+       (ada_lookup_symbol_list_worker): Move the symbol lookup part
+       to...
+       (ada_add_all_symbols): ... this new function.
+       (ada_add_block_symbols): Try to match the input name against the
+       "using directives list", perform a recursive symbol lookup on
+       the matched declarations.
+       * block.h (struct block): Move the_namespace to top-level as
+       namespace_info. Remove the language_specific field.
+       (BLOCK_NAMESPACE): Update access to the namespace_info field.
+       * buildsym.h (using_directives): Rename into...
+       (local_using_directives): ... this.
+       (global_using_directives): New.
+       (struct context_stack): Rename the using_directives field into
+       local_using_directives.
+       * buildsym.c (finish_block_internal): Deal with the proper
+       using directives repository (local or global).
+       (prepare_for_building): Reset local_using_directives. Assert
+       that there is no pending global using directive.
+       (reset_symtab_globals): Reset global_using_directives and
+       local_using_directives.
+       (end_symtab_get_static_block): Don't ignore symtabs that have
+       only using directives.
+       (push_context): Update references to local_using_directives.
+       (buildsym_init): Do not reset using_directives.
+       * cp-support.c: Include namespace.h.
+       * cp-support.h (struct using_direct): Move to namespace.h.
+       (cp_add_using_directives): Move to namespace.h.
+       * cp-namespace.c: Include namespace.h
+       (cp_add_using_directive): Move to namespace.c, rename it to
+       add_using_directive, add a "using_directives" argument and use
+       it as the pending using directives repository.  All callers
+       updated.
+       * dwarf2read.c (using_directives): New.
+       (read_import_statement): Call using_directives.
+       (read_func_scope): Update references to local_using_directives.
+       (read_lexical_block_scope): Likewise.
+       (read_namespace): Update the heading comment, call
+       using_directives.
+       * namespace.h: New file.
+       * namespace.c: New file.
+       * Makefile.in (SFILES): Add namespace.c.
+       (COMMON_OBS): Add namespace.o
+
+2015-08-12  Joel Brobecker  <brobecker@adacore.com>
+
+       * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
+       compute RETADDR.
+
+2015-08-12  Keith Seitz  <keiths@redhat.com>
+
+       * break-catch-throw.c (re_set_exception_catchpoint) Rename
+       reserved C++ keyword "explicit" to "explicit_loc".
+       * breakpoint.c (create_overlay_event_breakpoint)
+       (create_longjmp_master_breakpoint)
+       (create_std_terminate_master_breakpoint)
+       (create_exception_master_breakpoint, update_static_tracepoint):
+       Rename reserved C++ keyword "explicit" to "explicit_loc".
+       * completer.c (collect_explicit_location_matches)
+       (explicit_location_completer): Rename reserved C++ keyword
+       "explicit" to "explicit_loc".
+       * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
+       (canonicalize_linespec, create_sals_line_offset)
+       (convert_linespec_to_sals, convert_explicit_location_to_sals)
+       (event_location_to_sals, decode_objc): Rename reserved C++ keyword
+       "explicit" to "explicit_loc".
+       * location.c (struct event_location) <explicit>: Rename to
+       "explicit_loc".
+       (initialize_explicit_location, new_explicit_location)
+       (explicit_location_to_string_internal, explicit_location_to_linespec):
+       Rename reserved C++ keyword "explicit" to "explicit_loc".
+       * location.h (explicit_location_to_string)
+       (explicit_location_to_linespec, initialize_explicit_location)
+       (new_explicit_location): Rename reserved C++ keyword "explicit"
+       to "explicit_loc".
+       * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
+       keyword "explicit" to "explicit_loc".
+
+2015-08-12  Keith Seitz  <keiths@redhat.com>
+
+       * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
+       and only call decode_line_1 when it is non-NULL.
+
+2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
+
+       * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
+       location address is not meaningful.
+       (breakpoint_address_is_meaningful): Update comment.
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * NEWS: Mention explicit locations.
+       * breakpoint.c [LOCATION_HELP_STRING]: New macro.
+       [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
+       (_initialize_breakpoint): Update documentation for
+       "clear", "break", "trace", "strace", "ftrace", and "dprintf".
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
+       explicit locations, options "--source", "--function",
+       "--label", and "--line".
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * completer.c: Include location.h.
+       (enum match_type): New enum.
+       (location_completer): Rename to ...
+       (linespec_completer): ... this.
+       (collect_explicit_location_matches, backup_text_ptr)
+       (explicit_location_completer): New functions.
+       (location_completer): "New" function; handle linespec
+       and explicit location completions.
+       (complete_line_internal): Remove all location completer-specific
+       handling.
+       * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
+       (find_toplevel_char): Export.
+       (linespec_parse_line_offset): Export.
+       Issue error if STRING is not numerical.
+       (gdb_get_linespec_parser_quote_characters): New function.
+       * linespec.h (linespec_parse_line_offset): Declare.
+       (get_gdb_linespec_parser_quote_characters): Declare.
+       (is_ada_operator): Declare.
+       (find_toplevel_char): Declare.
+       (linespec_lexer_lex_keyword): Declare.
+       * location.c (explicit_to_event_location): New function.
+       (explicit_location_lex_one): New function.
+       (string_to_explicit_location): New function.
+       (string_to_event_location): Handle explicit locations.
+       * location.h (explicit_to_event_location): Declare.
+       (string_to_explicit_location): Declare.
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * break-catch-throw.c (re_set_exception_catchpoint): Convert
+       linespec into explicit location.
+       * breakpoint.c (create_overlay_breakpoint)
+       (create_longjmp_master_breakpoint)
+       (create_std_terminate_master_breakpoint)
+       (create_exception_master_breakpoint): Convert linespec into explicit
+       location.
+       (update_static_tracepoint): Convert linespec into explicit location.
+       * linespec.c (enum offset_relative_sign, struct line_offset): Move
+       location.h.
+       (struct linespec) <expression, expr_pc, source_filename>
+       <function_name, label_name, line_offset>: Replace with ...
+       <explicit>: ... this.
+       <is_linespec>: New member.
+       (PARSER_EXPLICIT): New accessor macro.
+       (undefined_label_error): New function.
+       (source_file_not_found_error): New function.
+       (linespec_parse_basic): The parser result is now an explicit location.
+       Use PARSER_EXPLICIT to access it.
+       Use undefined_label_error.
+       (canonicalize_linespec): Convert canonical linespec into explicit
+       location.
+       Move string representation of location to explicit_location_to_linespec
+       and use it and explicit_location_to_string to save string
+       representations of the canonical location.
+       (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
+       explicit location.  Update all references.
+       (convert_explicit_location_to_sals): New function.
+       (parse_linespec): Use PARSER_EXPLICIT to access the parser
+       result's explicit location.
+       (linespec_state_constructor): Initialize is_linespec.
+       Use PARSER_EXPLICIT.
+       (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
+       result.
+       (event_location_to_sals): For linespec locations, set is_linespec.
+       Handle explicit locations.
+       (decode_objc): 'ls' contains an explicit location now. Update all
+       references.
+       (symtabs_from_filename): Use source_file_not_found_error.
+       * location.c (struct event_location.u) <explicit>: New member.
+       (initialize_explicit_location): New function.
+       (initialize_event_location): Initialize explicit locations.
+       (new_explicit_location, get_explicit_location)
+       (get_explicit_location_const): New functions.
+       (explicit_to_string_internal): New function; most of contents moved
+       from canonicalize_linespec.
+       (explicit_location_to_string): New function.
+       (explicit_location_to_linespec): New function.
+       (copy_event_location, delete_event_location)
+       (event_location_to_string_const, event_location_empty_p): Handle
+       explicit locations.
+       * location.h (enum offset_relative_sign, struct line_offset): Move
+       here from linespec.h.
+       (enum event_location_type): Add EXPLICIT_LOCATION.
+       (struct explicit_location): New structure.
+       (explicit_location_to_string): Declare.
+       (explicit_location_to_linespec): Declare.
+       (new_explicit_location, get_explicit_locationp
+       (get_explicit_location_const, initialize_explicit_location): Declare.
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * break-catch-throw.c (re_set_exception_catchpoint): Convert
+       linespec for stap probe to probe location.
+       * breakpoint.c (create_longjmp_master_breakpoint)
+       (create_exception_master_breakpoint): Likewise.
+       (break_command_1): Remove local variable `arg_cp'.
+       Check location type to set appropriate breakpoint ops methods.
+       (trace_command): Likewise.
+       * linespec.c (event_location_to_sals): Assert on probe locations.
+       * location.c (EL_PROBE): Add macro definition.
+       (new_probe_location, get_probe_location): New functions.
+       (copy_event_location, delete_event_location, event_location_to_string)
+       (string_to_event_location, event_location_empty_p): Handle probe
+       locations.
+       * location.h (enum event_location_type): Add PROBE_LOCATION.
+       (new_probe_location, get_probe_location): Declare.
+       * probe.c (parse_probes): Assert that LOCATION is a probe location.
+       Convert linespec into probe location.
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
+       Convert linespec to address location.
+       * linespec.c (canonicalize_linespec): Do not handle address
+       locations here.
+       (convert_address_location_to_sals): New function; contents moved
+       from ...
+       (convert_linespc_to_sals): ... here.
+       (parse_linespec): Remove address locations from linespec grammar.
+       Remove handling of address locations.
+       (linespec_lex_to_end): Remove handling of address linespecs.
+       (event_location_to_sals): Handle ADDRESS_LOCATION.
+       (linespec_expression_to_pc): Export.
+       * linespec.h (linespec_expression_to_pc): Add declaration.
+       * location.c (struct event_location.u) <address>: New member.
+       (new_address_location, get_address_location): New functions.
+       (copy_event_location, delete_event_location, event_location_to_string)
+       (string_to_event_location, event_location_empty_p): Handle address
+       locations.
+       * location.h (enum event_location_type): Add ADDRESS_LOCATION.
+       (new_address_location, get_address_location): Declare.
+       * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
+       to address location.
+       * spu-tdep.c (spu_catch_start): Likewise.
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * ax-gdb.c: Include location.h.
+       (agent_command_1) Use linespec location instead of address
+       string.
+       * break-catch-throw.c: Include location.h.
+       (re_set_exception_catchpoint): Use linespec locations instead
+       of address strings.
+       * breakpoint.c: Include location.h.
+       (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
+       (create_std_terminate_master_breakpoint)
+       (create_exception_master_breakpoint, update_breakpoints_after_exec):
+       Use linespec location instead of address string.
+       (print_breakpoint_location):  Use locations and
+       event_location_to_string.
+       Print extra_string for pending locations for non-MI streams.
+       (print_one_breakpoint_location): Use locations and
+       event_location_to_string.
+       (init_raw_breakpoint_without_location): Initialize b->location.
+       (create_thread_event_breakpoint): Use linespec location instead of
+       address string.
+       (init_breakpoint_sal): Likewise.
+       Only save extra_string if it is non-NULL and not the empty string.
+       Use event_location_to_string instead of `addr_string'.
+       Constify `p' and `endp'.
+       Use skip_spaces_const/skip_space_const instead of non-const versions.
+       Copy the location into the breakpoint.
+       If LOCATION is NULL, save the breakpoint address as a linespec location
+       instead of an address string.
+       (create_breakpoint_sal): Change `addr_string' parameter to a struct
+       event_location. All uses updated.
+       (create_breakpoints_sal): Likewise for local variable `addr_string'.
+       (parse_breakpoint_sals): Use locations instead of address strings.
+       Remove check for empty linespec with conditional.
+       Refactor.
+       (decode_static_tracepoint_spec): Make argument const and update
+       function.
+       (create_breakpoint): Change `arg' to a struct event_location and
+       rename.
+       Remove `copy_arg' and `addr_start'.
+       If EXTRA_STRING is empty, set it to NULL.
+       Don't populate `canonical' for pending breakpoints.
+       Pass `extra_string' to find_condition_and_thread.
+       Clear `extra_string' if `rest' was NULL.
+       Do not error with "garbage after location" if setting a dprintf
+       breakpoint.
+       Copy the location into the breakpoint instead of an address string.
+       (break_command_1): Use string_to_event_location and pass this to
+       create_breakpoint instead of an address string.
+       Check against `arg_cp' for a probe linespec.
+       (dprintf_command): Use string_to_event_location and pass this to
+       create_breakpoint instead of an address string.
+       Throw an exception if no format string was specified.
+       (print_recreate_ranged_breakpoint): Use event_location_to_string
+       instead of address strings.
+       (break_range_command, until_break_command)
+       (init_ada_exception_breakpoint): Use locations instead
+       of address strings.
+       (say_where): Print out extra_string for pending locations.
+       (base_breakpoint_dtor): Delete `location' and `location_range_end' of
+       the breakpoint.
+       (base_breakpoint_create_sals_from_location): Use struct event_location
+       instead of address string.
+       Remove `addr_start' and `copy_arg' parameters.
+       (base_breakpoint_decode_location): Use struct event_location instead of
+       address string.
+       (bkpt_re_set): Use locations instead of address strings.
+       Use event_location_empty_p to check for unset location.
+       (bkpt_print_recreate): Use event_location_to_string instead of
+       an address string.
+       Print out extra_string for pending locations.
+       (bkpt_create_sals_from_location, bkpt_decode_location)
+       (bkpt_probe_create_sals_from_location): Use struct event_location
+       instead of address string.
+       (bkpt_probe_decode_location): Use struct event_location instead of
+       address string.
+       (tracepoint_print_recreate): Use event_location_to_string to
+       recreate the tracepoint.
+       (tracepoint_create_sals_from_location, tracepoint_decode_location)
+       (tracepoint_probe_create_sals_from_location)
+       (tracepoint_probe_decode_location): Use struct event_location
+       instead of address string.
+       (dprintf_print_recreate): Use event_location_to_string to recreate
+       the dprintf.
+       (dprintf_re_set): Remove check for valid/missing format string.
+       (strace_marker_create_sals_from_location)
+       (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
+       (update_static_tracepoint): Use struct event_location instead of
+       address string.
+       (location_to_sals): Likewise.
+       Pass `extra_string' to find_condition_and_thread.
+       For newly resolved pending breakpoint locations, clear the location's
+       string representation.
+       Assert that the breakpoint's condition string is NULL when
+       condition_not_parsed.
+       (breakpoint_re_set_default, create_sals_from_location_default)
+       (decode_location_default, trace_command, ftrace_command)
+       (strace_command, create_tracepoint_from_upload): Use locations
+       instead of address strings.
+       * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
+       Use struct event_location instead of address string.
+       Update all uses.
+       <decode_location>: Likewise.
+       (struct breakpoint) <addr_string>: Change to struct event_location
+       and rename `location'.
+       <addr_string_range_end>: Change to struct event_location and rename
+       `location_range_end'.
+       (create_breakpoint): Use struct event_location instead of address
+       string.
+       * cli/cli-cmds.c: Include location.h.
+       (edit_command, list_command): Use locations instead of address strings.
+       * elfread.c: Include location.h.
+       (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
+       * guile/scm-breakpoint.c: Include location.h.
+       (bpscm_print_breakpoint_smob): Use event_location_to_string.
+       (gdbscm_register_breakpoint): Use locations instead of address
+       strings.
+       * linespec.c: Include location.h.
+       (struct ls_parser) <stream>: Change to const char *.
+       (PARSER_STREAM): Update.
+       (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
+       keywords must be followed by whitespace.
+       (canonicalize_linespec): Save a linespec location into `canonical'.
+       Save a canonical linespec into `canonical'.
+       (parse_linespec): Change `argptr' to const char * and rename `arg'.
+       All uses updated.
+       Update function description.
+       (linespec_parser_new): Initialize `parser'.
+       Update initialization of  parsing stream.
+       (event_location_to_sals): New function.
+       (decode_line_full): Change `argptr' to a struct event_location and
+       rename it `location'.
+       Use locations instead of address strings.
+       Call event_location_to_sals instead of parse_linespec.
+       (decode_line_1): Likewise.
+       (decode_line_with_current_source, decode_line_with_last_displayed)
+       Use locations instead of address strings.
+       (decode_objc): Likewise.
+       Change `argptr' to const char * and rename `arg'.
+       (destroy_linespec_result): Delete the linespec result's location
+       instead of freeing the address string.
+       * linespec.h (struct linespec_result) <addr_string>: Change to
+       struct event_location and rename to ...
+       <location>: ... this.
+       (decode_line_1, decode_line_full): Change `argptr' to struct
+       event_location.  All callers updated.
+       * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
+       (mi_cmd_break_insert_1): Use locations instead of address strings.
+       Throw an error if there was "garbage" at the end of the specified
+       linespec.
+       * probe.c: Include location.h.
+       (parse_probes): Change `argptr' to struct event_location.
+       Use event locations instead of address strings.
+       * probe.h (parse_probes): Change `argptr' to struct event_location.
+       * python/py-breakpoint.c: Include location.h.
+       (bppy_get_location): Constify local variable `str'.
+       Use event_location_to_string.
+       (bppy_init): Use locations instead of address strings.
+       * python/py-finishbreakpoint.c: Include location.h.
+       (bpfinishpy_init): Remove local variable `addr_str'.
+       Use locations instead of address strings.
+       * python/python.c: Include location.h.
+       (gdbpy_decode_line): Use locations instead of address strings.
+       * remote.c: Include location.h.
+       (remote_download_tracepoint): Use locations instead of address
+       strings.
+       * spu-tdep.c: Include location.h.
+       (spu_catch_start): Remove local variable `buf'.
+       Use locations instead of address strings.
+       * tracepoint.c: Include location.h.
+       (scope_info): Use locations instead of address strings.
+       (encode_source_string): Constify parameter `src'.
+       * tracepoint.h (encode_source_string): Likewise.
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * Makefile.in (SFILES): Add location.c.
+       (HFILES_NO_SRCDIR): Add location.h.
+       (COMMON_OBS): Add location.o.
+       * linespec.c (linespec_lex_to_end): New function.
+       * linespec.h (linespec_lex_to_end): Declare.
+       * location.c: New file.
+       * location.h: New file.
+
+2015-08-11  Keith Seitz  <keiths@redhat.com>
+
+       * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
+       Renamed to create_sals_from_location.
+       <decode_linespec>: Renamed to decode_location.
+       Update all callers.
+       * breakpoint.c (create_sals_from_address_default): Renamed to ...
+       (create_sals_from_location_default): ... this.
+       (addr_string_to_sals): Renamed to ...
+       (location_to_sals): ... this.
+       (decode_linespec_default): Renamed to ...
+       (decode_location_default): ... this.
+       (base_breakpoint_create_sals_from_address): Renamed to ...
+       (base_breakpoint_create_sals_from_location): ... this.
+       (bkpt_create_sals_from_address): Renamed to ...
+       (bkpt_create_sals_from_location): ... this.
+       (bkpt_decode_linespec): Renamed to ...
+       (bkpt_decode_location): ... this.
+       (bkpt_probe_create_sals_from_address): Renamed to ...
+       (bkpt_probe_create_sals_from_location): ... this.
+       (tracepoint_create_sals_from_address): Renamed to ...
+       (tracepoint_create_sals_from_location): ... this.
+       (tracepoint_decode_linespec): Renamed to ...
+       (tracepoint_decode_location): ... this.
+       (tracepoint_probe_create_sals_from_address): Renamed to ...
+       (tracepoint_probe_create_sals_from_location): ... this.
+       (tracepoint_probe_decode_linespec): Renamed to ...
+       (tracepoint_probe_decode_location): ... this.
+       (strace_marker_create_sals_from_address): Renamed to ...
+       (strace_marker_create_sals_from_location): ... this.
+       (decode_linespec_default): Renamed to ...
+       (decode_location_default): ... this.
+
+2015-08-10  Doug Evans  <dje@google.com>
+           Keith Seitz  <keiths@redhat.com>
+
+       PR gdb/17960
+       * symtab.c (make_file_symbol_completion_list_1): Renamed from
+       make_file_symbol_completion_list and made static.
+       (make_file_symbol_completion_list): New function.
+
+2015-08-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
+       trailing new-line at end of warning message.
+       (proceed): Add i18n marker to error messages.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * s390-linux-tdep.c (is_non_branch_ril)
+       (s390_displaced_step_copy_insn): New functions.
+       (s390_displaced_step_fixup): Update comment.
+       (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
+       gdbarch_displaced_step_copy_insn hook.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (displaced_step_prepare_throw): Return -1 if
+       gdbarch_displaced_step_copy_insn returns NULL.  Update intro
+       comment.
+       * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
+       (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
+       in file.
+       (ppc_displaced_step_copy_insn): New function.
+       (ppc_displaced_step_fixup): Update comment.
+       (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
+       gdbarch_displaced_step_copy_insn hook.
+       * gdbarch.sh (displaced_step_copy_insn): Document what happens on
+       NULL return.
+       * gdbarch.h: Regenerate.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * inferior.h (struct inferior) <displaced_stepping_failed>: New
+       field.
+       * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
+       Return false if dispaced stepping failed before.
+       (resume): Pass the current inferior to
+       use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
+       TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
+       displaced_stepping_failed flag, and fall back to an in-line
+       step-over.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * darwin-nat.c (darwin_stop): Rename to ...
+       (darwin_interrupt): ... this.
+       (_initialize_darwin_inferior): Adjust.
+       * gnu-nat.c (gnu_stop): Delete.
+       (gnu_target): Don't install gnu_stop.
+       * inf-ptrace.c (inf_ptrace_stop): Rename to ...
+       (inf_ptrace_interrupt): ... this.
+       (inf_ptrace_target): Adjust.
+       * infcmd.c (interrupt_target_1): Use target_interrupt instead of
+       target_stop.
+       * linux-nat (linux_nat_stop): Rename to ...
+       (linux_nat_interrupt): ... this.
+       (linux_nat_stop): Reimplement.
+       (linux_nat_add_target): Install linux_nat_interrupt.
+       * nto-procfs.c (nto_interrupt_twice): Rename to ...
+       (nto_handle_sigint_twice): ... this.
+       (nto_interrupt): Rename to ...
+       (nto_handle_sigint): ... this.  Call target_interrupt instead of
+       target_stop.
+       (procfs_wait): Adjust.
+       (procfs_stop): Rename to ...
+       (procfs_interrupt): ... this.
+       (init_procfs_targets): Adjust.
+       * procfs.c (procfs_stop): Rename to ...
+       (procfs_interrupt): ... this.
+       (procfs_target): Adjust.
+       * remote-m32r-sdi.c (m32r_stop): Rename to ...
+       (m32r_interrupt): ... this.
+       (init_m32r_ops): Adjust.
+       * remote-sim.c (gdbsim_stop_inferior): Rename to ...
+       (gdbsim_interrupt_inferior): ... this.
+       (gdbsim_stop): Rename to ...
+       (gdbsim_interrupt): ... this.
+       (gdbsim_cntrl_c): Adjust.
+       (init_gdbsim_ops): Adjust.
+       * remote.c (sync_remote_interrupt): Adjust comments.
+       (remote_stop_as): Rename to ...
+       (remote_interrupt_as): ... this.
+       (remote_stop): Adjust comment.
+       (remote_interrupt): New function.
+       (init_remote_ops): Install remote_interrupt.
+       * target.c (target_interrupt): New function.
+       * target.h (struct target_ops) <to_interrupt>: New field.
+       (target_interrupt): New declaration.
+       * windows-nat.c (windows_stop): Rename to ...
+       (windows_interrupt): ... this.
+       * target-delegates.c: Regenerate.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
+       threads" as alternative to "switching back to stepped thread".
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * NEWS: Mention "maint set/show target-non-stop".
+       * breakpoint.c (update_global_location_list): Check
+       target_is_non_stop_p instead of non_stop.
+       * infcmd.c (attach_command_post_wait, attach_command): Likewise.
+       * infrun.c (show_can_use_displaced_stepping)
+       (can_use_displaced_stepping_p, start_step_over_inferior):
+       Likewise.
+       (internal_resume_ptid): New function.
+       (resume): Use it.
+       (proceed): Check target_is_non_stop_p instead of non_stop.  If in
+       all-stop mode but the target is always in non-stop mode, start all
+       the other threads that are implicitly resumed too.
+       (for_each_just_stopped_thread, fetch_inferior_event)
+       (adjust_pc_after_break, stop_all_threads): Check
+       target_is_non_stop_p instead of non_stop.
+       (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
+       with the target always in non-stop mode.
+       (handle_signal_stop) <random signal>: Check target_is_non_stop_p
+       instead of non_stop.
+       (switch_back_to_stepped_thread): Check target_is_non_stop_p
+       instead of non_stop.
+       (keep_going_stepped_thread): Use internal_resume_ptid.
+       (stop_waiting): If in all-stop mode, and the target is in non-stop
+       mode, stop all threads.
+       (keep_going_pass): Likewise, when starting a new in-line step-over
+       sequence.
+       * linux-nat.c (get_pending_status, select_event_lwp)
+       (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
+       target_is_non_stop_p instead of non_stop.
+       (linux_nat_always_non_stop_p): New function.
+       (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
+       (linux_nat_add_target): Install linux_nat_always_non_stop_p.
+       * target-delegates.c: Regenerate.
+       * target.c (target_is_non_stop_p): New function.
+       (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
+       (maint_set_target_non_stop_command)
+       (maint_show_target_non_stop_command): New functions.
+       (_initilize_target): Install "maint set/show target-non-stop"
+       commands.
+       * target.h (struct target_ops) <to_always_non_stop_p>: New field.
+       (target_non_stop_enabled): New declaration.
+       (target_is_non_stop_p): New declaration.
+
+2015-08-07  Pedro Alves  <pedro@codesourcery.com>
+
+       * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
+       has a pending status, return true.
+       * gdbthread.h: Include target/waitstatus.h.
+       (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
+       stop_pc>: New fields.
+       (struct thread_info) <resumed>: New field.
+       (set_resumed): Declare.
+       * infrun.c: Include "event-loop.h".
+       (infrun_async_inferior_event_token, infrun_is_async): New globals.
+       (infrun_async): New function.
+       (clear_step_over_info): Add debug output.
+       (displaced_step_in_progress_any_inferior): New function.
+       (displaced_step_fixup): New returns int.
+       (start_step_over): Handle in-line step-overs too.  Assert the
+       thread is marked resumed.
+       (resume_cleanups): Clear the thread's resumed flag.
+       (resume): Set the thread's resumed flag.  Return early if the
+       thread has a pending status.  Allow stepping a breakpoint with no
+       signal.
+       (proceed): Adjust to check 'resumed' instead of 'executing'.
+       (clear_proceed_status_thread): If the thread has a pending status,
+       and that status is a finished step, discard the pending status.
+       (clear_proceed_status): Don't clear step_over_info here.
+       (random_pending_event_thread, do_target_wait): New functions.
+       (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
+       do_target_wait.
+       (wait_one): New function.
+       (THREAD_STOPPED_BY): New macro.
+       (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
+       (thread_stopped_by_hw_breakpoint): New functions.
+       (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
+       functions.
+       (handle_inferior_event): Also call set_resumed(false) on all
+       threads implicitly stopped by the event.
+       (restart_threads, resumed_thread_with_pending_status): New
+       functions.
+       (finish_step_over): If we were doing an in-line step-over before,
+       and no longer are after trying to start a new step-over, restart
+       all threads.  If we have multiple threads with pending events,
+       save the current event and go through the event loop again.
+       (handle_signal_stop): Return early if finish_step_over returns
+       false.
+       <random signal>: If we get a signal while stepping over a
+       breakpoint in-line in non-stop mode, restart all threads.  Clear
+       step_over_info before delivering the signal.
+       (keep_going_stepped_thread): Use internal_error instead of
+       gdb_assert.  Mark the thread as resumed.
+       (keep_going_pass_signal): Assert the thread isn't already resumed.
+       If some other thread is doing an in-line step-over, defer the
+       resume.  If we just started a new in-line step-over, stop all
+       threads.  Don't clear step_over_info.
+       (infrun_async_inferior_event_handler): New function.
+       (_initialize_infrun): Create async event handler with
+       infrun_async_inferior_event_handler as callback.
+       (infrun_async): New declaration.
+       * target.c (target_async): New function.
+       * target.h (target_async): Declare macro and readd as function
+       declaration.
+       * target/waitstatus.h (enum target_stop_reason)
+       <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
+       * thread.c (new_thread): Clear the new waitstatus field.
+       (set_resumed): New function.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (keep_going_stepped_thread): New function, factored out
+       from ...
+       (switch_back_to_stepped_thread): ... here.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (currently_stepping): Extend intro comment.
+       * target.h (target_resume): Extend intro comment.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
+       of inferior_ptid.  If the stepped thread vanished, return 0
+       instead of resuming here.  Use reset_ecs.  Print the prev_pc and
+       the current stop_pc in log message.  Clear trap_expected if the
+       thread advanced.  Don't pass currently_stepping to
+       do_target_resume.
+
+2015-08-07  Pedro Alves  <palves@redhat.com>
+
+       * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
+       * infrun.c (struct execution_control_state): Move higher up in the
+       file.
+       (reset_ecs): New function.
+       (start_step_over): Now returns int.  Rewrite to use
+       keep_going_pass_signal instead of manually starting a displaced step.
+       (resume): Don't call set_running here.  If displaced stepping
+       can't start now, clear trap_expected.
+       (find_thread_needs_step_over): Delete function.
+       (proceed): Set up finish_thread_state_cleanup.  Call set_running.
+       If the current thread needs a step over, push it in the step-over
+       chain.  Don't set insert breakpoints nor call resume directly
+       here.  Instead rewrite to use start_step_over and
+       keep_going_pass_signal.
+       (finish_step_over): New function.
+       (handle_signal_stop): Call finish_step_over instead of
+       start_step_over.
+       (switch_back_to_stepped_thread): If the event thread needs another
+       step-over do that first.  Use start_step_over.
+       (keep_going_pass_signal): New function, factored out from ...
+       (keep_going): ... here.
+       (_initialize_infrun): Comment moved here.
+       * thread.c (set_running_thread): New function.
+       (set_running, finish_thread_state): Use set_running_thread.
+
 2015-08-07  Pedro Alves  <palves@redhat.com>
 
        * gdbthread.h (struct thread_info) <step_over_prev,
This page took 0.078768 seconds and 4 git commands to generate.