summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-01-13 14:01:38 -0500
committerSimon Marchi <simon.marchi@efficios.com>2020-01-13 14:01:38 -0500
commit6c2659886f7018fcca26ee0fc813bc9748fb8513 (patch)
tree9f85af5982af79d2c1f066b56c22dca41dc650cd
parentgdb: make regformats output a declaration for the init function (diff)
downloadbinutils-gdb-6c2659886f7018fcca26ee0fc813bc9748fb8513.tar.gz
binutils-gdb-6c2659886f7018fcca26ee0fc813bc9748fb8513.tar.bz2
binutils-gdb-6c2659886f7018fcca26ee0fc813bc9748fb8513.zip
gdb: add back declarations for _initialize functions
I'd like to enable the -Wmissing-declarations warning. However, it warns for every _initialize function, for example: CXX dcache.o /home/smarchi/src/binutils-gdb/gdb/dcache.c: In function ‘void _initialize_dcache()’: /home/smarchi/src/binutils-gdb/gdb/dcache.c:688:1: error: no previous declaration for ‘void _initialize_dcache()’ [-Werror=missing-declarations] _initialize_dcache (void) ^~~~~~~~~~~~~~~~~~ The only practical way forward I found is to add back the declarations, which were removed by this commit: commit 481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9 Author: John Baldwin <jhb@FreeBSD.org> Date: Sat Sep 9 11:02:37 2017 -0700 Remove unnecessary function prototypes. I don't think it's a big problem to have the declarations for these functions, but if anybody has a better solution for this, I'll be happy to use it. gdb/ChangeLog: * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. * ada-exp.y (_initialize_ada_exp): Add declaration. * ada-lang.c (_initialize_ada_language): Add declaration. * ada-tasks.c (_initialize_tasks): Add declaration. * agent.c (_initialize_agent): Add declaration. * aix-thread.c (_initialize_aix_thread): Add declaration. * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. * annotate.c (_initialize_annotate): Add declaration. * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. * arc-tdep.c (_initialize_arc_tdep): Add declaration. * arch-utils.c (_initialize_gdbarch_utils): Add declaration. * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. * arm-tdep.c (_initialize_arm_tdep): Add declaration. * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. * auto-load.c (_initialize_auto_load): Add declaration. * auxv.c (_initialize_auxv): Add declaration. * avr-tdep.c (_initialize_avr_tdep): Add declaration. * ax-gdb.c (_initialize_ax_gdb): Add declaration. * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. * breakpoint.c (_initialize_breakpoint): Add declaration. * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. * btrace.c (_initialize_btrace): Add declaration. * charset.c (_initialize_charset): Add declaration. * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. * cli/cli-dump.c (_initialize_cli_dump): Add declaration. * cli/cli-interp.c (_initialize_cli_interp): Add declaration. * cli/cli-logging.c (_initialize_cli_logging): Add declaration. * cli/cli-script.c (_initialize_cli_script): Add declaration. * cli/cli-style.c (_initialize_cli_style): Add declaration. * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. * coffread.c (_initialize_coffread): Add declaration. * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. * compile/compile.c (_initialize_compile): Add declaration. * complaints.c (_initialize_complaints): Add declaration. * completer.c (_initialize_completer): Add declaration. * copying.c (_initialize_copying): Add declaration. * corefile.c (_initialize_core): Add declaration. * corelow.c (_initialize_corelow): Add declaration. * cp-abi.c (_initialize_cp_abi): Add declaration. * cp-namespace.c (_initialize_cp_namespace): Add declaration. * cp-support.c (_initialize_cp_support): Add declaration. * cp-valprint.c (_initialize_cp_valprint): Add declaration. * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. * cris-tdep.c (_initialize_cris_tdep): Add declaration. * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. * csky-tdep.c (_initialize_csky_tdep): Add declaration. * ctfread.c (_initialize_ctfread): Add declaration. * d-lang.c (_initialize_d_language): Add declaration. * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. * darwin-nat.c (_initialize_darwin_nat): Add declaration. * dbxread.c (_initialize_dbxread): Add declaration. * dcache.c (_initialize_dcache): Add declaration. * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. * disasm.c (_initialize_disasm): Add declaration. * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. * dummy-frame.c (_initialize_dummy_frame): Add declaration. * dwarf-index-cache.c (_initialize_index_cache): Add declaration. * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. * dwarf2read.c (_initialize_dwarf2_read): Add declaration. * elfread.c (_initialize_elfread): Add declaration. * exec.c (_initialize_exec): Add declaration. * extension.c (_initialize_extension): Add declaration. * f-lang.c (_initialize_f_language): Add declaration. * f-valprint.c (_initialize_f_valprint): Add declaration. * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. * filesystem.c (_initialize_filesystem): Add declaration. * findcmd.c (_initialize_mem_search): Add declaration. * findvar.c (_initialize_findvar): Add declaration. * fork-child.c (_initialize_fork_child): Add declaration. * frame-base.c (_initialize_frame_base): Add declaration. * frame-unwind.c (_initialize_frame_unwind): Add declaration. * frame.c (_initialize_frame): Add declaration. * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. * frv-tdep.c (_initialize_frv_tdep): Add declaration. * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. * gcore.c (_initialize_gcore): Add declaration. * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. * gdbarch.c (_initialize_gdbarch): Add declaration. * gdbtypes.c (_initialize_gdbtypes): Add declaration. * gnu-nat.c (_initialize_gnu_nat): Add declaration. * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. * go-lang.c (_initialize_go_language): Add declaration. * go32-nat.c (_initialize_go32_nat): Add declaration. * guile/guile.c (_initialize_guile): Add declaration. * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. * i386-tdep.c (_initialize_i386_tdep): Add declaration. * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. * infcall.c (_initialize_infcall): Add declaration. * infcmd.c (_initialize_infcmd): Add declaration. * inflow.c (_initialize_inflow): Add declaration. * infrun.c (_initialize_infrun): Add declaration. * interps.c (_initialize_interpreter): Add declaration. * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. * jit.c (_initialize_jit): Add declaration. * language.c (_initialize_language): Add declaration. * linux-fork.c (_initialize_linux_fork): Add declaration. * linux-nat.c (_initialize_linux_nat): Add declaration. * linux-tdep.c (_initialize_linux_tdep): Add declaration. * linux-thread-db.c (_initialize_thread_db): Add declaration. * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. * m2-lang.c (_initialize_m2_language): Add declaration. * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. * machoread.c (_initialize_machoread): Add declaration. * macrocmd.c (_initialize_macrocmd): Add declaration. * macroscope.c (_initialize_macroscope): Add declaration. * maint-test-options.c (_initialize_maint_test_options): Add declaration. * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. * maint.c (_initialize_maint_cmds): Add declaration. * mdebugread.c (_initialize_mdebugread): Add declaration. * memattr.c (_initialize_mem): Add declaration. * mep-tdep.c (_initialize_mep_tdep): Add declaration. * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. * mi/mi-interp.c (_initialize_mi_interp): Add declaration. * mi/mi-main.c (_initialize_mi_main): Add declaration. * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. * mips-tdep.c (_initialize_mips_tdep): Add declaration. * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. * mipsread.c (_initialize_mipsread): Add declaration. * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. * nto-procfs.c (_initialize_procfs): Add declaration. * objc-lang.c (_initialize_objc_language): Add declaration. * observable.c (_initialize_observer): Add declaration. * opencl-lang.c (_initialize_opencl_language): Add declaration. * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. * osabi.c (_initialize_gdb_osabi): Add declaration. * osdata.c (_initialize_osdata): Add declaration. * p-valprint.c (_initialize_pascal_valprint): Add declaration. * parse.c (_initialize_parse): Add declaration. * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. * printcmd.c (_initialize_printcmd): Add declaration. * probe.c (_initialize_probe): Add declaration. * proc-api.c (_initialize_proc_api): Add declaration. * proc-events.c (_initialize_proc_events): Add declaration. * proc-service.c (_initialize_proc_service): Add declaration. * procfs.c (_initialize_procfs): Add declaration. * producer.c (_initialize_producer): Add declaration. * psymtab.c (_initialize_psymtab): Add declaration. * python/python.c (_initialize_python): Add declaration. * ravenscar-thread.c (_initialize_ravenscar): Add declaration. * record-btrace.c (_initialize_record_btrace): Add declaration. * record-full.c (_initialize_record_full): Add declaration. * record.c (_initialize_record): Add declaration. * regcache-dump.c (_initialize_regcache_dump): Add declaration. * regcache.c (_initialize_regcache): Add declaration. * reggroups.c (_initialize_reggroup): Add declaration. * remote-notif.c (_initialize_notif): Add declaration. * remote-sim.c (_initialize_remote_sim): Add declaration. * remote.c (_initialize_remote): Add declaration. * reverse.c (_initialize_reverse): Add declaration. * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): Add declaration. * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. * rust-exp.y (_initialize_rust_exp): Add declaration. * rx-tdep.c (_initialize_rx_tdep): Add declaration. * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. * s390-linux-nat.c (_initialize_s390_nat): Add declaration. * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. * s390-tdep.c (_initialize_s390_tdep): Add declaration. * score-tdep.c (_initialize_score_tdep): Add declaration. * ser-go32.c (_initialize_ser_dos): Add declaration. * ser-mingw.c (_initialize_ser_windows): Add declaration. * ser-pipe.c (_initialize_ser_pipe): Add declaration. * ser-tcp.c (_initialize_ser_tcp): Add declaration. * ser-uds.c (_initialize_ser_socket): Add declaration. * ser-unix.c (_initialize_ser_hardwire): Add declaration. * serial.c (_initialize_serial): Add declaration. * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. * sh-tdep.c (_initialize_sh_tdep): Add declaration. * skip.c (_initialize_step_skip): Add declaration. * sol-thread.c (_initialize_sol_thread): Add declaration. * solib-aix.c (_initialize_solib_aix): Add declaration. * solib-darwin.c (_initialize_darwin_solib): Add declaration. * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. * solib-frv.c (_initialize_frv_solib): Add declaration. * solib-svr4.c (_initialize_svr4_solib): Add declaration. * solib-target.c (_initialize_solib_target): Add declaration. * solib.c (_initialize_solib): Add declaration. * source-cache.c (_initialize_source_cache): Add declaration. * source.c (_initialize_source): Add declaration. * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. * sparc-nat.c (_initialize_sparc_nat): Add declaration. * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. * stabsread.c (_initialize_stabsread): Add declaration. * stack.c (_initialize_stack): Add declaration. * stap-probe.c (_initialize_stap_probe): Add declaration. * std-regs.c (_initialize_frame_reg): Add declaration. * symfile-debug.c (_initialize_symfile_debug): Add declaration. * symfile-mem.c (_initialize_symfile_mem): Add declaration. * symfile.c (_initialize_symfile): Add declaration. * symmisc.c (_initialize_symmisc): Add declaration. * symtab.c (_initialize_symtab): Add declaration. * target.c (_initialize_target): Add declaration. * target-connection.c (_initialize_target_connection): Add declaration. * target-dcache.c (_initialize_target_dcache): Add declaration. * target-descriptions.c (_initialize_target_descriptions): Add declaration. * thread.c (_initialize_thread): Add declaration. * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. * tracectf.c (_initialize_ctf): Add declaration. * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. * tracefile.c (_initialize_tracefile): Add declaration. * tracepoint.c (_initialize_tracepoint): Add declaration. * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. * tui/tui-interp.c (_initialize_tui_interp): Add declaration. * tui/tui-layout.c (_initialize_tui_layout): Add declaration. * tui/tui-regs.c (_initialize_tui_regs): Add declaration. * tui/tui-stack.c (_initialize_tui_stack): Add declaration. * tui/tui-win.c (_initialize_tui_win): Add declaration. * tui/tui.c (_initialize_tui): Add declaration. * typeprint.c (_initialize_typeprint): Add declaration. * ui-style.c (_initialize_ui_style): Add declaration. * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. * unittests/filtered_iterator-selftests.c (_initialize_filtered_iterator_selftests): Add declaration. * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. * unittests/main-thread-selftests.c (_initialize_main_thread_selftests): Add declaration. * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. * unittests/tui-selftests.c (_initialize_tui_selftest): Add declaration. * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. * user-regs.c (_initialize_user_regs): Add declaration. * utils.c (_initialize_utils): Add declaration. * v850-tdep.c (_initialize_v850_tdep): Add declaration. * valops.c (_initialize_valops): Add declaration. * valprint.c (_initialize_valprint): Add declaration. * value.c (_initialize_values): Add declaration. * varobj.c (_initialize_varobj): Add declaration. * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. * vax-tdep.c (_initialize_vax_tdep): Add declaration. * windows-nat.c (_initialize_windows_nat): Add declaration. (_initialize_check_for_gdb_ini): Add declaration. (_initialize_loadable): Add declaration. * windows-tdep.c (_initialize_windows_tdep): Add declaration. * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. * xcoffread.c (_initialize_xcoffread): Add declaration. * xml-support.c (_initialize_xml_support): Add declaration. * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. Change-Id: I13eec7e0ed2b3c427377a7bdb055cf46da64def9
-rw-r--r--gdb/ChangeLog409
-rw-r--r--gdb/aarch64-fbsd-nat.c3
-rw-r--r--gdb/aarch64-fbsd-tdep.c3
-rw-r--r--gdb/aarch64-linux-nat.c3
-rw-r--r--gdb/aarch64-linux-tdep.c3
-rw-r--r--gdb/aarch64-newlib-tdep.c3
-rw-r--r--gdb/aarch64-tdep.c3
-rw-r--r--gdb/ada-exp.y3
-rw-r--r--gdb/ada-lang.c3
-rw-r--r--gdb/ada-tasks.c3
-rw-r--r--gdb/agent.c3
-rw-r--r--gdb/aix-thread.c3
-rw-r--r--gdb/alpha-bsd-nat.c3
-rw-r--r--gdb/alpha-linux-nat.c3
-rw-r--r--gdb/alpha-linux-tdep.c3
-rw-r--r--gdb/alpha-nbsd-tdep.c3
-rw-r--r--gdb/alpha-obsd-tdep.c3
-rw-r--r--gdb/alpha-tdep.c3
-rw-r--r--gdb/amd64-darwin-tdep.c3
-rw-r--r--gdb/amd64-dicos-tdep.c3
-rw-r--r--gdb/amd64-fbsd-nat.c3
-rw-r--r--gdb/amd64-fbsd-tdep.c3
-rw-r--r--gdb/amd64-linux-nat.c3
-rw-r--r--gdb/amd64-linux-tdep.c3
-rw-r--r--gdb/amd64-nbsd-nat.c3
-rw-r--r--gdb/amd64-nbsd-tdep.c3
-rw-r--r--gdb/amd64-obsd-nat.c3
-rw-r--r--gdb/amd64-obsd-tdep.c3
-rw-r--r--gdb/amd64-sol2-tdep.c3
-rw-r--r--gdb/amd64-tdep.c3
-rw-r--r--gdb/amd64-windows-nat.c3
-rw-r--r--gdb/amd64-windows-tdep.c3
-rw-r--r--gdb/annotate.c3
-rw-r--r--gdb/arc-newlib-tdep.c3
-rw-r--r--gdb/arc-tdep.c3
-rw-r--r--gdb/arch-utils.c3
-rw-r--r--gdb/arm-fbsd-nat.c3
-rw-r--r--gdb/arm-fbsd-tdep.c3
-rw-r--r--gdb/arm-linux-nat.c3
-rw-r--r--gdb/arm-linux-tdep.c3
-rw-r--r--gdb/arm-nbsd-nat.c3
-rw-r--r--gdb/arm-nbsd-tdep.c3
-rw-r--r--gdb/arm-obsd-tdep.c3
-rw-r--r--gdb/arm-pikeos-tdep.c3
-rw-r--r--gdb/arm-symbian-tdep.c3
-rw-r--r--gdb/arm-tdep.c3
-rw-r--r--gdb/arm-wince-tdep.c3
-rw-r--r--gdb/auto-load.c3
-rw-r--r--gdb/auxv.c3
-rw-r--r--gdb/avr-tdep.c3
-rw-r--r--gdb/ax-gdb.c3
-rw-r--r--gdb/bfin-linux-tdep.c3
-rw-r--r--gdb/bfin-tdep.c3
-rw-r--r--gdb/break-catch-sig.c3
-rw-r--r--gdb/break-catch-syscall.c3
-rw-r--r--gdb/break-catch-throw.c3
-rw-r--r--gdb/breakpoint.c3
-rw-r--r--gdb/bsd-uthread.c3
-rw-r--r--gdb/btrace.c3
-rw-r--r--gdb/charset.c3
-rw-r--r--gdb/cli/cli-cmds.c3
-rw-r--r--gdb/cli/cli-dump.c3
-rw-r--r--gdb/cli/cli-interp.c3
-rw-r--r--gdb/cli/cli-logging.c3
-rw-r--r--gdb/cli/cli-script.c3
-rw-r--r--gdb/cli/cli-style.c1
-rw-r--r--gdb/coff-pe-read.c3
-rw-r--r--gdb/coffread.c3
-rw-r--r--gdb/compile/compile-cplus-types.c1
-rw-r--r--gdb/compile/compile.c3
-rw-r--r--gdb/complaints.c3
-rw-r--r--gdb/completer.c3
-rw-r--r--gdb/copying.c3
-rw-r--r--gdb/corefile.c3
-rw-r--r--gdb/corelow.c3
-rw-r--r--gdb/cp-abi.c3
-rw-r--r--gdb/cp-namespace.c3
-rw-r--r--gdb/cp-support.c3
-rw-r--r--gdb/cp-valprint.c3
-rw-r--r--gdb/cris-linux-tdep.c3
-rw-r--r--gdb/cris-tdep.c3
-rw-r--r--gdb/csky-linux-tdep.c3
-rw-r--r--gdb/csky-tdep.c3
-rw-r--r--gdb/ctfread.c3
-rw-r--r--gdb/d-lang.c3
-rw-r--r--gdb/darwin-nat-info.c3
-rw-r--r--gdb/darwin-nat.c1
-rw-r--r--gdb/dbxread.c3
-rw-r--r--gdb/dcache.c3
-rw-r--r--gdb/disasm-selftests.c3
-rw-r--r--gdb/disasm.c3
-rw-r--r--gdb/dtrace-probe.c3
-rw-r--r--gdb/dummy-frame.c3
-rw-r--r--gdb/dwarf-index-cache.c1
-rw-r--r--gdb/dwarf-index-write.c1
-rw-r--r--gdb/dwarf2-frame-tailcall.c3
-rw-r--r--gdb/dwarf2-frame.c3
-rw-r--r--gdb/dwarf2expr.c3
-rw-r--r--gdb/dwarf2loc.c3
-rw-r--r--gdb/dwarf2read.c3
-rw-r--r--gdb/elfread.c3
-rw-r--r--gdb/exec.c3
-rw-r--r--gdb/extension.c3
-rw-r--r--gdb/f-lang.c3
-rw-r--r--gdb/f-valprint.c3
-rw-r--r--gdb/fbsd-nat.c3
-rw-r--r--gdb/fbsd-tdep.c3
-rw-r--r--gdb/filesystem.c3
-rw-r--r--gdb/findcmd.c3
-rw-r--r--gdb/findvar.c3
-rw-r--r--gdb/fork-child.c3
-rw-r--r--gdb/frame-base.c3
-rw-r--r--gdb/frame-unwind.c3
-rw-r--r--gdb/frame.c3
-rw-r--r--gdb/frv-linux-tdep.c3
-rw-r--r--gdb/frv-tdep.c3
-rw-r--r--gdb/ft32-tdep.c3
-rw-r--r--gdb/gcore.c3
-rw-r--r--gdb/gdb-demangle.c3
-rw-r--r--gdb/gdb_bfd.c3
-rw-r--r--gdb/gdbarch-selftests.c3
-rw-r--r--gdb/gdbarch.c3
-rw-r--r--gdb/gdbtypes.c3
-rw-r--r--gdb/gnu-nat.c3
-rw-r--r--gdb/gnu-v2-abi.c3
-rw-r--r--gdb/gnu-v3-abi.c3
-rw-r--r--gdb/go-lang.c3
-rw-r--r--gdb/go32-nat.c3
-rw-r--r--gdb/guile/guile.c3
-rw-r--r--gdb/h8300-tdep.c3
-rw-r--r--gdb/hppa-linux-nat.c3
-rw-r--r--gdb/hppa-linux-tdep.c3
-rw-r--r--gdb/hppa-nbsd-nat.c3
-rw-r--r--gdb/hppa-nbsd-tdep.c3
-rw-r--r--gdb/hppa-obsd-nat.c3
-rw-r--r--gdb/hppa-obsd-tdep.c3
-rw-r--r--gdb/hppa-tdep.c3
-rw-r--r--gdb/i386-bsd-nat.c3
-rw-r--r--gdb/i386-cygwin-tdep.c3
-rw-r--r--gdb/i386-darwin-nat.c3
-rw-r--r--gdb/i386-darwin-tdep.c3
-rw-r--r--gdb/i386-dicos-tdep.c3
-rw-r--r--gdb/i386-fbsd-nat.c3
-rw-r--r--gdb/i386-fbsd-tdep.c3
-rw-r--r--gdb/i386-gnu-nat.c3
-rw-r--r--gdb/i386-gnu-tdep.c3
-rw-r--r--gdb/i386-go32-tdep.c1
-rw-r--r--gdb/i386-linux-nat.c3
-rw-r--r--gdb/i386-linux-tdep.c3
-rw-r--r--gdb/i386-nbsd-nat.c3
-rw-r--r--gdb/i386-nbsd-tdep.c3
-rw-r--r--gdb/i386-nto-tdep.c3
-rw-r--r--gdb/i386-obsd-nat.c3
-rw-r--r--gdb/i386-obsd-tdep.c3
-rw-r--r--gdb/i386-sol2-nat.c3
-rw-r--r--gdb/i386-sol2-tdep.c3
-rw-r--r--gdb/i386-tdep.c3
-rw-r--r--gdb/i386-windows-nat.c3
-rw-r--r--gdb/ia64-libunwind-tdep.c3
-rw-r--r--gdb/ia64-linux-nat.c3
-rw-r--r--gdb/ia64-linux-tdep.c3
-rw-r--r--gdb/ia64-tdep.c3
-rw-r--r--gdb/ia64-vms-tdep.c3
-rw-r--r--gdb/infcall.c3
-rw-r--r--gdb/infcmd.c3
-rw-r--r--gdb/inflow.c3
-rw-r--r--gdb/infrun.c3
-rw-r--r--gdb/interps.c3
-rw-r--r--gdb/iq2000-tdep.c3
-rw-r--r--gdb/jit.c3
-rw-r--r--gdb/language.c3
-rw-r--r--gdb/linux-fork.c3
-rw-r--r--gdb/linux-nat.c3
-rw-r--r--gdb/linux-tdep.c3
-rw-r--r--gdb/linux-thread-db.c3
-rw-r--r--gdb/lm32-tdep.c3
-rw-r--r--gdb/m2-lang.c3
-rw-r--r--gdb/m32c-tdep.c3
-rw-r--r--gdb/m32r-linux-nat.c3
-rw-r--r--gdb/m32r-linux-tdep.c3
-rw-r--r--gdb/m32r-tdep.c3
-rw-r--r--gdb/m68hc11-tdep.c3
-rw-r--r--gdb/m68k-bsd-nat.c3
-rw-r--r--gdb/m68k-bsd-tdep.c3
-rw-r--r--gdb/m68k-linux-nat.c3
-rw-r--r--gdb/m68k-linux-tdep.c3
-rw-r--r--gdb/m68k-tdep.c3
-rw-r--r--gdb/machoread.c3
-rw-r--r--gdb/macrocmd.c3
-rw-r--r--gdb/macroscope.c3
-rw-r--r--gdb/maint-test-options.c1
-rw-r--r--gdb/maint-test-settings.c3
-rw-r--r--gdb/maint.c3
-rw-r--r--gdb/mdebugread.c3
-rw-r--r--gdb/memattr.c3
-rw-r--r--gdb/mep-tdep.c3
-rw-r--r--gdb/mi/mi-cmd-env.c3
-rw-r--r--gdb/mi/mi-cmds.c3
-rw-r--r--gdb/mi/mi-interp.c3
-rw-r--r--gdb/mi/mi-main.c3
-rw-r--r--gdb/microblaze-linux-tdep.c3
-rw-r--r--gdb/microblaze-tdep.c3
-rw-r--r--gdb/mips-fbsd-nat.c3
-rw-r--r--gdb/mips-fbsd-tdep.c3
-rw-r--r--gdb/mips-linux-nat.c3
-rw-r--r--gdb/mips-linux-tdep.c3
-rw-r--r--gdb/mips-nbsd-nat.c3
-rw-r--r--gdb/mips-nbsd-tdep.c3
-rw-r--r--gdb/mips-sde-tdep.c3
-rw-r--r--gdb/mips-tdep.c3
-rw-r--r--gdb/mips64-obsd-nat.c3
-rw-r--r--gdb/mips64-obsd-tdep.c3
-rw-r--r--gdb/mipsread.c3
-rw-r--r--gdb/mn10300-linux-tdep.c3
-rw-r--r--gdb/mn10300-tdep.c3
-rw-r--r--gdb/moxie-tdep.c3
-rw-r--r--gdb/msp430-tdep.c3
-rw-r--r--gdb/nds32-tdep.c3
-rw-r--r--gdb/nios2-linux-tdep.c3
-rw-r--r--gdb/nios2-tdep.c3
-rw-r--r--gdb/nto-procfs.c3
-rw-r--r--gdb/objc-lang.c3
-rw-r--r--gdb/observable.c3
-rw-r--r--gdb/opencl-lang.c3
-rw-r--r--gdb/or1k-linux-tdep.c3
-rw-r--r--gdb/or1k-tdep.c3
-rw-r--r--gdb/osabi.c3
-rw-r--r--gdb/osdata.c3
-rw-r--r--gdb/p-valprint.c3
-rw-r--r--gdb/parse.c3
-rw-r--r--gdb/ppc-fbsd-nat.c3
-rw-r--r--gdb/ppc-fbsd-tdep.c3
-rw-r--r--gdb/ppc-linux-nat.c3
-rw-r--r--gdb/ppc-linux-tdep.c3
-rw-r--r--gdb/ppc-nbsd-nat.c3
-rw-r--r--gdb/ppc-nbsd-tdep.c3
-rw-r--r--gdb/ppc-obsd-nat.c3
-rw-r--r--gdb/ppc-obsd-tdep.c3
-rw-r--r--gdb/printcmd.c3
-rw-r--r--gdb/probe.c3
-rw-r--r--gdb/proc-api.c3
-rw-r--r--gdb/proc-events.c3
-rw-r--r--gdb/proc-service.c3
-rw-r--r--gdb/procfs.c3
-rw-r--r--gdb/producer.c1
-rw-r--r--gdb/psymtab.c3
-rw-r--r--gdb/python/python.c3
-rw-r--r--gdb/ravenscar-thread.c1
-rw-r--r--gdb/record-btrace.c3
-rw-r--r--gdb/record-full.c3
-rw-r--r--gdb/record.c3
-rw-r--r--gdb/regcache-dump.c3
-rw-r--r--gdb/regcache.c3
-rw-r--r--gdb/reggroups.c3
-rw-r--r--gdb/remote-notif.c3
-rw-r--r--gdb/remote-sim.c3
-rw-r--r--gdb/remote.c3
-rw-r--r--gdb/reverse.c3
-rw-r--r--gdb/riscv-fbsd-nat.c3
-rw-r--r--gdb/riscv-fbsd-tdep.c3
-rw-r--r--gdb/riscv-linux-nat.c3
-rw-r--r--gdb/riscv-linux-tdep.c3
-rw-r--r--gdb/riscv-tdep.c3
-rw-r--r--gdb/rl78-tdep.c3
-rw-r--r--gdb/rs6000-aix-tdep.c3
-rw-r--r--gdb/rs6000-lynx178-tdep.c3
-rw-r--r--gdb/rs6000-nat.c3
-rw-r--r--gdb/rs6000-tdep.c3
-rw-r--r--gdb/run-on-main-thread.c1
-rw-r--r--gdb/rust-exp.y3
-rw-r--r--gdb/rx-tdep.c3
-rw-r--r--gdb/s12z-tdep.c3
-rw-r--r--gdb/s390-linux-nat.c3
-rw-r--r--gdb/s390-linux-tdep.c3
-rw-r--r--gdb/s390-tdep.c3
-rw-r--r--gdb/score-tdep.c3
-rw-r--r--gdb/ser-go32.c3
-rw-r--r--gdb/ser-mingw.c3
-rw-r--r--gdb/ser-pipe.c3
-rw-r--r--gdb/ser-tcp.c3
-rw-r--r--gdb/ser-uds.c3
-rw-r--r--gdb/ser-unix.c3
-rw-r--r--gdb/serial.c3
-rw-r--r--gdb/sh-linux-tdep.c3
-rw-r--r--gdb/sh-nbsd-nat.c3
-rw-r--r--gdb/sh-nbsd-tdep.c3
-rw-r--r--gdb/sh-tdep.c3
-rw-r--r--gdb/skip.c3
-rw-r--r--gdb/sol-thread.c3
-rw-r--r--gdb/solib-aix.c3
-rw-r--r--gdb/solib-darwin.c3
-rw-r--r--gdb/solib-dsbt.c3
-rw-r--r--gdb/solib-frv.c3
-rw-r--r--gdb/solib-svr4.c3
-rw-r--r--gdb/solib-target.c3
-rw-r--r--gdb/solib.c3
-rw-r--r--gdb/source-cache.c1
-rw-r--r--gdb/source.c3
-rw-r--r--gdb/sparc-linux-nat.c3
-rw-r--r--gdb/sparc-linux-tdep.c3
-rw-r--r--gdb/sparc-nat.c3
-rw-r--r--gdb/sparc-nbsd-nat.c3
-rw-r--r--gdb/sparc-nbsd-tdep.c3
-rw-r--r--gdb/sparc-obsd-tdep.c3
-rw-r--r--gdb/sparc-sol2-tdep.c3
-rw-r--r--gdb/sparc-tdep.c3
-rw-r--r--gdb/sparc64-fbsd-nat.c3
-rw-r--r--gdb/sparc64-fbsd-tdep.c3
-rw-r--r--gdb/sparc64-linux-nat.c3
-rw-r--r--gdb/sparc64-linux-tdep.c3
-rw-r--r--gdb/sparc64-nat.c3
-rw-r--r--gdb/sparc64-nbsd-nat.c3
-rw-r--r--gdb/sparc64-nbsd-tdep.c3
-rw-r--r--gdb/sparc64-obsd-nat.c3
-rw-r--r--gdb/sparc64-obsd-tdep.c3
-rw-r--r--gdb/sparc64-sol2-tdep.c3
-rw-r--r--gdb/sparc64-tdep.c3
-rw-r--r--gdb/stabsread.c3
-rw-r--r--gdb/stack.c3
-rw-r--r--gdb/stap-probe.c3
-rw-r--r--gdb/std-regs.c3
-rw-r--r--gdb/symfile-debug.c3
-rw-r--r--gdb/symfile-mem.c3
-rw-r--r--gdb/symfile.c3
-rw-r--r--gdb/symmisc.c3
-rw-r--r--gdb/symtab.c3
-rw-r--r--gdb/target-connection.c2
-rw-r--r--gdb/target-dcache.c3
-rw-r--r--gdb/target-descriptions.c3
-rw-r--r--gdb/target.c2
-rw-r--r--gdb/thread.c3
-rw-r--r--gdb/tic6x-linux-tdep.c3
-rw-r--r--gdb/tic6x-tdep.c3
-rw-r--r--gdb/tilegx-linux-nat.c3
-rw-r--r--gdb/tilegx-linux-tdep.c3
-rw-r--r--gdb/tilegx-tdep.c3
-rw-r--r--gdb/tracectf.c3
-rw-r--r--gdb/tracefile-tfile.c3
-rw-r--r--gdb/tracefile.c3
-rw-r--r--gdb/tracepoint.c3
-rw-r--r--gdb/tui/tui-hooks.c3
-rw-r--r--gdb/tui/tui-interp.c3
-rw-r--r--gdb/tui/tui-layout.c3
-rw-r--r--gdb/tui/tui-regs.c3
-rw-r--r--gdb/tui/tui-stack.c3
-rw-r--r--gdb/tui/tui-win.c3
-rw-r--r--gdb/tui/tui.c3
-rw-r--r--gdb/typeprint.c3
-rw-r--r--gdb/ui-style.c1
-rw-r--r--gdb/unittests/array-view-selftests.c1
-rw-r--r--gdb/unittests/child-path-selftests.c1
-rw-r--r--gdb/unittests/cli-utils-selftests.c1
-rw-r--r--gdb/unittests/common-utils-selftests.c1
-rw-r--r--gdb/unittests/copy_bitwise-selftests.c1
-rw-r--r--gdb/unittests/environ-selftests.c1
-rw-r--r--gdb/unittests/filtered_iterator-selftests.c1
-rw-r--r--gdb/unittests/format_pieces-selftests.c1
-rw-r--r--gdb/unittests/function-view-selftests.c1
-rw-r--r--gdb/unittests/help-doc-selftests.c1
-rw-r--r--gdb/unittests/lookup_name_info-selftests.c1
-rw-r--r--gdb/unittests/main-thread-selftests.c1
-rw-r--r--gdb/unittests/memory-map-selftests.c1
-rw-r--r--gdb/unittests/memrange-selftests.c1
-rw-r--r--gdb/unittests/mkdir-recursive-selftests.c1
-rw-r--r--gdb/unittests/observable-selftests.c1
-rw-r--r--gdb/unittests/offset-type-selftests.c1
-rw-r--r--gdb/unittests/optional-selftests.c1
-rw-r--r--gdb/unittests/parse-connection-spec-selftests.c1
-rw-r--r--gdb/unittests/rsp-low-selftests.c1
-rw-r--r--gdb/unittests/scoped_fd-selftests.c1
-rw-r--r--gdb/unittests/scoped_mmap-selftests.c1
-rw-r--r--gdb/unittests/scoped_restore-selftests.c1
-rw-r--r--gdb/unittests/string_view-selftests.c1
-rw-r--r--gdb/unittests/style-selftests.c1
-rw-r--r--gdb/unittests/tracepoint-selftests.c1
-rw-r--r--gdb/unittests/tui-selftests.c1
-rw-r--r--gdb/unittests/unpack-selftests.c1
-rw-r--r--gdb/unittests/utils-selftests.c1
-rw-r--r--gdb/unittests/vec-utils-selftests.c1
-rw-r--r--gdb/unittests/xml-utils-selftests.c1
-rw-r--r--gdb/user-regs.c3
-rw-r--r--gdb/utils.c3
-rw-r--r--gdb/v850-tdep.c3
-rw-r--r--gdb/valops.c3
-rw-r--r--gdb/valprint.c3
-rw-r--r--gdb/value.c3
-rw-r--r--gdb/varobj.c3
-rw-r--r--gdb/vax-bsd-nat.c3
-rw-r--r--gdb/vax-nbsd-tdep.c3
-rw-r--r--gdb/vax-tdep.c3
-rw-r--r--gdb/windows-nat.c9
-rw-r--r--gdb/windows-tdep.c3
-rw-r--r--gdb/x86-bsd-nat.c1
-rw-r--r--gdb/x86-linux-nat.c1
-rw-r--r--gdb/xcoffread.c3
-rw-r--r--gdb/xml-support.c4
-rw-r--r--gdb/xstormy16-tdep.c3
-rw-r--r--gdb/xtensa-linux-nat.c3
-rw-r--r--gdb/xtensa-linux-tdep.c3
-rw-r--r--gdb/xtensa-tdep.c3
400 files changed, 1167 insertions, 354 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 78387ff010a..a9db32253da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,412 @@
+2020-01-13 Simon Marchi <simon.marchi@efficios.com>
+
+ * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
+ * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
+ * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
+ * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
+ * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
+ * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
+ * ada-exp.y (_initialize_ada_exp): Add declaration.
+ * ada-lang.c (_initialize_ada_language): Add declaration.
+ * ada-tasks.c (_initialize_tasks): Add declaration.
+ * agent.c (_initialize_agent): Add declaration.
+ * aix-thread.c (_initialize_aix_thread): Add declaration.
+ * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
+ * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
+ * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
+ * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
+ * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
+ * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
+ * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
+ * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
+ * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
+ * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
+ * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
+ * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
+ * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
+ * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
+ * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
+ * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
+ * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
+ * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
+ * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
+ * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
+ * annotate.c (_initialize_annotate): Add declaration.
+ * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
+ * arc-tdep.c (_initialize_arc_tdep): Add declaration.
+ * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
+ * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
+ * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
+ * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
+ * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
+ * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
+ * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
+ * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
+ * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
+ * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
+ * arm-tdep.c (_initialize_arm_tdep): Add declaration.
+ * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
+ * auto-load.c (_initialize_auto_load): Add declaration.
+ * auxv.c (_initialize_auxv): Add declaration.
+ * avr-tdep.c (_initialize_avr_tdep): Add declaration.
+ * ax-gdb.c (_initialize_ax_gdb): Add declaration.
+ * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
+ * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
+ * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
+ * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
+ * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
+ * breakpoint.c (_initialize_breakpoint): Add declaration.
+ * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
+ * btrace.c (_initialize_btrace): Add declaration.
+ * charset.c (_initialize_charset): Add declaration.
+ * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
+ * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
+ * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
+ * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
+ * cli/cli-script.c (_initialize_cli_script): Add declaration.
+ * cli/cli-style.c (_initialize_cli_style): Add declaration.
+ * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
+ * coffread.c (_initialize_coffread): Add declaration.
+ * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
+ * compile/compile.c (_initialize_compile): Add declaration.
+ * complaints.c (_initialize_complaints): Add declaration.
+ * completer.c (_initialize_completer): Add declaration.
+ * copying.c (_initialize_copying): Add declaration.
+ * corefile.c (_initialize_core): Add declaration.
+ * corelow.c (_initialize_corelow): Add declaration.
+ * cp-abi.c (_initialize_cp_abi): Add declaration.
+ * cp-namespace.c (_initialize_cp_namespace): Add declaration.
+ * cp-support.c (_initialize_cp_support): Add declaration.
+ * cp-valprint.c (_initialize_cp_valprint): Add declaration.
+ * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
+ * cris-tdep.c (_initialize_cris_tdep): Add declaration.
+ * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
+ * csky-tdep.c (_initialize_csky_tdep): Add declaration.
+ * ctfread.c (_initialize_ctfread): Add declaration.
+ * d-lang.c (_initialize_d_language): Add declaration.
+ * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
+ * darwin-nat.c (_initialize_darwin_nat): Add declaration.
+ * dbxread.c (_initialize_dbxread): Add declaration.
+ * dcache.c (_initialize_dcache): Add declaration.
+ * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
+ * disasm.c (_initialize_disasm): Add declaration.
+ * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
+ * dummy-frame.c (_initialize_dummy_frame): Add declaration.
+ * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
+ * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
+ * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
+ * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
+ * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
+ * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
+ * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
+ * elfread.c (_initialize_elfread): Add declaration.
+ * exec.c (_initialize_exec): Add declaration.
+ * extension.c (_initialize_extension): Add declaration.
+ * f-lang.c (_initialize_f_language): Add declaration.
+ * f-valprint.c (_initialize_f_valprint): Add declaration.
+ * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
+ * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
+ * filesystem.c (_initialize_filesystem): Add declaration.
+ * findcmd.c (_initialize_mem_search): Add declaration.
+ * findvar.c (_initialize_findvar): Add declaration.
+ * fork-child.c (_initialize_fork_child): Add declaration.
+ * frame-base.c (_initialize_frame_base): Add declaration.
+ * frame-unwind.c (_initialize_frame_unwind): Add declaration.
+ * frame.c (_initialize_frame): Add declaration.
+ * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
+ * frv-tdep.c (_initialize_frv_tdep): Add declaration.
+ * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
+ * gcore.c (_initialize_gcore): Add declaration.
+ * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
+ * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
+ * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
+ * gdbarch.c (_initialize_gdbarch): Add declaration.
+ * gdbtypes.c (_initialize_gdbtypes): Add declaration.
+ * gnu-nat.c (_initialize_gnu_nat): Add declaration.
+ * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
+ * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
+ * go-lang.c (_initialize_go_language): Add declaration.
+ * go32-nat.c (_initialize_go32_nat): Add declaration.
+ * guile/guile.c (_initialize_guile): Add declaration.
+ * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
+ * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
+ * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
+ * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
+ * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
+ * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
+ * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
+ * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
+ * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
+ * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
+ * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
+ * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
+ * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
+ * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
+ * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
+ * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
+ * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
+ * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
+ * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
+ * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
+ * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
+ * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
+ * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
+ * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
+ * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
+ * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
+ * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
+ * i386-tdep.c (_initialize_i386_tdep): Add declaration.
+ * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
+ * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
+ * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
+ * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
+ * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
+ * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
+ * infcall.c (_initialize_infcall): Add declaration.
+ * infcmd.c (_initialize_infcmd): Add declaration.
+ * inflow.c (_initialize_inflow): Add declaration.
+ * infrun.c (_initialize_infrun): Add declaration.
+ * interps.c (_initialize_interpreter): Add declaration.
+ * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
+ * jit.c (_initialize_jit): Add declaration.
+ * language.c (_initialize_language): Add declaration.
+ * linux-fork.c (_initialize_linux_fork): Add declaration.
+ * linux-nat.c (_initialize_linux_nat): Add declaration.
+ * linux-tdep.c (_initialize_linux_tdep): Add declaration.
+ * linux-thread-db.c (_initialize_thread_db): Add declaration.
+ * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
+ * m2-lang.c (_initialize_m2_language): Add declaration.
+ * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
+ * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
+ * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
+ * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
+ * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
+ * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
+ * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
+ * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
+ * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
+ * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
+ * machoread.c (_initialize_machoread): Add declaration.
+ * macrocmd.c (_initialize_macrocmd): Add declaration.
+ * macroscope.c (_initialize_macroscope): Add declaration.
+ * maint-test-options.c (_initialize_maint_test_options): Add declaration.
+ * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
+ * maint.c (_initialize_maint_cmds): Add declaration.
+ * mdebugread.c (_initialize_mdebugread): Add declaration.
+ * memattr.c (_initialize_mem): Add declaration.
+ * mep-tdep.c (_initialize_mep_tdep): Add declaration.
+ * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
+ * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
+ * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
+ * mi/mi-main.c (_initialize_mi_main): Add declaration.
+ * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
+ * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
+ * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
+ * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
+ * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
+ * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
+ * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
+ * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
+ * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
+ * mips-tdep.c (_initialize_mips_tdep): Add declaration.
+ * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
+ * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
+ * mipsread.c (_initialize_mipsread): Add declaration.
+ * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
+ * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
+ * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
+ * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
+ * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
+ * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
+ * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
+ * nto-procfs.c (_initialize_procfs): Add declaration.
+ * objc-lang.c (_initialize_objc_language): Add declaration.
+ * observable.c (_initialize_observer): Add declaration.
+ * opencl-lang.c (_initialize_opencl_language): Add declaration.
+ * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
+ * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
+ * osabi.c (_initialize_gdb_osabi): Add declaration.
+ * osdata.c (_initialize_osdata): Add declaration.
+ * p-valprint.c (_initialize_pascal_valprint): Add declaration.
+ * parse.c (_initialize_parse): Add declaration.
+ * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
+ * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
+ * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
+ * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
+ * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
+ * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
+ * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
+ * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
+ * printcmd.c (_initialize_printcmd): Add declaration.
+ * probe.c (_initialize_probe): Add declaration.
+ * proc-api.c (_initialize_proc_api): Add declaration.
+ * proc-events.c (_initialize_proc_events): Add declaration.
+ * proc-service.c (_initialize_proc_service): Add declaration.
+ * procfs.c (_initialize_procfs): Add declaration.
+ * producer.c (_initialize_producer): Add declaration.
+ * psymtab.c (_initialize_psymtab): Add declaration.
+ * python/python.c (_initialize_python): Add declaration.
+ * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
+ * record-btrace.c (_initialize_record_btrace): Add declaration.
+ * record-full.c (_initialize_record_full): Add declaration.
+ * record.c (_initialize_record): Add declaration.
+ * regcache-dump.c (_initialize_regcache_dump): Add declaration.
+ * regcache.c (_initialize_regcache): Add declaration.
+ * reggroups.c (_initialize_reggroup): Add declaration.
+ * remote-notif.c (_initialize_notif): Add declaration.
+ * remote-sim.c (_initialize_remote_sim): Add declaration.
+ * remote.c (_initialize_remote): Add declaration.
+ * reverse.c (_initialize_reverse): Add declaration.
+ * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
+ * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
+ * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
+ * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
+ * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
+ * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
+ * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
+ * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
+ Add declaration.
+ * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
+ * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
+ * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
+ * rust-exp.y (_initialize_rust_exp): Add declaration.
+ * rx-tdep.c (_initialize_rx_tdep): Add declaration.
+ * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
+ * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
+ * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
+ * s390-tdep.c (_initialize_s390_tdep): Add declaration.
+ * score-tdep.c (_initialize_score_tdep): Add declaration.
+ * ser-go32.c (_initialize_ser_dos): Add declaration.
+ * ser-mingw.c (_initialize_ser_windows): Add declaration.
+ * ser-pipe.c (_initialize_ser_pipe): Add declaration.
+ * ser-tcp.c (_initialize_ser_tcp): Add declaration.
+ * ser-uds.c (_initialize_ser_socket): Add declaration.
+ * ser-unix.c (_initialize_ser_hardwire): Add declaration.
+ * serial.c (_initialize_serial): Add declaration.
+ * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
+ * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
+ * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
+ * sh-tdep.c (_initialize_sh_tdep): Add declaration.
+ * skip.c (_initialize_step_skip): Add declaration.
+ * sol-thread.c (_initialize_sol_thread): Add declaration.
+ * solib-aix.c (_initialize_solib_aix): Add declaration.
+ * solib-darwin.c (_initialize_darwin_solib): Add declaration.
+ * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
+ * solib-frv.c (_initialize_frv_solib): Add declaration.
+ * solib-svr4.c (_initialize_svr4_solib): Add declaration.
+ * solib-target.c (_initialize_solib_target): Add declaration.
+ * solib.c (_initialize_solib): Add declaration.
+ * source-cache.c (_initialize_source_cache): Add declaration.
+ * source.c (_initialize_source): Add declaration.
+ * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
+ * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
+ * sparc-nat.c (_initialize_sparc_nat): Add declaration.
+ * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
+ * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
+ * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
+ * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
+ * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
+ * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
+ * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
+ * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
+ * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
+ * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
+ * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
+ * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
+ * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
+ * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
+ * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
+ * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
+ * stabsread.c (_initialize_stabsread): Add declaration.
+ * stack.c (_initialize_stack): Add declaration.
+ * stap-probe.c (_initialize_stap_probe): Add declaration.
+ * std-regs.c (_initialize_frame_reg): Add declaration.
+ * symfile-debug.c (_initialize_symfile_debug): Add declaration.
+ * symfile-mem.c (_initialize_symfile_mem): Add declaration.
+ * symfile.c (_initialize_symfile): Add declaration.
+ * symmisc.c (_initialize_symmisc): Add declaration.
+ * symtab.c (_initialize_symtab): Add declaration.
+ * target.c (_initialize_target): Add declaration.
+ * target-connection.c (_initialize_target_connection): Add
+ declaration.
+ * target-dcache.c (_initialize_target_dcache): Add declaration.
+ * target-descriptions.c (_initialize_target_descriptions): Add declaration.
+ * thread.c (_initialize_thread): Add declaration.
+ * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
+ * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
+ * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
+ * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
+ * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
+ * tracectf.c (_initialize_ctf): Add declaration.
+ * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
+ * tracefile.c (_initialize_tracefile): Add declaration.
+ * tracepoint.c (_initialize_tracepoint): Add declaration.
+ * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
+ * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
+ * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
+ * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
+ * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
+ * tui/tui-win.c (_initialize_tui_win): Add declaration.
+ * tui/tui.c (_initialize_tui): Add declaration.
+ * typeprint.c (_initialize_typeprint): Add declaration.
+ * ui-style.c (_initialize_ui_style): Add declaration.
+ * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
+ * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
+ * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
+ * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
+ * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
+ * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
+ * unittests/filtered_iterator-selftests.c
+ (_initialize_filtered_iterator_selftests): Add declaration.
+ * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
+ * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
+ * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
+ * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
+ * unittests/main-thread-selftests.c
+ (_initialize_main_thread_selftests): Add declaration.
+ * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
+ * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
+ * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
+ * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
+ * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
+ * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
+ * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
+ * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
+ * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
+ * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
+ * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
+ * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
+ * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
+ * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
+ * unittests/tui-selftests.c (_initialize_tui_selftest): Add
+ declaration.
+ * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
+ * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
+ * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
+ * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
+ * user-regs.c (_initialize_user_regs): Add declaration.
+ * utils.c (_initialize_utils): Add declaration.
+ * v850-tdep.c (_initialize_v850_tdep): Add declaration.
+ * valops.c (_initialize_valops): Add declaration.
+ * valprint.c (_initialize_valprint): Add declaration.
+ * value.c (_initialize_values): Add declaration.
+ * varobj.c (_initialize_varobj): Add declaration.
+ * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
+ * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
+ * vax-tdep.c (_initialize_vax_tdep): Add declaration.
+ * windows-nat.c (_initialize_windows_nat): Add declaration.
+ (_initialize_check_for_gdb_ini): Add declaration.
+ (_initialize_loadable): Add declaration.
+ * windows-tdep.c (_initialize_windows_tdep): Add declaration.
+ * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
+ * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
+ * xcoffread.c (_initialize_xcoffread): Add declaration.
+ * xml-support.c (_initialize_xml_support): Add declaration.
+ * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
+ * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
+ * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
+ * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
+
2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
* regformats/regdat.sh: Generate declaration for init function.
diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c
index 51fd8580027..5cd2ccd46bf 100644
--- a/gdb/aarch64-fbsd-nat.c
+++ b/gdb/aarch64-fbsd-nat.c
@@ -124,8 +124,9 @@ aarch64_fbsd_nat_target::store_registers (struct regcache *regcache,
}
}
+void _initialize_aarch64_fbsd_nat ();
void
-_initialize_aarch64_fbsd_nat (void)
+_initialize_aarch64_fbsd_nat ()
{
add_inf_child_target (&the_aarch64_fbsd_nat_target);
}
diff --git a/gdb/aarch64-fbsd-tdep.c b/gdb/aarch64-fbsd-tdep.c
index 68ecfc30e8d..b923c5c4740 100644
--- a/gdb/aarch64-fbsd-tdep.c
+++ b/gdb/aarch64-fbsd-tdep.c
@@ -170,8 +170,9 @@ aarch64_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, aarch64_fbsd_iterate_over_regset_sections);
}
+void _initialize_aarch64_fbsd_tdep ();
void
-_initialize_aarch64_fbsd_tdep (void)
+_initialize_aarch64_fbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_FREEBSD,
aarch64_fbsd_init_abi);
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index b385b5866c0..77d5863a56a 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -996,8 +996,9 @@ triggers a breakpoint or watchpoint."),
&maintenance_show_cmdlist);
}
+void _initialize_aarch64_linux_nat ();
void
-_initialize_aarch64_linux_nat (void)
+_initialize_aarch64_linux_nat ()
{
add_show_debug_regs_command ();
diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index b854dcdd58c..67046c4271a 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -1665,8 +1665,9 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_gcc_target_options (gdbarch, aarch64_linux_gcc_target_options);
}
+void _initialize_aarch64_linux_tdep ();
void
-_initialize_aarch64_linux_tdep (void)
+_initialize_aarch64_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_LINUX,
aarch64_linux_init_abi);
diff --git a/gdb/aarch64-newlib-tdep.c b/gdb/aarch64-newlib-tdep.c
index 15537bd8d8c..456bae529fe 100644
--- a/gdb/aarch64-newlib-tdep.c
+++ b/gdb/aarch64-newlib-tdep.c
@@ -36,8 +36,9 @@ aarch64_newlib_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->jb_pc = 11;
}
+void _initialize_aarch64_newlib_tdep ();
void
-_initialize_aarch64_newlib_tdep (void)
+_initialize_aarch64_newlib_tdep ()
{
gdbarch_register_osabi (bfd_arch_aarch64, 0, GDB_OSABI_NEWLIB,
aarch64_newlib_init_abi);
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index da41e221307..8451a916dc3 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -3406,8 +3406,9 @@ static void aarch64_process_record_test (void);
}
#endif
+void _initialize_aarch64_tdep ();
void
-_initialize_aarch64_tdep (void)
+_initialize_aarch64_tdep ()
{
gdbarch_register (bfd_arch_aarch64, aarch64_gdbarch_init,
aarch64_dump_tdep);
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index 01b5c238750..c5e1e14299e 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -1456,8 +1456,9 @@ type_system_address (struct parser_state *par_state)
return type != NULL ? type : parse_type (par_state)->builtin_data_ptr;
}
+void _initialize_ada_exp ();
void
-_initialize_ada_exp (void)
+_initialize_ada_exp ()
{
obstack_init (&temp_parse_space);
}
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 334f2917e3d..c5b5fdf169f 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -14229,8 +14229,9 @@ ada_free_objfile_observer (struct objfile *objfile)
ada_clear_symbol_cache ();
}
+void _initialize_ada_language ();
void
-_initialize_ada_language (void)
+_initialize_ada_language ()
{
initialize_ada_catchpoint_ops ();
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index 0b7a8eb4ad4..0a81c3c6922 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -1455,8 +1455,9 @@ ada_tasks_new_objfile_observer (struct objfile *objfile)
ada_tasks_invalidate_inferior_data (inf);
}
+void _initialize_tasks ();
void
-_initialize_tasks (void)
+_initialize_tasks ()
{
/* Attach various observers. */
gdb::observers::normal_stop.attach (ada_tasks_normal_stop_observer);
diff --git a/gdb/agent.c b/gdb/agent.c
index ccf8c44a361..77ece234996 100644
--- a/gdb/agent.c
+++ b/gdb/agent.c
@@ -74,8 +74,9 @@ agent_new_objfile (struct objfile *objfile)
agent_look_up_symbols (objfile);
}
+void _initialize_agent ();
void
-_initialize_agent (void)
+_initialize_agent ()
{
gdb::observers::new_objfile.attach (agent_new_objfile);
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index b9b25d5e3cb..f2bd05fef22 100644
--- a/gdb/aix-thread.c
+++ b/gdb/aix-thread.c
@@ -1834,8 +1834,9 @@ aix_thread_target::get_ada_task_ptid (long lwp, long thread)
/* Module startup initialization function, automagically called by
init.c. */
+void _initialize_aix_thread ();
void
-_initialize_aix_thread (void)
+_initialize_aix_thread ()
{
/* Notice when object files get loaded and unloaded. */
gdb::observers::new_objfile.attach (new_objfile);
diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c
index 71ae8e1419c..747c3c5abb6 100644
--- a/gdb/alpha-bsd-nat.c
+++ b/gdb/alpha-bsd-nat.c
@@ -192,8 +192,9 @@ alphabsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
}
+void _initialize_alphabsd_nat ();
void
-_initialize_alphabsd_nat (void)
+_initialize_alphabsd_nat ()
{
add_inf_child_target (&the_alpha_bsd_nat_target);
diff --git a/gdb/alpha-linux-nat.c b/gdb/alpha-linux-nat.c
index 4f881532ceb..5fd7a932ce1 100644
--- a/gdb/alpha-linux-nat.c
+++ b/gdb/alpha-linux-nat.c
@@ -101,8 +101,9 @@ alpha_linux_nat_target::register_u_offset (struct gdbarch *gdbarch,
return FPR_BASE + regno - gdbarch_fp0_regnum (gdbarch);
}
+void _initialize_alpha_linux_nat ();
void
-_initialize_alpha_linux_nat (void)
+_initialize_alpha_linux_nat ()
{
linux_target = &the_alpha_linux_nat_target;
add_inf_child_target (&the_alpha_linux_nat_target);
diff --git a/gdb/alpha-linux-tdep.c b/gdb/alpha-linux-tdep.c
index aa0342164f2..589b8956705 100644
--- a/gdb/alpha-linux-tdep.c
+++ b/gdb/alpha-linux-tdep.c
@@ -389,8 +389,9 @@ alpha_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
alpha_linux_gdb_signal_to_target);
}
+void _initialize_alpha_linux_tdep ();
void
-_initialize_alpha_linux_tdep (void)
+_initialize_alpha_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_LINUX,
alpha_linux_init_abi);
diff --git a/gdb/alpha-nbsd-tdep.c b/gdb/alpha-nbsd-tdep.c
index 8e8c4534192..ab9240e35da 100644
--- a/gdb/alpha-nbsd-tdep.c
+++ b/gdb/alpha-nbsd-tdep.c
@@ -278,8 +278,9 @@ alphanbsd_init_abi (struct gdbarch_info info,
}
+void _initialize_alphanbsd_tdep ();
void
-_initialize_alphanbsd_tdep (void)
+_initialize_alphanbsd_tdep ()
{
/* Even though NetBSD/alpha used ELF since day one, it used the
traditional a.out-style core dump format before NetBSD 1.6, but
diff --git a/gdb/alpha-obsd-tdep.c b/gdb/alpha-obsd-tdep.c
index 340e804b4c7..99d9855c7c2 100644
--- a/gdb/alpha-obsd-tdep.c
+++ b/gdb/alpha-obsd-tdep.c
@@ -126,8 +126,9 @@ alphaobsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
}
+void _initialize_alphaobsd_tdep ();
void
-_initialize_alphaobsd_tdep (void)
+_initialize_alphaobsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_OPENBSD,
alphaobsd_init_abi);
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index 25acd18a1f8..390f865edad 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -1821,8 +1821,9 @@ alpha_dwarf2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
frame_base_append_sniffer (gdbarch, dwarf2_frame_base_sniffer);
}
+void _initialize_alpha_tdep ();
void
-_initialize_alpha_tdep (void)
+_initialize_alpha_tdep ()
{
gdbarch_register (bfd_arch_alpha, alpha_gdbarch_init, NULL);
diff --git a/gdb/amd64-darwin-tdep.c b/gdb/amd64-darwin-tdep.c
index 912ef318285..5e8f352ffc9 100644
--- a/gdb/amd64-darwin-tdep.c
+++ b/gdb/amd64-darwin-tdep.c
@@ -116,8 +116,9 @@ x86_darwin_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
set_solib_ops (gdbarch, &darwin_so_ops);
}
+void _initialize_amd64_darwin_tdep ();
void
-_initialize_amd64_darwin_tdep (void)
+_initialize_amd64_darwin_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
GDB_OSABI_DARWIN, x86_darwin_init_abi_64);
diff --git a/gdb/amd64-dicos-tdep.c b/gdb/amd64-dicos-tdep.c
index e3aa5a29d90..687d1f26cba 100644
--- a/gdb/amd64-dicos-tdep.c
+++ b/gdb/amd64-dicos-tdep.c
@@ -46,8 +46,9 @@ amd64_dicos_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_amd64_dicos_tdep ();
void
-_initialize_amd64_dicos_tdep (void)
+_initialize_amd64_dicos_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
amd64_dicos_osabi_sniffer);
diff --git a/gdb/amd64-fbsd-nat.c b/gdb/amd64-fbsd-nat.c
index 662008bf681..7f85b6a4489 100644
--- a/gdb/amd64-fbsd-nat.c
+++ b/gdb/amd64-fbsd-nat.c
@@ -209,8 +209,9 @@ amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint ()
}
#endif
+void _initialize_amd64fbsd_nat ();
void
-_initialize_amd64fbsd_nat (void)
+_initialize_amd64fbsd_nat ()
{
int offset;
diff --git a/gdb/amd64-fbsd-tdep.c b/gdb/amd64-fbsd-tdep.c
index b0639ed95a6..7c3e33644e1 100644
--- a/gdb/amd64-fbsd-tdep.c
+++ b/gdb/amd64-fbsd-tdep.c
@@ -270,8 +270,9 @@ amd64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
amd64fbsd_get_thread_local_address);
}
+void _initialize_amd64fbsd_tdep ();
void
-_initialize_amd64fbsd_tdep (void)
+_initialize_amd64fbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
GDB_OSABI_FREEBSD, amd64fbsd_init_abi);
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c
index 27748ff9860..63fc84b0b14 100644
--- a/gdb/amd64-linux-nat.c
+++ b/gdb/amd64-linux-nat.c
@@ -478,8 +478,9 @@ amd64_linux_nat_target::low_siginfo_fixup (siginfo_t *ptrace,
return false;
}
+void _initialize_amd64_linux_nat ();
void
-_initialize_amd64_linux_nat (void)
+_initialize_amd64_linux_nat ()
{
amd64_native_gregset32_reg_offset = amd64_linux_gregset32_reg_offset;
amd64_native_gregset32_num_regs = I386_LINUX_NUM_REGS;
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index 07820a05597..44ecb4e0b33 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -2272,8 +2272,9 @@ amd64_x32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
}
+void _initialize_amd64_linux_tdep ();
void
-_initialize_amd64_linux_tdep (void)
+_initialize_amd64_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
GDB_OSABI_LINUX, amd64_linux_init_abi);
diff --git a/gdb/amd64-nbsd-nat.c b/gdb/amd64-nbsd-nat.c
index 1d97cc59571..7a4c0057352 100644
--- a/gdb/amd64-nbsd-nat.c
+++ b/gdb/amd64-nbsd-nat.c
@@ -56,8 +56,9 @@ static int amd64nbsd32_r_reg_offset[] =
static amd64_bsd_nat_target<nbsd_nat_target> the_amd64_nbsd_nat_target;
+void _initialize_amd64nbsd_nat ();
void
-_initialize_amd64nbsd_nat (void)
+_initialize_amd64nbsd_nat ()
{
amd64_native_gregset32_reg_offset = amd64nbsd32_r_reg_offset;
amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64nbsd32_r_reg_offset);
diff --git a/gdb/amd64-nbsd-tdep.c b/gdb/amd64-nbsd-tdep.c
index 65f587cf827..89d07236b85 100644
--- a/gdb/amd64-nbsd-tdep.c
+++ b/gdb/amd64-nbsd-tdep.c
@@ -120,8 +120,9 @@ amd64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_lp64_fetch_link_map_offsets);
}
+void _initialize_amd64nbsd_tdep ();
void
-_initialize_amd64nbsd_tdep (void)
+_initialize_amd64nbsd_tdep ()
{
/* The NetBSD/amd64 native dependent code makes this assumption. */
gdb_assert (ARRAY_SIZE (amd64nbsd_r_reg_offset) == AMD64_NUM_GREGS);
diff --git a/gdb/amd64-obsd-nat.c b/gdb/amd64-obsd-nat.c
index f0d8ecf3952..a19f7a19fec 100644
--- a/gdb/amd64-obsd-nat.c
+++ b/gdb/amd64-obsd-nat.c
@@ -128,8 +128,9 @@ amd64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
static amd64_bsd_nat_target<obsd_nat_target> the_amd64_obsd_nat_target;
+void _initialize_amd64obsd_nat ();
void
-_initialize_amd64obsd_nat (void)
+_initialize_amd64obsd_nat ()
{
amd64_native_gregset32_reg_offset = amd64obsd32_r_reg_offset;
amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64obsd32_r_reg_offset);
diff --git a/gdb/amd64-obsd-tdep.c b/gdb/amd64-obsd-tdep.c
index fb336658909..d5f84fcc5f0 100644
--- a/gdb/amd64-obsd-tdep.c
+++ b/gdb/amd64-obsd-tdep.c
@@ -448,8 +448,9 @@ amd64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
frame_unwind_prepend_unwinder (gdbarch, &amd64obsd_trapframe_unwind);
}
+void _initialize_amd64obsd_tdep ();
void
-_initialize_amd64obsd_tdep (void)
+_initialize_amd64obsd_tdep ()
{
/* The OpenBSD/amd64 native dependent code makes this assumption. */
gdb_assert (ARRAY_SIZE (amd64obsd_r_reg_offset) == AMD64_NUM_GREGS);
diff --git a/gdb/amd64-sol2-tdep.c b/gdb/amd64-sol2-tdep.c
index 86f9f60e28f..8d8600b2cad 100644
--- a/gdb/amd64-sol2-tdep.c
+++ b/gdb/amd64-sol2-tdep.c
@@ -118,8 +118,9 @@ amd64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
}
+void _initialize_amd64_sol2_tdep ();
void
-_initialize_amd64_sol2_tdep (void)
+_initialize_amd64_sol2_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64,
GDB_OSABI_SOLARIS, amd64_sol2_init_abi);
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 157a5d0c334..f5ec40f37e8 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -3334,8 +3334,9 @@ amd64_target_description (uint64_t xcr0, bool segments)
return *tdesc;
}
+void _initialize_amd64_tdep ();
void
-_initialize_amd64_tdep (void)
+_initialize_amd64_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_NONE,
amd64_none_init_abi);
diff --git a/gdb/amd64-windows-nat.c b/gdb/amd64-windows-nat.c
index 67b86911031..5b2c261aba7 100644
--- a/gdb/amd64-windows-nat.c
+++ b/gdb/amd64-windows-nat.c
@@ -95,8 +95,9 @@ amd64_windows_segment_register_p (int regnum)
return regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM;
}
+void _initialize_amd64_windows_nat ();
void
-_initialize_amd64_windows_nat (void)
+_initialize_amd64_windows_nat ()
{
windows_set_context_register_offsets (mappings);
windows_set_segment_register_p (amd64_windows_segment_register_p);
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index e1e777c4355..b2155f347a5 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -1245,8 +1245,9 @@ amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_auto_wide_charset (gdbarch, amd64_windows_auto_wide_charset);
}
+void _initialize_amd64_windows_tdep ();
void
-_initialize_amd64_windows_tdep (void)
+_initialize_amd64_windows_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_CYGWIN,
amd64_windows_init_abi);
diff --git a/gdb/annotate.c b/gdb/annotate.c
index 28dd23196fd..cf9e88cee51 100644
--- a/gdb/annotate.c
+++ b/gdb/annotate.c
@@ -614,8 +614,9 @@ breakpoint_changed (struct breakpoint *b)
annotate_breakpoints_invalid ();
}
+void _initialize_annotate ();
void
-_initialize_annotate (void)
+_initialize_annotate ()
{
gdb::observers::breakpoint_created.attach (breakpoint_changed);
gdb::observers::breakpoint_deleted.attach (breakpoint_changed);
diff --git a/gdb/arc-newlib-tdep.c b/gdb/arc-newlib-tdep.c
index 18e07d61885..70e2c5b0546 100644
--- a/gdb/arc-newlib-tdep.c
+++ b/gdb/arc-newlib-tdep.c
@@ -56,8 +56,9 @@ arc_newlib_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_arc_newlib_tdep ();
void
-_initialize_arc_newlib_tdep (void)
+_initialize_arc_newlib_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_arc, bfd_target_elf_flavour,
arc_newlib_osabi_sniffer);
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 021cbb008e8..13da0226f78 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -2145,8 +2145,9 @@ dump_arc_instruction_command (const char *args, int from_tty)
arc_insn_dump (insn);
}
+void _initialize_arc_tdep ();
void
-_initialize_arc_tdep (void)
+_initialize_arc_tdep ()
{
gdbarch_register (bfd_arch_arc, arc_gdbarch_init, arc_dump_tdep);
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 55b115c1355..92d7153ccb2 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -1004,8 +1004,9 @@ default_get_pc_address_flags (frame_info *frame, CORE_ADDR pc)
return "";
}
+void _initialize_gdbarch_utils ();
void
-_initialize_gdbarch_utils (void)
+_initialize_gdbarch_utils ()
{
add_setshow_enum_cmd ("endian", class_support,
endian_enum, &set_endian_string,
diff --git a/gdb/arm-fbsd-nat.c b/gdb/arm-fbsd-nat.c
index 14160be0180..3470f817a79 100644
--- a/gdb/arm-fbsd-nat.c
+++ b/gdb/arm-fbsd-nat.c
@@ -143,8 +143,9 @@ arm_fbsd_nat_target::read_description ()
return desc;
}
+void _initialize_arm_fbsd_nat ();
void
-_initialize_arm_fbsd_nat (void)
+_initialize_arm_fbsd_nat ()
{
add_inf_child_target (&the_arm_fbsd_nat_target);
}
diff --git a/gdb/arm-fbsd-tdep.c b/gdb/arm-fbsd-tdep.c
index ec0e9d58230..417a805e672 100644
--- a/gdb/arm-fbsd-tdep.c
+++ b/gdb/arm-fbsd-tdep.c
@@ -235,8 +235,9 @@ arm_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_software_single_step (gdbarch, arm_software_single_step);
}
+void _initialize_arm_fbsd_tdep ();
void
-_initialize_arm_fbsd_tdep (void)
+_initialize_arm_fbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_FREEBSD,
arm_fbsd_init_abi);
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c
index 0b27281783f..8bbaed5cf88 100644
--- a/gdb/arm-linux-nat.c
+++ b/gdb/arm-linux-nat.c
@@ -1299,8 +1299,9 @@ arm_linux_nat_target::low_new_fork (struct lwp_info *parent, pid_t child_pid)
*child_state = *parent_state;
}
+void _initialize_arm_linux_nat ();
void
-_initialize_arm_linux_nat (void)
+_initialize_arm_linux_nat ()
{
/* Register the target. */
linux_target = &the_arm_linux_nat_target;
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 8bfcea6c52f..363e67161c8 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -2001,8 +2001,9 @@ arm_linux_init_abi (struct gdbarch_info info,
set_gdbarch_gcc_target_options (gdbarch, arm_linux_gcc_target_options);
}
+void _initialize_arm_linux_tdep ();
void
-_initialize_arm_linux_tdep (void)
+_initialize_arm_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_LINUX,
arm_linux_init_abi);
diff --git a/gdb/arm-nbsd-nat.c b/gdb/arm-nbsd-nat.c
index 4dacd577ba1..1d058a99ac1 100644
--- a/gdb/arm-nbsd-nat.c
+++ b/gdb/arm-nbsd-nat.c
@@ -444,8 +444,9 @@ static struct core_fns arm_netbsd_elfcore_fns =
NULL
};
+void _initialize_arm_netbsd_nat ();
void
-_initialize_arm_netbsd_nat (void)
+_initialize_arm_netbsd_nat ()
{
add_inf_child_target (&the_arm_netbsd_nat_target);
diff --git a/gdb/arm-nbsd-tdep.c b/gdb/arm-nbsd-tdep.c
index 397d21d7f56..2642024022e 100644
--- a/gdb/arm-nbsd-tdep.c
+++ b/gdb/arm-nbsd-tdep.c
@@ -85,8 +85,9 @@ arm_netbsd_elf_init_abi (struct gdbarch_info info,
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
}
+void _initialize_arm_netbsd_tdep ();
void
-_initialize_arm_netbsd_tdep (void)
+_initialize_arm_netbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_NETBSD,
arm_netbsd_elf_init_abi);
diff --git a/gdb/arm-obsd-tdep.c b/gdb/arm-obsd-tdep.c
index 3ef0957f9d5..b3b1e2f7e66 100644
--- a/gdb/arm-obsd-tdep.c
+++ b/gdb/arm-obsd-tdep.c
@@ -115,8 +115,9 @@ armobsd_init_abi (struct gdbarch_info info,
}
}
+void _initialize_armobsd_tdep ();
void
-_initialize_armobsd_tdep (void)
+_initialize_armobsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_arm, 0, GDB_OSABI_OPENBSD,
armobsd_init_abi);
diff --git a/gdb/arm-pikeos-tdep.c b/gdb/arm-pikeos-tdep.c
index 64c3640f06b..a993b90e5de 100644
--- a/gdb/arm-pikeos-tdep.c
+++ b/gdb/arm-pikeos-tdep.c
@@ -81,8 +81,9 @@ arm_pikeos_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_arm_pikeos_tdep ();
void
-_initialize_arm_pikeos_tdep (void)
+_initialize_arm_pikeos_tdep ()
{
/* Register the sniffer for the PikeOS targets. */
gdbarch_register_osabi_sniffer (bfd_arch_arm, bfd_target_elf_flavour,
diff --git a/gdb/arm-symbian-tdep.c b/gdb/arm-symbian-tdep.c
index 6d8236c2422..b17f9c60eb9 100644
--- a/gdb/arm-symbian-tdep.c
+++ b/gdb/arm-symbian-tdep.c
@@ -119,8 +119,9 @@ arm_symbian_osabi_sniffer (bfd *abfd)
return GDB_OSABI_SYMBIAN;
}
+void _initialize_arm_symbian_tdep ();
void
-_initialize_arm_symbian_tdep (void)
+_initialize_arm_symbian_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_arm,
bfd_target_elf_flavour,
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 91701c25d20..0e72bcc651a 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -9479,8 +9479,9 @@ static void arm_record_test (void);
}
#endif
+void _initialize_arm_tdep ();
void
-_initialize_arm_tdep (void)
+_initialize_arm_tdep ()
{
long length;
int i, j;
diff --git a/gdb/arm-wince-tdep.c b/gdb/arm-wince-tdep.c
index 188174ab944..5971b29bd59 100644
--- a/gdb/arm-wince-tdep.c
+++ b/gdb/arm-wince-tdep.c
@@ -154,8 +154,9 @@ arm_wince_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_arm_wince_tdep ();
void
-_initialize_arm_wince_tdep (void)
+_initialize_arm_wince_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_arm, bfd_target_coff_flavour,
arm_wince_osabi_sniffer);
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 5a9f47f0785..36ec0d11b40 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -1530,8 +1530,9 @@ found and/or loaded."),
return &retval;
}
+void _initialize_auto_load ();
void
-_initialize_auto_load (void)
+_initialize_auto_load ()
{
struct cmd_list_element *cmd;
char *scripts_directory_help, *gdb_name_help, *python_name_help;
diff --git a/gdb/auxv.c b/gdb/auxv.c
index e8925cf70e7..eb1233527e5 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -546,8 +546,9 @@ info_auxv_command (const char *cmd, int from_tty)
}
}
+void _initialize_auxv ();
void
-_initialize_auxv (void)
+_initialize_auxv ()
{
add_info ("auxv", info_auxv_command,
_("Display the inferior's auxiliary vector.\n\
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c
index 381c7903fc6..d823c87a3cf 100644
--- a/gdb/avr-tdep.c
+++ b/gdb/avr-tdep.c
@@ -1616,8 +1616,9 @@ avr_io_reg_read_command (const char *args, int from_tty)
}
}
+void _initialize_avr_tdep ();
void
-_initialize_avr_tdep (void)
+_initialize_avr_tdep ()
{
register_gdbarch_init (bfd_arch_avr, avr_gdbarch_init);
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index a77c770aad8..14765bd1d86 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -2743,8 +2743,9 @@ maint_agent_printf_command (const char *cmdrest, int from_tty)
/* Initialization code. */
+void _initialize_ax_gdb ();
void
-_initialize_ax_gdb (void)
+_initialize_ax_gdb ()
{
add_cmd ("agent", class_maintenance, agent_command,
_("\
diff --git a/gdb/bfin-linux-tdep.c b/gdb/bfin-linux-tdep.c
index 147223b283e..f77f099ccb4 100644
--- a/gdb/bfin-linux-tdep.c
+++ b/gdb/bfin-linux-tdep.c
@@ -161,8 +161,9 @@ bfin_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
bfin_linux_get_syscall_number);
}
+void _initialize_bfin_linux_tdep ();
void
-_initialize_bfin_linux_tdep (void)
+_initialize_bfin_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_bfin, 0, GDB_OSABI_LINUX,
bfin_linux_init_abi);
diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c
index cb5650d5d93..23591d4a5f0 100644
--- a/gdb/bfin-tdep.c
+++ b/gdb/bfin-tdep.c
@@ -833,8 +833,9 @@ bfin_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_bfin_tdep ();
void
-_initialize_bfin_tdep (void)
+_initialize_bfin_tdep ()
{
register_gdbarch_init (bfd_arch_bfin, bfin_gdbarch_init);
}
diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c
index c645746aa83..e3e6f6fd8c9 100644
--- a/gdb/break-catch-sig.c
+++ b/gdb/break-catch-sig.c
@@ -424,8 +424,9 @@ initialize_signal_catchpoint_ops (void)
ops->explains_signal = signal_catchpoint_explains_signal;
}
+void _initialize_break_catch_sig ();
void
-_initialize_break_catch_sig (void)
+_initialize_break_catch_sig ()
{
initialize_signal_catchpoint_ops ();
diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c
index 553c01cb320..7e98a293900 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -599,8 +599,9 @@ initialize_syscall_catchpoint_ops (void)
ops->print_recreate = print_recreate_catch_syscall;
}
+void _initialize_break_catch_syscall ();
void
-_initialize_break_catch_syscall (void)
+_initialize_break_catch_syscall ()
{
initialize_syscall_catchpoint_ops ();
diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c
index 87b38b3b601..07dcc7dc0e7 100644
--- a/gdb/break-catch-throw.c
+++ b/gdb/break-catch-throw.c
@@ -532,8 +532,9 @@ initialize_throw_catchpoint_ops (void)
ops->allocate_location = allocate_location_exception_catchpoint;
}
+void _initialize_break_catch_throw ();
void
-_initialize_break_catch_throw (void)
+_initialize_break_catch_throw ()
{
initialize_throw_catchpoint_ops ();
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 5b734abf1c1..a7a378131a9 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -15409,8 +15409,9 @@ static struct cmd_list_element *enablebreaklist = NULL;
cmd_list_element *commands_cmd_element = nullptr;
+void _initialize_breakpoint ();
void
-_initialize_breakpoint (void)
+_initialize_breakpoint ()
{
struct cmd_list_element *c;
diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c
index a8622a8b0e4..15d538c16db 100644
--- a/gdb/bsd-uthread.c
+++ b/gdb/bsd-uthread.c
@@ -544,8 +544,9 @@ bsd_uthread_target::pid_to_str (ptid_t ptid)
return normal_pid_to_str (ptid);
}
+void _initialize_bsd_uthread ();
void
-_initialize_bsd_uthread (void)
+_initialize_bsd_uthread ()
{
bsd_uthread_data = gdbarch_data_register_pre_init (bsd_uthread_init);
diff --git a/gdb/btrace.c b/gdb/btrace.c
index a91a6768130..0c7becd3490 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -3471,8 +3471,9 @@ show_maint_btrace_pt_skip_pad (struct ui_file *file, int from_tty,
/* Initialize btrace maintenance commands. */
+void _initialize_btrace ();
void
-_initialize_btrace (void)
+_initialize_btrace ()
{
add_cmd ("btrace", class_maintenance, maint_info_btrace_cmd,
_("Info about branch tracing data."), &maintenanceinfolist);
diff --git a/gdb/charset.c b/gdb/charset.c
index 1af43fffa05..480ed366a49 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -994,8 +994,9 @@ intermediate_encoding (void)
#endif /* USE_INTERMEDIATE_ENCODING_FUNCTION */
+void _initialize_charset ();
void
-_initialize_charset (void)
+_initialize_charset ()
{
/* The first element is always "auto". */
charsets.charsets.push_back (xstrdup ("auto"));
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index c2ba3a4238a..6f324410e16 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -2113,8 +2113,9 @@ gdb_maint_setting_str_internal_fn (struct gdbarch *gdbarch,
gdbarch);
}
+void _initialize_cli_cmds ();
void
-_initialize_cli_cmds (void)
+_initialize_cli_cmds ()
{
struct cmd_list_element *c;
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 182e6c71667..ae047ac75de 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -622,8 +622,9 @@ binary_append_command (const char *cmd, int from_tty)
gdb_stdout);
}
+void _initialize_cli_dump ();
void
-_initialize_cli_dump (void)
+_initialize_cli_dump ()
{
struct cmd_list_element *c;
diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c
index acec367b5f3..8cdd2d21c00 100644
--- a/gdb/cli/cli-interp.c
+++ b/gdb/cli/cli-interp.c
@@ -467,8 +467,9 @@ cli_interp_factory (const char *name)
/* Standard gdb initialization hook. */
+void _initialize_cli_interp ();
void
-_initialize_cli_interp (void)
+_initialize_cli_interp ()
{
interp_factory_register (INTERP_CONSOLE, cli_interp_factory);
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index 247334cb52d..d7c1b779bfe 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -202,8 +202,9 @@ show_logging_command (const char *args, int from_tty)
printf_unfiltered (_("Debug output will be logged and displayed.\n"));
}
+void _initialize_cli_logging ();
void
-_initialize_cli_logging (void)
+_initialize_cli_logging ()
{
static struct cmd_list_element *set_logging_cmdlist, *show_logging_cmdlist;
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index f70ebed2021..c9d23789068 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1667,8 +1667,9 @@ show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name,
}
+void _initialize_cli_script ();
void
-_initialize_cli_script (void)
+_initialize_cli_script ()
{
struct cmd_list_element *c;
diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c
index f3d98ae4091..917a7f6c8fe 100644
--- a/gdb/cli/cli-style.c
+++ b/gdb/cli/cli-style.c
@@ -313,6 +313,7 @@ set_style_name (const char *name)
return result;
}
+void _initialize_cli_style ();
void
_initialize_cli_style ()
{
diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c
index b7f7b81ca88..047f2e5ea4c 100644
--- a/gdb/coff-pe-read.c
+++ b/gdb/coff-pe-read.c
@@ -691,8 +691,9 @@ show_debug_coff_pe_read (struct ui_file *file, int from_tty,
/* Adds "Set/show debug coff_pe_read" commands. */
+void _initialize_coff_pe_read ();
void
-_initialize_coff_pe_read (void)
+_initialize_coff_pe_read ()
{
add_setshow_zuinteger_cmd ("coff-pe-read", class_maintenance,
&debug_coff_pe_read,
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 60efb59b1a3..227cf866b84 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -2188,8 +2188,9 @@ static const struct sym_fns coff_sym_fns =
&psym_functions
};
+void _initialize_coffread ();
void
-_initialize_coffread (void)
+_initialize_coffread ()
{
add_symtab_fns (bfd_target_coff_flavour, &coff_sym_fns);
diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c
index 89c3c7234d4..a179bd6fe52 100644
--- a/gdb/compile/compile-cplus-types.c
+++ b/gdb/compile/compile-cplus-types.c
@@ -1404,6 +1404,7 @@ gcc_cp_plugin::pop_binding_level (const char *debug_name)
return pop_binding_level ();
}
+void _initialize_compile_cplus_types ();
void
_initialize_compile_cplus_types ()
{
diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c
index a5978b45799..8d134d9cf18 100644
--- a/gdb/compile/compile.c
+++ b/gdb/compile/compile.c
@@ -957,8 +957,9 @@ compile_instance::compile (const char *filename, int verbose_level)
/* See compile.h. */
cmd_list_element *compile_cmd_element = nullptr;
+void _initialize_compile ();
void
-_initialize_compile (void)
+_initialize_compile ()
{
struct cmd_list_element *c = NULL;
diff --git a/gdb/complaints.c b/gdb/complaints.c
index bda5a998e0b..45f3e5027d8 100644
--- a/gdb/complaints.c
+++ b/gdb/complaints.c
@@ -74,8 +74,9 @@ complaints_show_value (struct ui_file *file, int from_tty,
value);
}
+void _initialize_complaints ();
void
-_initialize_complaints (void)
+_initialize_complaints ()
{
add_setshow_zinteger_cmd ("complaints", class_support,
&stop_whining, _("\
diff --git a/gdb/completer.c b/gdb/completer.c
index 3a17445004d..619fb8a0285 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -2935,8 +2935,9 @@ gdb_display_match_list (char **matches, int len, int max,
}
}
+void _initialize_completer ();
void
-_initialize_completer (void)
+_initialize_completer ()
{
add_setshow_zuinteger_unlimited_cmd ("max-completions", no_class,
&max_completions, _("\
diff --git a/gdb/copying.c b/gdb/copying.c
index 8e4077ccb91..63183450a0e 100644
--- a/gdb/copying.c
+++ b/gdb/copying.c
@@ -640,8 +640,9 @@ show_warranty_command (const char *ignore, int from_tty)
printf_filtered ("\n");
}
+void _initialize_copying ();
void
-_initialize_copying (void)
+_initialize_copying ()
{
add_cmd ("copying", no_set_class, show_copying_command,
_("Conditions for redistributing copies of GDB."),
diff --git a/gdb/corefile.c b/gdb/corefile.c
index 498628c5af6..3b9f8c76052 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -478,8 +478,9 @@ set_gnutarget (const char *newtarget)
set_gnutarget_command (NULL, 0, NULL);
}
+void _initialize_core ();
void
-_initialize_core (void)
+_initialize_core ()
{
struct cmd_list_element *c;
diff --git a/gdb/corelow.c b/gdb/corelow.c
index c53bf1df8fd..f162a1b7de0 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -994,8 +994,9 @@ core_target::info_proc (const char *args, enum info_proc_what request)
return true;
}
+void _initialize_corelow ();
void
-_initialize_corelow (void)
+_initialize_corelow ()
{
add_target (core_target_info, core_target_open, filename_completer);
}
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index fd967c3096b..6997a7bdbe9 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -391,8 +391,9 @@ show_cp_abi_cmd (const char *args, int from_tty)
uiout->text (").\n");
}
+void _initialize_cp_abi ();
void
-_initialize_cp_abi (void)
+_initialize_cp_abi ()
{
struct cmd_list_element *c;
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index ad7e3bcc3b7..3a2100d84cf 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -1061,8 +1061,9 @@ maintenance_cplus_namespace (const char *args, int from_tty)
printf_unfiltered (_("The `maint namespace' command was removed.\n"));
}
+void _initialize_cp_namespace ();
void
-_initialize_cp_namespace (void)
+_initialize_cp_namespace ()
{
struct cmd_list_element *cmd;
diff --git a/gdb/cp-support.c b/gdb/cp-support.c
index c1d62f1711e..91e7d2ddc68 100644
--- a/gdb/cp-support.c
+++ b/gdb/cp-support.c
@@ -2163,8 +2163,9 @@ info_vtbl_command (const char *arg, int from_tty)
cplus_print_vtable (value);
}
+void _initialize_cp_support ();
void
-_initialize_cp_support (void)
+_initialize_cp_support ()
{
add_prefix_cmd ("cplus", class_maintenance,
maint_cplus_command,
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 9f29eee13a0..288ebafec72 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -789,8 +789,9 @@ cp_print_class_member (const gdb_byte *valaddr, struct type *type,
}
+void _initialize_cp_valprint ();
void
-_initialize_cp_valprint (void)
+_initialize_cp_valprint ()
{
obstack_begin (&dont_print_stat_array_obstack,
32 * sizeof (struct type *));
diff --git a/gdb/cris-linux-tdep.c b/gdb/cris-linux-tdep.c
index 4ae127b8ec0..9093cc300f4 100644
--- a/gdb/cris-linux-tdep.c
+++ b/gdb/cris-linux-tdep.c
@@ -47,8 +47,9 @@ cris_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
}
+void _initialize_cris_linux_tdep ();
void
-_initialize_cris_linux_tdep (void)
+_initialize_cris_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_cris, 0, GDB_OSABI_LINUX,
cris_linux_init_abi);
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 0b2fb91f8cc..22b4db917ca 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3829,8 +3829,9 @@ static struct core_fns cris_elf_core_fns =
NULL /* next */
};
+void _initialize_cris_tdep ();
void
-_initialize_cris_tdep (void)
+_initialize_cris_tdep ()
{
gdbarch_register (bfd_arch_cris, cris_gdbarch_init, cris_dump_tdep);
diff --git a/gdb/csky-linux-tdep.c b/gdb/csky-linux-tdep.c
index b5220794887..fb431020446 100644
--- a/gdb/csky-linux-tdep.c
+++ b/gdb/csky-linux-tdep.c
@@ -255,8 +255,9 @@ csky_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
&csky_linux_rt_sigreturn_tramp_frame);
}
+void _initialize_csky_linux_tdep ();
void
-_initialize_csky_linux_tdep (void)
+_initialize_csky_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_csky, 0, GDB_OSABI_LINUX,
csky_linux_init_abi);
diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c
index f720a053fbc..583298ce74c 100644
--- a/gdb/csky-tdep.c
+++ b/gdb/csky-tdep.c
@@ -2240,8 +2240,9 @@ csky_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_csky_tdep ();
void
-_initialize_csky_tdep (void)
+_initialize_csky_tdep ()
{
register_gdbarch_init (bfd_arch_csky, csky_gdbarch_init);
diff --git a/gdb/ctfread.c b/gdb/ctfread.c
index ebf1eec6a57..bfca2703c55 100644
--- a/gdb/ctfread.c
+++ b/gdb/ctfread.c
@@ -1475,7 +1475,8 @@ elfctf_build_psymtabs (struct objfile *of)
scan_partial_symbols (fp, of);
}
+void _initialize_ctfread ();
void
-_initialize_ctfread (void)
+_initialize_ctfread ()
{
}
diff --git a/gdb/d-lang.c b/gdb/d-lang.c
index 7ed5ad4a9ee..76d173b61ea 100644
--- a/gdb/d-lang.c
+++ b/gdb/d-lang.c
@@ -344,8 +344,9 @@ builtin_d_type (struct gdbarch *gdbarch)
return (const struct builtin_d_type *) gdbarch_data (gdbarch, d_type_data);
}
+void _initialize_d_language ();
void
-_initialize_d_language (void)
+_initialize_d_language ()
{
d_type_data = gdbarch_data_register_post_init (build_d_types);
}
diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c
index d800309686d..93d1554b977 100644
--- a/gdb/darwin-nat-info.c
+++ b/gdb/darwin-nat-info.c
@@ -838,8 +838,9 @@ info_mach_exceptions_command (const char *args, int from_tty)
}
}
+void _initialize_darwin_info_commands ();
void
-_initialize_darwin_info_commands (void)
+_initialize_darwin_info_commands ()
{
add_info ("mach-tasks", info_mach_tasks_command,
_("Get list of tasks in system."));
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 2a33a7d522f..9baa1e91d53 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -2482,6 +2482,7 @@ darwin_nat_target::supports_multi_process ()
return true;
}
+void _initialize_darwin_nat ();
void
_initialize_darwin_nat ()
{
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 0909c67ccbb..bec622a10f5 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -3180,8 +3180,9 @@ static const struct sym_fns aout_sym_fns =
&psym_functions
};
+void _initialize_dbxread ();
void
-_initialize_dbxread (void)
+_initialize_dbxread ()
{
add_symtab_fns (bfd_target_aout_flavour, &aout_sym_fns);
}
diff --git a/gdb/dcache.c b/gdb/dcache.c
index 76d14a2443d..f018882bf95 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -684,8 +684,9 @@ show_dcache_command (const char *args, int from_tty)
cmd_show_list (dcache_show_list, from_tty, "");
}
+void _initialize_dcache ();
void
-_initialize_dcache (void)
+_initialize_dcache ()
{
add_setshow_boolean_cmd ("remotecache", class_support,
&dcache_enabled_p, _("\
diff --git a/gdb/disasm-selftests.c b/gdb/disasm-selftests.c
index ab6058c2a33..b63a35ab1e5 100644
--- a/gdb/disasm-selftests.c
+++ b/gdb/disasm-selftests.c
@@ -210,8 +210,9 @@ memory_error_test (struct gdbarch *gdbarch)
} // namespace selftests
#endif /* GDB_SELF_TEST */
+void _initialize_disasm_selftests ();
void
-_initialize_disasm_selftests (void)
+_initialize_disasm_selftests ()
{
#if GDB_SELF_TEST
selftests::register_test_foreach_arch ("print_one_insn",
diff --git a/gdb/disasm.c b/gdb/disasm.c
index 39052f7fd36..7dfbd2fb472 100644
--- a/gdb/disasm.c
+++ b/gdb/disasm.c
@@ -1128,8 +1128,9 @@ disassembler_options_completer (struct cmd_list_element *ignore,
/* Initialization code. */
+void _initialize_disasm ();
void
-_initialize_disasm (void)
+_initialize_disasm ()
{
struct cmd_list_element *cmd;
diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c
index 85f6c01b6ab..71d627bcbd0 100644
--- a/gdb/dtrace-probe.c
+++ b/gdb/dtrace-probe.c
@@ -897,8 +897,9 @@ info_probes_dtrace_command (const char *arg, int from_tty)
info_probes_for_spops (arg, from_tty, &dtrace_static_probe_ops);
}
+void _initialize_dtrace_probe ();
void
-_initialize_dtrace_probe (void)
+_initialize_dtrace_probe ()
{
all_static_probe_ops.push_back (&dtrace_static_probe_ops);
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c
index 2fe578ee6bf..d47cfd2d9a2 100644
--- a/gdb/dummy-frame.c
+++ b/gdb/dummy-frame.c
@@ -431,8 +431,9 @@ maintenance_print_dummy_frames (const char *args, int from_tty)
}
}
+void _initialize_dummy_frame ();
void
-_initialize_dummy_frame (void)
+_initialize_dummy_frame ()
{
add_cmd ("dummy-frames", class_maintenance, maintenance_print_dummy_frames,
_("Print the contents of the internal dummy-frame stack."),
diff --git a/gdb/dwarf-index-cache.c b/gdb/dwarf-index-cache.c
index a2f0c42aad4..977fcc1b20c 100644
--- a/gdb/dwarf-index-cache.c
+++ b/gdb/dwarf-index-cache.c
@@ -325,6 +325,7 @@ show_index_cache_stats_command (const char *arg, int from_tty)
indent, global_index_cache.n_misses ());
}
+void _initialize_index_cache ();
void
_initialize_index_cache ()
{
diff --git a/gdb/dwarf-index-write.c b/gdb/dwarf-index-write.c
index f2abe70e155..fd222628cf5 100644
--- a/gdb/dwarf-index-write.c
+++ b/gdb/dwarf-index-write.c
@@ -1781,6 +1781,7 @@ save_gdb_index_command (const char *arg, int from_tty)
}
}
+void _initialize_dwarf_index_write ();
void
_initialize_dwarf_index_write ()
{
diff --git a/gdb/dwarf2-frame-tailcall.c b/gdb/dwarf2-frame-tailcall.c
index 9c167c1d96f..fca1d3d0235 100644
--- a/gdb/dwarf2-frame-tailcall.c
+++ b/gdb/dwarf2-frame-tailcall.c
@@ -467,8 +467,9 @@ const struct frame_unwind dwarf2_tailcall_frame_unwind =
tailcall_frame_prev_arch
};
+void _initialize_tailcall_frame ();
void
-_initialize_tailcall_frame (void)
+_initialize_tailcall_frame ()
{
cache_htab = htab_create_alloc (50, cache_hash, cache_eq, NULL, xcalloc,
xfree);
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c
index baa47c94389..a043d48217b 100644
--- a/gdb/dwarf2-frame.c
+++ b/gdb/dwarf2-frame.c
@@ -2354,8 +2354,9 @@ show_dwarf_unwinders_enabled_p (struct ui_file *file, int from_tty,
value);
}
+void _initialize_dwarf2_frame ();
void
-_initialize_dwarf2_frame (void)
+_initialize_dwarf2_frame ()
{
dwarf2_frame_data = gdbarch_data_register_pre_init (dwarf2_frame_init);
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 3c81cba3dfc..ad82cbec2f7 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -1419,8 +1419,9 @@ dwarf_expr_context::execute_stack_op (const gdb_byte *op_ptr,
gdb_assert (this->recursion_depth >= 0);
}
+void _initialize_dwarf2expr ();
void
-_initialize_dwarf2expr (void)
+_initialize_dwarf2expr ()
{
dwarf_arch_cookie
= gdbarch_data_register_post_init (dwarf_gdbarch_types_init);
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 99cac03a547..1fe6829100d 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -4514,8 +4514,9 @@ const struct symbol_computed_ops dwarf2_loclist_funcs = {
loclist_generate_c_location
};
+void _initialize_dwarf2loc ();
void
-_initialize_dwarf2loc (void)
+_initialize_dwarf2loc ()
{
add_setshow_zuinteger_cmd ("entry-values", class_maintenance,
&entry_values_debug,
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 04979f3d12f..216601a61ab 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -26133,8 +26133,9 @@ show_check_physname (struct ui_file *file, int from_tty,
value);
}
+void _initialize_dwarf2_read ();
void
-_initialize_dwarf2_read (void)
+_initialize_dwarf2_read ()
{
add_prefix_cmd ("dwarf", class_maintenance, set_dwarf_cmd, _("\
Set DWARF specific variables.\n\
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 618e4cd566c..9a6ce0ee371 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1469,8 +1469,9 @@ static const struct gnu_ifunc_fns elf_gnu_ifunc_fns =
elf_gnu_ifunc_resolver_return_stop
};
+void _initialize_elfread ();
void
-_initialize_elfread (void)
+_initialize_elfread ()
{
add_symtab_fns (bfd_target_elf_flavour, &elf_sym_fns);
diff --git a/gdb/exec.c b/gdb/exec.c
index 468f9f57f76..eb07b51dda7 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -1063,8 +1063,9 @@ exec_target::find_memory_regions (find_memory_region_ftype func, void *data)
return objfile_find_memory_regions (this, func, data);
}
+void _initialize_exec ();
void
-_initialize_exec (void)
+_initialize_exec ()
{
struct cmd_list_element *c;
diff --git a/gdb/extension.c b/gdb/extension.c
index f9418de4311..947e440c12c 100644
--- a/gdb/extension.c
+++ b/gdb/extension.c
@@ -934,8 +934,9 @@ ext_lang_before_prompt (const char *current_gdb_prompt)
}
}
+void _initialize_extension ();
void
-_initialize_extension (void)
+_initialize_extension ()
{
gdb::observers::before_prompt.attach (ext_lang_before_prompt);
}
diff --git a/gdb/f-lang.c b/gdb/f-lang.c
index c7c47cf8dcf..e767f52fc21 100644
--- a/gdb/f-lang.c
+++ b/gdb/f-lang.c
@@ -761,8 +761,9 @@ builtin_f_type (struct gdbarch *gdbarch)
return (const struct builtin_f_type *) gdbarch_data (gdbarch, f_type_data);
}
+void _initialize_f_language ();
void
-_initialize_f_language (void)
+_initialize_f_language ()
{
f_type_data = gdbarch_data_register_post_init (build_fortran_types);
}
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c
index 60611fef494..168957f6fb8 100644
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -479,8 +479,9 @@ info_common_command (const char *comname, int from_tty)
}
}
+void _initialize_f_valprint ();
void
-_initialize_f_valprint (void)
+_initialize_f_valprint ()
{
add_info ("common", info_common_command,
_("Print out the values contained in a Fortran COMMON block."));
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 698d1f0b35e..0e4afb29a00 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -1669,8 +1669,9 @@ fbsd_nat_target::set_syscall_catchpoint (int pid, bool needed,
#endif
#endif
+void _initialize_fbsd_nat ();
void
-_initialize_fbsd_nat (void)
+_initialize_fbsd_nat ()
{
#ifdef PT_LWPINFO
add_setshow_boolean_cmd ("fbsd-lwp", class_maintenance,
diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c
index 9e5d23a4bc8..bc1b5afd020 100644
--- a/gdb/fbsd-tdep.c
+++ b/gdb/fbsd-tdep.c
@@ -2085,8 +2085,9 @@ fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_get_syscall_number (gdbarch, fbsd_get_syscall_number);
}
+void _initialize_fbsd_tdep ();
void
-_initialize_fbsd_tdep (void)
+_initialize_fbsd_tdep ()
{
fbsd_gdbarch_data_handle =
gdbarch_data_register_post_init (init_fbsd_gdbarch_data);
diff --git a/gdb/filesystem.c b/gdb/filesystem.c
index 359b42f1bd1..94a1a9cac05 100644
--- a/gdb/filesystem.c
+++ b/gdb/filesystem.c
@@ -76,8 +76,9 @@ is \"%s\".\n"),
value);
}
+void _initialize_filesystem ();
void
-_initialize_filesystem (void)
+_initialize_filesystem ()
{
add_setshow_enum_cmd ("target-file-system-kind",
class_files,
diff --git a/gdb/findcmd.c b/gdb/findcmd.c
index 1f3b3dfc2a3..c8631571f20 100644
--- a/gdb/findcmd.c
+++ b/gdb/findcmd.c
@@ -280,8 +280,9 @@ find_command (const char *args, int from_tty)
found_count > 1 ? "s" : "");
}
+void _initialize_mem_search ();
void
-_initialize_mem_search (void)
+_initialize_mem_search ()
{
add_cmd ("find", class_vars, find_command, _("\
Search memory for a sequence of bytes.\n\
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 987c8e301a7..5cf1cd4137b 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -1088,8 +1088,9 @@ copy_integer_to_size_test ()
#endif
+void _initialize_findvar ();
void
-_initialize_findvar (void)
+_initialize_findvar ()
{
#if GDB_SELF_TEST
selftests::register_test
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index 65a189e0487..010414cc781 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -157,8 +157,9 @@ show_startup_with_shell (struct ui_file *file, int from_tty,
value);
}
+void _initialize_fork_child ();
void
-_initialize_fork_child (void)
+_initialize_fork_child ()
{
add_setshow_filename_cmd ("exec-wrapper", class_run, &exec_wrapper, _("\
Set a wrapper for running programs.\n\
diff --git a/gdb/frame-base.c b/gdb/frame-base.c
index b36c5e3bac4..9d8dd52daa7 100644
--- a/gdb/frame-base.c
+++ b/gdb/frame-base.c
@@ -121,8 +121,9 @@ frame_base_find_by_frame (struct frame_info *this_frame)
return table->default_base;
}
+void _initialize_frame_base ();
void
-_initialize_frame_base (void)
+_initialize_frame_base ()
{
frame_base_data = gdbarch_data_register_pre_init (frame_base_init);
}
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c
index 079a411c205..35f2e82c57d 100644
--- a/gdb/frame-unwind.c
+++ b/gdb/frame-unwind.c
@@ -305,8 +305,9 @@ frame_unwind_got_address (struct frame_info *frame, int regnum,
return reg_val;
}
+void _initialize_frame_unwind ();
void
-_initialize_frame_unwind (void)
+_initialize_frame_unwind ()
{
frame_unwind_data = gdbarch_data_register_pre_init (frame_unwind_init);
}
diff --git a/gdb/frame.c b/gdb/frame.c
index c746a6a231e..9ec93eb4c74 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -2958,8 +2958,9 @@ the rest of the stack trace."),
},
};
+void _initialize_frame ();
void
-_initialize_frame (void)
+_initialize_frame ()
{
obstack_init (&frame_cache_obstack);
diff --git a/gdb/frv-linux-tdep.c b/gdb/frv-linux-tdep.c
index 54ea43478b2..5014c3ebbf3 100644
--- a/gdb/frv-linux-tdep.c
+++ b/gdb/frv-linux-tdep.c
@@ -481,8 +481,9 @@ frv_linux_elf_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_frv_linux_tdep ();
void
-_initialize_frv_linux_tdep (void)
+_initialize_frv_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_frv, 0, GDB_OSABI_LINUX,
frv_linux_init_abi);
diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c
index ca5ffe3c1a1..ae383e7aaf8 100644
--- a/gdb/frv-tdep.c
+++ b/gdb/frv-tdep.c
@@ -1573,8 +1573,9 @@ frv_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_frv_tdep ();
void
-_initialize_frv_tdep (void)
+_initialize_frv_tdep ()
{
register_gdbarch_init (bfd_arch_frv, frv_gdbarch_init);
}
diff --git a/gdb/ft32-tdep.c b/gdb/ft32-tdep.c
index 2d18b0ac3f1..99ef69de770 100644
--- a/gdb/ft32-tdep.c
+++ b/gdb/ft32-tdep.c
@@ -616,8 +616,9 @@ ft32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Register this machine's init routine. */
+void _initialize_ft32_tdep ();
void
-_initialize_ft32_tdep (void)
+_initialize_ft32_tdep ()
{
register_gdbarch_init (bfd_arch_ft32, ft32_gdbarch_init);
}
diff --git a/gdb/gcore.c b/gdb/gcore.c
index d3f1b47644a..d12011e9021 100644
--- a/gdb/gcore.c
+++ b/gdb/gcore.c
@@ -590,8 +590,9 @@ gcore_memory_sections (bfd *obfd)
return 1;
}
+void _initialize_gcore ();
void
-_initialize_gcore (void)
+_initialize_gcore ()
{
add_com ("generate-core-file", class_files, gcore_command, _("\
Save a core file with the current state of the debugged process.\n\
diff --git a/gdb/gdb-demangle.c b/gdb/gdb-demangle.c
index debe395e931..6a664e99bfc 100644
--- a/gdb/gdb-demangle.c
+++ b/gdb/gdb-demangle.c
@@ -212,8 +212,9 @@ demangle_command (const char *args, int from_tty)
error (_("Can't demangle \"%s\""), name);
}
+void _initialize_gdb_demangle ();
void
-_initialize_gdb_demangle (void)
+_initialize_gdb_demangle ()
{
int i, ndems;
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index c82191ee97b..5a6dee2d51a 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -962,8 +962,9 @@ maintenance_info_bfds (const char *arg, int from_tty)
htab_traverse (all_bfds, print_one_bfd, uiout);
}
+void _initialize_gdb_bfd ();
void
-_initialize_gdb_bfd (void)
+_initialize_gdb_bfd ()
{
all_bfds = htab_create_alloc (10, htab_hash_pointer, htab_eq_pointer,
NULL, xcalloc, xfree);
diff --git a/gdb/gdbarch-selftests.c b/gdb/gdbarch-selftests.c
index 47f4d99d18c..c99a900dbfb 100644
--- a/gdb/gdbarch-selftests.c
+++ b/gdb/gdbarch-selftests.c
@@ -160,8 +160,9 @@ register_to_value_test (struct gdbarch *gdbarch)
} // namespace selftests
#endif /* GDB_SELF_TEST */
+void _initialize_gdbarch_selftests ();
void
-_initialize_gdbarch_selftests (void)
+_initialize_gdbarch_selftests ()
{
#if GDB_SELF_TEST
selftests::register_test_foreach_arch ("register_to_value",
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index ab9bf1f5f48..cc8569f5c95 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -5548,8 +5548,9 @@ target_gdbarch (void)
return current_inferior ()->gdbarch;
}
+void _initialize_gdbarch ();
void
-_initialize_gdbarch (void)
+_initialize_gdbarch ()
{
add_setshow_zuinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\
Set architecture debugging."), _("\
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 827c622dbf4..1d5bfd4bc20 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -5694,8 +5694,9 @@ objfile_type (struct objfile *objfile)
return objfile_type;
}
+void _initialize_gdbtypes ();
void
-_initialize_gdbtypes (void)
+_initialize_gdbtypes ()
{
gdbtypes_data = gdbarch_data_register_post_init (gdbtypes_post_init);
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 74a96f1154f..3b438a9a434 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -3500,8 +3500,9 @@ to the thread's initial suspend-count when gdb notices the threads."),
&thread_cmd_list);
}
+void _initialize_gnu_nat ();
void
-_initialize_gnu_nat (void)
+_initialize_gnu_nat ()
{
proc_server = getproc ();
diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c
index 987f1c33743..a9b2e0aa8c0 100644
--- a/gdb/gnu-v2-abi.c
+++ b/gdb/gnu-v2-abi.c
@@ -413,8 +413,9 @@ init_gnuv2_ops (void)
gnu_v2_abi_ops.baseclass_offset = gnuv2_baseclass_offset;
}
+void _initialize_gnu_v2_abi ();
void
-_initialize_gnu_v2_abi (void)
+_initialize_gnu_v2_abi ()
{
init_gnuv2_ops ();
register_cp_abi (&gnu_v2_abi_ops);
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 88543396526..89574ec9ed5 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -1568,8 +1568,9 @@ init_gnuv3_ops (void)
gnu_v3_abi_ops.pass_by_reference = gnuv3_pass_by_reference;
}
+void _initialize_gnu_v3_abi ();
void
-_initialize_gnu_v3_abi (void)
+_initialize_gnu_v3_abi ()
{
init_gnuv3_ops ();
diff --git a/gdb/go-lang.c b/gdb/go-lang.c
index fe60b290411..9ad456f72e8 100644
--- a/gdb/go-lang.c
+++ b/gdb/go-lang.c
@@ -682,8 +682,9 @@ builtin_go_type (struct gdbarch *gdbarch)
return (const struct builtin_go_type *) gdbarch_data (gdbarch, go_type_data);
}
+void _initialize_go_language ();
void
-_initialize_go_language (void)
+_initialize_go_language ()
{
go_type_data = gdbarch_data_register_post_init (build_go_types);
}
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index bcb400a3e1d..b3ebd6cf229 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -2081,8 +2081,9 @@ go32_info_dos_command (const char *args, int from_tty)
help_list (info_dos_cmdlist, "info dos ", class_info, gdb_stdout);
}
+void _initialize_go32_nat ();
void
-_initialize_go32_nat (void)
+_initialize_go32_nat ()
{
x86_dr_low.set_control = go32_set_dr7;
x86_dr_low.set_addr = go32_set_dr;
diff --git a/gdb/guile/guile.c b/gdb/guile/guile.c
index 506836157ee..4b0103c9346 100644
--- a/gdb/guile/guile.c
+++ b/gdb/guile/guile.c
@@ -792,8 +792,9 @@ message == an error message without a stack will be printed."),
&set_guile_list, &show_guile_list);
}
+void _initialize_guile ();
void
-_initialize_guile (void)
+_initialize_guile ()
{
install_gdb_commands ();
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index f4996ee35a7..5e8ba94b72f 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -1377,8 +1377,9 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
}
+void _initialize_h8300_tdep ();
void
-_initialize_h8300_tdep (void)
+_initialize_h8300_tdep ()
{
register_gdbarch_init (bfd_arch_h8300, h8300_gdbarch_init);
}
diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c
index 5a019d5a556..f352c25a3e6 100644
--- a/gdb/hppa-linux-nat.c
+++ b/gdb/hppa-linux-nat.c
@@ -384,8 +384,9 @@ fill_fpregset (const struct regcache *regcache,
}
}
+void _initialize_hppa_linux_nat ();
void
-_initialize_hppa_linux_nat (void)
+_initialize_hppa_linux_nat ()
{
/* Register the target. */
linux_target = &the_hppa_linux_nat_target;
diff --git a/gdb/hppa-linux-tdep.c b/gdb/hppa-linux-tdep.c
index 159f572d489..51c84d8e4f0 100644
--- a/gdb/hppa-linux-tdep.c
+++ b/gdb/hppa-linux-tdep.c
@@ -526,8 +526,9 @@ hppa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
svr4_fetch_objfile_link_map);
}
+void _initialize_hppa_linux_tdep ();
void
-_initialize_hppa_linux_tdep (void)
+_initialize_hppa_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_LINUX,
hppa_linux_init_abi);
diff --git a/gdb/hppa-nbsd-nat.c b/gdb/hppa-nbsd-nat.c
index 5b8e8f03277..d8255030ddf 100644
--- a/gdb/hppa-nbsd-nat.c
+++ b/gdb/hppa-nbsd-nat.c
@@ -228,8 +228,9 @@ hppa_nbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
}
}
+void _initialize_hppanbsd_nat ();
void
-_initialize_hppanbsd_nat (void)
+_initialize_hppanbsd_nat ()
{
add_inf_child_target (&the_hppa_nbsd_nat_target);
}
diff --git a/gdb/hppa-nbsd-tdep.c b/gdb/hppa-nbsd-tdep.c
index 383010bef66..b532ab1d5cc 100644
--- a/gdb/hppa-nbsd-tdep.c
+++ b/gdb/hppa-nbsd-tdep.c
@@ -208,8 +208,9 @@ hppanbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tramp_frame_prepend_unwinder (gdbarch, &hppanbsd_sigtramp_si4);
}
+void _initialize_hppanbsd_tdep ();
void
-_initialize_hppanbsd_tdep (void)
+_initialize_hppanbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_NETBSD,
hppanbsd_init_abi);
diff --git a/gdb/hppa-obsd-nat.c b/gdb/hppa-obsd-nat.c
index 8c79c0043d1..939a532b785 100644
--- a/gdb/hppa-obsd-nat.c
+++ b/gdb/hppa-obsd-nat.c
@@ -252,8 +252,9 @@ hppa_obsd_nat_target::store_registers (struct regcache *regcache, int regnum)
}
}
+void _initialize_hppaobsd_nat ();
void
-_initialize_hppaobsd_nat (void)
+_initialize_hppaobsd_nat ()
{
add_inf_child_target (&the_hppa_obsd_nat_target);
}
diff --git a/gdb/hppa-obsd-tdep.c b/gdb/hppa-obsd-tdep.c
index aa013ba3d81..d7f72491c70 100644
--- a/gdb/hppa-obsd-tdep.c
+++ b/gdb/hppa-obsd-tdep.c
@@ -168,8 +168,9 @@ hppaobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, hppaobsd_iterate_over_regset_sections);
}
+void _initialize_hppabsd_tdep ();
void
-_initialize_hppabsd_tdep (void)
+_initialize_hppabsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_OPENBSD,
hppaobsd_init_abi);
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 1ee1b0ba286..d8a3a560573 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -3168,8 +3168,9 @@ hppa_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
fprintf_unfiltered (file, "elf = %s\n", tdep->is_elf ? "yes" : "no");
}
+void _initialize_hppa_tdep ();
void
-_initialize_hppa_tdep (void)
+_initialize_hppa_tdep ()
{
gdbarch_register (bfd_arch_hppa, hppa_gdbarch_init, hppa_dump_tdep);
diff --git a/gdb/i386-bsd-nat.c b/gdb/i386-bsd-nat.c
index 41b4a9c8951..4e22013a7a8 100644
--- a/gdb/i386-bsd-nat.c
+++ b/gdb/i386-bsd-nat.c
@@ -319,8 +319,9 @@ i386bsd_store_inferior_registers (struct regcache *regcache, int regnum)
}
}
+void _initialize_i386bsd_nat ();
void
-_initialize_i386bsd_nat (void)
+_initialize_i386bsd_nat ()
{
int offset;
diff --git a/gdb/i386-cygwin-tdep.c b/gdb/i386-cygwin-tdep.c
index ee04752b546..f703579efda 100644
--- a/gdb/i386-cygwin-tdep.c
+++ b/gdb/i386-cygwin-tdep.c
@@ -247,8 +247,9 @@ i386_cygwin_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_i386_cygwin_tdep ();
void
-_initialize_i386_cygwin_tdep (void)
+_initialize_i386_cygwin_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_coff_flavour,
i386_cygwin_osabi_sniffer);
diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c
index 8b0b6fbb6a8..55a1f7ce9a2 100644
--- a/gdb/i386-darwin-nat.c
+++ b/gdb/i386-darwin-nat.c
@@ -633,8 +633,9 @@ darwin_set_sstep (thread_t thread, int enable)
}
}
+void _initialize_i386_darwin_nat ();
void
-_initialize_i386_darwin_nat (void)
+_initialize_i386_darwin_nat ()
{
#ifdef BFD64
amd64_native_gregset64_reg_offset = amd64_darwin_thread_state_reg_offset;
diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c
index deeb61353c1..a1c226ba66f 100644
--- a/gdb/i386-darwin-tdep.c
+++ b/gdb/i386-darwin-tdep.c
@@ -286,8 +286,9 @@ i386_mach_o_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_i386_darwin_tdep ();
void
-_initialize_i386_darwin_tdep (void)
+_initialize_i386_darwin_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_unknown, bfd_target_mach_o_flavour,
i386_mach_o_osabi_sniffer);
diff --git a/gdb/i386-dicos-tdep.c b/gdb/i386-dicos-tdep.c
index ba4803e2045..11c61f862bf 100644
--- a/gdb/i386-dicos-tdep.c
+++ b/gdb/i386-dicos-tdep.c
@@ -41,8 +41,9 @@ i386_dicos_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_i386_dicos_tdep ();
void
-_initialize_i386_dicos_tdep (void)
+_initialize_i386_dicos_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
i386_dicos_osabi_sniffer);
diff --git a/gdb/i386-fbsd-nat.c b/gdb/i386-fbsd-nat.c
index 1a581695e67..480c017da41 100644
--- a/gdb/i386-fbsd-nat.c
+++ b/gdb/i386-fbsd-nat.c
@@ -174,8 +174,9 @@ i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint ()
}
#endif
+void _initialize_i386fbsd_nat ();
void
-_initialize_i386fbsd_nat (void)
+_initialize_i386fbsd_nat ()
{
add_inf_child_target (&the_i386_fbsd_nat_target);
diff --git a/gdb/i386-fbsd-tdep.c b/gdb/i386-fbsd-tdep.c
index d0727099290..0e53453bb6e 100644
--- a/gdb/i386-fbsd-tdep.c
+++ b/gdb/i386-fbsd-tdep.c
@@ -451,8 +451,9 @@ i386fbsd4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
i386fbsd_get_thread_local_address);
}
+void _initialize_i386fbsd_tdep ();
void
-_initialize_i386fbsd_tdep (void)
+_initialize_i386fbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_FREEBSD,
i386fbsd4_init_abi);
diff --git a/gdb/i386-gnu-nat.c b/gdb/i386-gnu-nat.c
index 1add0c65a07..afbe8eff493 100644
--- a/gdb/i386-gnu-nat.c
+++ b/gdb/i386-gnu-nat.c
@@ -425,8 +425,9 @@ i386_gnu_dr_get_control (void)
}
#endif /* i386_DEBUG_STATE */
+void _initialize_i386gnu_nat ();
void
-_initialize_i386gnu_nat (void)
+_initialize_i386gnu_nat ()
{
#ifdef i386_DEBUG_STATE
x86_dr_low.set_control = i386_gnu_dr_set_control;
diff --git a/gdb/i386-gnu-tdep.c b/gdb/i386-gnu-tdep.c
index 4f32c094a51..57183be759b 100644
--- a/gdb/i386-gnu-tdep.c
+++ b/gdb/i386-gnu-tdep.c
@@ -61,8 +61,9 @@ i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->jb_pc_offset = 20; /* From <bits/setjmp.h>. */
}
+void _initialize_i386gnu_tdep ();
void
-_initialize_i386gnu_tdep (void)
+_initialize_i386gnu_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_HURD, i386gnu_init_abi);
}
diff --git a/gdb/i386-go32-tdep.c b/gdb/i386-go32-tdep.c
index e4d15cdc62a..51d79c8da66 100644
--- a/gdb/i386-go32-tdep.c
+++ b/gdb/i386-go32-tdep.c
@@ -62,6 +62,7 @@ i386_coff_osabi_sniffer (bfd *abfd)
}
+void _initialize_i386_go32_tdep ();
void
_initialize_i386_go32_tdep ()
{
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 32cd879de80..b4224b27c3a 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -711,8 +711,9 @@ i386_linux_nat_target::low_resume (ptid_t ptid, int step, enum gdb_signal signal
perror_with_name (("ptrace"));
}
+void _initialize_i386_linux_nat ();
void
-_initialize_i386_linux_nat (void)
+_initialize_i386_linux_nat ()
{
linux_target = &the_i386_linux_nat_target;
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index 5827cb4eec3..6f702b59e7f 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -1076,8 +1076,9 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
i386_linux_handle_segmentation_fault);
}
+void _initialize_i386_linux_tdep ();
void
-_initialize_i386_linux_tdep (void)
+_initialize_i386_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_LINUX,
i386_linux_init_abi);
diff --git a/gdb/i386-nbsd-nat.c b/gdb/i386-nbsd-nat.c
index e70a516a37c..ac775c1ff84 100644
--- a/gdb/i386-nbsd-nat.c
+++ b/gdb/i386-nbsd-nat.c
@@ -73,8 +73,9 @@ i386nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
static i386_bsd_nat_target<nbsd_nat_target> the_i386_nbsd_nat_target;
+void _initialize_i386nbsd_nat ();
void
-_initialize_i386nbsd_nat (void)
+_initialize_i386nbsd_nat ()
{
add_inf_child_target (&the_i386_nbsd_nat_target);
diff --git a/gdb/i386-nbsd-tdep.c b/gdb/i386-nbsd-tdep.c
index d0743c3ed7f..3157451e08f 100644
--- a/gdb/i386-nbsd-tdep.c
+++ b/gdb/i386-nbsd-tdep.c
@@ -421,8 +421,9 @@ i386nbsdelf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->struct_return = pcc_struct_return;
}
+void _initialize_i386nbsd_tdep ();
void
-_initialize_i386nbsd_tdep (void)
+_initialize_i386nbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_NETBSD,
i386nbsdelf_init_abi);
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c
index 493d5c4f6ab..cd6837b766c 100644
--- a/gdb/i386-nto-tdep.c
+++ b/gdb/i386-nto-tdep.c
@@ -367,8 +367,9 @@ i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_wchar_signed (gdbarch, 0);
}
+void _initialize_i386nto_tdep ();
void
-_initialize_i386nto_tdep (void)
+_initialize_i386nto_tdep ()
{
init_i386nto_ops ();
gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_QNXNTO,
diff --git a/gdb/i386-obsd-nat.c b/gdb/i386-obsd-nat.c
index ebaa83463d4..205c08b1bbe 100644
--- a/gdb/i386-obsd-nat.c
+++ b/gdb/i386-obsd-nat.c
@@ -90,8 +90,9 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
static i386_bsd_nat_target<obsd_nat_target> the_i386_obsd_nat_target;
+void _initialize_i386obsd_nat ();
void
-_initialize_i386obsd_nat (void)
+_initialize_i386obsd_nat ()
{
add_inf_child_target (&i386_obsd_nat_target);
diff --git a/gdb/i386-obsd-tdep.c b/gdb/i386-obsd-tdep.c
index cb419fc93a2..309f5e68b76 100644
--- a/gdb/i386-obsd-tdep.c
+++ b/gdb/i386-obsd-tdep.c
@@ -443,8 +443,9 @@ i386obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
}
+void _initialize_i386obsd_tdep ();
void
-_initialize_i386obsd_tdep (void)
+_initialize_i386obsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_OPENBSD,
i386obsd_init_abi);
diff --git a/gdb/i386-sol2-nat.c b/gdb/i386-sol2-nat.c
index 2092c7e6a74..f54b3b109e8 100644
--- a/gdb/i386-sol2-nat.c
+++ b/gdb/i386-sol2-nat.c
@@ -241,8 +241,9 @@ fill_fpregset (const struct regcache *regcache,
#endif
+void _initialize_amd64_sol2_nat ();
void
-_initialize_amd64_sol2_nat (void)
+_initialize_amd64_sol2_nat ()
{
#if PR_MODEL_NATIVE == PR_MODEL_LP64
amd64_native_gregset32_reg_offset = amd64_sol2_gregset32_reg_offset;
diff --git a/gdb/i386-sol2-tdep.c b/gdb/i386-sol2-tdep.c
index ff797848bdd..1980485cd4d 100644
--- a/gdb/i386-sol2-tdep.c
+++ b/gdb/i386-sol2-tdep.c
@@ -151,8 +151,9 @@ i386_sol2_osabi_sniffer (bfd *abfd)
return GDB_OSABI_UNKNOWN;
}
+void _initialize_i386_sol2_tdep ();
void
-_initialize_i386_sol2_tdep (void)
+_initialize_i386_sol2_tdep ()
{
/* Register an ELF OS ABI sniffer for Solaris 2 binaries. */
gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour,
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index a19fc62e8d4..f120438081d 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -9032,8 +9032,9 @@ show_mpx_cmd (const char *args, int from_tty)
cmd_show_list (mpx_show_cmdlist, from_tty, "");
}
+void _initialize_i386_tdep ();
void
-_initialize_i386_tdep (void)
+_initialize_i386_tdep ()
{
register_gdbarch_init (bfd_arch_i386, i386_gdbarch_init);
diff --git a/gdb/i386-windows-nat.c b/gdb/i386-windows-nat.c
index bcabacc5a06..958c83eafe6 100644
--- a/gdb/i386-windows-nat.c
+++ b/gdb/i386-windows-nat.c
@@ -79,8 +79,9 @@ i386_windows_segment_register_p (int regnum)
return regnum >= I386_CS_REGNUM && regnum <= I386_GS_REGNUM;
}
+void _initialize_i386_windows_nat ();
void
-_initialize_i386_windows_nat (void)
+_initialize_i386_windows_nat ()
{
windows_set_context_register_offsets (mappings);
windows_set_segment_register_p (i386_windows_segment_register_p);
diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c
index 1fb018ad9ee..59b7df13d2f 100644
--- a/gdb/ia64-libunwind-tdep.c
+++ b/gdb/ia64-libunwind-tdep.c
@@ -591,8 +591,9 @@ libunwind_is_initialized (void)
return libunwind_initialized;
}
+void _initialize_libunwind_frame ();
void
-_initialize_libunwind_frame (void)
+_initialize_libunwind_frame ()
{
libunwind_descr_handle
= gdbarch_data_register_post_init (libunwind_descr_init);
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c
index 361fc6ae375..01cfa0decd5 100644
--- a/gdb/ia64-linux-nat.c
+++ b/gdb/ia64-linux-nat.c
@@ -921,8 +921,9 @@ ia64_linux_nat_target::low_status_is_event (int status)
|| WSTOPSIG (status) == SIGILL);
}
+void _initialize_ia64_linux_nat ();
void
-_initialize_ia64_linux_nat (void)
+_initialize_ia64_linux_nat ()
{
/* Register the target. */
linux_target = &the_ia64_linux_nat_target;
diff --git a/gdb/ia64-linux-tdep.c b/gdb/ia64-linux-tdep.c
index 2696f14b2cb..33684ceb90e 100644
--- a/gdb/ia64-linux-tdep.c
+++ b/gdb/ia64-linux-tdep.c
@@ -258,8 +258,9 @@ ia64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
ia64_linux_stap_is_single_operand);
}
+void _initialize_ia64_linux_tdep ();
void
-_initialize_ia64_linux_tdep (void)
+_initialize_ia64_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_LINUX,
ia64_linux_init_abi);
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 40d4fd3c19d..dd07b7d4e7e 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -4012,8 +4012,9 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_ia64_tdep ();
void
-_initialize_ia64_tdep (void)
+_initialize_ia64_tdep ()
{
gdbarch_register (bfd_arch_ia64, ia64_gdbarch_init, NULL);
}
diff --git a/gdb/ia64-vms-tdep.c b/gdb/ia64-vms-tdep.c
index 211242553bf..ca0317bc45b 100644
--- a/gdb/ia64-vms-tdep.c
+++ b/gdb/ia64-vms-tdep.c
@@ -153,8 +153,9 @@ ia64_openvms_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
#endif
}
+void _initialize_ia64_vms_tdep ();
void
-_initialize_ia64_vms_tdep (void)
+_initialize_ia64_vms_tdep ()
{
gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_OPENVMS,
ia64_openvms_init_abi);
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 240644a4eef..b13c781c9d4 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -1507,8 +1507,9 @@ When the function is done executing, GDB will silently stop."),
gdb_assert_not_reached ("... should not be here");
}
+void _initialize_infcall ();
void
-_initialize_infcall (void)
+_initialize_infcall ()
{
add_setshow_boolean_cmd ("may-call-functions", no_class,
&may_call_functions_p, _("\
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 2bf21e26f19..cf8b312f9db 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -3162,8 +3162,9 @@ use \"set args\" without arguments.\n\
\n\
To start the inferior without using a shell, use \"set startup-with-shell off\"."
+void _initialize_infcmd ();
void
-_initialize_infcmd (void)
+_initialize_infcmd ()
{
static struct cmd_list_element *info_proc_cmdlist;
struct cmd_list_element *c = NULL;
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 00b2235b96e..e5e595ed981 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -953,8 +953,9 @@ initialize_stdin_serial (void)
stdin_serial = serial_fdopen (0);
}
+void _initialize_inflow ();
void
-_initialize_inflow (void)
+_initialize_inflow ()
{
add_info ("terminal", info_terminal_command,
_("Print inferior's saved terminal status."));
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a0583a8e658..a8636284f18 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -9319,8 +9319,9 @@ infrun_async_inferior_event_handler (gdb_client_data data)
inferior_event_handler (INF_REG_EVENT, NULL);
}
+void _initialize_infrun ();
void
-_initialize_infrun (void)
+_initialize_infrun ()
{
struct cmd_list_element *c;
diff --git a/gdb/interps.c b/gdb/interps.c
index 65a01437d58..8c01091e50b 100644
--- a/gdb/interps.c
+++ b/gdb/interps.c
@@ -439,8 +439,9 @@ current_interpreter (void)
}
/* This just adds the "interpreter-exec" command. */
+void _initialize_interpreter ();
void
-_initialize_interpreter (void)
+_initialize_interpreter ()
{
struct cmd_list_element *c;
diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c
index 43a4e7482a0..4b3419ead7b 100644
--- a/gdb/iq2000-tdep.c
+++ b/gdb/iq2000-tdep.c
@@ -839,8 +839,9 @@ iq2000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
Initializer function for the iq2000 module.
Called by gdb at start-up. */
+void _initialize_iq2000_tdep ();
void
-_initialize_iq2000_tdep (void)
+_initialize_iq2000_tdep ()
{
register_gdbarch_init (bfd_arch_iq2000, iq2000_gdbarch_init);
}
diff --git a/gdb/jit.c b/gdb/jit.c
index 539753717b9..eeaab70bfe0 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -1404,8 +1404,9 @@ jit_gdbarch_data_init (struct obstack *obstack)
return data;
}
+void _initialize_jit ();
void
-_initialize_jit (void)
+_initialize_jit ()
{
jit_reader_dir = relocate_gdb_directory (JIT_READER_DIR,
JIT_READER_DIR_RELOCATABLE);
diff --git a/gdb/language.c b/gdb/language.c
index 8f50af8b22d..03985d3e0cc 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -1136,8 +1136,9 @@ language_lookup_primitive_type_as_symbol (const struct language_defn *la,
/* Initialize the language routines. */
+void _initialize_language ();
void
-_initialize_language (void)
+_initialize_language ()
{
static const char *const type_or_range_names[]
= { "on", "off", "warn", "auto", NULL };
diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c
index c77fb6c73ac..284f1985d0d 100644
--- a/gdb/linux-fork.c
+++ b/gdb/linux-fork.c
@@ -751,8 +751,9 @@ restart_command (const char *args, int from_tty)
linux_fork_context (fp, from_tty);
}
+void _initialize_linux_fork ();
void
-_initialize_linux_fork (void)
+_initialize_linux_fork ()
{
/* Checkpoint command: create a fork of the inferior process
and set it aside for later debugging. */
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 45b71ea8627..66004e5be81 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4545,8 +4545,9 @@ current_lwp_ptid (void)
return inferior_ptid;
}
+void _initialize_linux_nat ();
void
-_initialize_linux_nat (void)
+_initialize_linux_nat ()
{
add_setshow_zuinteger_cmd ("lin-lwp", class_maintenance,
&debug_linux_nat, _("\
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c
index 820657a1038..b6374ce399c 100644
--- a/gdb/linux-tdep.c
+++ b/gdb/linux-tdep.c
@@ -2486,8 +2486,9 @@ linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type);
}
+void _initialize_linux_tdep ();
void
-_initialize_linux_tdep (void)
+_initialize_linux_tdep ()
{
linux_gdbarch_data_handle =
gdbarch_data_register_post_init (init_linux_gdbarch_data);
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index ed37de6d198..ae29c51673a 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -1968,8 +1968,9 @@ maintenance_check_libthread_db (const char *args, int from_tty)
check_thread_db (info, true);
}
+void _initialize_thread_db ();
void
-_initialize_thread_db (void)
+_initialize_thread_db ()
{
/* Defer loading of libthread_db.so until inferior is running.
This allows gdb to load correct libthread_db for a given
diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c
index 78ba1b02270..f2c3fea48a7 100644
--- a/gdb/lm32-tdep.c
+++ b/gdb/lm32-tdep.c
@@ -549,8 +549,9 @@ lm32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_lm32_tdep ();
void
-_initialize_lm32_tdep (void)
+_initialize_lm32_tdep ()
{
register_gdbarch_init (bfd_arch_lm32, lm32_gdbarch_init);
}
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index 8a167113482..1a97a58cec4 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -457,8 +457,9 @@ builtin_m2_type (struct gdbarch *gdbarch)
/* Initialization for Modula-2 */
+void _initialize_m2_language ();
void
-_initialize_m2_language (void)
+_initialize_m2_language ()
{
m2_type_data = gdbarch_data_register_post_init (build_m2_types);
}
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c
index 0d6324104b9..31f4d24cac5 100644
--- a/gdb/m32c-tdep.c
+++ b/gdb/m32c-tdep.c
@@ -2644,8 +2644,9 @@ m32c_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_m32c_tdep ();
void
-_initialize_m32c_tdep (void)
+_initialize_m32c_tdep ()
{
register_gdbarch_init (bfd_arch_m32c, m32c_gdbarch_init);
diff --git a/gdb/m32r-linux-nat.c b/gdb/m32r-linux-nat.c
index 6bb83377882..24beeca3b75 100644
--- a/gdb/m32r-linux-nat.c
+++ b/gdb/m32r-linux-nat.c
@@ -237,8 +237,9 @@ m32r_linux_nat_target::store_registers (struct regcache *regcache, int regno)
_("Got request to store bad register number %d."), regno);
}
+void _initialize_m32r_linux_nat ();
void
-_initialize_m32r_linux_nat (void)
+_initialize_m32r_linux_nat ()
{
/* Register the target. */
linux_target = &the_m32r_linux_nat_target;
diff --git a/gdb/m32r-linux-tdep.c b/gdb/m32r-linux-tdep.c
index 8f516b1a70f..becd6434c22 100644
--- a/gdb/m32r-linux-tdep.c
+++ b/gdb/m32r-linux-tdep.c
@@ -471,8 +471,9 @@ m32r_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
svr4_fetch_objfile_link_map);
}
+void _initialize_m32r_linux_tdep ();
void
-_initialize_m32r_linux_tdep (void)
+_initialize_m32r_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_m32r, 0, GDB_OSABI_LINUX,
m32r_linux_init_abi);
diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c
index 59f9bb59be9..60e53876408 100644
--- a/gdb/m32r-tdep.c
+++ b/gdb/m32r-tdep.c
@@ -911,8 +911,9 @@ m32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_m32r_tdep ();
void
-_initialize_m32r_tdep (void)
+_initialize_m32r_tdep ()
{
register_gdbarch_init (bfd_arch_m32r, m32r_gdbarch_init);
}
diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c
index ff0395da4f3..4e63c2f2fa0 100644
--- a/gdb/m68hc11-tdep.c
+++ b/gdb/m68hc11-tdep.c
@@ -1512,8 +1512,9 @@ m68hc11_gdbarch_init (struct gdbarch_info info,
return gdbarch;
}
+void _initialize_m68hc11_tdep ();
void
-_initialize_m68hc11_tdep (void)
+_initialize_m68hc11_tdep ()
{
register_gdbarch_init (bfd_arch_m68hc11, m68hc11_gdbarch_init);
register_gdbarch_init (bfd_arch_m68hc12, m68hc11_gdbarch_init);
diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c
index 562505be045..184b5c25d72 100644
--- a/gdb/m68k-bsd-nat.c
+++ b/gdb/m68k-bsd-nat.c
@@ -221,8 +221,9 @@ m68kbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
return 1;
}
+void _initialize_m68kbsd_nat ();
void
-_initialize_m68kbsd_nat (void)
+_initialize_m68kbsd_nat ()
{
add_inf_child_target (&the_m68k_bsd_nat_target);
diff --git a/gdb/m68k-bsd-tdep.c b/gdb/m68k-bsd-tdep.c
index 48b230df44e..f18f33dc7e4 100644
--- a/gdb/m68k-bsd-tdep.c
+++ b/gdb/m68k-bsd-tdep.c
@@ -152,8 +152,9 @@ m68kbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
}
+void _initialize_m68kbsd_tdep ();
void
-_initialize_m68kbsd_tdep (void)
+_initialize_m68kbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_m68k, 0, GDB_OSABI_NETBSD,
m68kbsd_init_abi);
diff --git a/gdb/m68k-linux-nat.c b/gdb/m68k-linux-nat.c
index 3b2971b5a4e..5e9170d9de7 100644
--- a/gdb/m68k-linux-nat.c
+++ b/gdb/m68k-linux-nat.c
@@ -511,8 +511,9 @@ ps_get_thread_area (struct ps_prochandle *ph,
return PS_OK;
}
+void _initialize_m68k_linux_nat ();
void
-_initialize_m68k_linux_nat (void)
+_initialize_m68k_linux_nat ()
{
/* Register the target. */
linux_target = &the_m68k_linux_nat_target;
diff --git a/gdb/m68k-linux-tdep.c b/gdb/m68k-linux-tdep.c
index 7b571f5db47..dcc7e089608 100644
--- a/gdb/m68k-linux-tdep.c
+++ b/gdb/m68k-linux-tdep.c
@@ -423,8 +423,9 @@ m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
svr4_fetch_objfile_link_map);
}
+void _initialize_m68k_linux_tdep ();
void
-_initialize_m68k_linux_tdep (void)
+_initialize_m68k_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_m68k, 0, GDB_OSABI_LINUX,
m68k_linux_init_abi);
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 365b7c8b623..ec754a62af9 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -1281,8 +1281,9 @@ m68k_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
return;
}
+void _initialize_m68k_tdep ();
void
-_initialize_m68k_tdep (void)
+_initialize_m68k_tdep ()
{
gdbarch_register (bfd_arch_m68k, m68k_gdbarch_init, m68k_dump_tdep);
}
diff --git a/gdb/machoread.c b/gdb/machoread.c
index 2bb3ab32cb3..54e3d2adc11 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -961,8 +961,9 @@ static const struct sym_fns macho_sym_fns = {
&psym_functions
};
+void _initialize_machoread ();
void
-_initialize_machoread (void)
+_initialize_machoread ()
{
add_symtab_fns (bfd_target_mach_o_flavour, &macho_sym_fns);
diff --git a/gdb/macrocmd.c b/gdb/macrocmd.c
index 70b95b107ea..54aa35e72fe 100644
--- a/gdb/macrocmd.c
+++ b/gdb/macrocmd.c
@@ -458,8 +458,9 @@ macro_list_command (const char *exp, int from_tty)
/* Initializing the `macrocmd' module. */
+void _initialize_macrocmd ();
void
-_initialize_macrocmd (void)
+_initialize_macrocmd ()
{
/* We introduce a new command prefix, `macro', under which we'll put
the various commands for working with preprocessor macros. */
diff --git a/gdb/macroscope.c b/gdb/macroscope.c
index af8a2eedc4c..9a1e7fe633b 100644
--- a/gdb/macroscope.c
+++ b/gdb/macroscope.c
@@ -152,8 +152,9 @@ standard_macro_lookup (const char *name, void *baton)
return result;
}
+void _initialize_macroscope ();
void
-_initialize_macroscope (void)
+_initialize_macroscope ()
{
macro_user_macros = new_macro_table (NULL, NULL, NULL);
macro_set_main (macro_user_macros, "<user-defined>");
diff --git a/gdb/maint-test-options.c b/gdb/maint-test-options.c
index 842a080460a..2cbdc7c1a20 100644
--- a/gdb/maint-test-options.c
+++ b/gdb/maint-test-options.c
@@ -424,6 +424,7 @@ maintenance_test_options_command (const char *arg, int from_tty)
}
+void _initialize_maint_test_options ();
void
_initialize_maint_test_options ()
{
diff --git a/gdb/maint-test-settings.c b/gdb/maint-test-settings.c
index d8a6e9bb84a..e8e8874e9a8 100644
--- a/gdb/maint-test-settings.c
+++ b/gdb/maint-test-settings.c
@@ -99,8 +99,9 @@ maintenance_show_test_settings_value_cmd
}
+void _initialize_maint_test_settings ();
void
-_initialize_maint_test_settings (void)
+_initialize_maint_test_settings ()
{
maintenance_test_settings_filename = xstrdup ("/foo/bar");
diff --git a/gdb/maint.c b/gdb/maint.c
index fcb9f4efb5e..e8e0f287731 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -1135,8 +1135,9 @@ Selftests have been disabled for this build.\n"));
}
+void _initialize_maint_cmds ();
void
-_initialize_maint_cmds (void)
+_initialize_maint_cmds ()
{
struct cmd_list_element *cmd;
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index ff1d1303221..b1994f1e0b4 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -4802,8 +4802,9 @@ elfmdebug_build_psymtabs (struct objfile *objfile,
reader.install ();
}
+void _initialize_mdebugread ();
void
-_initialize_mdebugread (void)
+_initialize_mdebugread ()
{
mdebug_register_index
= register_symbol_register_impl (LOC_REGISTER, &mdebug_register_funcs);
diff --git a/gdb/memattr.c b/gdb/memattr.c
index f8cd6f4fb1f..da60df071c5 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -594,8 +594,9 @@ dummy_cmd (const char *args, int from_tty)
static struct cmd_list_element *mem_set_cmdlist;
static struct cmd_list_element *mem_show_cmdlist;
+void _initialize_mem ();
void
-_initialize_mem (void)
+_initialize_mem ()
{
add_com ("mem", class_vars, mem_command, _("\
Define attributes for memory region or reset memory region handling to "
diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c
index 13817555a5e..7e8247cd642 100644
--- a/gdb/mep-tdep.c
+++ b/gdb/mep-tdep.c
@@ -2448,8 +2448,9 @@ mep_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_mep_tdep ();
void
-_initialize_mep_tdep (void)
+_initialize_mep_tdep ()
{
mep_csr_reggroup = reggroup_new ("csr", USER_REGGROUP);
mep_cr_reggroup = reggroup_new ("cr", USER_REGGROUP);
diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c
index 7514ba8fb10..88158cee56f 100644
--- a/gdb/mi/mi-cmd-env.c
+++ b/gdb/mi/mi-cmd-env.c
@@ -261,8 +261,9 @@ mi_cmd_inferior_tty_show (const char *command, char **argv, int argc)
current_uiout->field_string ("inferior_tty_terminal", inferior_io_terminal);
}
+void _initialize_mi_cmd_env ();
void
-_initialize_mi_cmd_env (void)
+_initialize_mi_cmd_env ()
{
const char *env;
diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index eadf612b144..ec6f281c5b9 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -295,8 +295,9 @@ build_table (struct mi_cmd *commands)
}
}
+void _initialize_mi_cmds ();
void
-_initialize_mi_cmds (void)
+_initialize_mi_cmds ()
{
build_table (mi_cmds);
memset (&stats, 0, sizeof (stats));
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index 556f446c2e1..2ac4c119961 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -1335,8 +1335,9 @@ mi_interp_factory (const char *name)
return new mi_interp (name);
}
+void _initialize_mi_interp ();
void
-_initialize_mi_interp (void)
+_initialize_mi_interp ()
{
/* The various interpreter levels. */
interp_factory_register (INTERP_MI1, mi_interp_factory);
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 24daf3f8838..014feaf6493 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -2749,8 +2749,9 @@ mi_cmd_complete (const char *command, char **argv, int argc)
}
+void _initialize_mi_main ();
void
-_initialize_mi_main (void)
+_initialize_mi_main ()
{
struct cmd_list_element *c;
diff --git a/gdb/microblaze-linux-tdep.c b/gdb/microblaze-linux-tdep.c
index 3bb9b5682ac..be710bedb64 100644
--- a/gdb/microblaze-linux-tdep.c
+++ b/gdb/microblaze-linux-tdep.c
@@ -131,8 +131,9 @@ microblaze_linux_init_abi (struct gdbarch_info info,
&microblaze_linux_sighandler_tramp_frame);
}
+void _initialize_microblaze_linux_tdep ();
void
-_initialize_microblaze_linux_tdep (void)
+_initialize_microblaze_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_microblaze, 0, GDB_OSABI_LINUX,
microblaze_linux_init_abi);
diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c
index 17871229c80..a05088c36a1 100644
--- a/gdb/microblaze-tdep.c
+++ b/gdb/microblaze-tdep.c
@@ -753,8 +753,9 @@ microblaze_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_microblaze_tdep ();
void
-_initialize_microblaze_tdep (void)
+_initialize_microblaze_tdep ()
{
register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init);
diff --git a/gdb/mips-fbsd-nat.c b/gdb/mips-fbsd-nat.c
index cb74f19333b..4a29ee1cb56 100644
--- a/gdb/mips-fbsd-nat.c
+++ b/gdb/mips-fbsd-nat.c
@@ -126,8 +126,9 @@ mips_fbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
}
}
+void _initialize_mips_fbsd_nat ();
void
-_initialize_mips_fbsd_nat (void)
+_initialize_mips_fbsd_nat ()
{
add_inf_child_target (&the_mips_fbsd_nat_target);
}
diff --git a/gdb/mips-fbsd-tdep.c b/gdb/mips-fbsd-tdep.c
index 76073f01e63..abaf7f2474a 100644
--- a/gdb/mips-fbsd-tdep.c
+++ b/gdb/mips-fbsd-tdep.c
@@ -553,8 +553,9 @@ mips_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
mips_fbsd_lp64_fetch_link_map_offsets));
}
+void _initialize_mips_fbsd_tdep ();
void
-_initialize_mips_fbsd_tdep (void)
+_initialize_mips_fbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_FREEBSD,
mips_fbsd_init_abi);
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
index 104c972f246..38ff461a35b 100644
--- a/gdb/mips-linux-nat.c
+++ b/gdb/mips-linux-nat.c
@@ -783,8 +783,9 @@ mips_linux_nat_target::close ()
linux_nat_trad_target::close ();
}
+void _initialize_mips_linux_nat ();
void
-_initialize_mips_linux_nat (void)
+_initialize_mips_linux_nat ()
{
add_setshow_boolean_cmd ("show-debug-regs", class_maintenance,
&show_debug_regs, _("\
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c
index 002c5c51d96..aa7b8d11f3f 100644
--- a/gdb/mips-linux-tdep.c
+++ b/gdb/mips-linux-tdep.c
@@ -1642,8 +1642,9 @@ mips_linux_init_abi (struct gdbarch_info info,
}
}
+void _initialize_mips_linux_tdep ();
void
-_initialize_mips_linux_tdep (void)
+_initialize_mips_linux_tdep ()
{
const struct bfd_arch_info *arch_info;
diff --git a/gdb/mips-nbsd-nat.c b/gdb/mips-nbsd-nat.c
index 4f6a8eedb0a..527c67a7abc 100644
--- a/gdb/mips-nbsd-nat.c
+++ b/gdb/mips-nbsd-nat.c
@@ -113,8 +113,9 @@ mips_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
}
}
+void _initialize_mipsnbsd_nat ();
void
-_initialize_mipsnbsd_nat (void)
+_initialize_mipsnbsd_nat ()
{
add_inf_child_target (&the_mips_nbsd_nat_target);
}
diff --git a/gdb/mips-nbsd-tdep.c b/gdb/mips-nbsd-tdep.c
index a2901c09edf..38bc7ce636b 100644
--- a/gdb/mips-nbsd-tdep.c
+++ b/gdb/mips-nbsd-tdep.c
@@ -371,8 +371,9 @@ mipsnbsd_init_abi (struct gdbarch_info info,
mipsnbsd_lp64_fetch_link_map_offsets));
}
+void _initialize_mipsnbsd_tdep ();
void
-_initialize_mipsnbsd_tdep (void)
+_initialize_mipsnbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_NETBSD,
mipsnbsd_init_abi);
diff --git a/gdb/mips-sde-tdep.c b/gdb/mips-sde-tdep.c
index 01afafb1fa6..685c3c7263c 100644
--- a/gdb/mips-sde-tdep.c
+++ b/gdb/mips-sde-tdep.c
@@ -256,8 +256,9 @@ mips_sde_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
frame_base_append_sniffer (gdbarch, mips_sde_frame_base_sniffer);
}
+void _initialize_mips_sde_tdep ();
void
-_initialize_mips_sde_tdep (void)
+_initialize_mips_sde_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_mips,
bfd_target_elf_flavour,
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index f89e37b503e..90ec3707c5d 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -8971,8 +8971,9 @@ mips_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
mips_fpu_type_str (MIPS_FPU_TYPE (gdbarch)));
}
+void _initialize_mips_tdep ();
void
-_initialize_mips_tdep (void)
+_initialize_mips_tdep ()
{
static struct cmd_list_element *mipsfpulist = NULL;
diff --git a/gdb/mips64-obsd-nat.c b/gdb/mips64-obsd-nat.c
index 8ea8fb1cc9a..3661fff097a 100644
--- a/gdb/mips64-obsd-nat.c
+++ b/gdb/mips64-obsd-nat.c
@@ -115,8 +115,9 @@ mips64_obsd_nat_target::store_registers (struct regcache *regcache, int regnum)
perror_with_name (_("Couldn't write registers"));
}
+void _initialize_mips64obsd_nat ();
void
-_initialize_mips64obsd_nat (void)
+_initialize_mips64obsd_nat ()
{
add_inf_child_target (&the_mips64_obsd_nat_target);
}
diff --git a/gdb/mips64-obsd-tdep.c b/gdb/mips64-obsd-tdep.c
index 857ff7a3362..3194ce862bd 100644
--- a/gdb/mips64-obsd-tdep.c
+++ b/gdb/mips64-obsd-tdep.c
@@ -159,8 +159,9 @@ mips64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_lp64_fetch_link_map_offsets);
}
+void _initialize_mips64obsd_tdep ();
void
-_initialize_mips64obsd_tdep (void)
+_initialize_mips64obsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_OPENBSD,
mips64obsd_init_abi);
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index 2c11873d444..6e39538e952 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -379,8 +379,9 @@ static const struct sym_fns ecoff_sym_fns =
&psym_functions
};
+void _initialize_mipsread ();
void
-_initialize_mipsread (void)
+_initialize_mipsread ()
{
add_symtab_fns (bfd_target_ecoff_flavour, &ecoff_sym_fns);
}
diff --git a/gdb/mn10300-linux-tdep.c b/gdb/mn10300-linux-tdep.c
index 24f40b9b22e..1dfe2a21cf9 100644
--- a/gdb/mn10300-linux-tdep.c
+++ b/gdb/mn10300-linux-tdep.c
@@ -715,8 +715,9 @@ am33_linux_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
tramp_frame_prepend_unwinder (gdbarch, &am33_linux_rt_sigframe);
}
+void _initialize_mn10300_linux_tdep ();
void
-_initialize_mn10300_linux_tdep (void)
+_initialize_mn10300_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_mn10300, 0,
GDB_OSABI_LINUX, am33_linux_init_osabi);
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index b472c36ebf1..d779ad1dd0d 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -1417,8 +1417,9 @@ mn10300_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
tdep->am33_mode);
}
+void _initialize_mn10300_tdep ();
void
-_initialize_mn10300_tdep (void)
+_initialize_mn10300_tdep ()
{
gdbarch_register (bfd_arch_mn10300, mn10300_gdbarch_init, mn10300_dump_tdep);
}
diff --git a/gdb/moxie-tdep.c b/gdb/moxie-tdep.c
index b3ffbfb62ed..1f552481662 100644
--- a/gdb/moxie-tdep.c
+++ b/gdb/moxie-tdep.c
@@ -1103,8 +1103,9 @@ moxie_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Register this machine's init routine. */
+void _initialize_moxie_tdep ();
void
-_initialize_moxie_tdep (void)
+_initialize_moxie_tdep ()
{
register_gdbarch_init (bfd_arch_moxie, moxie_gdbarch_init);
}
diff --git a/gdb/msp430-tdep.c b/gdb/msp430-tdep.c
index 1b38396a8b3..0893274686e 100644
--- a/gdb/msp430-tdep.c
+++ b/gdb/msp430-tdep.c
@@ -986,8 +986,9 @@ msp430_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Register the initialization routine. */
+void _initialize_msp430_tdep ();
void
-_initialize_msp430_tdep (void)
+_initialize_msp430_tdep ()
{
register_gdbarch_init (bfd_arch_msp430, msp430_gdbarch_init);
}
diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c
index 8d9bac085b6..5238fe54a71 100644
--- a/gdb/nds32-tdep.c
+++ b/gdb/nds32-tdep.c
@@ -2096,8 +2096,9 @@ nds32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_nds32_tdep ();
void
-_initialize_nds32_tdep (void)
+_initialize_nds32_tdep ()
{
/* Initialize gdbarch. */
register_gdbarch_init (bfd_arch_nds32, nds32_gdbarch_init);
diff --git a/gdb/nios2-linux-tdep.c b/gdb/nios2-linux-tdep.c
index 3078bc4bb67..345dfeb9235 100644
--- a/gdb/nios2-linux-tdep.c
+++ b/gdb/nios2-linux-tdep.c
@@ -248,8 +248,9 @@ nios2_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->jb_pc = 10;
}
+void _initialize_nios2_linux_tdep ();
void
-_initialize_nios2_linux_tdep (void)
+_initialize_nios2_linux_tdep ()
{
const struct bfd_arch_info *arch_info;
diff --git a/gdb/nios2-tdep.c b/gdb/nios2-tdep.c
index 6e00a322d24..cb669da2480 100644
--- a/gdb/nios2-tdep.c
+++ b/gdb/nios2-tdep.c
@@ -2390,8 +2390,9 @@ nios2_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_nios2_tdep ();
void
-_initialize_nios2_tdep (void)
+_initialize_nios2_tdep ()
{
gdbarch_register (bfd_arch_nios2, nios2_gdbarch_init, NULL);
initialize_tdesc_nios2 ();
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index c31dbf136c8..58e572c094d 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -1505,8 +1505,9 @@ init_procfs_targets (void)
#define OSTYPE_NTO 1
+void _initialize_procfs ();
void
-_initialize_procfs (void)
+_initialize_procfs ()
{
sigset_t set;
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index c423d575db8..5adf913a5e3 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -1332,8 +1332,9 @@ find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc)
return 0;
}
+void _initialize_objc_language ();
void
-_initialize_objc_language (void)
+_initialize_objc_language ()
{
add_info ("selectors", info_selectors_command,
_("All Objective-C selectors, or those matching REGEXP."));
diff --git a/gdb/observable.c b/gdb/observable.c
index 5a66be08019..81aa392cc21 100644
--- a/gdb/observable.c
+++ b/gdb/observable.c
@@ -87,8 +87,9 @@ show_observer_debug (struct ui_file *file, int from_tty,
fprintf_filtered (file, _("Observer debugging is %s.\n"), value);
}
+void _initialize_observer ();
void
-_initialize_observer (void)
+_initialize_observer ()
{
add_setshow_zuinteger_cmd ("observer", class_maintenance,
&gdb::observers::observer_debug, _("\
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c
index e5052bbd6ce..1763590214f 100644
--- a/gdb/opencl-lang.c
+++ b/gdb/opencl-lang.c
@@ -1178,8 +1178,9 @@ build_opencl_types (struct gdbarch *gdbarch)
return types;
}
+void _initialize_opencl_language ();
void
-_initialize_opencl_language (void)
+_initialize_opencl_language ()
{
opencl_type_data = gdbarch_data_register_post_init (build_opencl_types);
}
diff --git a/gdb/or1k-linux-tdep.c b/gdb/or1k-linux-tdep.c
index 860144aa350..15677f9cfaf 100644
--- a/gdb/or1k-linux-tdep.c
+++ b/gdb/or1k-linux-tdep.c
@@ -163,8 +163,9 @@ or1k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* Initialize OpenRISC Linux target support. */
+void _initialize_or1k_linux_tdep ();
void
-_initialize_or1k_linux_tdep (void)
+_initialize_or1k_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_or1k, 0, GDB_OSABI_LINUX,
or1k_linux_init_abi);
diff --git a/gdb/or1k-tdep.c b/gdb/or1k-tdep.c
index eca780a9c12..772ecff3349 100644
--- a/gdb/or1k-tdep.c
+++ b/gdb/or1k-tdep.c
@@ -1269,8 +1269,9 @@ or1k_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
}
+void _initialize_or1k_tdep ();
void
-_initialize_or1k_tdep (void)
+_initialize_or1k_tdep ()
{
/* Register this architecture. */
gdbarch_register (bfd_arch_or1k, or1k_gdbarch_init, or1k_dump_tdep);
diff --git a/gdb/osabi.c b/gdb/osabi.c
index dec1bddc4ce..b9a8687a7cc 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -653,8 +653,9 @@ show_osabi (struct ui_file *file, int from_tty, struct cmd_list_element *c,
gdbarch_osabi_name (GDB_OSABI_DEFAULT));
}
+void _initialize_gdb_osabi ();
void
-_initialize_gdb_osabi (void)
+_initialize_gdb_osabi ()
{
if (strcmp (gdb_osabi_names[GDB_OSABI_INVALID].pretty, "<invalid>") != 0)
internal_error
diff --git a/gdb/osdata.c b/gdb/osdata.c
index 19b663693dd..9b060475212 100644
--- a/gdb/osdata.c
+++ b/gdb/osdata.c
@@ -289,8 +289,9 @@ info_osdata_command (const char *arg, int from_tty)
info_osdata (arg);
}
+void _initialize_osdata ();
void
-_initialize_osdata (void)
+_initialize_osdata ()
{
add_info ("os", info_osdata_command,
_("Show OS data ARG."));
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index e337132a07d..aaeb4b67e98 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -891,8 +891,9 @@ pascal_object_print_static_field (struct value *val,
common_val_print (val, stream, recurse, &opts, current_language);
}
+void _initialize_pascal_valprint ();
void
-_initialize_pascal_valprint (void)
+_initialize_pascal_valprint ()
{
add_setshow_boolean_cmd ("pascal_static-members", class_support,
&user_print_options.pascal_static_field_print, _("\
diff --git a/gdb/parse.c b/gdb/parse.c
index 65e3c6008cd..b4d9005de55 100644
--- a/gdb/parse.c
+++ b/gdb/parse.c
@@ -1436,8 +1436,9 @@ increase_expout_size (struct expr_builder *ps, size_t lenelt)
}
}
+void _initialize_parse ();
void
-_initialize_parse (void)
+_initialize_parse ()
{
add_setshow_zuinteger_cmd ("expression", class_maintenance,
&expressiondebug,
diff --git a/gdb/ppc-fbsd-nat.c b/gdb/ppc-fbsd-nat.c
index 5643fab82e7..a1b268ab289 100644
--- a/gdb/ppc-fbsd-nat.c
+++ b/gdb/ppc-fbsd-nat.c
@@ -201,8 +201,9 @@ ppcfbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
return 1;
}
+void _initialize_ppcfbsd_nat ();
void
-_initialize_ppcfbsd_nat (void)
+_initialize_ppcfbsd_nat ()
{
add_inf_child_target (&the_ppc_fbsd_nat_target);
diff --git a/gdb/ppc-fbsd-tdep.c b/gdb/ppc-fbsd-tdep.c
index 8ae108438d3..349396f52b2 100644
--- a/gdb/ppc-fbsd-tdep.c
+++ b/gdb/ppc-fbsd-tdep.c
@@ -361,8 +361,9 @@ ppcfbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
ppcfbsd_get_thread_local_address);
}
+void _initialize_ppcfbsd_tdep ();
void
-_initialize_ppcfbsd_tdep (void)
+_initialize_ppcfbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_powerpc, bfd_mach_ppc, GDB_OSABI_FREEBSD,
ppcfbsd_init_abi);
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index d619971a001..27fa7f93e2b 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -2671,8 +2671,9 @@ ppc_linux_nat_target::read_description ()
return ppc_linux_match_description (features);
}
+void _initialize_ppc_linux_nat ();
void
-_initialize_ppc_linux_nat (void)
+_initialize_ppc_linux_nat ()
{
linux_target = &the_ppc_linux_nat_target;
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 901b938f257..676be725217 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -2155,8 +2155,9 @@ ppc_linux_init_abi (struct gdbarch_info info,
ppc_init_linux_record_tdep (&ppc64_linux_record_tdep, 8);
}
+void _initialize_ppc_linux_tdep ();
void
-_initialize_ppc_linux_tdep (void)
+_initialize_ppc_linux_tdep ()
{
/* Register for all sub-families of the POWER/PowerPC: 32-bit and
64-bit PowerPC, and the older rs6k. */
diff --git a/gdb/ppc-nbsd-nat.c b/gdb/ppc-nbsd-nat.c
index a6175f9e068..a2a0c0b958e 100644
--- a/gdb/ppc-nbsd-nat.c
+++ b/gdb/ppc-nbsd-nat.c
@@ -179,8 +179,9 @@ ppcnbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
return 1;
}
+void _initialize_ppcnbsd_nat ();
void
-_initialize_ppcnbsd_nat (void)
+_initialize_ppcnbsd_nat ()
{
/* Support debugging kernel virtual memory images. */
bsd_kvm_add_target (ppcnbsd_supply_pcb);
diff --git a/gdb/ppc-nbsd-tdep.c b/gdb/ppc-nbsd-tdep.c
index 387f0221462..d75930c9f8d 100644
--- a/gdb/ppc-nbsd-tdep.c
+++ b/gdb/ppc-nbsd-tdep.c
@@ -188,8 +188,9 @@ ppcnbsd_init_abi (struct gdbarch_info info,
tramp_frame_prepend_unwinder (gdbarch, &ppcnbsd2_sigtramp);
}
+void _initialize_ppcnbsd_tdep ();
void
-_initialize_ppcnbsd_tdep (void)
+_initialize_ppcnbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_NETBSD,
ppcnbsd_init_abi);
diff --git a/gdb/ppc-obsd-nat.c b/gdb/ppc-obsd-nat.c
index 7c8335c9ad7..8d36d2b5caf 100644
--- a/gdb/ppc-obsd-nat.c
+++ b/gdb/ppc-obsd-nat.c
@@ -187,8 +187,9 @@ ppcobsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
return 1;
}
+void _initialize_ppcobsd_nat ();
void
-_initialize_ppcobsd_nat (void)
+_initialize_ppcobsd_nat ()
{
add_inf_child_target (&the_ppc_obsd_nat_target);
diff --git a/gdb/ppc-obsd-tdep.c b/gdb/ppc-obsd-tdep.c
index 1288766eb48..5f70d35180c 100644
--- a/gdb/ppc-obsd-tdep.c
+++ b/gdb/ppc-obsd-tdep.c
@@ -261,8 +261,9 @@ ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
frame_unwind_append_unwinder (gdbarch, &ppcobsd_sigtramp_frame_unwind);
}
+void _initialize_ppcobsd_tdep ();
void
-_initialize_ppcobsd_tdep (void)
+_initialize_ppcobsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_rs6000, 0, GDB_OSABI_OPENBSD,
ppcobsd_init_abi);
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 281ee4d284a..5f2678c8c70 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -2737,8 +2737,9 @@ eval_command (const char *arg, int from_tty)
execute_command (expanded.c_str (), from_tty);
}
+void _initialize_printcmd ();
void
-_initialize_printcmd (void)
+_initialize_printcmd ()
{
struct cmd_list_element *c;
diff --git a/gdb/probe.c b/gdb/probe.c
index d813b3e5e8b..a21df73d0ec 100644
--- a/gdb/probe.c
+++ b/gdb/probe.c
@@ -876,8 +876,9 @@ static const struct internalvar_funcs probe_funcs =
std::vector<const static_probe_ops *> all_static_probe_ops;
+void _initialize_probe ();
void
-_initialize_probe (void)
+_initialize_probe ()
{
all_static_probe_ops.push_back (&any_static_probe_ops);
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index 4ad1cdc0632..d7ad5031b0a 100644
--- a/gdb/proc-api.c
+++ b/gdb/proc-api.c
@@ -416,8 +416,9 @@ proc_prettyfprint_status (long flags, int why, int what, int thread)
}
}
+void _initialize_proc_api ();
void
-_initialize_proc_api (void)
+_initialize_proc_api ()
{
add_setshow_boolean_cmd ("procfs-trace", no_class, &procfs_trace, _("\
Set tracing for /proc api calls."), _("\
diff --git a/gdb/proc-events.c b/gdb/proc-events.c
index 5fd92b5328e..e921c47f8f0 100644
--- a/gdb/proc-events.c
+++ b/gdb/proc-events.c
@@ -762,8 +762,9 @@ proc_prettyprint_actionset (struct sigaction *actions, int verbose)
{
}
+void _initialize_proc_events ();
void
-_initialize_proc_events (void)
+_initialize_proc_events ()
{
init_syscall_table ();
}
diff --git a/gdb/proc-service.c b/gdb/proc-service.c
index 86f79ad5838..e0383700a1d 100644
--- a/gdb/proc-service.c
+++ b/gdb/proc-service.c
@@ -212,8 +212,9 @@ ps_getpid (struct ps_prochandle *ph)
return ph->thread->ptid.pid ();
}
+void _initialize_proc_service ();
void
-_initialize_proc_service (void)
+_initialize_proc_service ()
{
/* This function solely exists to make sure this module is linked
into the final binary. */
diff --git a/gdb/procfs.c b/gdb/procfs.c
index a59e32c6d7a..09a036f90b9 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -3700,8 +3700,9 @@ proc_untrace_sysexit_cmd (const char *args, int from_tty)
proc_trace_syscalls (args, from_tty, PR_SYSEXIT, FLAG_RESET);
}
+void _initialize_procfs ();
void
-_initialize_procfs (void)
+_initialize_procfs ()
{
gdb::observers::inferior_created.attach (procfs_inferior_created);
diff --git a/gdb/producer.c b/gdb/producer.c
index 7e5d4478c8b..735a928f335 100644
--- a/gdb/producer.c
+++ b/gdb/producer.c
@@ -208,6 +208,7 @@ Version 18.0 Beta";
}
#endif
+void _initialize_producer ();
void
_initialize_producer ()
{
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 7caf1c6029a..09231bf981d 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -2154,8 +2154,9 @@ maintenance_check_psymtabs (const char *ignore, int from_tty)
}
}
+void _initialize_psymtab ();
void
-_initialize_psymtab (void)
+_initialize_psymtab ()
{
add_cmd ("psymbols", class_maintenance, maintenance_print_psymbols, _("\
Print dump of current partial symbol definitions.\n\
diff --git a/gdb/python/python.c b/gdb/python/python.c
index bf214fae6e2..f7aadb1633c 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1730,8 +1730,9 @@ do_start_initialization ()
/* See python.h. */
cmd_list_element *python_cmd_element = nullptr;
+void _initialize_python ();
void
-_initialize_python (void)
+_initialize_python ()
{
add_com ("python-interactive", class_obscure,
python_interactive_command,
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index 59fdfaba794..5d24c59e996 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -598,6 +598,7 @@ Support for Ravenscar task/thread switching is disabled\n"));
/* Module startup initialization function, automagically called by
init.c. */
+void _initialize_ravenscar ();
void
_initialize_ravenscar ()
{
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 7e5b7860df6..33ee4e9d817 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -3147,8 +3147,9 @@ show_record_pt_buffer_size_value (struct ui_file *file, int from_tty,
/* Initialize btrace commands. */
+void _initialize_record_btrace ();
void
-_initialize_record_btrace (void)
+_initialize_record_btrace ()
{
add_prefix_cmd ("btrace", class_obscure, cmd_record_btrace_start,
_("Start branch trace recording."), &record_btrace_cmdlist,
diff --git a/gdb/record-full.c b/gdb/record-full.c
index f759a5185fd..16966220e0f 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -2812,8 +2812,9 @@ show_record_full_command (const char *args, int from_tty)
cmd_show_list (show_record_full_cmdlist, from_tty, "");
}
+void _initialize_record_full ();
void
-_initialize_record_full (void)
+_initialize_record_full ()
{
struct cmd_list_element *c;
diff --git a/gdb/record.c b/gdb/record.c
index 51d2a94a2bf..94600eb5e7e 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -772,8 +772,9 @@ set_record_call_history_size (const char *args, int from_tty,
&record_call_history_size);
}
+void _initialize_record ();
void
-_initialize_record (void)
+_initialize_record ()
{
struct cmd_list_element *c;
diff --git a/gdb/regcache-dump.c b/gdb/regcache-dump.c
index 7d4455ad57c..10f6e49a786 100644
--- a/gdb/regcache-dump.c
+++ b/gdb/regcache-dump.c
@@ -305,8 +305,9 @@ maintenance_print_remote_registers (const char *args, int from_tty)
regcache_print (args, regcache_dump_remote);
}
+void _initialize_regcache_dump ();
void
-_initialize_regcache_dump (void)
+_initialize_regcache_dump ()
{
add_cmd ("registers", class_maintenance, maintenance_print_registers,
_("Print the internal register configuration.\n"
diff --git a/gdb/regcache.c b/gdb/regcache.c
index b9f1b0a349f..4f079c91a7f 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1854,8 +1854,9 @@ cooked_write_test (struct gdbarch *gdbarch)
} // namespace selftests
#endif /* GDB_SELF_TEST */
+void _initialize_regcache ();
void
-_initialize_regcache (void)
+_initialize_regcache ()
{
regcache_descr_handle
= gdbarch_data_register_post_init (init_regcache_descr);
diff --git a/gdb/reggroups.c b/gdb/reggroups.c
index 52b13fc9af8..aaaadd7d394 100644
--- a/gdb/reggroups.c
+++ b/gdb/reggroups.c
@@ -321,8 +321,9 @@ struct reggroup *const all_reggroup = &all_group;
struct reggroup *const save_reggroup = &save_group;
struct reggroup *const restore_reggroup = &restore_group;
+void _initialize_reggroup ();
void
-_initialize_reggroup (void)
+_initialize_reggroup ()
{
reggroups_data = gdbarch_data_register_pre_init (reggroups_init);
diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c
index b6e70a43480..cc0011f958c 100644
--- a/gdb/remote-notif.c
+++ b/gdb/remote-notif.c
@@ -237,8 +237,9 @@ remote_notif_state::~remote_notif_state ()
delete pending_event[i];
}
+void _initialize_notif ();
void
-_initialize_notif (void)
+_initialize_notif ()
{
add_setshow_boolean_cmd ("notification", no_class, &notif_debug,
_("\
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index e491042ce02..ac3b4d3a580 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -1287,8 +1287,9 @@ gdbsim_target::has_memory ()
return true;
}
+void _initialize_remote_sim ();
void
-_initialize_remote_sim (void)
+_initialize_remote_sim ()
{
struct cmd_list_element *c;
diff --git a/gdb/remote.c b/gdb/remote.c
index 665e2773e15..03a00db0e8c 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -14312,8 +14312,9 @@ set_range_stepping (const char *ignore_args, int from_tty,
}
}
+void _initialize_remote ();
void
-_initialize_remote (void)
+_initialize_remote ()
{
struct cmd_list_element *cmd;
const char *cmd_name;
diff --git a/gdb/reverse.c b/gdb/reverse.c
index fbffa5227df..1ccb9d27971 100644
--- a/gdb/reverse.c
+++ b/gdb/reverse.c
@@ -322,8 +322,9 @@ info_bookmarks_command (const char *args, int from_tty)
}
}
+void _initialize_reverse ();
void
-_initialize_reverse (void)
+_initialize_reverse ()
{
add_com ("reverse-step", class_run, reverse_step, _("\
Step program backward until it reaches the beginning of another source line.\n\
diff --git a/gdb/riscv-fbsd-nat.c b/gdb/riscv-fbsd-nat.c
index ca30506c12f..27a093552f2 100644
--- a/gdb/riscv-fbsd-nat.c
+++ b/gdb/riscv-fbsd-nat.c
@@ -128,8 +128,9 @@ riscv_fbsd_nat_target::store_registers (struct regcache *regcache,
}
}
+void _initialize_riscv_fbsd_nat ();
void
-_initialize_riscv_fbsd_nat (void)
+_initialize_riscv_fbsd_nat ()
{
add_inf_child_target (&the_riscv_fbsd_nat_target);
}
diff --git a/gdb/riscv-fbsd-tdep.c b/gdb/riscv-fbsd-tdep.c
index 157907373c4..8a9295904de 100644
--- a/gdb/riscv-fbsd-tdep.c
+++ b/gdb/riscv-fbsd-tdep.c
@@ -225,8 +225,9 @@ riscv_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
riscv_fbsd_get_thread_local_address);
}
+void _initialize_riscv_fbsd_tdep ();
void
-_initialize_riscv_fbsd_tdep (void)
+_initialize_riscv_fbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_riscv, 0, GDB_OSABI_FREEBSD,
riscv_fbsd_init_abi);
diff --git a/gdb/riscv-linux-nat.c b/gdb/riscv-linux-nat.c
index 2f95cb3951a..7a96b7b0743 100644
--- a/gdb/riscv-linux-nat.c
+++ b/gdb/riscv-linux-nat.c
@@ -310,8 +310,9 @@ riscv_linux_nat_target::store_registers (struct regcache *regcache, int regnum)
/* Initialize RISC-V Linux native support. */
+void _initialize_riscv_linux_nat ();
void
-_initialize_riscv_linux_nat (void)
+_initialize_riscv_linux_nat ()
{
/* Register the target. */
linux_target = &the_riscv_linux_nat_target;
diff --git a/gdb/riscv-linux-tdep.c b/gdb/riscv-linux-tdep.c
index 919c7e56e4f..12c0eef223c 100644
--- a/gdb/riscv-linux-tdep.c
+++ b/gdb/riscv-linux-tdep.c
@@ -186,8 +186,9 @@ riscv_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* Initialize RISC-V Linux target support. */
+void _initialize_riscv_linux_tdep ();
void
-_initialize_riscv_linux_tdep (void)
+_initialize_riscv_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_riscv, 0, GDB_OSABI_LINUX,
riscv_linux_init_abi);
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c
index 9b06f7c08d3..d585b0be5ab 100644
--- a/gdb/riscv-tdep.c
+++ b/gdb/riscv-tdep.c
@@ -3511,8 +3511,9 @@ riscv_init_reggroups ()
csr_reggroup = reggroup_new ("csr", USER_REGGROUP);
}
+void _initialize_riscv_tdep ();
void
-_initialize_riscv_tdep (void)
+_initialize_riscv_tdep ()
{
riscv_create_csr_aliases ();
riscv_init_reggroups ();
diff --git a/gdb/rl78-tdep.c b/gdb/rl78-tdep.c
index f34f4c6d7f6..3705efdbe89 100644
--- a/gdb/rl78-tdep.c
+++ b/gdb/rl78-tdep.c
@@ -1480,8 +1480,9 @@ rl78_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Register the above initialization routine. */
+void _initialize_rl78_tdep ();
void
-_initialize_rl78_tdep (void)
+_initialize_rl78_tdep ()
{
register_gdbarch_init (bfd_arch_rl78, rl78_gdbarch_init);
}
diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c
index 45fd7c4e7e9..b5add640995 100644
--- a/gdb/rs6000-aix-tdep.c
+++ b/gdb/rs6000-aix-tdep.c
@@ -1177,8 +1177,9 @@ rs6000_aix_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
frame_unwind_append_unwinder (gdbarch, &aix_sighandle_frame_unwind);
}
+void _initialize_rs6000_aix_tdep ();
void
-_initialize_rs6000_aix_tdep (void)
+_initialize_rs6000_aix_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_rs6000,
bfd_target_xcoff_flavour,
diff --git a/gdb/rs6000-lynx178-tdep.c b/gdb/rs6000-lynx178-tdep.c
index bf5d9d859d2..0a20a1783cd 100644
--- a/gdb/rs6000-lynx178-tdep.c
+++ b/gdb/rs6000-lynx178-tdep.c
@@ -406,8 +406,9 @@ rs6000_lynx178_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
}
+void _initialize_rs6000_lynx178_tdep ();
void
-_initialize_rs6000_lynx178_tdep (void)
+_initialize_rs6000_lynx178_tdep ()
{
gdbarch_register_osabi_sniffer (bfd_arch_rs6000,
bfd_target_xcoff_flavour,
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 7c916090165..654e06e3e4b 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -668,8 +668,9 @@ rs6000_nat_target::xfer_shared_libraries
}
}
+void _initialize_rs6000_nat ();
void
-_initialize_rs6000_nat (void)
+_initialize_rs6000_nat ()
{
add_inf_child_target (&the_rs6000_nat_target);
}
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index f61009941da..ccffc39508a 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -7307,8 +7307,9 @@ ppc_insn_ds_field (unsigned int insn)
/* Initialization code. */
+void _initialize_rs6000_tdep ();
void
-_initialize_rs6000_tdep (void)
+_initialize_rs6000_tdep ()
{
gdbarch_register (bfd_arch_rs6000, rs6000_gdbarch_init, rs6000_dump_tdep);
gdbarch_register (bfd_arch_powerpc, rs6000_gdbarch_init, rs6000_dump_tdep);
diff --git a/gdb/run-on-main-thread.c b/gdb/run-on-main-thread.c
index 0676d9d6005..74ab1e19a57 100644
--- a/gdb/run-on-main-thread.c
+++ b/gdb/run-on-main-thread.c
@@ -89,6 +89,7 @@ run_on_main_thread (std::function<void ()> &&func)
serial_event_set (runnable_event);
}
+void _initialize_run_on_main_thread ();
void
_initialize_run_on_main_thread ()
{
diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y
index 3ab9e26246c..de4a8161635 100644
--- a/gdb/rust-exp.y
+++ b/gdb/rust-exp.y
@@ -2826,8 +2826,9 @@ rust_lex_tests (void)
#endif /* GDB_SELF_TEST */
+void _initialize_rust_exp ();
void
-_initialize_rust_exp (void)
+_initialize_rust_exp ()
{
int code = regcomp (&number_regex, number_regex_text, REG_EXTENDED);
/* If the regular expression was incorrect, it was a programming
diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c
index f282fa32a43..766eaa06ed3 100644
--- a/gdb/rx-tdep.c
+++ b/gdb/rx-tdep.c
@@ -1057,8 +1057,9 @@ rx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Register the above initialization routine. */
+void _initialize_rx_tdep ();
void
-_initialize_rx_tdep (void)
+_initialize_rx_tdep ()
{
register_gdbarch_init (bfd_arch_rx, rx_gdbarch_init);
initialize_tdesc_rx ();
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c
index 8fa05058978..922268d1ef2 100644
--- a/gdb/s12z-tdep.c
+++ b/gdb/s12z-tdep.c
@@ -685,8 +685,9 @@ s12z_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_s12z_tdep ();
void
-_initialize_s12z_tdep (void)
+_initialize_s12z_tdep ()
{
gdbarch_register (bfd_arch_s12z, s12z_gdbarch_init, NULL);
}
diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c
index d1634bd3a6a..9ec806f5b59 100644
--- a/gdb/s390-linux-nat.c
+++ b/gdb/s390-linux-nat.c
@@ -1045,8 +1045,9 @@ s390_linux_nat_target::read_description ()
tdesc_s390_linux32);
}
+void _initialize_s390_nat ();
void
-_initialize_s390_nat (void)
+_initialize_s390_nat ()
{
/* Register the target. */
linux_target = &the_s390_linux_nat_target;
diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c
index 65de2773194..e27ce2781f5 100644
--- a/gdb/s390-linux-tdep.c
+++ b/gdb/s390-linux-tdep.c
@@ -1177,8 +1177,9 @@ s390_linux_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
set_xml_syscall_file_name (gdbarch, XML_SYSCALL_FILENAME_S390X);
}
+void _initialize_s390_linux_tdep ();
void
-_initialize_s390_linux_tdep (void)
+_initialize_s390_linux_tdep ()
{
/* Hook us into the OSABI mechanism. */
gdbarch_register_osabi (bfd_arch_s390, bfd_mach_s390_31, GDB_OSABI_LINUX,
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index b08f331b0a1..e01505549e6 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -7215,8 +7215,9 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_s390_tdep ();
void
-_initialize_s390_tdep (void)
+_initialize_s390_tdep ()
{
/* Hook us into the gdbarch mechanism. */
register_gdbarch_init (bfd_arch_s390, s390_gdbarch_init);
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index 0ec0e35943a..14eeee9eb8c 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -1510,8 +1510,9 @@ score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_score_tdep ();
void
-_initialize_score_tdep (void)
+_initialize_score_tdep ()
{
gdbarch_register (bfd_arch_score, score_gdbarch_init, NULL);
}
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index a1a8f29c712..9a5b6dcd0e4 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -915,8 +915,9 @@ info_serial_command (const char *arg, int from_tty)
#endif
}
+void _initialize_ser_dos ();
void
-_initialize_ser_dos (void)
+_initialize_ser_dos ()
{
serial_add_interface (&dos_ops);
diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c
index e6363a1053d..d204e861a7a 100644
--- a/gdb/ser-mingw.c
+++ b/gdb/ser-mingw.c
@@ -1338,8 +1338,9 @@ static const struct serial_ops tcp_ops =
net_windows_done_wait_handle
};
+void _initialize_ser_windows ();
void
-_initialize_ser_windows (void)
+_initialize_ser_windows ()
{
WSADATA wsa_data;
diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c
index bdc6b054c5d..db4c8e0e1a4 100644
--- a/gdb/ser-pipe.c
+++ b/gdb/ser-pipe.c
@@ -228,8 +228,9 @@ static const struct serial_ops pipe_ops =
ser_unix_write_prim
};
+void _initialize_ser_pipe ();
void
-_initialize_ser_pipe (void)
+_initialize_ser_pipe ()
{
serial_add_interface (&pipe_ops);
}
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index cecdfb2626b..c5581744f99 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -469,8 +469,9 @@ static const struct serial_ops tcp_ops =
#endif /* USE_WIN32API */
+void _initialize_ser_tcp ();
void
-_initialize_ser_tcp (void)
+_initialize_ser_tcp ()
{
#ifdef USE_WIN32API
/* Do nothing; the TCP serial operations will be initialized in
diff --git a/gdb/ser-uds.c b/gdb/ser-uds.c
index 7d216de13d5..eb4fe2cb44e 100644
--- a/gdb/ser-uds.c
+++ b/gdb/ser-uds.c
@@ -111,8 +111,9 @@ static const struct serial_ops uds_ops =
uds_write_prim
};
+void _initialize_ser_socket ();
void
-_initialize_ser_socket (void)
+_initialize_ser_socket ()
{
serial_add_interface (&uds_ops);
}
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index df6bc4c7c4c..8000e352a09 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -498,8 +498,9 @@ static const struct serial_ops hardwire_ops =
ser_unix_write_prim
};
+void _initialize_ser_hardwire ();
void
-_initialize_ser_hardwire (void)
+_initialize_ser_hardwire ()
{
serial_add_interface (&hardwire_ops);
diff --git a/gdb/serial.c b/gdb/serial.c
index a1c3b91c7c2..e0d64dd627f 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -676,8 +676,9 @@ set_parity (const char *ignore_args, int from_tty, struct cmd_list_element *c)
serial_parity = GDBPARITY_NONE;
}
+void _initialize_serial ();
void
-_initialize_serial (void)
+_initialize_serial ()
{
#if 0
add_com ("connect", class_obscure, connect_command, _("\
diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
index 13c10eeeda6..5d2f38f5801 100644
--- a/gdb/sh-linux-tdep.c
+++ b/gdb/sh-linux-tdep.c
@@ -208,8 +208,9 @@ sh_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tramp_frame_prepend_unwinder (gdbarch, &sh_linux_rt_sigreturn_tramp_frame);
}
+void _initialize_sh_linux_tdep ();
void
-_initialize_sh_linux_tdep (void)
+_initialize_sh_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_LINUX, sh_linux_init_abi);
}
diff --git a/gdb/sh-nbsd-nat.c b/gdb/sh-nbsd-nat.c
index 873bdba0028..47cae00d4f5 100644
--- a/gdb/sh-nbsd-nat.c
+++ b/gdb/sh-nbsd-nat.c
@@ -96,8 +96,9 @@ sh_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
}
}
+void _initialize_shnbsd_nat ();
void
-_initialize_shnbsd_nat (void)
+_initialize_shnbsd_nat ()
{
add_inf_child_target (&the_sh_nbsd_nat_target);
}
diff --git a/gdb/sh-nbsd-tdep.c b/gdb/sh-nbsd-tdep.c
index bdf5e4f6130..aa319261684 100644
--- a/gdb/sh-nbsd-tdep.c
+++ b/gdb/sh-nbsd-tdep.c
@@ -71,8 +71,9 @@ shnbsd_init_abi (struct gdbarch_info info,
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
}
+void _initialize_shnbsd_tdep ();
void
-_initialize_shnbsd_tdep (void)
+_initialize_shnbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_NETBSD,
shnbsd_init_abi);
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index e3aee0ac286..b69313d050f 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -2422,8 +2422,9 @@ set_sh_command (const char *args, int from_tty)
help_list (setshcmdlist, "set sh ", all_commands, gdb_stdout);
}
+void _initialize_sh_tdep ();
void
-_initialize_sh_tdep (void)
+_initialize_sh_tdep ()
{
gdbarch_register (bfd_arch_sh, sh_gdbarch_init, NULL);
diff --git a/gdb/skip.c b/gdb/skip.c
index b27bebaa26a..05be42ab58d 100644
--- a/gdb/skip.c
+++ b/gdb/skip.c
@@ -665,8 +665,9 @@ complete_skip_number (cmd_list_element *cmd,
}
}
+void _initialize_step_skip ();
void
-_initialize_step_skip (void)
+_initialize_step_skip ()
{
static struct cmd_list_element *skiplist = NULL;
struct cmd_list_element *c;
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index bf2325b6a9e..333fb961931 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -1190,8 +1190,9 @@ sol_thread_target::get_ada_task_ptid (long lwp, long thread)
return (thread_info->ptid);
}
+void _initialize_sol_thread ();
void
-_initialize_sol_thread (void)
+_initialize_sol_thread ()
{
void *dlhandle;
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c
index f44ea937d94..125c8960c20 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -719,8 +719,9 @@ show_solib_aix_debug (struct ui_file *file, int from_tty,
/* The target_so_ops for AIX targets. */
struct target_so_ops solib_aix_so_ops;
+void _initialize_solib_aix ();
void
-_initialize_solib_aix (void)
+_initialize_solib_aix ()
{
solib_aix_so_ops.relocate_section_addresses
= solib_aix_relocate_section_addresses;
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c
index 1ad781d686b..03d91d1690a 100644
--- a/gdb/solib-darwin.c
+++ b/gdb/solib-darwin.c
@@ -669,8 +669,9 @@ darwin_bfd_open (const char *pathname)
struct target_so_ops darwin_so_ops;
+void _initialize_darwin_solib ();
void
-_initialize_darwin_solib (void)
+_initialize_darwin_solib ()
{
darwin_so_ops.relocate_section_addresses = darwin_relocate_section_addresses;
darwin_so_ops.free_so = darwin_free_so;
diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c
index 52fa0e868aa..2acad96b5d9 100644
--- a/gdb/solib-dsbt.c
+++ b/gdb/solib-dsbt.c
@@ -1022,8 +1022,9 @@ show_dsbt_debug (struct ui_file *file, int from_tty,
struct target_so_ops dsbt_so_ops;
+void _initialize_dsbt_solib ();
void
-_initialize_dsbt_solib (void)
+_initialize_dsbt_solib ()
{
dsbt_so_ops.relocate_section_addresses = dsbt_relocate_section_addresses;
dsbt_so_ops.free_so = dsbt_free_so;
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c
index 10476f6250c..582f2d5ede6 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -1142,8 +1142,9 @@ frv_fetch_objfile_link_map (struct objfile *objfile)
struct target_so_ops frv_so_ops;
+void _initialize_frv_solib ();
void
-_initialize_frv_solib (void)
+_initialize_frv_solib ()
{
frv_so_ops.relocate_section_addresses = frv_relocate_section_addresses;
frv_so_ops.free_so = frv_free_so;
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 3122f06939f..1c769bb4015 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -3260,8 +3260,9 @@ svr4_iterate_over_objfiles_in_search_order
}
}
+void _initialize_svr4_solib ();
void
-_initialize_svr4_solib (void)
+_initialize_svr4_solib ()
{
solib_svr4_data = gdbarch_data_register_pre_init (solib_svr4_init);
diff --git a/gdb/solib-target.c b/gdb/solib-target.c
index 625f0990d10..93d95fdda65 100644
--- a/gdb/solib-target.c
+++ b/gdb/solib-target.c
@@ -438,8 +438,9 @@ solib_target_in_dynsym_resolve_code (CORE_ADDR pc)
struct target_so_ops solib_target_so_ops;
+void _initialize_solib_target ();
void
-_initialize_solib_target (void)
+_initialize_solib_target ()
{
solib_target_so_ops.relocate_section_addresses
= solib_target_relocate_section_addresses;
diff --git a/gdb/solib.c b/gdb/solib.c
index 962ce32dcf0..ba388d77e8d 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -1569,8 +1569,9 @@ remove_user_added_objfile (struct objfile *objfile)
}
}
+void _initialize_solib ();
void
-_initialize_solib (void)
+_initialize_solib ()
{
solib_data = gdbarch_data_register_pre_init (solib_init);
diff --git a/gdb/source-cache.c b/gdb/source-cache.c
index 965dc380b14..d546ae59524 100644
--- a/gdb/source-cache.c
+++ b/gdb/source-cache.c
@@ -329,6 +329,7 @@ static void extract_lines_test ()
}
#endif
+void _initialize_source_cache ();
void
_initialize_source_cache ()
{
diff --git a/gdb/source.c b/gdb/source.c
index 1bc98d376e5..327e9c1229e 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1865,8 +1865,9 @@ source_lines_range::source_lines_range (int startline,
}
+void _initialize_source ();
void
-_initialize_source (void)
+_initialize_source ()
{
struct cmd_list_element *c;
diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c
index 03e2c6ebba8..1489d0980e1 100644
--- a/gdb/sparc-linux-nat.c
+++ b/gdb/sparc-linux-nat.c
@@ -66,8 +66,9 @@ fill_fpregset (const struct regcache *regcache,
sparc32_collect_fpregset (sparc_fpregmap, regcache, regnum, fpregs);
}
+void _initialize_sparc_linux_nat ();
void
-_initialize_sparc_linux_nat (void)
+_initialize_sparc_linux_nat ()
{
sparc_fpregmap = &sparc32_bsd_fpregmap;
diff --git a/gdb/sparc-linux-tdep.c b/gdb/sparc-linux-tdep.c
index e1ba8c60b2e..1c4adb83674 100644
--- a/gdb/sparc-linux-tdep.c
+++ b/gdb/sparc-linux-tdep.c
@@ -465,8 +465,9 @@ sparc32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
sparc32_linux_gdb_signal_to_target);
}
+void _initialize_sparc_linux_tdep ();
void
-_initialize_sparc_linux_tdep (void)
+_initialize_sparc_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_LINUX,
sparc32_linux_init_abi);
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c
index 81d16cecfdc..dff0f521565 100644
--- a/gdb/sparc-nat.c
+++ b/gdb/sparc-nat.c
@@ -305,8 +305,9 @@ sparc_xfer_wcookie (enum target_object object,
}
+void _initialize_sparc_nat ();
void
-_initialize_sparc_nat (void)
+_initialize_sparc_nat ()
{
/* Default to using SunOS 4 register sets. */
if (sparc_gregmap == NULL)
diff --git a/gdb/sparc-nbsd-nat.c b/gdb/sparc-nbsd-nat.c
index cf940f65837..7138d7df737 100644
--- a/gdb/sparc-nbsd-nat.c
+++ b/gdb/sparc-nbsd-nat.c
@@ -57,8 +57,9 @@ sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
static sparc_target<inf_ptrace_target> the_sparc_nbsd_nat_target;
+void _initialize_sparcnbsd_nat ();
void
-_initialize_sparcnbsd_nat (void)
+_initialize_sparcnbsd_nat ()
{
sparc_gregmap = &sparc32nbsd_gregmap;
sparc_fpregmap = &sparc32_bsd_fpregmap;
diff --git a/gdb/sparc-nbsd-tdep.c b/gdb/sparc-nbsd-tdep.c
index c1574bbdc61..7aba6020d27 100644
--- a/gdb/sparc-nbsd-tdep.c
+++ b/gdb/sparc-nbsd-tdep.c
@@ -315,8 +315,9 @@ sparc32nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
}
+void _initialize_sparcnbsd_tdep ();
void
-_initialize_sparcnbsd_tdep (void)
+_initialize_sparcnbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_NETBSD,
sparc32nbsd_init_abi);
diff --git a/gdb/sparc-obsd-tdep.c b/gdb/sparc-obsd-tdep.c
index b5392d2aed1..53bdf6c1512 100644
--- a/gdb/sparc-obsd-tdep.c
+++ b/gdb/sparc-obsd-tdep.c
@@ -246,8 +246,9 @@ sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
bsd_uthread_set_collect_uthread (gdbarch, sparc32obsd_collect_uthread);
}
+void _initialize_sparc32obsd_tdep ();
void
-_initialize_sparc32obsd_tdep (void)
+_initialize_sparc32obsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_OPENBSD,
sparc32obsd_init_abi);
diff --git a/gdb/sparc-sol2-tdep.c b/gdb/sparc-sol2-tdep.c
index a886449902d..2df66d512ce 100644
--- a/gdb/sparc-sol2-tdep.c
+++ b/gdb/sparc-sol2-tdep.c
@@ -293,8 +293,9 @@ sparc32_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
}
+void _initialize_sparc_sol2_tdep ();
void
-_initialize_sparc_sol2_tdep (void)
+_initialize_sparc_sol2_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, 0,
GDB_OSABI_SOLARIS, sparc32_sol2_init_abi);
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 16d1c48755d..e048f872c2a 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -2258,8 +2258,9 @@ const struct sparc_fpregmap sparc32_bsd_fpregmap =
32 * 4, /* %fsr */
};
+void _initialize_sparc_tdep ();
void
-_initialize_sparc_tdep (void)
+_initialize_sparc_tdep ()
{
register_gdbarch_init (bfd_arch_sparc, sparc32_gdbarch_init);
}
diff --git a/gdb/sparc64-fbsd-nat.c b/gdb/sparc64-fbsd-nat.c
index d7d87483670..a3ca6705b08 100644
--- a/gdb/sparc64-fbsd-nat.c
+++ b/gdb/sparc64-fbsd-nat.c
@@ -62,8 +62,9 @@ sparc64fbsd_kvm_supply_pcb (struct regcache *regcache, struct pcb *pcb)
/* Add some extra features to the generic SPARC target. */
static sparc_target<fbsd_nat_target> the_sparc64_fbsd_nat_target;
+void _initialize_sparc64fbsd_nat ();
void
-_initialize_sparc64fbsd_nat (void)
+_initialize_sparc64fbsd_nat ()
{
add_inf_child_target (&the_sparc64_fbsd_nat_target);
diff --git a/gdb/sparc64-fbsd-tdep.c b/gdb/sparc64-fbsd-tdep.c
index 873a888a25f..0b4cbfaa373 100644
--- a/gdb/sparc64-fbsd-tdep.c
+++ b/gdb/sparc64-fbsd-tdep.c
@@ -242,8 +242,9 @@ sparc64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_lp64_fetch_link_map_offsets);
}
+void _initialize_sparc64fbsd_tdep ();
void
-_initialize_sparc64fbsd_tdep (void)
+_initialize_sparc64fbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
GDB_OSABI_FREEBSD, sparc64fbsd_init_abi);
diff --git a/gdb/sparc64-linux-nat.c b/gdb/sparc64-linux-nat.c
index bb2bc7175e4..b7f27792b8f 100644
--- a/gdb/sparc64-linux-nat.c
+++ b/gdb/sparc64-linux-nat.c
@@ -88,8 +88,9 @@ fill_fpregset (const struct regcache *regcache,
sparc64_collect_fpregset (&sparc64_bsd_fpregmap, regcache, regnum, fpregs);
}
+void _initialize_sparc64_linux_nat ();
void
-_initialize_sparc64_linux_nat (void)
+_initialize_sparc64_linux_nat ()
{
sparc_fpregmap = &sparc64_bsd_fpregmap;
diff --git a/gdb/sparc64-linux-tdep.c b/gdb/sparc64-linux-tdep.c
index 78de22a3bfd..de6c0479009 100644
--- a/gdb/sparc64-linux-tdep.c
+++ b/gdb/sparc64-linux-tdep.c
@@ -408,8 +408,9 @@ sparc64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
sparc64_linux_handle_segmentation_fault);
}
+void _initialize_sparc64_linux_tdep ();
void
-_initialize_sparc64_linux_tdep (void)
+_initialize_sparc64_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
GDB_OSABI_LINUX, sparc64_linux_init_abi);
diff --git a/gdb/sparc64-nat.c b/gdb/sparc64-nat.c
index 50c312f262a..fa34c8ca04c 100644
--- a/gdb/sparc64-nat.c
+++ b/gdb/sparc64-nat.c
@@ -69,8 +69,9 @@ sparc64_fpregset_supplies_p (struct gdbarch *gdbarch, int regnum)
return 0;
}
+void _initialize_sparc64_nat ();
void
-_initialize_sparc64_nat (void)
+_initialize_sparc64_nat ()
{
sparc_supply_gregset = sparc64_supply_gregset;
sparc_collect_gregset = sparc64_collect_gregset;
diff --git a/gdb/sparc64-nbsd-nat.c b/gdb/sparc64-nbsd-nat.c
index 65ca2fb1b8e..5e249b629d1 100644
--- a/gdb/sparc64-nbsd-nat.c
+++ b/gdb/sparc64-nbsd-nat.c
@@ -170,8 +170,9 @@ sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
/* We've got nothing to add to the generic SPARC target. */
static sparc_target<inf_ptrace_target> the_sparc64_nbsd_nat_target;
+void _initialize_sparc64nbsd_nat ();
void
-_initialize_sparc64nbsd_nat (void)
+_initialize_sparc64nbsd_nat ()
{
sparc_supply_gregset = sparc64nbsd_supply_gregset;
sparc_collect_gregset = sparc64nbsd_collect_gregset;
diff --git a/gdb/sparc64-nbsd-tdep.c b/gdb/sparc64-nbsd-tdep.c
index a292bf13c1a..cd5bfe89410 100644
--- a/gdb/sparc64-nbsd-tdep.c
+++ b/gdb/sparc64-nbsd-tdep.c
@@ -268,8 +268,9 @@ sparc64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_lp64_fetch_link_map_offsets);
}
+void _initialize_sparc64nbsd_tdep ();
void
-_initialize_sparc64nbsd_tdep (void)
+_initialize_sparc64nbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
GDB_OSABI_NETBSD, sparc64nbsd_init_abi);
diff --git a/gdb/sparc64-obsd-nat.c b/gdb/sparc64-obsd-nat.c
index 6c2a02d6ed7..502599badec 100644
--- a/gdb/sparc64-obsd-nat.c
+++ b/gdb/sparc64-obsd-nat.c
@@ -109,8 +109,9 @@ sparc64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
/* Add some extra features to the generic SPARC target. */
static sparc_target<obsd_nat_target> the_sparc64_obsd_nat_target;
+void _initialize_sparc64obsd_nat ();
void
-_initialize_sparc64obsd_nat (void)
+_initialize_sparc64obsd_nat ()
{
sparc_supply_gregset = sparc64_supply_gregset;
sparc_collect_gregset = sparc64_collect_gregset;
diff --git a/gdb/sparc64-obsd-tdep.c b/gdb/sparc64-obsd-tdep.c
index 19715c26a50..fe55124ea02 100644
--- a/gdb/sparc64-obsd-tdep.c
+++ b/gdb/sparc64-obsd-tdep.c
@@ -440,8 +440,9 @@ sparc64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
bsd_uthread_set_collect_uthread (gdbarch, sparc64obsd_collect_uthread);
}
+void _initialize_sparc64obsd_tdep ();
void
-_initialize_sparc64obsd_tdep (void)
+_initialize_sparc64obsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
GDB_OSABI_OPENBSD, sparc64obsd_init_abi);
diff --git a/gdb/sparc64-sol2-tdep.c b/gdb/sparc64-sol2-tdep.c
index a1367423c35..550fed724fc 100644
--- a/gdb/sparc64-sol2-tdep.c
+++ b/gdb/sparc64-sol2-tdep.c
@@ -243,8 +243,9 @@ sparc64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
}
+void _initialize_sparc64_sol2_tdep ();
void
-_initialize_sparc64_sol2_tdep (void)
+_initialize_sparc64_sol2_tdep ()
{
gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9,
GDB_OSABI_SOLARIS, sparc64_sol2_init_abi);
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index 25de497d922..a11da6ab2e8 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -534,8 +534,9 @@ adi_assign_command (const char *args, int from_tty)
do_assign (next_address, cnt, version);
}
+void _initialize_sparc64_adi_tdep ();
void
-_initialize_sparc64_adi_tdep (void)
+_initialize_sparc64_adi_tdep ()
{
add_prefix_cmd ("adi", class_support, info_adi_command,
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 736839a0b0e..a23ebf6b606 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -4779,8 +4779,9 @@ hashname (const char *name)
/* Initializer for this module. */
+void _initialize_stabsread ();
void
-_initialize_stabsread (void)
+_initialize_stabsread ()
{
undef_types_allocated = 20;
undef_types_length = 0;
diff --git a/gdb/stack.c b/gdb/stack.c
index 92784c93396..af30405f29e 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -3339,8 +3339,9 @@ static struct cmd_list_element *select_frame_cmd_list = NULL;
/* Commands with a prefix of `info frame'. */
static struct cmd_list_element *info_frame_cmd_list = NULL;
+void _initialize_stack ();
void
-_initialize_stack (void)
+_initialize_stack ()
{
struct cmd_list_element *cmd;
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index 50f6d518133..2d152122516 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -1709,8 +1709,9 @@ info_probes_stap_command (const char *arg, int from_tty)
info_probes_for_spops (arg, from_tty, &stap_static_probe_ops);
}
+void _initialize_stap_probe ();
void
-_initialize_stap_probe (void)
+_initialize_stap_probe ()
{
all_static_probe_ops.push_back (&stap_static_probe_ops);
diff --git a/gdb/std-regs.c b/gdb/std-regs.c
index b9c906b9c3f..c4220733a81 100644
--- a/gdb/std-regs.c
+++ b/gdb/std-regs.c
@@ -91,8 +91,9 @@ value_of_builtin_frame_ps_reg (struct frame_info *frame, const void *baton)
error (_("Standard register ``$ps'' is not available for this target"));
}
+void _initialize_frame_reg ();
void
-_initialize_frame_reg (void)
+_initialize_frame_reg ()
{
/* Frame based $fp, $pc, $sp and $ps. These only come into play
when the target does not define its own version of these
diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c
index f233b963062..53a77a5405d 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -645,8 +645,9 @@ show_debug_symfile (struct ui_file *file, int from_tty,
fprintf_filtered (file, _("Symfile debugging is %s.\n"), value);
}
+void _initialize_symfile_debug ();
void
-_initialize_symfile_debug (void)
+_initialize_symfile_debug ()
{
add_setshow_boolean_cmd ("symfile", no_class, &debug_symfile, _("\
Set debugging of the symfile functions."), _("\
diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c
index 6dcd6555eda..a62d0d0c8f4 100644
--- a/gdb/symfile-mem.c
+++ b/gdb/symfile-mem.c
@@ -203,8 +203,9 @@ add_vsyscall_page (struct target_ops *target, int from_tty)
}
}
+void _initialize_symfile_mem ();
void
-_initialize_symfile_mem (void)
+_initialize_symfile_mem ()
{
add_cmd ("add-symbol-file-from-memory", class_files,
add_symbol_file_from_memory_command,
diff --git a/gdb/symfile.c b/gdb/symfile.c
index d5a797a32cb..f7bada75f35 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3864,8 +3864,9 @@ test_set_ext_lang_command ()
#endif /* GDB_SELF_TEST */
+void _initialize_symfile ();
void
-_initialize_symfile (void)
+_initialize_symfile ()
{
struct cmd_list_element *c;
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index a5b17ffa381..393a0343b90 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -1040,8 +1040,9 @@ maintenance_info_line_tables (const char *regexp, int from_tty)
/* Do early runtime initializations. */
+void _initialize_symmisc ();
void
-_initialize_symmisc (void)
+_initialize_symmisc ()
{
std_in = stdin;
std_out = stdout;
diff --git a/gdb/symtab.c b/gdb/symtab.c
index cdd9f2e4c12..d5ba249ced6 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -6689,8 +6689,9 @@ info_module_var_func_command_completer (struct cmd_list_element *ignore,
+void _initialize_symtab ();
void
-_initialize_symtab (void)
+_initialize_symtab ()
{
cmd_list_element *c;
diff --git a/gdb/target-connection.c b/gdb/target-connection.c
index c8c63ab375e..bd54d005bef 100644
--- a/gdb/target-connection.c
+++ b/gdb/target-connection.c
@@ -149,6 +149,8 @@ info_connections_command (const char *args, int from_tty)
print_connection (current_uiout, args);
}
+void _initialize_target_connection ();
+
void
_initialize_target_connection ()
{
diff --git a/gdb/target-dcache.c b/gdb/target-dcache.c
index 9bdc3df7988..0226d672780 100644
--- a/gdb/target-dcache.c
+++ b/gdb/target-dcache.c
@@ -152,8 +152,9 @@ code_cache_enabled_p (void)
return code_cache_enabled;
}
+void _initialize_target_dcache ();
void
-_initialize_target_dcache (void)
+_initialize_target_dcache ()
{
add_setshow_boolean_cmd ("stack-cache", class_support,
&stack_cache_enabled_1, _("\
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 46b123cd592..04711ba2fa5 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -1824,8 +1824,9 @@ maintenance_check_xml_descriptions (const char *dir, int from_tty)
(long) selftests::xml_tdesc.size (), failed);
}
+void _initialize_target_descriptions ();
void
-_initialize_target_descriptions (void)
+_initialize_target_descriptions ()
{
tdesc_data = gdbarch_data_register_pre_init (tdesc_data_init);
diff --git a/gdb/target.c b/gdb/target.c
index f6058451d65..b24d3d899e8 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -4030,6 +4030,8 @@ set_write_memory_permission (const char *args, int from_tty,
update_observer_mode ();
}
+void _initialize_target ();
+
void
_initialize_target ()
{
diff --git a/gdb/thread.c b/gdb/thread.c
index 03fdc05140c..001fdd42c5e 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -2189,8 +2189,9 @@ static const struct internalvar_funcs gthread_funcs =
NULL
};
+void _initialize_thread ();
void
-_initialize_thread (void)
+_initialize_thread ()
{
static struct cmd_list_element *thread_apply_list = NULL;
cmd_list_element *c;
diff --git a/gdb/tic6x-linux-tdep.c b/gdb/tic6x-linux-tdep.c
index 2dfd40df326..1b626b5a174 100644
--- a/gdb/tic6x-linux-tdep.c
+++ b/gdb/tic6x-linux-tdep.c
@@ -204,8 +204,9 @@ tic6x_uclinux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
&tic6x_linux_rt_sigreturn_tramp_frame);
}
+void _initialize_tic6x_linux_tdep ();
void
-_initialize_tic6x_linux_tdep (void)
+_initialize_tic6x_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_tic6x, 0, GDB_OSABI_LINUX,
tic6x_uclinux_init_abi);
diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c
index 35a85129fda..a05675c570c 100644
--- a/gdb/tic6x-tdep.c
+++ b/gdb/tic6x-tdep.c
@@ -1301,8 +1301,9 @@ tic6x_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_tic6x_tdep ();
void
-_initialize_tic6x_tdep (void)
+_initialize_tic6x_tdep ()
{
register_gdbarch_init (bfd_arch_tic6x, tic6x_gdbarch_init);
}
diff --git a/gdb/tilegx-linux-nat.c b/gdb/tilegx-linux-nat.c
index ac40baf4482..219693b966f 100644
--- a/gdb/tilegx-linux-nat.c
+++ b/gdb/tilegx-linux-nat.c
@@ -164,8 +164,9 @@ tilegx_linux_nat_target::store_registers (struct regcache *regcache,
perror_with_name (_("Couldn't write registers"));
}
+void _initialize_tile_linux_nat ();
void
-_initialize_tile_linux_nat (void)
+_initialize_tile_linux_nat ()
{
linux_target = &the_tilegx_linux_nat_target;
add_inf_child_target (&the_tilegx_linux_nat_target);
diff --git a/gdb/tilegx-linux-tdep.c b/gdb/tilegx-linux-tdep.c
index db82bc78f52..e656187849c 100644
--- a/gdb/tilegx-linux-tdep.c
+++ b/gdb/tilegx-linux-tdep.c
@@ -135,8 +135,9 @@ tilegx_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver);
}
+void _initialize_tilegx_linux_tdep ();
void
-_initialize_tilegx_linux_tdep (void)
+_initialize_tilegx_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_tilegx, bfd_mach_tilegx, GDB_OSABI_LINUX,
tilegx_linux_init_abi);
diff --git a/gdb/tilegx-tdep.c b/gdb/tilegx-tdep.c
index 13dfc2b36b0..9290bc3878b 100644
--- a/gdb/tilegx-tdep.c
+++ b/gdb/tilegx-tdep.c
@@ -1032,8 +1032,9 @@ tilegx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_tilegx_tdep ();
void
-_initialize_tilegx_tdep (void)
+_initialize_tilegx_tdep ()
{
register_gdbarch_init (bfd_arch_tilegx, tilegx_gdbarch_init);
}
diff --git a/gdb/tracectf.c b/gdb/tracectf.c
index 374e9bbcc50..1c7003c2c9a 100644
--- a/gdb/tracectf.c
+++ b/gdb/tracectf.c
@@ -1721,8 +1721,9 @@ ctf_target::traceframe_info ()
/* module initialization */
+void _initialize_ctf ();
void
-_initialize_ctf (void)
+_initialize_ctf ()
{
#if HAVE_LIBBABELTRACE
add_target (ctf_target_info, ctf_target_open, filename_completer);
diff --git a/gdb/tracefile-tfile.c b/gdb/tracefile-tfile.c
index c1a4a493372..ea191774751 100644
--- a/gdb/tracefile-tfile.c
+++ b/gdb/tracefile-tfile.c
@@ -1131,8 +1131,9 @@ tfile_append_tdesc_line (const char *line)
buffer_grow_str (&trace_tdesc, "\n");
}
+void _initialize_tracefile_tfile ();
void
-_initialize_tracefile_tfile (void)
+_initialize_tracefile_tfile ()
{
add_target (tfile_target_info, tfile_target_open, filename_completer);
}
diff --git a/gdb/tracefile.c b/gdb/tracefile.c
index df00b56ba9c..7f1a25a2cc2 100644
--- a/gdb/tracefile.c
+++ b/gdb/tracefile.c
@@ -471,8 +471,9 @@ tracefile_target::get_trace_status (struct trace_status *ts)
return -1;
}
+void _initialize_tracefile ();
void
-_initialize_tracefile (void)
+_initialize_tracefile ()
{
add_com ("tsave", class_trace, tsave_command, _("\
Save the trace data to a file.\n\
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index a934e56d3b9..aa6bea4a8f4 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3980,8 +3980,9 @@ static const struct internalvar_funcs sdata_funcs =
cmd_list_element *while_stepping_cmd_element = nullptr;
/* module initialization */
+void _initialize_tracepoint ();
void
-_initialize_tracepoint (void)
+_initialize_tracepoint ()
{
struct cmd_list_element *c;
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index 76a50fc4b2b..0e45e0e7507 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -277,8 +277,9 @@ tui_remove_hooks (void)
tui_attach_detach_observers (false);
}
+void _initialize_tui_hooks ();
void
-_initialize_tui_hooks (void)
+_initialize_tui_hooks ()
{
/* Install the permanent hooks. */
gdb::observers::new_objfile.attach (tui_new_objfile_hook);
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 808a77dfd10..978b5022152 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -306,8 +306,9 @@ tui_interp_factory (const char *name)
return new tui_interp (name);
}
+void _initialize_tui_interp ();
void
-_initialize_tui_interp (void)
+_initialize_tui_interp ()
{
interp_factory_register (INTERP_TUI, tui_interp_factory);
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 3720d3edc3c..01961f550c2 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -790,8 +790,9 @@ initialize_layouts ()
/* Function to initialize gdb commands, for tui window layout
manipulation. */
+void _initialize_tui_layout ();
void
-_initialize_tui_layout (void)
+_initialize_tui_layout ()
{
struct cmd_list_element *cmd;
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 50b3e72e510..80d1a270e63 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -650,8 +650,9 @@ tui_reggroup_completer (struct cmd_list_element *ignore,
}
}
+void _initialize_tui_regs ();
void
-_initialize_tui_regs (void)
+_initialize_tui_regs ()
{
struct cmd_list_element **tuicmd, *cmd;
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index 18e91882770..7758f2f40d5 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -370,8 +370,9 @@ tui_update_command (const char *arg, int from_tty)
/* Function to initialize gdb commands, for tui window stack
manipulation. */
+void _initialize_tui_stack ();
void
-_initialize_tui_stack (void)
+_initialize_tui_stack ()
{
add_com ("update", class_tui, tui_update_command,
_("Update the source window and locator to "
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index df9bf43681e..8b7c39916a3 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1012,8 +1012,9 @@ parse_scrolling_args (const char *arg,
/* Function to initialize gdb commands, for tui window
manipulation. */
+void _initialize_tui_win ();
void
-_initialize_tui_win (void)
+_initialize_tui_win ()
{
static struct cmd_list_element *tui_setlist;
static struct cmd_list_element *tui_showlist;
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 99d30a55a15..be19ef701d7 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -605,8 +605,9 @@ tui_get_command_dimension (unsigned int *width,
return true;
}
+void _initialize_tui ();
void
-_initialize_tui (void)
+_initialize_tui ()
{
struct cmd_list_element **tuicmd;
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index effc511e5bb..e58cd5da289 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -798,8 +798,9 @@ show_print_type_nested_types (struct ui_file *file, int from_tty,
}
}
+void _initialize_typeprint ();
void
-_initialize_typeprint (void)
+_initialize_typeprint ()
{
struct cmd_list_element *c;
diff --git a/gdb/ui-style.c b/gdb/ui-style.c
index 28024f57b6f..2d6640bc700 100644
--- a/gdb/ui-style.c
+++ b/gdb/ui-style.c
@@ -404,6 +404,7 @@ skip_ansi_escape (const char *buf, int *n_read)
return true;
}
+void _initialize_ui_style ();
void
_initialize_ui_style ()
{
diff --git a/gdb/unittests/array-view-selftests.c b/gdb/unittests/array-view-selftests.c
index c1079bd505b..b4fc86646ef 100644
--- a/gdb/unittests/array-view-selftests.c
+++ b/gdb/unittests/array-view-selftests.c
@@ -523,6 +523,7 @@ run_tests ()
} /* namespace array_view_tests */
} /* namespace selftests */
+void _initialize_array_view_selftests ();
void
_initialize_array_view_selftests ()
{
diff --git a/gdb/unittests/child-path-selftests.c b/gdb/unittests/child-path-selftests.c
index fdd692d736b..24b918aef08 100644
--- a/gdb/unittests/child-path-selftests.c
+++ b/gdb/unittests/child-path-selftests.c
@@ -59,6 +59,7 @@ test ()
}
}
+void _initialize_child_path_selftests ();
void
_initialize_child_path_selftests ()
{
diff --git a/gdb/unittests/cli-utils-selftests.c b/gdb/unittests/cli-utils-selftests.c
index bc308f60b6d..09c8565ce92 100644
--- a/gdb/unittests/cli-utils-selftests.c
+++ b/gdb/unittests/cli-utils-selftests.c
@@ -110,6 +110,7 @@ test_cli_utils ()
}
}
+void _initialize_cli_utils_selftests ();
void
_initialize_cli_utils_selftests ()
{
diff --git a/gdb/unittests/common-utils-selftests.c b/gdb/unittests/common-utils-selftests.c
index 8934a3da412..e24c3fdf0b4 100644
--- a/gdb/unittests/common-utils-selftests.c
+++ b/gdb/unittests/common-utils-selftests.c
@@ -125,6 +125,7 @@ string_vappendf_tests ()
} /* namespace selftests */
+void _initialize_common_utils_selftests ();
void
_initialize_common_utils_selftests ()
{
diff --git a/gdb/unittests/copy_bitwise-selftests.c b/gdb/unittests/copy_bitwise-selftests.c
index 80e09e711df..d9e9132cf09 100644
--- a/gdb/unittests/copy_bitwise-selftests.c
+++ b/gdb/unittests/copy_bitwise-selftests.c
@@ -152,6 +152,7 @@ copy_bitwise_tests (void)
} /* namespace selftests */
+void _initialize_copy_bitwise_utils_selftests ();
void
_initialize_copy_bitwise_utils_selftests ()
{
diff --git a/gdb/unittests/environ-selftests.c b/gdb/unittests/environ-selftests.c
index 65a9c66bcee..55318605a3b 100644
--- a/gdb/unittests/environ-selftests.c
+++ b/gdb/unittests/environ-selftests.c
@@ -298,6 +298,7 @@ run_tests ()
} /* namespace gdb_environ */
} /* namespace selftests */
+void _initialize_environ_selftests ();
void
_initialize_environ_selftests ()
{
diff --git a/gdb/unittests/filtered_iterator-selftests.c b/gdb/unittests/filtered_iterator-selftests.c
index 604d3c5d72d..14060e1d0af 100644
--- a/gdb/unittests/filtered_iterator-selftests.c
+++ b/gdb/unittests/filtered_iterator-selftests.c
@@ -155,6 +155,7 @@ test_filtered_iterator_eq ()
} /* namespace selftests */
+void _initialize_filtered_iterator_selftests ();
void
_initialize_filtered_iterator_selftests ()
{
diff --git a/gdb/unittests/format_pieces-selftests.c b/gdb/unittests/format_pieces-selftests.c
index bc1bc15c933..80b408aae11 100644
--- a/gdb/unittests/format_pieces-selftests.c
+++ b/gdb/unittests/format_pieces-selftests.c
@@ -142,6 +142,7 @@ run_tests ()
} /* namespace format_pieces */
} /* namespace selftests */
+void _initialize_format_pieces_selftests ();
void
_initialize_format_pieces_selftests ()
{
diff --git a/gdb/unittests/function-view-selftests.c b/gdb/unittests/function-view-selftests.c
index fd0f81222fc..610b53cb483 100644
--- a/gdb/unittests/function-view-selftests.c
+++ b/gdb/unittests/function-view-selftests.c
@@ -171,6 +171,7 @@ run_tests ()
} /* namespace function_view */
} /* namespace selftests */
+void _initialize_function_view_selftests ();
void
_initialize_function_view_selftests ()
{
diff --git a/gdb/unittests/help-doc-selftests.c b/gdb/unittests/help-doc-selftests.c
index 77b6d015bb9..16ffc4f9907 100644
--- a/gdb/unittests/help-doc-selftests.c
+++ b/gdb/unittests/help-doc-selftests.c
@@ -98,6 +98,7 @@ help_doc_invariants_tests ()
} /* namespace help_doc_tests */
} /* namespace selftests */
+void _initialize_help_doc_selftests ();
void
_initialize_help_doc_selftests ()
{
diff --git a/gdb/unittests/lookup_name_info-selftests.c b/gdb/unittests/lookup_name_info-selftests.c
index d5f26a4b0d3..002fc697955 100644
--- a/gdb/unittests/lookup_name_info-selftests.c
+++ b/gdb/unittests/lookup_name_info-selftests.c
@@ -103,6 +103,7 @@ run_tests ()
}} // namespace selftests::lookup_name
+void _initialize_lookup_name_info_selftests ();
void
_initialize_lookup_name_info_selftests ()
{
diff --git a/gdb/unittests/main-thread-selftests.c b/gdb/unittests/main-thread-selftests.c
index 7f50ab43da5..c51f34ef41d 100644
--- a/gdb/unittests/main-thread-selftests.c
+++ b/gdb/unittests/main-thread-selftests.c
@@ -70,6 +70,7 @@ run_tests ()
}
}
+void _initialize_main_thread_selftests ();
void
_initialize_main_thread_selftests ()
{
diff --git a/gdb/unittests/memory-map-selftests.c b/gdb/unittests/memory-map-selftests.c
index 904a306aabe..42b5db6974a 100644
--- a/gdb/unittests/memory-map-selftests.c
+++ b/gdb/unittests/memory-map-selftests.c
@@ -76,6 +76,7 @@ parse_memory_map_tests ()
#endif /* HAVE_LIBEXPAT */
+void _initialize_memory_map_selftests ();
void
_initialize_memory_map_selftests ()
{
diff --git a/gdb/unittests/memrange-selftests.c b/gdb/unittests/memrange-selftests.c
index e8b4dece93e..b0402685d38 100644
--- a/gdb/unittests/memrange-selftests.c
+++ b/gdb/unittests/memrange-selftests.c
@@ -106,6 +106,7 @@ normalize_mem_ranges_tests ()
} /* namespace memrange_tests */
} /* namespace selftests */
+void _initialize_memrange_selftests ();
void
_initialize_memrange_selftests ()
{
diff --git a/gdb/unittests/mkdir-recursive-selftests.c b/gdb/unittests/mkdir-recursive-selftests.c
index a0e9341ca32..8647515e062 100644
--- a/gdb/unittests/mkdir-recursive-selftests.c
+++ b/gdb/unittests/mkdir-recursive-selftests.c
@@ -81,6 +81,7 @@ test ()
}
}
+void _initialize_mkdir_recursive_selftests ();
void
_initialize_mkdir_recursive_selftests ()
{
diff --git a/gdb/unittests/observable-selftests.c b/gdb/unittests/observable-selftests.c
index 7e3235b6ec0..b14c3b71112 100644
--- a/gdb/unittests/observable-selftests.c
+++ b/gdb/unittests/observable-selftests.c
@@ -127,6 +127,7 @@ run_tests ()
} /* namespace observers */
} /* namespace selftests */
+void _initialize_observer_selftest ();
void
_initialize_observer_selftest ()
{
diff --git a/gdb/unittests/offset-type-selftests.c b/gdb/unittests/offset-type-selftests.c
index 86dac3e1d66..1e0428bfd4c 100644
--- a/gdb/unittests/offset-type-selftests.c
+++ b/gdb/unittests/offset-type-selftests.c
@@ -171,6 +171,7 @@ run_tests ()
} /* namespace offset_type */
} /* namespace selftests */
+void _initialize_offset_type_selftests ();
void
_initialize_offset_type_selftests ()
{
diff --git a/gdb/unittests/optional-selftests.c b/gdb/unittests/optional-selftests.c
index ddaaeef261c..c1b9e53ac41 100644
--- a/gdb/unittests/optional-selftests.c
+++ b/gdb/unittests/optional-selftests.c
@@ -87,6 +87,7 @@ run_tests ()
} /* namespace optional */
} /* namespace selftests */
+void _initialize_optional_selftests ();
void
_initialize_optional_selftests ()
{
diff --git a/gdb/unittests/parse-connection-spec-selftests.c b/gdb/unittests/parse-connection-spec-selftests.c
index 3f71ec64795..6c0df356425 100644
--- a/gdb/unittests/parse-connection-spec-selftests.c
+++ b/gdb/unittests/parse-connection-spec-selftests.c
@@ -239,6 +239,7 @@ run_tests ()
} /* namespace parse_connection_spec_tests */
} /* namespace selftests */
+void _initialize_parse_connection_spec_selftests ();
void
_initialize_parse_connection_spec_selftests ()
{
diff --git a/gdb/unittests/rsp-low-selftests.c b/gdb/unittests/rsp-low-selftests.c
index 9e75c2374f1..e848e58143e 100644
--- a/gdb/unittests/rsp-low-selftests.c
+++ b/gdb/unittests/rsp-low-selftests.c
@@ -61,6 +61,7 @@ static void test_hex2str ()
} /* namespace rsp_low */
} /* namespace selftests */
+void _initialize_rsp_low_selftests ();
void
_initialize_rsp_low_selftests ()
{
diff --git a/gdb/unittests/scoped_fd-selftests.c b/gdb/unittests/scoped_fd-selftests.c
index 73c1e2de5e3..3f024764245 100644
--- a/gdb/unittests/scoped_fd-selftests.c
+++ b/gdb/unittests/scoped_fd-selftests.c
@@ -93,6 +93,7 @@ run_tests ()
} /* namespace scoped_fd */
} /* namespace selftests */
+void _initialize_scoped_fd_selftests ();
void
_initialize_scoped_fd_selftests ()
{
diff --git a/gdb/unittests/scoped_mmap-selftests.c b/gdb/unittests/scoped_mmap-selftests.c
index fffad74536d..fa963d1b47f 100644
--- a/gdb/unittests/scoped_mmap-selftests.c
+++ b/gdb/unittests/scoped_mmap-selftests.c
@@ -135,6 +135,7 @@ run_tests ()
#endif /* !defined(HAVE_SYS_MMAN_H) */
+void _initialize_scoped_mmap_selftests ();
void
_initialize_scoped_mmap_selftests ()
{
diff --git a/gdb/unittests/scoped_restore-selftests.c b/gdb/unittests/scoped_restore-selftests.c
index b92103545fc..d989678fbf8 100644
--- a/gdb/unittests/scoped_restore-selftests.c
+++ b/gdb/unittests/scoped_restore-selftests.c
@@ -103,6 +103,7 @@ run_tests ()
} /* namespace scoped_restore_tests */
} /* namespace selftests */
+void _initialize_scoped_restore_selftests ();
void
_initialize_scoped_restore_selftests ()
{
diff --git a/gdb/unittests/string_view-selftests.c b/gdb/unittests/string_view-selftests.c
index 49fc95b7fb9..a52419bb28a 100644
--- a/gdb/unittests/string_view-selftests.c
+++ b/gdb/unittests/string_view-selftests.c
@@ -172,6 +172,7 @@ run_tests ()
#endif /* __cplusplus < 201703L */
+void _initialize_string_view_selftests ();
void
_initialize_string_view_selftests ()
{
diff --git a/gdb/unittests/style-selftests.c b/gdb/unittests/style-selftests.c
index 2cf6cf6932d..eeab40f6bc7 100644
--- a/gdb/unittests/style-selftests.c
+++ b/gdb/unittests/style-selftests.c
@@ -101,6 +101,7 @@ run_tests ()
} /* namespace style */
} /* namespace selftests */
+void _initialize_style_selftest ();
void
_initialize_style_selftest ()
{
diff --git a/gdb/unittests/tracepoint-selftests.c b/gdb/unittests/tracepoint-selftests.c
index 62172b6bd2b..63a4784f66d 100644
--- a/gdb/unittests/tracepoint-selftests.c
+++ b/gdb/unittests/tracepoint-selftests.c
@@ -61,6 +61,7 @@ test_parse_static_tracepoint_marker_definition ()
} /* namespace tracepoint_tests */
} /* namespace selftests */
+void _initialize_tracepoint_selftests ();
void
_initialize_tracepoint_selftests ()
{
diff --git a/gdb/unittests/tui-selftests.c b/gdb/unittests/tui-selftests.c
index b2dffaf4930..6144e23f394 100644
--- a/gdb/unittests/tui-selftests.c
+++ b/gdb/unittests/tui-selftests.c
@@ -46,6 +46,7 @@ run_tests ()
#endif /* TUI */
+void _initialize_tui_selftest ();
void
_initialize_tui_selftest ()
{
diff --git a/gdb/unittests/unpack-selftests.c b/gdb/unittests/unpack-selftests.c
index 503412ef8d6..b02a79644bb 100644
--- a/gdb/unittests/unpack-selftests.c
+++ b/gdb/unittests/unpack-selftests.c
@@ -53,6 +53,7 @@ unpack_field_as_long_tests (struct gdbarch *arch)
}
}
+void _initialize_unpack_selftests ();
void
_initialize_unpack_selftests ()
{
diff --git a/gdb/unittests/utils-selftests.c b/gdb/unittests/utils-selftests.c
index 2b59266befd..f6ea2b9fac0 100644
--- a/gdb/unittests/utils-selftests.c
+++ b/gdb/unittests/utils-selftests.c
@@ -51,6 +51,7 @@ test_substitute_path_component ()
}
}
+void _initialize_utils_selftests ();
void
_initialize_utils_selftests ()
{
diff --git a/gdb/unittests/vec-utils-selftests.c b/gdb/unittests/vec-utils-selftests.c
index 027c1216180..38e817ae765 100644
--- a/gdb/unittests/vec-utils-selftests.c
+++ b/gdb/unittests/vec-utils-selftests.c
@@ -66,6 +66,7 @@ unordered_remove_tests ()
} /* namespace vector_utils_tests */
} /* amespace selftests */
+void _initialize_vec_utils_selftests ();
void
_initialize_vec_utils_selftests ()
{
diff --git a/gdb/unittests/xml-utils-selftests.c b/gdb/unittests/xml-utils-selftests.c
index 88e8dfaac87..421b28ef3f6 100644
--- a/gdb/unittests/xml-utils-selftests.c
+++ b/gdb/unittests/xml-utils-selftests.c
@@ -48,6 +48,7 @@ static void test_xml_escape_text_append ()
}
}
+void _initialize_xml_utils ();
void
_initialize_xml_utils ()
{
diff --git a/gdb/user-regs.c b/gdb/user-regs.c
index 4117067a0f8..a232b1eb000 100644
--- a/gdb/user-regs.c
+++ b/gdb/user-regs.c
@@ -233,8 +233,9 @@ maintenance_print_user_registers (const char *args, int from_tty)
fprintf_unfiltered (gdb_stdout, " %-11s %3d\n", reg->name, regnum);
}
+void _initialize_user_regs ();
void
-_initialize_user_regs (void)
+_initialize_user_regs ()
{
user_regs_data = gdbarch_data_register_post_init (user_regs_init);
diff --git a/gdb/utils.c b/gdb/utils.c
index 508c114687e..fe874fb7844 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -3415,8 +3415,9 @@ copy_bitwise (gdb_byte *dest, ULONGEST dest_offset,
}
}
+void _initialize_utils ();
void
-_initialize_utils (void)
+_initialize_utils ()
{
add_setshow_uinteger_cmd ("width", class_support, &chars_per_line, _("\
Set number of characters where GDB should wrap lines of its output."), _("\
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index e5625a3f14e..9b2e9b62e71 100644
--- a/gdb/v850-tdep.c
+++ b/gdb/v850-tdep.c
@@ -1453,8 +1453,9 @@ v850_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return gdbarch;
}
+void _initialize_v850_tdep ();
void
-_initialize_v850_tdep (void)
+_initialize_v850_tdep ()
{
register_gdbarch_init (bfd_arch_v850, v850_gdbarch_init);
register_gdbarch_init (bfd_arch_v850_rh850, v850_gdbarch_init);
diff --git a/gdb/valops.c b/gdb/valops.c
index 8488576ef81..7fc555a8108 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -3909,8 +3909,9 @@ cast_into_complex (struct type *type, struct value *val)
error (_("cannot cast non-number to complex"));
}
+void _initialize_valops ();
void
-_initialize_valops (void)
+_initialize_valops ()
{
add_setshow_boolean_cmd ("overload-resolution", class_support,
&overload_resolution, _("\
diff --git a/gdb/valprint.c b/gdb/valprint.c
index f7088d4d498..f26a87da3bd 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -3262,8 +3262,9 @@ make_value_print_options_def_group (value_print_options *opts)
return {{value_print_option_defs}, opts};
}
+void _initialize_valprint ();
void
-_initialize_valprint (void)
+_initialize_valprint ()
{
cmd_list_element *cmd;
diff --git a/gdb/value.c b/gdb/value.c
index 53b51755d1d..ceaeb835fa7 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -4127,8 +4127,9 @@ test_insert_into_bit_range_vector ()
} /* namespace selftests */
#endif /* GDB_SELF_TEST */
+void _initialize_values ();
void
-_initialize_values (void)
+_initialize_values ()
{
add_cmd ("convenience", no_class, show_convenience, _("\
Debugger convenience (\"$foo\") variables and functions.\n\
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 48d3c3d9c53..8a7b7108f89 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -2520,8 +2520,9 @@ varobj_invalidate (void)
all_root_varobjs (varobj_invalidate_iter, NULL);
}
+void _initialize_varobj ();
void
-_initialize_varobj (void)
+_initialize_varobj ()
{
varobj_table = XCNEWVEC (struct vlist *, VAROBJ_TABLE_SIZE);
diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c
index 0fe8fbc09be..899f3e3ed9c 100644
--- a/gdb/vax-bsd-nat.c
+++ b/gdb/vax-bsd-nat.c
@@ -132,8 +132,9 @@ vaxbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
return 1;
}
+void _initialize_vaxbsd_nat ();
void
-_initialize_vaxbsd_nat (void)
+_initialize_vaxbsd_nat ()
{
add_inf_child_target (&the_vax_bsd_nat_target);
diff --git a/gdb/vax-nbsd-tdep.c b/gdb/vax-nbsd-tdep.c
index 26e8251318e..c2c08cc1603 100644
--- a/gdb/vax-nbsd-tdep.c
+++ b/gdb/vax-nbsd-tdep.c
@@ -34,8 +34,9 @@ vaxnbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
}
+void _initialize_vaxnbsd_tdep ();
void
-_initialize_vaxnbsd_tdep (void)
+_initialize_vaxnbsd_tdep ()
{
gdbarch_register_osabi (bfd_arch_vax, 0, GDB_OSABI_NETBSD,
vaxnbsd_elf_init_abi);
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c
index a83decd6bd6..9373dc848d4 100644
--- a/gdb/vax-tdep.c
+++ b/gdb/vax-tdep.c
@@ -507,8 +507,9 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return (gdbarch);
}
+void _initialize_vax_tdep ();
void
-_initialize_vax_tdep (void)
+_initialize_vax_tdep ()
{
gdbarch_register (bfd_arch_vax, vax_gdbarch_init, NULL);
}
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index be5955d379f..901e64263c6 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -3056,8 +3056,9 @@ windows_nat_target::thread_name (struct thread_info *thr)
}
+void _initialize_windows_nat ();
void
-_initialize_windows_nat (void)
+_initialize_windows_nat ()
{
x86_dr_low.set_control = cygwin_set_dr7;
x86_dr_low.set_addr = cygwin_set_dr;
@@ -3218,8 +3219,9 @@ windows_nat_target::thread_alive (ptid_t ptid)
return WaitForSingleObject (thread_rec (tid, FALSE)->h, 0) != WAIT_OBJECT_0;
}
+void _initialize_check_for_gdb_ini ();
void
-_initialize_check_for_gdb_ini (void)
+_initialize_check_for_gdb_ini ()
{
char *homedir;
if (inhibit_gdbinit)
@@ -3315,8 +3317,9 @@ bad_GetConsoleFontSize (HANDLE w, DWORD nFont)
/* Load any functions which may not be available in ancient versions
of Windows. */
+void _initialize_loadable ();
void
-_initialize_loadable (void)
+_initialize_loadable ()
{
HMODULE hm = NULL;
diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c
index b6e5b9ff7c2..12438e87af3 100644
--- a/gdb/windows-tdep.c
+++ b/gdb/windows-tdep.c
@@ -619,8 +619,9 @@ static const struct internalvar_funcs tlb_funcs =
NULL
};
+void _initialize_windows_tdep ();
void
-_initialize_windows_tdep (void)
+_initialize_windows_tdep ()
{
init_w32_command_list ();
add_cmd ("thread-information-block", class_info, display_tib,
diff --git a/gdb/x86-bsd-nat.c b/gdb/x86-bsd-nat.c
index 3fc6f627827..2bb8f8a2347 100644
--- a/gdb/x86-bsd-nat.c
+++ b/gdb/x86-bsd-nat.c
@@ -122,6 +122,7 @@ x86bsd_dr_get_control (void)
#endif /* PT_GETDBREGS */
+void _initialize_x86_bsd_nat ();
void
_initialize_x86_bsd_nat ()
{
diff --git a/gdb/x86-linux-nat.c b/gdb/x86-linux-nat.c
index f07ef858254..fb2c92c425b 100644
--- a/gdb/x86-linux-nat.c
+++ b/gdb/x86-linux-nat.c
@@ -310,6 +310,7 @@ x86_linux_get_thread_area (pid_t pid, void *addr, unsigned int *base_addr)
}
+void _initialize_x86_linux_nat ();
void
_initialize_x86_linux_nat ()
{
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index d0fa90e49fb..5c6061077f5 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -3128,8 +3128,9 @@ xcoff_get_n_import_files (bfd *abfd)
return l_nimpid - 1;
}
+void _initialize_xcoffread ();
void
-_initialize_xcoffread (void)
+_initialize_xcoffread ()
{
add_symtab_fns (bfd_target_xcoff_flavour, &xcoff_sym_fns);
}
diff --git a/gdb/xml-support.c b/gdb/xml-support.c
index bace5243ec0..c906b69fda0 100644
--- a/gdb/xml-support.c
+++ b/gdb/xml-support.c
@@ -1008,8 +1008,10 @@ xml_fetch_content_from_file (const char *filename, void *baton)
return text;
}
+void _initialize_xml_support ();
+void _initialize_xml_support ();
void
-_initialize_xml_support (void)
+_initialize_xml_support ()
{
add_setshow_boolean_cmd ("xml", class_maintenance, &debug_xml,
_("Set XML parser debugging."),
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c
index 988d78e6934..0206af8bebc 100644
--- a/gdb/xstormy16-tdep.c
+++ b/gdb/xstormy16-tdep.c
@@ -833,8 +833,9 @@ xstormy16_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
Initializer function for the Sanyo Xstormy16a module.
Called by gdb at start-up. */
+void _initialize_xstormy16_tdep ();
void
-_initialize_xstormy16_tdep (void)
+_initialize_xstormy16_tdep ()
{
register_gdbarch_init (bfd_arch_xstormy16, xstormy16_gdbarch_init);
}
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index 097d7bd6f96..57ad8a69722 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -328,8 +328,9 @@ ps_get_thread_area (struct ps_prochandle *ph,
return PS_OK;
}
+void _initialize_xtensa_linux_nat ();
void
-_initialize_xtensa_linux_nat (void)
+_initialize_xtensa_linux_nat ()
{
const xtensa_regtable_t *ptr;
diff --git a/gdb/xtensa-linux-tdep.c b/gdb/xtensa-linux-tdep.c
index ab07eedd0e8..028c8ea034c 100644
--- a/gdb/xtensa-linux-tdep.c
+++ b/gdb/xtensa-linux-tdep.c
@@ -125,8 +125,9 @@ xtensa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
svr4_fetch_objfile_link_map);
}
+void _initialize_xtensa_linux_tdep ();
void
-_initialize_xtensa_linux_tdep (void)
+_initialize_xtensa_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_xtensa, bfd_mach_xtensa, GDB_OSABI_LINUX,
xtensa_linux_init_abi);
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index d44c5b52c09..bbd92d5cf8f 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -3253,8 +3253,9 @@ xtensa_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
error (_("xtensa_dump_tdep(): not implemented"));
}
+void _initialize_xtensa_tdep ();
void
-_initialize_xtensa_tdep (void)
+_initialize_xtensa_tdep ()
{
gdbarch_register (bfd_arch_xtensa, xtensa_gdbarch_init, xtensa_dump_tdep);
xtensa_init_reggroups ();