diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-01-13 14:01:38 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-01-13 14:01:38 -0500 |
commit | 6c2659886f7018fcca26ee0fc813bc9748fb8513 (patch) | |
tree | 9f85af5982af79d2c1f066b56c22dca41dc650cd | |
parent | e2de1eec22358c64510dc18e755d0ff4cf91ad7a (diff) | |
download | fsf-binutils-gdb-6c2659886f7018fcca26ee0fc813bc9748fb8513.zip fsf-binutils-gdb-6c2659886f7018fcca26ee0fc813bc9748fb8513.tar.gz fsf-binutils-gdb-6c2659886f7018fcca26ee0fc813bc9748fb8513.tar.bz2 |
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
400 files changed, 1167 insertions, 354 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 78387ff..a9db322 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 51fd858..5cd2ccd 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 68ecfc3..b923c5c 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 b385b58..77d5863 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 b854dcd..67046c4 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 15537bd..456bae5 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 da41e22..8451a91 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 01b5c23..c5e1e14 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 334f291..c5b5fdf 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 0b7a8eb..0a81c3c 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 ccf8c44..77ece23 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 b9b25d5..f2bd05f 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 71ae8e1..747c3c5 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 4f88153..5fd7a93 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 aa03421..589b895 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 8e8c453..ab9240e 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 340e804..99d9855 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 25acd18..390f865 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 912ef31..5e8f352 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 e3aa5a2..687d1f2 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 662008b..7f85b6a 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 b0639ed..7c3e336 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 27748ff..63fc84b 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 07820a0..44ecb4e 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 1d97cc5..7a4c0057 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 65f587c..89d0723 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 f0d8ecf..a19f7a1 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 fb33665..d5f84fc 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 86f9f60..8d8600b 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 157a5d0..f5ec40f 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 67b8691..5b2c261 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 e1e777c..b2155f3 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 28dd231..cf9e88c 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 18e07d6..70e2c5b 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 021cbb0..13da022 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 55b115c..92d7153 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 14160be..3470f81 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 ec0e9d5..417a805 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 0b27281..8bbaed5 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 8bfcea6..363e671 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 4dacd57..1d058a9 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 397d21d..2642024 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 3ef0957..b3b1e2f 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 64c3640..a993b90 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 6d8236c..b17f9c6 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 91701c2..0e72bcc 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 188174a..5971b29 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 5a9f47f..36ec0d1 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; @@ -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 381c790..d823c87 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 a77c770..14765bd 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 147223b2..f77f099 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 cb5650d..23591d4 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 c645746..e3e6f6f 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 553c01c..7e98a29 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 87b38b3..07dcc7d 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 5b734ab..a7a3781 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 a8622a8..15d538c 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 a91a676..0c7becd 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 1af43ff..480ed36 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 c2ba3a4..6f32441 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 182e6c7..ae047ac 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 acec367..8cdd2d2 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 247334c..d7c1b77 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 f70ebed..c9d2378 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 f3d98ae..917a7f6 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 b7f7b81..047f2e5 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 60efb59..227cf86 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 89c3c72..a179bd6 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 a5978b4..8d134d9 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 bda5a99..45f3e50 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 3a17445..619fb8a 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 8e4077c..6318345 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 498628c..3b9f8c7 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 c53bf1d..f162a1b 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 fd967c3..6997a7b 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 ad7e3bc..3a2100d 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 c1d62f1..91e7d2d 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 9f29eee..288ebaf 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 4ae127b..9093cc3 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 0b2fb91..22b4db9 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 b522079..fb431020 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 f720a05..583298c 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 ebf1eec..bfca270 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 7ed5ad4..76d173b 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 d800309..93d1554 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 2a33a7d..9baa1e9 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 0909c67..bec622a 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 76d14a2..f018882 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 ab6058c..b63a35a 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 39052f7..7dfbd2f 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 85f6c01..71d627b 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 2fe578e..d47cfd2 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 a2f0c42..977fcc1 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 f2abe70..fd22262 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 9c167c1..fca1d3d 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 baa47c9..a043d48 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 3c81cba..ad82cbe 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 99cac03..1fe6829 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 04979f3..216601a 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 618e4cd..9a6ce0e 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); @@ -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 f9418de..947e440 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 c7c47cf..e767f52 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 60611fe..168957f 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 698d1f0..0e4afb2 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 9e5d23a..bc1b5af 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 359b42f..94a1a9c 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 1f3b3df..c863157 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 987c8e3..5cf1cd4 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 65a189e..010414c 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 b36c5e3..9d8dd52 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 079a411..35f2e82 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 c746a6a..9ec93eb 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 54ea434..5014c3e 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 ca5ffe3..ae383e7 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 2d18b0a..99ef69d 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 d3f1b47..d12011e 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 debe395..6a664e9 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 c82191e..5a6dee2 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 47f4d99..c99a900 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 ab9bf1f..cc8569f 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 827c622..1d5bfd4 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 74a96f1..3b438a9 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 987f1c3..a9b2e0a 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 8854339..89574ec 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 fe60b29..9ad456f 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 bcb400a..b3ebd6c 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 5068361..4b0103c 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 f4996ee..5e8ba94 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 5a019d5..f352c25 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 159f572..51c84d8 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 5b8e8f0..d825503 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 383010b..b532ab1 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 8c79c00..939a532 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 aa013ba..d7f7249 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 1ee1b0b..d8a3a56 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 41b4a9c..4e22013 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 ee04752..f703579 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 8b0b6fb..55a1f7c 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 deeb613..a1c226b 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 ba4803e..11c61f8 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 1a58169..480c017 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 d072709..0e53453 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 1add0c6..afbe8ef 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 4f32c09..57183be 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 e4d15cd..51d79c8 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 32cd879..b4224b2 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 5827cb4..6f702b5 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 e70a516..ac775c1 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 d0743c3..3157451 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 493d5c4..cd6837b 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 ebaa834..205c08b 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 cb419fc..309f5e6 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 2092c7e..f54b3b1 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 ff79784..1980485 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 a19fc62..f120438 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 bcabacc..958c83e 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 1fb018a..59b7df1 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 361fc6a..01cfa0d 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 2696f14..33684ce 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 40d4fd3..dd07b7d 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 2112425..ca0317b 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 240644a..b13c781 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 2bf21e2..cf8b312 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 00b2235..e5e595e 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 a0583a8..a863628 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 65a0143..8c01091 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 43a4e74..4b3419e 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); } @@ -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 8f50af8..03985d3 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 c77fb6c..284f198 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 45b71ea..66004e5 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 820657a..b6374ce 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 ed37de6..ae29c51 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 78ba1b0..f2c3fea 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 8a16711..1a97a58 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 0d63241..31f4d24 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 6bb8337..24beeca 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 8f516b1..becd643 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 59f9bb5..60e5387 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 ff0395d..4e63c2f 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 562505b..184b5c2 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 48b230d..f18f33d 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 3b2971b..5e9170d9 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 7b571f5..dcc7e08 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 365b7c8b..ec754a6 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 2bb3ab3..54e3d2a 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 70b95b1..54aa35e 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 af8a2ee..9a1e7fe 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 842a080..2cbdc7c 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 d8a6e9b..e8e8874 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 fcb9f4e..e8e0f28 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 ff1d130..b1994f1 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 f8cd6f4..da60df0 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 1381755..7e8247c 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 7514ba8..88158ce 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 eadf612..ec6f281 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 556f446..2ac4c11 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 24daf3f..014feaf 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 3bb9b56..be710be 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, µblaze_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 1787122..a05088c 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 cb74f19..4a29ee1 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 76073f0..abaf7f2 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 104c972..38ff461 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 002c5c5..aa7b8d1 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 4f6a8ee..527c67a 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 a2901c0..38bc7ce 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 01afafb..685c3c7 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 f89e37b..90ec370 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 8ea8fb1..3661fff 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 857ff7a..3194ce8 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 2c11873..6e39538 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 24f40b9..1dfe2a2 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 b472c36..d779ad1 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 b3ffbfb..1f55248 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 1b38396..0893274 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 8d9bac0..5238fe5 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 3078bc4..345dfeb 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 6e00a32..cb669da 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 c31dbf1..58e572c 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 c423d57..5adf913 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 5a66be0..81aa392 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 e5052bb..1763590 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 860144a..15677f9 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 eca780a..772ecff 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 dec1bdd..b9a8687 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 19b6636..9b06047 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 e337132..aaeb4b6 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 65e3c60..b4d9005 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 5643fab..a1b268a 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 8ae1084..349396f 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 d619971..27fa7f9 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 901b938..676be72 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 a6175f9..a2a0c0b 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 387f022..d75930c 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 7c8335c..8d36d2b 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 1288766..5f70d35 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 281ee4d..5f2678c 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 d813b3e..a21df73 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 4ad1cdc..d7ad503 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 5fd92b5..e921c47 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 86f79ad..e038370 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 a59e32c..09a036f 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 7e5d447..735a928 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 7caf1c6..09231bf9 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 bf214fa..f7aadb1 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 59fdfab..5d24c59 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 7e5b786..33ee4e9 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 f759a51..1696622 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 51d2a94..94600eb 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 7d4455a..10f6e49 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 b9f1b0a..4f079c9 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 52b13fc..aaaadd7 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 b6e70a4..cc0011f 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, ¬if_debug, _("\ diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index e491042..ac3b4d3 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 665e277..03a00db 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 fbffa52..1ccb9d2 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 ca30506..27a0935 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 1579073..8a92959 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 2f95cb3..7a96b7b 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 919c7e5..12c0eef 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 9b06f7c..d585b0b 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 f34f4c6..3705efd 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 45fd7c4..b5add64 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 bf5d9d8..0a20a17 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 7c91609..654e06e 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 f610099..ccffc39 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 0676d9d..74ab1e1 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 3ab9e26..de4a816 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 f282fa3..766eaa0 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 8fa0505..922268d 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 d1634bd..9ec806f 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 65de277..e27ce27 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 b08f331..e015055 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 0ec0e35..14eeee9 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 a1a8f29..9a5b6dc 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 e6363a1..d204e86 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 bdc6b05..db4c8e0 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 cecdfb2..c558174 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 7d216de..eb4fe2c 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 df6bc4c..8000e35 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 a1c3b91..e0d64dd 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 13c10ee..5d2f38f 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 873bdba..47cae00 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 bdf5e4f..aa31926 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 e3aee0a..b69313d 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); @@ -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 bf2325b..333fb96 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 f44ea93..125c896 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 1ad781d..03d91d1 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 52fa0e8..2acad96 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 10476f6..582f2d5 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 3122f06..1c769bb 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 625f099..93d95fd 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 962ce32..ba388d7 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 965dc38..d546ae5 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 1bc98d3..327e9c1 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 03e2c6e..1489d09 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 e1ba8c6..1c4adb8 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 81d16ce..dff0f52 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 cf940f6..7138d7d 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 c1574bb..7aba602 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 b5392d2..53bdf6c 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 a886449..2df66d5 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 16d1c48..e048f87 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 d7d8748..a3ca670 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 873a888..0b4cbfa 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 bb2bc71..b7f2779 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 78de22a..de6c047 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 50c312f..fa34c8c 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 65ca2fb..5e249b6 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 a292bf1..cd5bfe8 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 6c2a02d..502599b 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 19715c2..fe55124 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 a136742..550fed7 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 25de497..a11da6a 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 736839a..a23ebf6 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 92784c9..af30405 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 50f6d51..2d15212 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 b9c906b..c422073 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 f233b96..53a77a5 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 6dcd655..a62d0d0 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 d5a797a..f7bada7 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 a5b17ff..393a034 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 cdd9f2e..d5ba249 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 c8c63ab..bd54d005 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 9bdc3df..0226d67 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 46b123c..04711ba 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 f605845..b24d3d8 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 03fdc05..001fdd4 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 2dfd40d..1b626b5 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 35a8512..a05675c 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 ac40baf..219693b 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 db82bc7..e656187 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 13dfc2b..9290bc3 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 374e9bb..1c7003c 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 c1a4a49..ea19177 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 df00b56..7f1a25a 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 a934e56..aa6bea4 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 76a50fc..0e45e0e 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 808a77d..978b502 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 3720d3e..01961f5 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 50b3e72..80d1a27 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 18e9188..7758f2f 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 df9bf43..8b7c399 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 99d30a5..be19ef7 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 effc511..e58cd5d 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 28024f5..2d6640b 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 c1079bd..b4fc866 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 fdd692d..24b918a 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 bc308f6..09c8565 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 8934a3d..e24c3fd 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 80e09e7..d9e9132 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 65a9c66..5531860 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 604d3c5..14060e1 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 bc1bc15..80b408a 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 fd0f812..610b53c 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 77b6d01..16ffc4f 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 d5f26a4..002fc69 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 7f50ab4..c51f34e 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 904a306..42b5db6 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 e8b4dec..b040268 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 a0e9341..8647515 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 7e3235b..b14c3b7 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 86dac3e..1e0428b 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 ddaaeef..c1b9e53 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 3f71ec6..6c0df35 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 9e75c23..e848e58 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 73c1e2d..3f02476 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 fffad74..fa963d1 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 b921035..d989678 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 49fc95b..a52419b 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 2cf6cf6..eeab40f 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 62172b6..63a4784 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 b2dffaf..6144e23 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 503412e..b02a796 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 2b59266..f6ea2b9 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 027c121..38e817a 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 88e8dfa..421b28e 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 4117067..a232b1e 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 508c114..fe874fb 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 e5625a3..9b2e9b6 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 8488576..7fc555a 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 f7088d4..f26a87d 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 53b5175..ceaeb83 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 48d3c3d..8a7b710 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 0fe8fbc..899f3e3 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 26e8251..c2c08cc 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 a83decd..9373dc8 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 be5955d..901e642 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 b6e5b9f..12438e8 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 3fc6f62..2bb8f8a 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 f07ef85..fb2c92c 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 d0fa90e..5c60610 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 bace524..c906b69 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 988d78e..0206af8 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 097d7bd..57ad8a6 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 ab07eed..028c8ea 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 d44c5b5..bbd92d5 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 (); |