Fix "make test-cp-name-parser"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 740d75f2041b7bf17aa27fd5efd62128981c9444..80dbb669b7e894a0070899d2a43301d9112738e4 100644 (file)
@@ -1,3 +1,374 @@
+2017-11-08  Pedro Alves  <palves@redhat.com>
+
+       * cp-name-parser.y (main): Don't initialize extra_chars.
+
+2017-11-07  Tom Tromey  <tom@tromey.com>
+
+       * event-top.h (command_handler): Constify.
+       * record-full.c (cmd_record_full_start): Update.
+       * thread.c (thread_apply_all_command): Update.
+       * printcmd.c (eval_command): Update.
+       * mi/mi-main.c (mi_execute_cli_command): Update.
+       (mi_execute_async_cli_command): Update.
+       * tui/tui-stack.c (tui_update_command): Update.
+       * cli/cli-interp.c (safe_execute_command): Constify.
+       * record.c (record_start): Update.
+       (record_start, record_stop, cmd_record_start): Update.
+       * record-btrace.c (cmd_record_btrace_bts_start): Update.
+       (cmd_record_btrace_pt_start): Update.
+       (cmd_record_btrace_start): Update.
+       (cmd_record_btrace_start): Update.
+       * reverse.c (exec_reverse_once): Update.
+       * python/python.c (execute_gdb_command): Don't copy the command.
+       * event-top.c (command_line_handler): Update.
+       (command_handler): Constify.
+       * defs.h (deprecated_call_command_hook): Constify.
+       * cli/cli-script.h (execute_user_command): Constify.
+       * cli/cli-script.c (execute_user_command): Constify.
+       (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
+       (enum command_control_type): Update.
+       * main.c (catch_command_errors): Remove non-const overload.
+       (catch_command_errors_ftype): Remove.
+       * python/py-cmd.c (cmdpy_function): Constify.
+       * guile/scm-cmd.c (cmdscm_function): Constify.
+       * cli/cli-dump.c (call_dump_func): Constify.
+       * cli/cli-decode.c (do_const_cfunc): Constify.
+       (do_sfunc): Constify.
+       (cmd_func): Constify.
+       * gdbcmd.h (execute_command, execute_command_to_string): Constify.
+       * top.h (execute_command): Constify.
+       * top.c (execute_command): Constify.
+       (execute_command_to_string): Constify.
+       (deprecated_call_command_hook): Constify.
+       * command.h (cmd_func): Constify.
+       * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
+
+2017-11-07  Tom Tromey  <tom@tromey.com>
+
+       * ada-lang.c (catch_ada_exception_command): Constify.
+       (catch_assert_command): Constify.
+       * break-catch-throw.c (catch_catch_command, catch_throw_command)
+       (catch_rethrow_command): Constify.
+       (catch_exception_command_1): Constify.
+       * breakpoint.h (add_catch_command): Constify.
+       * break-catch-syscall.c (catch_syscall_command_1): Constify.
+       (catch_syscall_split_args): Constify.
+       * break-catch-sig.c (catch_signal_command): Constify.
+       (catch_signal_split_args): Constify.
+       * cli/cli-decode.h (struct cmd_list_element) <function>: Use
+       cmd_const_sfunc_ftype.
+       * cli/cli-decode.c (add_setshow_cmd_full): Constify.
+       (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
+       (add_setshow_boolean_cmd, add_setshow_filename_cmd)
+       (add_setshow_string_cmd, struct cmd_list_element)
+       (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
+       (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
+       (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
+       Constify.
+       (set_cmd_sfunc): Constify.
+       (empty_sfunc): Constify.
+       * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
+       (add_setshow_boolean_cmd, add_setshow_filename_cmd)
+       (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
+       (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
+       (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
+       (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
+       Constify.
+       (set_cmd_sfunc): Constify.
+       (cmd_sfunc_ftype): Remove.
+       * compile/compile.c (set_compile_args): Constify.
+       * infrun.c (set_disable_randomization): Constify.
+       * infcmd.c (set_args_command, set_cwd_command): Constify.
+       * breakpoint.c (set_condition_evaluation_mode): Constify.
+       (add_catch_command): Constify.
+       (catch_fork_command_1, catch_exec_command_1)
+       (catch_load_command_1, catch_unload_command_1): Constify.
+       (catch_load_or_unload): Constify.
+       * guile/scm-param.c (pascm_set_func): Constify.
+       (add_setshow_generic): Constify.
+       * python/py-param.c (get_set_value): Constify.
+       * top.h (set_verbose): Constify.
+       * tui/tui-win.c (tui_set_var_cmd): Constify.
+       * mi/mi-main.c (set_mi_async_command): Constify.
+       * cli/cli-logging.c (set_logging_overwrite)
+       (set_logging_redirect): Constify.
+       * value.c (set_max_value_size): Constify.
+       * valprint.c (set_input_radix, set_output_radix): Constify.
+       * utils.c (set_width_command, set_height_command): Constify.
+       * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
+       * tracepoint.c (set_disconnected_tracing)
+       (set_circular_trace_buffer, set_trace_buffer_size)
+       (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
+       * top.c (set_history_size_command, set_verbose, set_editing)
+       (set_gdb_datadir, set_history_filename): Constify.
+       * target.c (set_targetdebug, maint_set_target_async_command)
+       (maint_set_target_non_stop_command, set_target_permissions)
+       (set_write_memory_permission): Constify.
+       (open_target): Constify.
+       * target-descriptions.c (set_tdesc_filename_cmd): Constify.
+       * target-dcache.c (set_stack_cache, set_code_cache): Constify.
+       * symtab.c (set_symbol_cache_size_handler): Constify.
+       * symfile.c (set_ext_lang_command): Constify.
+       * symfile-debug.c (set_debug_symfile): Constify.
+       * source.c (set_directories_command): Constify.
+       * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
+       * serial.c (set_parity): Constify.
+       * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
+       * remote.c (set_remote_exec_file, set_remotebreak)
+       (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
+       * record.c (set_record_insn_history_size)
+       (set_record_call_history_size): Constify.
+       * record-full.c (set_record_full_insn_max_num): Constify.
+       * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
+       * osabi.c (set_osabi): Constify.
+       * mips-tdep.c (set_mips64_transfers_32bit_regs)
+       (reinit_frame_cache_sfunc, mips_abi_update): Constify.
+       * maint.c (maintenance_set_profile_cmd): Constify.
+       * linux-thread-db.c (set_libthread_db_search_path): Constify.
+       * language.c (set_language_command, set_range_command)
+       (set_case_command): Constify.
+       * infrun.c (set_non_stop, set_observer_mode)
+       (set_stop_on_solib_events, set_schedlock_func)
+       (set_exec_direction_func): Constify.
+       * infcmd.c (set_inferior_tty_command): Constify.
+       * disasm.c (set_disassembler_options_sfunc): Constify.
+       * demangle.c (set_demangling_command): Constify.
+       * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
+       * cris-tdep.c (set_cris_version, set_cris_mode)
+       (set_cris_dwarf2_cfi): Constify.
+       * corefile.c (set_gnutarget_command): Constify.
+       * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
+       (set_target_wide_charset_sfunc): Constify.
+       * breakpoint.c (update_dprintf_commands): Constify.
+       * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
+       * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
+       (set_disassembly_style_sfunc): Constify.
+       * arch-utils.c (set_endian, set_architecture): Constify.
+       * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
+       * agent.c (set_can_use_agent): Constify.
+
+2017-11-07  Tom Tromey  <tom@tromey.com>
+
+       * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
+       (go32_pde, go32_pte, go32_pte_for_address): Constify.
+       * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
+       (set_thread_default_pause_cmd, set_thread_default_run_cmd)
+       (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
+       (parse_int_arg, show_thread_default_detach_sc_cmd)
+       (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
+       (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
+       (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
+       (show_task_pause_cmd, set_task_detach_sc_cmd)
+       (show_task_detach_sc_cmd, set_task_exc_port_cmd)
+       (set_noninvasive_cmd, set_thread_pause_cmd)
+       (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
+       (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
+       (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
+       * windows-nat.c (display_selectors): Constify.
+       * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
+       non-const "cfunc".
+       * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
+       (cmd_cfunc_eq): Likewise.
+       (struct cmd_list_element): Likewise.
+       (do_cfunc): Remove.
+       (cli_user_command_p): Update.
+       * command.h (add_cmd): Remove non-const overload.
+       (cmd_cfunc_ftype): Remove typedef.
+       (cmd_cfunc_eq): Remove non-const overload.
+       * value.c (show_values): Constify.
+       * thread.c (thread_apply_all_command): Constify.
+       * symfile.c (load_command): Constify.
+       * source.c (directory_command): Constify.
+       * maint.c (maintenance_internal_error)
+       (maintenance_demangler_warning, maintenance_space_display)
+       (maintenance_print_architecture, maintenance_translate_address)
+       (maintenance_info_selftests, maintenance_internal_warning):
+       Constify.
+       * breakpoint.c (disable_trace_command, enable_trace_command):
+       Constify.
+       * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
+       Constify.
+       (add_auto_load_safe_path): Constify.
+       * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
+       * top.h (show_commands): Constify.
+       * linux-thread-db.c (info_auto_load_libthread_db): Constify.
+       * sparc64-tdep.c (adi_examine_command): Constify.
+       (adi_assign_command): Constify.
+
+2017-11-07  Tom Tromey  <tom@tromey.com>
+
+       * frame.h (info_locals_command, info_args_command): Constify.
+       * auto-load.h (auto_load_info_scripts): Constify.
+       * inferior.h (registers_info): Constify.
+       * copying.c: Rebuild.
+       * copying.awk: Constify generated commands.
+       * auto-load.c (auto_load_info_scripts)
+       (info_auto_load_gdb_scripts): Constify.
+       * cli/cli-decode.c (struct cmd_list_element): Take a
+       cmd_const_cfunc_ftype.
+       * command.h (add_info): Take a cmd_const_cfunc_ftype.
+       * tui/tui-win.c (tui_all_windows_info): Constify.
+       * python/py-auto-load.c (info_auto_load_python_scripts):
+       Constify.
+       * cli/cli-cmds.c (show_command): Remove non-const overload.
+       * tracepoint.c (info_tvariables_command, info_scope_command):
+       Constify.
+       (info_static_tracepoint_markers_command): Constify.
+       * thread.c (info_threads_command): Constify.
+       (print_thread_info_1): Constify.
+       * target.c (info_target_command): Constify.
+       * symtab.c (info_sources_command, info_functions_command)
+       (info_types_command): Constify.
+       (info_variables_command): Remove non-const overload.
+       * symfile.c (info_ext_lang_command): Constify.
+       * stack.c (info_frame_command, info_locals_command)
+       (info_args_command): Constify.
+       (backtrace_command): Remove non-const overload.
+       * source.c (info_source_command, info_line_command): Constify.
+       * solib.c (info_sharedlibrary_command): Constify.
+       * skip.c (info_skip_command): Constify.
+       * ser-go32.c (info_serial_command): Constify.
+       * reverse.c (info_bookmarks_command): Constify.
+       * printcmd.c (info_symbol_command, info_address_command)
+       (info_display_command): Constify.
+       * osdata.c (info_osdata_command): Constify.
+       * objc-lang.c (info_selectors_command, info_classes_command):
+       Constify.
+       * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
+       * memattr.c (info_mem_command): Constify.
+       * macrocmd.c (info_macro_command, info_macros_command): Constify.
+       * linux-fork.c (info_checkpoints_command): Constify.
+       * infrun.c (info_signals_command): Constify.
+       * inflow.c (info_terminal_command): Constify.
+       * inferior.c (info_inferiors_command): Constify.
+       (print_inferior): Constify.
+       * infcmd.c (info_program_command, info_all_registers_command)
+       (info_registers_command, info_vector_command)
+       (info_float_command): Constify.
+       (registers_info): Constify.
+       * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
+       (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
+       Constify.
+       * f-valprint.c (info_common_command): Constify.
+       * dcache.c (info_dcache_command): Constify.
+       (dcache_info_1): Constify.
+       * darwin-nat-info.c (info_mach_tasks_command)
+       (info_mach_task_command, info_mach_ports_command)
+       (info_mach_port_command, info_mach_threads_command)
+       (info_mach_thread_command, info_mach_regions_command)
+       (info_mach_regions_recurse_command, info_mach_region_command)
+       (info_mach_exceptions_command): Constify.
+       (get_task_from_args): Constify.
+       * cp-support.c (info_vtbl_command): Constify.
+       * breakpoint.c (info_watchpoints_command)
+       (info_tracepoints_command): Constify.
+       (info_breakpoints_command): Remove non-const overload.
+       * avr-tdep.c (avr_io_reg_read_command): Constify.
+       * auxv.c (info_auxv_command): Constify.
+       * ada-tasks.c (info_tasks_command): Constify.
+       (info_task): Constify.
+       * ada-lang.c (info_exceptions_command): Constify.
+
+2017-11-07  Tom Tromey  <tom@tromey.com>
+
+       * solib.h (no_shared_libraries): Constify.
+       * frame.h (return_command): Constify.
+       * cli/cli-cmds.h (quit_command): Constify.
+       * top.h (quit_command, execute_command): Constify.
+       * target.h (flash_erase_command): Constify.
+       * inferior.h (set_inferior_args, attach_command): Constify.
+       * tracepoint.h (start_tracing, stop_tracing): Constify.
+       * breakpoint.h (break_command, tbreak_command)
+       (hbreak_command_wrapper, thbreak_command_wrapper)
+       (rbreak_command_wrapper, watch_command_wrapper)
+       (awatch_command_wrapper, rwatch_command_wrapper)
+       (get_tracepoint_by_number): Constify.
+       * symtab.c (info_variables_command, rbreak_command)
+       (symtab_symbol_info): Constify.
+       (info_variables_command): Add non-const overload.
+       * top.c (dont_repeat_command): Constify.
+       * breakpoint.c (ignore_command, commands_command)
+       (condition_command, tbreak_command, hbreak_command)
+       (thbreak_command, clear_command, break_command)
+       (info_breakpoints_command, watch_command, rwatch_command)
+       (awatch_command, trace_command, ftrace_command, strace_command)
+       (trace_pass_command, break_range_command, dprintf_command)
+       (agent_printf_command, get_tracepoint_by_number)
+       (watch_maybe_just_location, trace_pass_command): Constify.
+       (info_breakpoints_command): Add non-const overload.
+       * tracefile.c (tsave_command): Constify.
+       * infcmd.c (attach_command, disconnect_command, signal_command)
+       (queue_signal_command, stepi_command, nexti_command)
+       (finish_command, next_command, step_command, until_command)
+       (advance_command, jump_command, continue_command, run_command)
+       (start_command, starti_command, interrupt_command)
+       (run_command_1, set_inferior_args, step_1): Constify.
+       * inferior.c (add_inferior_command, remove_inferior_command)
+       (clone_inferior_command): Constify.
+       * linux-fork.c (checkpoint_command, restart_command): Constify.
+       * windows-nat.c (signal_event_command): Constify.
+       * guile/guile.c (guile_repl_command, guile_command): Constify.
+       * printcmd.c (x_command, display_command, printf_command)
+       (output_command, set_command, call_command, print_command)
+       (eval_command): Constify.
+       (non_const_set_command): Remove.
+       (_initialize_printcmd): Update.
+       * source.c (forward_search_command, reverse_search_command):
+       Constify.
+       * jit.c (jit_reader_load_command, jit_reader_unload_command):
+       Constify.
+       * infrun.c (handle_command): Constify.
+       * memattr.c (mem_command): Constify.
+       * stack.c (return_command, up_command, up_silently_command)
+       (down_command, down_silently_command, frame_command)
+       (backtrace_command, func_command, backtrace_command_1): Constify.
+       (backtrace_command): Add non-const overload.
+       * remote-sim.c (simulator_command): Constify.
+       * exec.c (set_section_command): Constify.
+       * tracepoint.c (tdump_command, trace_variable_command)
+       (tstatus_command, tstop_command, tstart_command)
+       (end_actions_pseudocommand, while_stepping_pseudocommand)
+       (collect_pseudocommand, teval_pseudocommand, actions_command)
+       (start_tracing, stop_tracing): Constify.
+       * value.c (init_if_undefined_command): Constify.
+       * tui/tui-stack.c (tui_update_command): Constify.
+       * tui/tui-win.c (tui_refresh_all_command)
+       (tui_set_tab_width_command, tui_set_win_height_command)
+       (tui_set_focus_command, tui_scroll_forward_command)
+       (tui_scroll_backward_command, tui_scroll_left_command)
+       (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
+       (tui_set_win_height): Constify.
+       * tui/tui-layout.c (tui_layout_command): Constify.
+       * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
+       (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
+       (proc_untrace_sysexit_cmd): Constify.
+       * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
+       (threadset_test_cmd, threadlist_update_test_cmd)
+       (threadalive_test): Constify.
+       * objc-lang.c (print_object_command): Constify.
+       * command.h (add_com): Constify.
+       * cli/cli-dump.c (restore_command): Constify.
+       * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
+       (help_command, complete_command, shell_command, edit_command)
+       (list_command, disassemble_command, make_command)
+       (apropos_command, alias_command): Constify.
+       * cli/cli-script.c (document_command, define_command)
+       (while_command, if_command, validate_comname): Constify.
+       * cli/cli-decode.c (struct cmd_list_element): Change type of
+       "fun".
+       * target.c (do_monitor_command, flash_erase_command): Constify.
+       * regcache.c (reg_flush_command): Constify.
+       * reverse.c (reverse_step, reverse_next, reverse_stepi)
+       (reverse_nexti, reverse_continue, reverse_finish)
+       (save_bookmark_command, goto_bookmark_command)
+       (exec_reverse_once): Constify.
+       * python/python.c (python_interactive_command, python_command):
+       Constify.
+       * typeprint.c (ptype_command, whatis_command, whatis_exp):
+       Constify.
+       * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
+       * gcore.c (gcore_command): Constify.
+
 2017-11-07  Tom Tromey  <tom@tromey.com>
 
        * printcmd.c (x_command): Call set_repeat_arguments.
This page took 0.030188 seconds and 4 git commands to generate.