Make gdb_stdout&co be per UI
[external/binutils.git] / gdb / ChangeLog
index 6884c2d..8e57749 100644 (file)
@@ -1,3 +1,262 @@
+2016-06-21  Pedro Alves  <palves@redhat.com>
+
+       * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
+       globals.
+       (gen_ret_current_ui_field_ptr): New macro.  Use it to generate
+       wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
+       * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
+       m_gdb_stdlog>: New fields.
+       (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
+       (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
+       (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
+       macros.
+
+2016-06-21  Pedro Alves  <palves@redhat.com>
+
+       * event-top.c: Update readline-related comments.
+       (input_handler, call_readline): Delete globals.
+       (gdb_rl_callback_handler): Call the current UI's input_handler
+       method.
+       (change_line_handler): Adjust to set current UI's properties
+       instead of globals.
+       (current_ui_, current_ui): New globals.
+       (get_command_line_buffer): Rewrite to refer to the current UI.
+       (stdin_event_handler): Adjust to call the call_readline method of
+       the current UI.
+       (gdb_readline_no_editing_callback): Adjust to call the current UI's
+       input_handler method.
+       (gdb_setup_readline): Adjust to set current UI's properties
+       instead of globals.
+       * event-top.h (call_readline, input_handler): Delete declarations.
+       * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
+       UI's properties instead of globals.
+       * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
+       properties instead of globals.
+       (gdb_readline_wrapper): Adjust to call and set current UI's
+       methods instead of globals.
+       * top.h: Include buffer.h and event-loop.h.
+       (struct ui): New struct.
+       (current_ui): New declaration.
+
+2016-06-21  Pedro Alves  <palves@redhat.com>
+
+       * ada-lang.c (ada_exception_name_addr_1): Add comment.
+       (print_it_exception): Select the current frame.
+
+2016-06-17  Yan-Ting Lin  <currygt52@gmail.com>
+
+       * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
+       (HFILES_NO_SRCDIR): Add nds32-tdep.h.
+       (ALLDEPFILES): Add nds32-tdep.c.
+       * NEWS: Mention new NDS32 port.
+       * configure.tgt: Add NDS32.
+       * nds32-tdep.c: New file.
+       * nds32-tdep.h: New file.
+       * features/Makefile (XMLTOC): Add nds32.xml.
+       * features/nds32-core.xml: New file.
+       * features/nds32-fpu.xml: New file.
+       * features/nds32-system.xml: New file.
+       * features/nds32.c: New file (generated).
+       * features/nds32.xml: New file.
+
+2016-06-14  John Baldwin  <jhb@FreeBSD.org>
+
+       * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
+
+2016-06-14  John Baldwin  <jhb@FreeBSD.org>
+
+       * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
+
+2016-06-14  John Baldwin  <jhb@FreeBSD.org>
+
+       * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
+
+2016-06-13  Nick Clifton  <nickc@redhat.com>
+
+       * gdbtypes.c (replace_type): Fix assertion.
+
+2016-06-10  Tom Tromey  <tom@tromey.com>
+
+       * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
+       (arch_boolean_type, arch_float_type, arch_complex_type)
+       (arch_flags_type, append_flags_type_field)
+       (append_flags_type_flag, arch_composite_type)
+       (append_composite_type_field_raw)
+       (append_composite_type_field_aligned)
+       (append_composite_type_field): Make "name" parameter const.
+       * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
+       (arch_boolean_type, arch_float_type, arch_complex_type)
+       (append_composite_type_field, append_composite_type_field_aligned)
+       (append_composite_type_field_raw, arch_flags_type)
+       (append_flags_type_field, append_flags_type_flag): Constify.
+
+2016-06-10  Tom Tromey  <tom@tromey.com>
+
+       PR rust/20110:
+       * rust-exp.y (lex_number): Don't truncate large numbers to i32.
+
+2016-06-10  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (COMMON_OBS): Remove rust-exp.o.
+       (YYFILES): Add rust-exp.c.
+       (YYOBJ): Add rust-exp.o.
+       (local-maintainer-clean): Remove rust-exp.c.
+
+2016-06-09  Toshihito Kikuchi  <k.toshihito@yahoo.de>
+
+       * NEWS: Mention that GDB now supports a negative repeat count in
+       the 'x' command.
+       * printcmd.c (decode_format): Allow '-' in the parameter
+       "string_ptr" to accept a negative repeat count.
+       (find_instruction_backward): New function.
+       (read_memory_backward): New function.
+       (integer_is_zero): New function.
+       (find_string_backward): New function.
+       (do_examine): Use new functions to examine memory backward.
+       (_initialize_printcmd): Mention that 'x' command supports a negative
+       repeat count.
+
+2016-06-09  Toshihito Kikuchi  <k.toshihito@yahoo.de>
+
+       * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
+
+2016-06-09  Tom Tromey  <tom@tromey.com>
+
+       PR python/19819:
+       * python/py-xmethods.c (invoke_method_name)
+       (py_get_result_type_method_name, py_invoke_method_name): Remove.
+       (gdbpy_initialize_xmethods): Don't initialize
+       py_invoke_method_name, py_get_result_type_method_name.
+
+2016-06-07  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * mi/mi-interp.c (mi_record_changed): Add missing braces.
+
+2016-06-07  Bernhard Heckel  <bernhard.heckel@intel.com>
+
+       * findvar.c (follow_static_link): Check for valid pointer.
+
+2016-06-06  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * NEWS: Mention the new fields in =record-started.
+       * common/btrace-common.h (btrace_format_short_string): New function
+       declaration.
+       * common/btrace-common.c (btrace_format_short_string): New
+       function.
+       * mi/mi-interp.c (mi_record_changed): Output method and format
+       fields in the =record-started record.
+       * record-btrace.c (record_btrace_open): Adapt record_changed
+       notification.
+       * record-full.c (record_full_open): Likewise.
+       * record.c (cmd_record_stop): Likewise.
+
+2016-06-02  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * windows-nat.c (handle_output_debug_string): Return type of
+       gdb_signal_from_host() is gdb_signal, not an int.
+       (windows_get_exec_module_filename): Add pointer casts for C++.
+
+2016-06-02  Tom Tromey  <tom@tromey.com>
+
+       PR python/18984:
+       * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
+
+2016-06-01  Pedro Alves  <palves@redhat.com>
+
+       * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
+       (remote_fio_osa)
+       (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
+       (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
+       Delete.
+       (remote_fileio_o_quit_handler): New global.
+       (remote_fileio_quit_handler): New function.
+       (remote_fileio_reply): Check the quit flag instead of the custom
+       'remote_fio_ctrl_c_flag' flag.  Restore the quit handler instead
+       of changing the SIGINT handler.
+       (do_remote_fileio_request): Override the quit handler instead of
+       changing the SIGINT handler.
+
+2016-06-01  Nick Clifton  <nickc@redhat.com>
+
+       * common/common-utils.c (xmalloc_failed): New function.  Provided
+       so that the version in libiberty is not linked in.
+
+2016-06-01  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * infcmd.c (skip_finish_frames): New.
+       (finish_command): Call skip_finish_frames.
+
+2016-06-01  Yao Qi  <yao.qi@linaro.org>
+
+       PR remote/19998
+       * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
+       quit_serial_event_set.
+
+2016-06-01  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.11.1 released.
+
+2016-05-31  Martin Galvan  <martin.galvan@tallertechnologies.com>
+
+       PR c++/19893
+       * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
+       fetch_const_value_from_synthetic_pointer): New functions.
+       (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
+       (pieced_value_funcs): Implement coerce_ref.
+       * valops.c (value_addr): Call coerce_ref for synthetic references.
+       * valprint.c (valprint_check_validity): Return true for synthetic
+       references.  Also, don't show "<synthetic pointer>" if they reference
+       addressable values.
+       (generic_val_print_ref): Handle synthetic references.  Also move some
+       code to print_ref_address.
+       (print_ref_address, get_value_addr_contents): New functions.
+
+2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR c++/15231
+       * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
+       (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
+       (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
+       (read_call_site_scope): Adjust callers.
+       (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
+       (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
+
+2016-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
+       * dwarf2read.c (enum pc_bounds_kind) New.
+       (dwarf2_get_pc_bounds): Use it in the declaration.
+       (process_psymtab_comp_unit_reader): Adjust caller.  Rename has_pc_info
+       to cu_bounds_kind.
+       (read_func_scope, read_lexical_block_scope, read_call_site_scope):
+       Adjust callers.
+       (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
+       (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
+
+2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * NEWS (QCatchSyscalls): Remove the parameter.  Include ...
+       (QCatchSyscalls:1 in qSupported) ... this separate entry which got
+       deleted.
+
+2016-05-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * NEWS (N stop reply): Remove empty line.
+
+2016-05-28  Alan Modra  <amodra@gmail.com>
+
+       * compile/compile-object-load.c (link_callbacks_multiple_definition,
+       link_callbacks_warning, link_callbacks_undefined_symbol,
+       link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
+       link_callbacks_reloc_dangerous,
+       link_callbacks_unattached_reloc): Return void.
+
+2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * opencl-lang.c (evaluate_subexp_opencl): If
+       EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
+       the returned value in the STRUCTOP_STRUCT case.
+
 2016-05-27  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS