Style locations when setting a breakpoint
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 397ee0458af25098626ffe90fed26ec360f5fbd9..f9a8f092296374bea3671871b2035ee8bf8cd3d5 100644 (file)
@@ -1,3 +1,170 @@
+2018-12-28  Tom Tromey  <tom@tromey.com>
+
+       * breakpoint.c (say_where): Style file name.
+
+2018-12-28  Tom Tromey  <tom@tromey.com>
+
+       * ui-out.h (enum class ui_out_style_kind) <VARIABLE>: New global.
+       * stack.c (print_frame_arg): Style name.
+       * printcmd.c (print_variable_and_value): Style variable name.
+       * cli/cli-style.h (variable_name_style): Declare.
+       * cli/cli-style.c (variable_name_style): New global.
+       (_initialize_cli_style): Update.
+       * cli-out.c (cli_ui_out::do_field_string): Update.
+
+2018-12-28  Tom Tromey  <tom@tromey.com>
+
+       * utils.h (reset_terminal_style): Declare.
+       * utils.c (can_emit_style_escape): New function.
+       (set_output_style): Use it.
+       (reset_terminal_style): New function.
+       * printcmd.c (printf_command): Call reset_terminal_style.
+       * cli/cli-cmds.c (echo_command): Call reset_terminal_style.
+
+2018-12-28  Tom Tromey  <tom@tromey.com>
+
+       * utils.h (set_output_style, fprintf_styled)
+       (fputs_styled): Declare.
+       * utils.c (applied_style, desired_style): New globals.
+       (emit_style_escape, set_output_style): New function.
+       (prompt_for_continue): Emit style escapes.
+       (fputs_maybe_filtered): Likewise.
+       (fputs_styled, fprintf_styled): New functions.
+       * ui-out.h (enum class ui_out_style_kind): New.
+       (class ui_out) <field_string, field_stream, do_field_string>: Add
+       style parameter.
+       * ui-out.c (ui_out::field_stream, ui_out::field_string): Add style
+       parameter.
+       * tui/tui-out.h (class tui_ui_out) <do_field_string>: Add style
+       parameter.
+       * tui/tui-out.c (tui_ui_out::do_field_string): Add style
+       parameter.
+       (tui_ui_out::do_field_string): Update.
+       * tracepoint.c (print_one_static_tracepoint_marker): Style
+       output.
+       * stack.c (print_frame_info, print_frame): Style output.
+       * source.c (print_source_lines_base): Style output.
+       * skip.c (info_skip_command): Style output.
+       * record-btrace.c (btrace_call_history_src_line): Style output.
+       (btrace_call_history): Likewise.
+       * python/py-framefilter.c (py_print_frame): Style output.
+       * mi/mi-out.h (class mi_ui_out) <do_field_string>: Add style
+       parameter.
+       * mi/mi-out.c (mi_ui_out::do_table_header)
+       (mi_ui_out::do_field_int): Update.
+       (mi_ui_out::do_field_string): Update.
+       * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
+       Style output.
+       * cli/cli-style.h: New file.
+       * cli/cli-style.c: New file.
+       * cli-out.h (class cli_ui_out) <do_field_string>: Add style
+       parameter.
+       * cli-out.c (cli_ui_out::do_table_header)
+       (cli_ui_out::do_field_int, cli_ui_out::do_field_skip): Update.
+       (cli_ui_out::do_field_string): Add style parameter.  Style the
+       output.
+       * breakpoint.c (print_breakpoint_location): Style output.
+       (update_static_tracepoint): Likewise.
+       * Makefile.in (SUBDIR_CLI_SRCS): Add cli-style.c.
+       (HFILES_NO_SRCDIR): Add cli-style.h.
+
+2018-12-28  Tom Tromey  <tom@tromey.com>
+
+       * unittests/style-selftests.c: New file.
+       * ui-style.c: New file.
+       * ui-style.h: New file.
+       * ui-file.h: Include ui-style.h.
+       * Makefile.in (COMMON_SFILES): Add ui-style.c.
+       (HFILES_NO_SRCDIR): Add ui-style.h.
+       (SUBDIR_UNITTESTS_SRCS): Add style-selftests.c.
+
+2018-12-28  Tom Tromey  <tom@tromey.com>
+
+       * command.h (add_setshow_enum_cmd): Add "context" argument.
+       * cli/cli-decode.c (add_setshow_enum_cmd): Add "context"
+       argument.  Call set_cmd_context.
+
+2018-12-28  Tom Tromey  <tom@tromey.com>
+
+       * utils.c (filter_initialized): New global.
+       (wrap_buffer): Now a std::string.
+       (wrap_pointer): Remove.
+       (flush_wrap_buffer): New function.
+       (filtered_printing_initialized, set_width, wrap_here)
+       (fputs_maybe_filtered): Update.
+
+2018-12-28  Eli Zaretskii  <eliz@gnu.org>
+
+       * coffread.c (coff_symtab_read): Don't record in minsyms symbols
+       that are unresolved.  This avoids triggering an internal error
+       when stepping outside of 'main' in MinGW programs.
+
+2018-12-27  Tom Tromey  <tom@tromey.com>
+
+       * python/py-utils.c (gdbpy_handle_exception): Translate
+       PyExc_KeyboardInterrupt to quit.
+
+2018-12-27  Tom Tromey  <tom@tromey.com>
+
+       * python/python-internal.h (gdbpy_print_stack_or_quit): Declare.
+       * python/py-unwind.c (pyuw_sniffer): Use
+       gdbpy_print_stack_or_quit.
+       * python/py-framefilter.c (throw_quit_or_print_exception):
+       Remove.
+       (gdbpy_apply_frame_filter): Use gdbpy_print_stack_or_quit.
+       * python/python.c (gdbpy_print_stack_or_quit): New function.
+
+2018-12-27  Tom Tromey  <tom@tromey.com>
+
+       * python/py-value.c (convert_value_from_python): Use
+       gdbpy_convert_exception.
+       * python/py-param.c (parmpy_init): Use gdbpy_convert_exception.
+       * python/py-cmd.c (cmdpy_init): Use gdbpy_convert_exception.
+       * python/py-breakpoint.c (bppy_init): Use
+       gdbpy_convert_exception.
+
+2018-12-27  Tom Tromey  <tom@tromey.com>
+
+       * configure.nat (NATDEPFILES): Use nat/ prefix.
+       * Makefile.in (CONFIG_SRC_SUBDIR): Add nat.
+       (%.o: ${srcdir}/nat/%.c): Remove rule.
+       (INIT_FILES): Do not filter out NATDEPFILES.
+
+2018-12-27  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (INIT_FILES): Redefine.
+       (stamp-init): Remove sed, tr invocations.  Use for loop.  Don't
+       set LANG or LC_ALL.
+
+2018-12-27  Tom Tromey  <tom@tromey.com>
+
+       * Makefile.in (stamp-init): Remove gdbtypes special case.
+
+2018-12-27  John Baldwin  <jhb@FreeBSD.org>
+
+       * config/i386/nm-fbsd.h: Remove file.
+       * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-fbsd.h.
+       * configure.nat: Remove NAT_FILE for FreeBSD/i386.
+
+2018-12-27  Tom Tromey  <tom@tromey.com>
+
+       * minsyms.h (class minimal_symbol_reader): Use
+       DISABLE_COPY_AND_ASSIGN.
+
+2018-12-27  Tom Tromey  <tom@tromey.com>
+
+       * python/python.c (python_interactive_command): Use std::string.
+       (gdbpy_parameter): Likewise.
+       * python/py-utils.c (unicode_to_encoded_string): Update comment.
+       * python/py-symtab.c (salpy_str): Use PyString_FromFormat.
+       * python/py-record-btrace.c (recpy_bt_insn_data): Use
+       byte_vector.
+       * python/py-objfile.c (objfpy_get_build_id): Use
+       unique_xmalloc_ptr.
+       * python/py-inferior.c (infpy_read_memory): Use
+       unique_xmalloc_ptr.
+       * python/py-cmd.c (gdbpy_parse_command_name): Use std::string.
+
 2018-12-26  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * target.c (target_terminal::restore_inferior): Remove struct keyword.
This page took 0.028695 seconds and 4 git commands to generate.