Make gdb_stdout&co be per UI
[external/binutils.git] / gdb / ChangeLog
index af4ddcc..8e57749 100644 (file)
@@ -1,3 +1,155 @@
+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