Migrate rest of compile commands to new options framework
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 024e171fa3fe64644ebb5817343b32cb00029116..9e3629abf14e5a2ae4346843ca6ec26a87bd170e 100644 (file)
@@ -1,3 +1,286 @@
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * compile/compile.c (struct compile_options): New.
+       (compile_flag_option_def, compile_command_option_defs)
+       (make_compile_options_def_group): New.
+       (compile_file_command): Handle options with
+       gdb::option::process_options.
+       (compile_file_command_completer): New function.
+       (compile_code_command): Handle options with
+       gdb::option::process_options.
+       (compile_code_command_completer): New function.
+       (_initialize_compiler): Install completers for "compile code" and
+       "compile file".  Mention available options in "compile code" and
+       "compile code"'s help.
+       * completer.c (advance_to_completion_word): New, factored out from
+       ...
+       (advance_to_expression_complete_word_point): ... this.
+       (advance_to_filename_complete_word_point): New.
+       * completer.h (advance_to_filename_complete_word_point): New
+       declaration.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * compile/compile.c: Include "cli/cli-option.h".
+       (compile_print_value): Scope data pointer is now a
+       value_print_options pointer; adjust.
+       (compile_print_command): Process options.  Scope data pointer is
+       now a value_print_options pointer; adjust.
+       (_initialize_compile): Update "compile print"'s help to include
+       supported options.  Install a completer for "compile print".
+       * cp-valprint.c (show_vtblprint, show_objectprint)
+       (show_static_field_print): Delete.
+       (_initialize_cp_valprint): Don't install "set print
+       static-members", "set print vtbl", "set print object" here.
+       * printcmd.c: Include "cli/cli-option.h" and
+       "common/gdb_optional.h".
+       (print_command_parse_format): Rework to fill in a
+       value_print_options instead of a format_data.
+       (print_value): Change parameter type from format_data pointer to
+       value_print_options reference.  Adjust.
+       (print_command_1): Process options.  Adjust to pass down a
+       value_print_options.
+       (print_command_completer): New.
+       (_initialize_printcmd): Install print_command_completer as
+       handle_brkchars completer for the "print" command.  Update
+       "print"'s help to include supported options.
+       * valprint.c: Include "cli/cli-option.h".
+       (show_vtblprint, show_objectprint, show_static_field_print): Moved
+       here from cp-valprint.c.
+       (boolean_option_def, uinteger_option_def)
+       (value_print_option_defs, make_value_print_options_def_group):
+       New.  Use gdb::option::add_setshow_cmds_for_options to install
+       "set print elements", "set print null-stop", "set print repeats",
+       "set print pretty", "set print union", "set print array", "set
+       print address", "set print symbol", "set print array-indexes".
+       * valprint.h: Include <string> and "cli/cli-option.h".
+       (make_value_print_options_def_group): Declare.
+       (print_value): Change parameter type from format_data pointer to
+       value_print_options reference.
+       (print_command_completer): Declare.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
+       (COMMON_SFILES): Add maint-test-settings.c.
+       * cli/cli-decode.c (boolean_enums): New global, factored out from
+       ...
+       (add_setshow_boolean_cmd): ... here.
+       * cli/cli-decode.h (boolean_enums): Declare.
+       * cli/cli-option.c: New file.
+       * cli/cli-option.h: New file.
+       * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
+       factored out from ...
+       (parse_cli_boolean_value(const char *)): ... this.
+       (is_unlimited_literal): Change parameter type to pointer to
+       pointer.  Adjust and advance ARG pointer.
+       (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
+       (parse_cli_var_enum): New, factored out from ...
+       (do_set_command): ... this.  Adjust.
+       * cli/cli-setshow.h (parse_cli_boolean_value)
+       (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
+       (parse_cli_var_enum): Declare.
+       * cli/cli-utils.c: Include "cli/cli-option.h".
+       (get_ulongest): New.
+       * cli/cli-utils.h (get_ulongest): Declare.
+       (check_for_argument): New overloads.
+       * maint-test-options.c: New file.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-utils.c (number_or_range_parser::get_number): Do not
+       parse a range if "-" is at the end of the string.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-setshow.c (parse_auto_binary_operation)
+       (parse_cli_boolean_value): Don't allow "o".
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
+       * NEWS: Mention maint test-settings KIND.
+       * maint-test-settings.c: New file.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
+       completer.
+       (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
+       "set" completers.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
+       after item.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
+
+2019-06-13  Pedro Alves <palves@redhat.com>
+
+       * ax-gdb.c (agent_command_1): Remove skip_spaces call.
+       * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
+       call.
+       * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
+       * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
+       calls.
+       (check_for_argument): Skip spaces after argument.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * thread.c (thread_apply_command): Adjust TID parsing.
+       * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
+       detected before end of string.
+       (tid_is_in_list): Error out if LIST is invalid.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * completer.c (complete_line_internal_1): Rewind completion word
+       point.
+       (completion_tracker::advance_custom_word_point_by): Change
+       parameter type to int.
+       * completer.h (completion_tracker::advance_custom_word_point_by):
+       Likewise.
+
+2019-06-13  Pedro Alves  <palves@redhat.com>
+
+       * completer.c (advance_to_completion_word): Handle delimiters.
+
+2019-06-11  Bernhard Heckel  <bernhard.heckel@intel.com>
+
+       * dwarf2read.c (add_partial_symbol): Skip nameless modules.
+
+2019-06-11  Tom Tromey  <tom@tromey.com>
+
+       * common/common-utils.c (xmalloc, xrealloc, xcalloc)
+       (xmalloc_failed): Move to alloc.c.
+       * alloc.c: New file.
+       * Makefile.in (COMMON_SFILES): Add alloc.c.
+
+2019-06-11  Tom Tromey  <tom@tromey.com>
+
+       * nat/linux-waitpid.c: Don't include server.h.
+       (linux_debug): Remove.
+       (my_waitpid): Update.
+
+2019-06-11  Tom Tromey  <tromey@adacore.com>
+
+       * infcall.c (_initialize_infcall): Remove trailing newline from
+       help.
+       * user-regs.c (_initialize_user_regs): Remove trailing newline
+       from help.
+       * typeprint.c (_initialize_typeprint): Remove trailing newline
+       from help.
+       * reverse.c (_initialize_reverse): Remove trailing newlines from
+       help.
+       * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
+       from help.
+       * language.c (add_set_language_command): Remove trailing newline
+       from help.
+       * infcmd.c (_initialize_infcmd): Remove trailing newlines from
+       help.
+       * disasm.c (_initialize_disasm): Remove trailing newline from
+       help.
+       * top.c (init_main): Remove trailing newline from help.
+       * interps.c (_initialize_interpreter): Remove trailing newline
+       from help.
+       * btrace.c (_initialize_btrace): Remove trailing newlines from
+       help.
+       * breakpoint.c (_initialize_breakpoint): Remove trailing newline
+       from help.
+       * python/python.c (_initialize_python): Remove trailing newline
+       from help.
+       * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
+       help.
+       * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
+       from help.  Reformat some text.
+       * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
+       from help.
+       * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
+       newline from help.
+
+2019-06-11  Tom Tromey  <tromey@adacore.com>
+
+       * darwin-nat.c (darwin_decode_exception_message)
+       (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
+
+2019-06-10  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * valops.c (value_slice): Check for not allocated or not
+       associated values.
+
+2019-06-10  Tom de Vries  <tdevries@suse.de>
+
+       PR gdb/24618
+       * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
+       sure an empty slot (defined by a 32-bit zero pair) is recognized as
+       invalid.
+
+2019-06-10  Tom de Vries  <tdevries@suse.de>
+
+       PR gdb/24611
+       * linespec.c (linespec_lexer_lex_string): Remove incorrect
+       "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon.  Add assert.
+
+2019-06-10  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/24545
+       * symtab.c (struct demangled_name_entry): Add language field.
+       (symbol_set_names):  Revert "[gdb/symtab] Fix language of duplicate
+       static minimal symbol".  Set and use language field.
+
+2019-06-10  Tom Tromey  <tromey@adacore.com>
+
+       * ada-lang.c (_initialize_ada_language): Update help text.
+
+2019-06-10  Tom Tromey  <tromey@adacore.com>
+
+       * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
+       with a newline.
+       * guile/guile.c (handle_boot_error): Don't end warning with a
+       newline.
+       * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
+       warning with a newline.
+       * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
+       newline.
+       (s12z_frame_cache): Likewise.
+       * dwarf-index-cache.c (index_cache::store): Don't end warning with
+       a newline.
+       * solib-svr4.c (disable_probes_interface): Don't end warning with
+       a newline.
+       * nat/fork-inferior.c (fork_inferior): Don't end warning with a
+       newline.
+       * python/python.c (do_finish_initialization): Don't end warning
+       with a newline.
+
+2019-06-10  Tom Tromey  <tom@tromey.com>
+
+       * python/py-breakpoint.c (gdbpy_breakpoint_created)
+       (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
+       gdbpy_enter.
+
+2019-06-10  Tom Tromey  <tromey@adacore.com>
+
+       * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
+       data.
+       (elf_new_init): Don't call stabsread_new_init.
+       * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
+       (elfstab_build_psymtabs): Likewise.  Call stabsread_new_init.
+       * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
+
+2019-06-10  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/16264
+       PR symtab/24517
+       * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
+
+2019-06-06  Руслан Ижбулатов <lrn1986@gmail.com>
+
+       * source.c (find_and_open_source): Also rewrite relative file
+       names.
+
 2019-04-26  Amos Bird  <amosbird@gmail.com>
 
        * annotate.c (annotate_thread_exited): Add "thread-exited"
This page took 0.028353 seconds and 4 git commands to generate.