From 481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Sat, 9 Sep 2017 11:02:37 -0700 Subject: [PATCH] Remove unnecessary function prototypes. These prototypes were required when compiling GDB as C but are not required for C++. gdb/ChangeLog: * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat prototype. * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep prototype. * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep prototype. * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype. * ada-exp.y: Remove _initialize_ada_exp prototype. * ada-lang.c: Remove _initialize_ada_language prototype. * ada-tasks.c: Remove _initialize_tasks prototype. * addrmap.c: Remove _initialize_addrmap prototype. * agent.c: Remove _initialize_agent prototype. * aix-thread.c: Remove _initialize_aix_thread prototype. * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype. * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype. * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep prototype. * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype. * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype. * alpha-tdep.c: Remove _initialize_alpha_tdep prototype. * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep prototype. * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep prototype. * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype. * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype. * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype. * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep prototype. * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype. * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype. * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype. * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype. * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. * amd64-tdep.c: Remove _initialize_amd64_tdep prototype. * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat prototype. * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep prototype. * annotate.c: Remove _initialize_annotate prototype. * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype. * arc-tdep.c: Remove _initialize_arc_tdep prototype. * arch-utils.c: Remove _initialize_gdbarch_utils prototype. * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype. * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype. * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype. * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype. * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep prototype. * arm-tdep.c: Remove _initialize_arm_tdep prototype. * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype. * auto-load.c: Remove _initialize_auto_load prototype. * auxv.c: Remove _initialize_auxv prototype. * avr-tdep.c: Remove _initialize_avr_tdep prototype. * ax-gdb.c: Remove _initialize_ax_gdb prototype. * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype. * bfin-tdep.c: Remove _initialize_bfin_tdep prototype. * break-catch-sig.c: Remove _initialize_break_catch_sig prototype. * break-catch-syscall.c: Remove _initialize_break_catch_syscall prototype. * break-catch-throw.c: Remove _initialize_break_catch_throw prototype. * breakpoint.c: Remove _initialize_breakpoint prototype. * bsd-uthread.c: Remove _initialize_bsd_uthread prototype. * btrace.c: Remove _initialize_btrace prototype. * charset.c: Remove _initialize_charset prototype. * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype. * cli/cli-dump.c: Remove _initialize_cli_dump prototype. * cli/cli-interp.c: Remove _initialize_cli_interp prototype. * cli/cli-logging.c: Remove _initialize_cli_logging prototype. * cli/cli-script.c: Remove _initialize_cli_script prototype. * coff-pe-read.c: Remove _initialize_coff_pe_read prototype. * coffread.c: Remove _initialize_coffread prototype. * compile/compile.c: Remove _initialize_compile prototype. * complaints.c: Remove _initialize_complaints prototype. * completer.c: Remove _initialize_completer prototype. * copying.awk: Remove _initialize_copying prototype. * copying.c: Regenerate. * core-regset.c: Remove _initialize_core_regset prototype. * corefile.c: Remove _initialize_core prototype. * corelow.c: Remove _initialize_corelow prototype. * cp-abi.c: Remove _initialize_cp_abi prototype. * cp-namespace.c: Remove _initialize_cp_namespace prototype. * cp-support.c: Remove _initialize_cp_support prototype. * cp-valprint.c: Remove _initialize_cp_valprint prototype. * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype. * cris-tdep.c: Remove _initialize_cris_tdep prototype. * ctf.c: Remove _initialize_ctf prototype. * d-lang.c: Remove _initialize_d_language prototype. * darwin-nat-info.c: Remove _initialize_darwin_info_commands prototype. * darwin-nat.c: Remove _initialize_darwin_inferior prototype. * dbxread.c: Remove _initialize_dbxread prototype. * dcache.c: Remove _initialize_dcache prototype. * demangle.c: Remove _initialize_demangler prototype. * disasm-selftests.c: Remove _initialize_disasm_selftests prototype. * disasm.c: Remove _initialize_disasm prototype. * dtrace-probe.c: Remove _initialize_dtrace_probe prototype. * dummy-frame.c: Remove _initialize_dummy_frame prototype. * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame prototype. * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype. * dwarf2expr.c: Remove _initialize_dwarf2expr prototype. * dwarf2loc.c: Remove _initialize_dwarf2loc prototype. * dwarf2read.c: Remove _initialize_dwarf2_read prototype. * elfread.c: Remove _initialize_elfread prototype. * exec.c: Remove _initialize_exec prototype. * extension.c: Remove _initialize_extension prototype. * f-lang.c: Remove _initialize_f_language prototype. * f-valprint.c: Remove _initialize_f_valprint prototype. * fbsd-nat.c: Remove _initialize_fbsd_nat prototype. * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype. * filesystem.c: Remove _initialize_filesystem prototype. * findcmd.c: Remove _initialize_mem_search prototype. * fork-child.c: Remove _initialize_fork_child prototype. * frame-base.c: Remove _initialize_frame_base prototype. * frame-unwind.c: Remove _initialize_frame_unwind prototype. * frame.c: Remove _initialize_frame prototype. * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype. * frv-tdep.c: Remove _initialize_frv_tdep prototype. * ft32-tdep.c: Remove _initialize_ft32_tdep prototype. * gcore.c: Remove _initialize_gcore prototype. * gdb_bfd.c: Remove _initialize_gdb_bfd prototype. * gdbarch.c: Regenerate. * gdbarch.sh: Remove _initialize_gdbarch prototype. * gdbtypes.c: Remove _initialize_gdbtypes prototype. * gnu-nat.c: Remove _initialize_gnu_nat prototype. * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype. * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype. * go-lang.c: Remove _initialize_go_language prototype. * go32-nat.c: Remove _initialize_go32_nat prototype. * guile/guile.c: Remove _initialize_guile prototype. * h8300-tdep.c: Remove _initialize_h8300_tdep prototype. * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype. * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype. * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype. * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype. * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype. * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype. * hppa-tdep.c: Remove _initialize_hppa_tdep prototype. * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype. * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep prototype. * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep prototype. * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype. * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype. * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype. * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype. * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype. * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype. * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype. * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype. * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype. * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype. * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype. * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype. * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype. * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. * i386-tdep.c: Remove _initialize_i386_tdep prototype. * i386-windows-nat.c: Remove _initialize_i386_windows_nat prototype. * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame prototype. * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype. * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype. * ia64-tdep.c: Remove _initialize_ia64_tdep prototype. * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype. * infcall.c: Remove _initialize_infcall prototype. * infcmd.c: Remove _initialize_infcmd prototype. * inferior.c: Remove _initialize_inferiors prototype. * inflow.c: Remove _initialize_inflow prototype. * infrun.c: Remove _initialize_infrun prototype. * interps.c: Remove _initialize_interpreter prototype. * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype. * jit.c: Remove _initialize_jit prototype. * language.c: Remove _initialize_language prototype. * linux-fork.c: Remove _initialize_linux_fork prototype. * linux-nat.c: Remove _initialize_linux_nat prototype. * linux-tdep.c: Remove _initialize_linux_tdep prototype. * linux-thread-db.c: Remove _initialize_thread_db prototype. * lm32-tdep.c: Remove _initialize_lm32_tdep prototype. * m2-lang.c: Remove _initialize_m2_language prototype. * m32c-tdep.c: Remove _initialize_m32c_tdep prototype. * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype. * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype. * m32r-tdep.c: Remove _initialize_m32r_tdep prototype. * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype. * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype. * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype. * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype. * m68k-tdep.c: Remove _initialize_m68k_tdep prototype. * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype. * machoread.c: Remove _initialize_machoread prototype. * macrocmd.c: Remove _initialize_macrocmd prototype. * macroscope.c: Remove _initialize_macroscope prototype. * maint.c: Remove _initialize_maint_cmds prototype. * mdebugread.c: Remove _initialize_mdebugread prototype. * memattr.c: Remove _initialize_mem prototype. * mep-tdep.c: Remove _initialize_mep_tdep prototype. * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype. * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype. * mi/mi-interp.c: Remove _initialize_mi_interp prototype. * mi/mi-main.c: Remove _initialize_mi_main prototype. * microblaze-linux-tdep.c: Remove _initialize_microblaze_linux_tdep prototype. * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype. * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype. * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype. * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype. * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype. * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype. * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype. * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype. * mips-tdep.c: Remove _initialize_mips_tdep prototype. * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype. * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep prototype. * mipsread.c: Remove _initialize_mipsread prototype. * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep prototype. * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype. * moxie-tdep.c: Remove _initialize_moxie_tdep prototype. * msp430-tdep.c: Remove _initialize_msp430_tdep prototype. * mt-tdep.c: Remove _initialize_mt_tdep prototype. * nds32-tdep.c: Remove _initialize_nds32_tdep prototype. * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep prototype. * nios2-tdep.c: Remove _initialize_nios2_tdep prototype. * nto-procfs.c: Remove _initialize_procfs prototype. * nto-tdep.c: Remove _initialize_nto_tdep prototype. * objc-lang.c: Remove _initialize_objc_language prototype. * objfiles.c: Remove _initialize_objfiles prototype. * observer.c: Remove observer_test_first_notification_function, observer_test_second_notification_function, observer_test_third_notification_function, and _initialize_observer prototypes. * opencl-lang.c: Remove _initialize_opencl_language prototypes. * osabi.c: Remove _initialize_gdb_osabi prototype. * osdata.c: Remove _initialize_osdata prototype. * p-valprint.c: Remove _initialize_pascal_valprint prototype. * parse.c: Remove _initialize_parse prototype. * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype. * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype. * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype. * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype. * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype. * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype. * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype. * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype. * printcmd.c: Remove _initialize_printcmd prototype. * probe.c: Remove _initialize_probe prototype. * proc-api.c: Remove _initialize_proc_api prototype. * proc-events.c: Remove _initialize_proc_events prototype. * proc-service.c: Remove _initialize_proc_service prototype. * procfs.c: Remove _initialize_procfs prototype. * psymtab.c: Remove _initialize_psymtab prototype. * python/python.c: Remove _initialize_python prototype. * ravenscar-thread.c: Remove _initialize_ravenscar prototype. * record-btrace.c: Remove _initialize_record_btrace prototype. * record-full.c: Remove _initialize_record_full prototype. * record.c: Remove _initialize_record prototype. * regcache.c: Remove _initialize_regcache prototype. * reggroups.c: Remove _initialize_reggroup prototype. * remote-notif.c: Remove _initialize_notif prototype. * remote-sim.c: Remove _initialize_remote_sim prototype. * remote.c: Remove _initialize_remote prototype. * reverse.c: Remove _initialize_reverse prototype. * rl78-tdep.c: Remove _initialize_rl78_tdep prototype. * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype. * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep prototype. * rs6000-nat.c: Remove _initialize_rs6000_nat prototype. * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype. * rust-exp.y: Remove _initialize_rust_exp prototype. * rx-tdep.c: Remove _initialize_rx_tdep prototype. * s390-linux-nat.c: Remove _initialize_s390_nat prototype. * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype. * score-tdep.c: Remove _initialize_score_tdep prototype. * selftest-arch.c: Remove _initialize_selftests_foreach_arch prototype. * ser-go32.c: Remove _initialize_ser_dos prototype. * ser-mingw.c: Remove _initialize_ser_windows prototype. * ser-pipe.c: Remove _initialize_ser_pipe prototype. * ser-tcp.c: Remove _initialize_ser_tcp prototype. * ser-unix.c: Remove _initialize_ser_hardwire prototype. * serial.c: Remove _initialize_serial prototype. * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype. * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype. * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype. * sh-tdep.c: Remove _initialize_sh_tdep prototype. * skip.c: Remove _initialize_step_skip prototype. * sol-thread.c: Remove _initialize_sol_thread prototype. * solib-aix.c: Remove _initialize_solib_aix prototype. * solib-darwin.c: Remove _initialize_darwin_solib prototype. * solib-dsbt.c: Remove _initialize_dsbt_solib prototype. * solib-frv.c: Remove _initialize_frv_solib prototype. * solib-spu.c: Remove _initialize_spu_solib prototype. * solib-svr4.c: Remove _initialize_svr4_solib prototype. * solib-target.c: Remove _initialize_solib_target prototype. * solib.c: Remove _initialize_solib prototype. * source.c: Remove _initialize_source prototype. * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype. * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep prototype. * sparc-nat.c: Remove _initialize_sparc_nat prototype. * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype. * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype. * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep prototype. * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype. * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype. * sparc-tdep.c: Remove _initialize_sparc_tdep prototype. * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat prototype. * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep prototype. * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat prototype. * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep prototype. * sparc64-nat.c: Remove _initialize_sparc64_nat prototype. * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat prototype. * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep prototype. * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat prototype. * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep prototype. * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep prototype. * spu-linux-nat.c: Remove _initialize_spu_nat prototype. * spu-multiarch.c: Remove _initialize_spu_multiarch prototype. * spu-tdep.c: Remove _initialize_spu_tdep prototype. * stabsread.c: Remove _initialize_stabsread prototype. * stack.c: Remove _initialize_stack prototype. * stap-probe.c: Remove _initialize_stap_probe prototype. * std-regs.c: Remove _initialize_frame_reg prototype. * symfile-debug.c: Remove _initialize_symfile_debug prototype. * symfile-mem.c: Remove _initialize_symfile_mem prototype. * symfile.c: Remove _initialize_symfile prototype. * symmisc.c: Remove _initialize_symmisc prototype. * symtab.c: Remove _initialize_symtab prototype. * target-dcache.c: Remove _initialize_target_dcache prototype. * target-descriptions.c: Remove _initialize_target_descriptions prototype. * thread.c: Remove _initialize_thread prototype. * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep prototype. * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype. * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype. * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep prototype. * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype. * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype. * tracefile.c: Remove _initialize_tracefile prototype. * tracepoint.c: Remove _initialize_tracepoint prototype. * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype. * tui/tui-interp.c: Remove _initialize_tui_interp prototype. * tui/tui-layout.c: Remove _initialize_tui_layout prototype. * tui/tui-regs.c: Remove _initialize_tui_regs prototype. * tui/tui-stack.c: Remove _initialize_tui_stack prototype. * tui/tui-win.c: Remove _initialize_tui_win prototype. * tui/tui.c: Remove _initialize_tui prototype. * typeprint.c: Remove _initialize_typeprint prototype. * user-regs.c: Remove _initialize_user_regs prototype. * utils.c: Remove _initialize_utils prototype. * v850-tdep.c: Remove _initialize_v850_tdep prototype. * valarith.c: Remove _initialize_valarith prototype. * valops.c: Remove _initialize_valops prototype. * valprint.c: Remove _initialize_valprint prototype. * value.c: Remove _initialize_values prototype. * varobj.c: Remove _initialize_varobj prototype. * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype. * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype. * vax-tdep.c: Remove _initialize_vax_tdep prototype. * windows-nat.c: Remove _initialize_windows_nat, _initialize_check_for_gdb_ini, and _initialize_loadable prototypes. * windows-tdep.c: Remove _initialize_windows_tdep prototype. * xcoffread.c: Remove _initialize_xcoffread prototype. * xml-support.c: Remove _initialize_xml_support prototype. * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype. * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat prototype. * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep prototype. * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype. --- gdb/ChangeLog | 395 ++++++++++++++++++++++++++++++++++++ gdb/aarch64-linux-nat.c | 3 - gdb/aarch64-linux-tdep.c | 3 - gdb/aarch64-newlib-tdep.c | 3 - gdb/aarch64-tdep.c | 3 - gdb/ada-exp.y | 3 - gdb/ada-lang.c | 3 - gdb/ada-tasks.c | 3 - gdb/addrmap.c | 5 - gdb/agent.c | 3 - gdb/aix-thread.c | 2 - gdb/alpha-bsd-nat.c | 3 - gdb/alpha-linux-nat.c | 2 - gdb/alpha-linux-tdep.c | 3 - gdb/alpha-nbsd-tdep.c | 3 - gdb/alpha-obsd-tdep.c | 3 - gdb/alpha-tdep.c | 2 - gdb/amd64-darwin-tdep.c | 3 - gdb/amd64-dicos-tdep.c | 3 - gdb/amd64-fbsd-nat.c | 3 - gdb/amd64-fbsd-tdep.c | 4 - gdb/amd64-linux-nat.c | 3 - gdb/amd64-linux-tdep.c | 4 - gdb/amd64-nbsd-nat.c | 4 - gdb/amd64-nbsd-tdep.c | 4 - gdb/amd64-obsd-nat.c | 4 - gdb/amd64-obsd-tdep.c | 4 - gdb/amd64-sol2-tdep.c | 4 - gdb/amd64-tdep.c | 3 - gdb/amd64-windows-nat.c | 3 - gdb/amd64-windows-tdep.c | 3 - gdb/annotate.c | 2 - gdb/arc-newlib-tdep.c | 3 - gdb/arc-tdep.c | 3 - gdb/arch-utils.c | 3 - gdb/arm-linux-nat.c | 2 - gdb/arm-linux-tdep.c | 3 - gdb/arm-nbsd-tdep.c | 3 - gdb/arm-obsd-tdep.c | 4 - gdb/arm-symbian-tdep.c | 3 - gdb/arm-tdep.c | 2 - gdb/arm-wince-tdep.c | 3 - gdb/auto-load.c | 2 - gdb/auxv.c | 3 - gdb/avr-tdep.c | 2 - gdb/ax-gdb.c | 2 - gdb/bfin-linux-tdep.c | 3 - gdb/bfin-tdep.c | 3 - gdb/break-catch-sig.c | 2 - gdb/break-catch-syscall.c | 2 - gdb/break-catch-throw.c | 2 - gdb/breakpoint.c | 2 - gdb/bsd-uthread.c | 3 - gdb/btrace.c | 1 - gdb/charset.c | 3 - gdb/cli/cli-cmds.c | 4 - gdb/cli/cli-dump.c | 2 - gdb/cli/cli-interp.c | 1 - gdb/cli/cli-logging.c | 3 - gdb/cli/cli-script.c | 4 - gdb/coff-pe-read.c | 4 - gdb/coffread.c | 2 - gdb/compile/compile.c | 2 - gdb/complaints.c | 2 - gdb/completer.c | 2 - gdb/copying.awk | 2 - gdb/copying.c | 2 - gdb/core-regset.c | 3 - gdb/corefile.c | 4 - gdb/corelow.c | 2 - gdb/cp-abi.c | 2 - gdb/cp-namespace.c | 3 - gdb/cp-support.c | 3 - gdb/cp-valprint.c | 2 - gdb/cris-linux-tdep.c | 3 - gdb/cris-tdep.c | 2 - gdb/ctf.c | 4 - gdb/d-lang.c | 3 - gdb/darwin-nat-info.c | 3 - gdb/darwin-nat.c | 3 - gdb/dbxread.c | 2 - gdb/dcache.c | 2 - gdb/demangle.c | 2 - gdb/disasm-selftests.c | 3 - gdb/disasm.c | 3 - gdb/dtrace-probe.c | 2 - gdb/dummy-frame.c | 2 - gdb/dwarf2-frame-tailcall.c | 3 - gdb/dwarf2-frame.c | 3 - gdb/dwarf2expr.c | 3 - gdb/dwarf2loc.c | 3 - gdb/dwarf2read.c | 2 - gdb/elfread.c | 2 - gdb/exec.c | 2 - gdb/extension.c | 2 - gdb/f-lang.c | 2 - gdb/f-valprint.c | 1 - gdb/fbsd-nat.c | 3 - gdb/fbsd-tdep.c | 3 - gdb/filesystem.c | 3 - gdb/findcmd.c | 3 - gdb/fork-child.c | 3 - gdb/frame-base.c | 2 - gdb/frame-unwind.c | 3 - gdb/frame.c | 2 - gdb/frv-linux-tdep.c | 3 - gdb/frv-tdep.c | 2 - gdb/ft32-tdep.c | 4 - gdb/gcore.c | 3 - gdb/gdb_bfd.c | 3 - gdb/gdbarch.c | 2 - gdb/gdbarch.sh | 2 - gdb/gdbtypes.c | 2 - gdb/gnu-nat.c | 5 - gdb/gnu-v2-abi.c | 2 - gdb/gnu-v3-abi.c | 2 - gdb/go-lang.c | 2 - gdb/go32-nat.c | 3 - gdb/guile/guile.c | 3 - gdb/h8300-tdep.c | 2 - gdb/hppa-linux-nat.c | 2 - gdb/hppa-linux-tdep.c | 4 - gdb/hppa-nbsd-nat.c | 4 - gdb/hppa-nbsd-tdep.c | 4 - gdb/hppa-obsd-nat.c | 3 - gdb/hppa-obsd-tdep.c | 4 - gdb/hppa-tdep.c | 3 - gdb/i386-bsd-nat.c | 4 - gdb/i386-cygwin-tdep.c | 3 - gdb/i386-darwin-tdep.c | 3 - gdb/i386-dicos-tdep.c | 3 - gdb/i386-fbsd-nat.c | 3 - gdb/i386-fbsd-tdep.c | 4 - gdb/i386-gnu-nat.c | 3 - gdb/i386-gnu-tdep.c | 3 - gdb/i386-linux-nat.c | 4 - gdb/i386-linux-tdep.c | 3 - gdb/i386-nbsd-nat.c | 4 - gdb/i386-nbsd-tdep.c | 3 - gdb/i386-nto-tdep.c | 3 - gdb/i386-obsd-nat.c | 4 - gdb/i386-obsd-tdep.c | 4 - gdb/i386-sol2-nat.c | 3 - gdb/i386-sol2-tdep.c | 3 - gdb/i386-tdep.c | 3 - gdb/i386-windows-nat.c | 3 - gdb/ia64-libunwind-tdep.c | 3 - gdb/ia64-linux-nat.c | 2 - gdb/ia64-linux-tdep.c | 3 - gdb/ia64-tdep.c | 2 - gdb/ia64-vms-tdep.c | 3 - gdb/infcall.c | 4 - gdb/infcmd.c | 2 - gdb/inferior.c | 2 - gdb/inflow.c | 2 - gdb/infrun.c | 2 - gdb/interps.c | 2 - gdb/iq2000-tdep.c | 3 - gdb/jit.c | 4 - gdb/language.c | 2 - gdb/linux-fork.c | 3 - gdb/linux-nat.c | 3 - gdb/linux-tdep.c | 3 - gdb/linux-thread-db.c | 3 - gdb/lm32-tdep.c | 3 - gdb/m2-lang.c | 1 - gdb/m32c-tdep.c | 3 - gdb/m32r-linux-nat.c | 2 - gdb/m32r-linux-tdep.c | 3 - gdb/m32r-tdep.c | 2 - gdb/m68hc11-tdep.c | 3 - gdb/m68k-bsd-nat.c | 4 - gdb/m68k-bsd-tdep.c | 4 - gdb/m68k-linux-nat.c | 3 - gdb/m68k-linux-tdep.c | 3 - gdb/m68k-tdep.c | 2 - gdb/m88k-bsd-nat.c | 4 - gdb/m88k-tdep.c | 4 - gdb/machoread.c | 3 - gdb/macrocmd.c | 3 - gdb/macroscope.c | 3 - gdb/maint.c | 2 - gdb/mdebugread.c | 2 - gdb/memattr.c | 2 - gdb/mep-tdep.c | 3 - gdb/mi/mi-cmd-env.c | 2 - gdb/mi/mi-cmds.c | 2 - gdb/mi/mi-interp.c | 2 - gdb/mi/mi-main.c | 1 - gdb/microblaze-linux-tdep.c | 3 - gdb/microblaze-tdep.c | 3 - gdb/mips-fbsd-nat.c | 4 - gdb/mips-fbsd-tdep.c | 4 - gdb/mips-linux-nat.c | 2 - gdb/mips-linux-tdep.c | 3 - gdb/mips-nbsd-nat.c | 4 - gdb/mips-nbsd-tdep.c | 4 - gdb/mips-sde-tdep.c | 3 - gdb/mips-tdep.c | 2 - gdb/mips64-obsd-nat.c | 4 - gdb/mips64-obsd-tdep.c | 4 - gdb/mipsread.c | 3 - gdb/mn10300-linux-tdep.c | 3 - gdb/mn10300-tdep.c | 3 - gdb/moxie-tdep.c | 4 - gdb/msp430-tdep.c | 3 - gdb/mt-tdep.c | 3 - gdb/nds32-tdep.c | 2 - gdb/nios2-linux-tdep.c | 4 - gdb/nios2-tdep.c | 2 - gdb/nto-procfs.c | 2 - gdb/nto-tdep.c | 3 - gdb/objc-lang.c | 6 - gdb/objfiles.c | 3 - gdb/observer.c | 7 - gdb/opencl-lang.c | 5 - gdb/osabi.c | 2 - gdb/osdata.c | 2 - gdb/p-valprint.c | 3 - gdb/parse.c | 2 - gdb/ppc-fbsd-nat.c | 4 - gdb/ppc-fbsd-tdep.c | 4 - gdb/ppc-linux-nat.c | 2 - gdb/ppc-linux-tdep.c | 3 - gdb/ppc-nbsd-nat.c | 3 - gdb/ppc-nbsd-tdep.c | 4 - gdb/ppc-obsd-nat.c | 4 - gdb/ppc-obsd-tdep.c | 4 - gdb/printcmd.c | 4 - gdb/probe.c | 2 - gdb/proc-api.c | 4 - gdb/proc-events.c | 4 - gdb/proc-service.c | 3 - gdb/procfs.c | 4 - gdb/psymtab.c | 4 - gdb/python/python.c | 6 - gdb/ravenscar-thread.c | 3 - gdb/record-btrace.c | 2 - gdb/record-full.c | 3 - gdb/record.c | 3 - gdb/regcache.c | 2 - gdb/reggroups.c | 2 - gdb/remote-notif.c | 3 - gdb/remote-sim.c | 2 - gdb/remote.c | 2 - gdb/reverse.c | 4 - gdb/rl78-tdep.c | 3 - gdb/rs6000-aix-tdep.c | 3 - gdb/rs6000-lynx178-tdep.c | 3 - gdb/rs6000-nat.c | 2 - gdb/rs6000-tdep.c | 3 - gdb/rust-exp.y | 2 - gdb/rx-tdep.c | 3 - gdb/s390-linux-nat.c | 2 - gdb/s390-linux-tdep.c | 3 - gdb/score-tdep.c | 2 - gdb/selftest-arch.c | 3 - gdb/ser-go32.c | 3 - gdb/ser-mingw.c | 2 - gdb/ser-pipe.c | 2 - gdb/ser-tcp.c | 2 - gdb/ser-unix.c | 2 - gdb/serial.c | 2 - gdb/sh-linux-tdep.c | 3 - gdb/sh-nbsd-nat.c | 3 - gdb/sh-nbsd-tdep.c | 4 - gdb/sh-tdep.c | 2 - gdb/skip.c | 3 - gdb/sol-thread.c | 3 - gdb/solib-aix.c | 3 - gdb/solib-darwin.c | 3 - gdb/solib-dsbt.c | 3 - gdb/solib-frv.c | 3 - gdb/solib-spu.c | 3 - gdb/solib-svr4.c | 2 - gdb/solib-target.c | 3 - gdb/solib.c | 2 - gdb/source.c | 4 - gdb/sparc-linux-nat.c | 2 - gdb/sparc-linux-tdep.c | 3 - gdb/sparc-nat.c | 4 - gdb/sparc-nbsd-nat.c | 4 - gdb/sparc-nbsd-tdep.c | 4 - gdb/sparc-obsd-tdep.c | 4 - gdb/sparc-sol2-nat.c | 3 - gdb/sparc-sol2-tdep.c | 4 - gdb/sparc-tdep.c | 4 - gdb/sparc64-fbsd-nat.c | 4 - gdb/sparc64-fbsd-tdep.c | 3 - gdb/sparc64-linux-nat.c | 3 - gdb/sparc64-linux-tdep.c | 4 - gdb/sparc64-nat.c | 4 - gdb/sparc64-nbsd-nat.c | 4 - gdb/sparc64-nbsd-tdep.c | 4 - gdb/sparc64-obsd-nat.c | 4 - gdb/sparc64-obsd-tdep.c | 4 - gdb/sparc64-sol2-tdep.c | 4 - gdb/spu-linux-nat.c | 3 - gdb/spu-multiarch.c | 3 - gdb/spu-tdep.c | 3 - gdb/stabsread.c | 2 - gdb/stack.c | 4 - gdb/stap-probe.c | 2 - gdb/std-regs.c | 2 - gdb/symfile-debug.c | 2 - gdb/symfile-mem.c | 5 - gdb/symfile.c | 2 - gdb/symmisc.c | 2 - gdb/symtab.c | 2 - gdb/target-dcache.c | 3 - gdb/target-descriptions.c | 3 - gdb/thread.c | 4 - gdb/tic6x-linux-tdep.c | 3 - gdb/tic6x-tdep.c | 3 - gdb/tilegx-linux-nat.c | 3 - gdb/tilegx-linux-tdep.c | 3 - gdb/tilegx-tdep.c | 3 - gdb/tracefile-tfile.c | 2 - gdb/tracefile.c | 2 - gdb/tracepoint.c | 2 - gdb/tui/tui-hooks.c | 2 - gdb/tui/tui-interp.c | 3 - gdb/tui/tui-layout.c | 3 - gdb/tui/tui-regs.c | 3 - gdb/tui/tui-stack.c | 3 - gdb/tui/tui-win.c | 3 - gdb/tui/tui.c | 3 - gdb/typeprint.c | 2 - gdb/user-regs.c | 2 - gdb/utils.c | 3 - gdb/v850-tdep.c | 2 - gdb/valarith.c | 3 - gdb/valops.c | 2 - gdb/valprint.c | 2 - gdb/value.c | 4 - gdb/varobj.c | 3 +- gdb/vax-bsd-nat.c | 4 - gdb/vax-nbsd-tdep.c | 4 - gdb/vax-tdep.c | 3 - gdb/windows-nat.c | 9 - gdb/windows-tdep.c | 3 - gdb/xcoffread.c | 3 - gdb/xml-support.c | 2 - gdb/xstormy16-tdep.c | 3 - gdb/xtensa-linux-nat.c | 2 - gdb/xtensa-linux-tdep.c | 3 - gdb/xtensa-tdep.c | 3 - 347 files changed, 396 insertions(+), 1013 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 96369d5e5fe..ae6f2c9e414 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,398 @@ +2017-09-09 John Baldwin + + * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat + prototype. + * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep + prototype. + * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep + prototype. + * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype. + * ada-exp.y: Remove _initialize_ada_exp prototype. + * ada-lang.c: Remove _initialize_ada_language prototype. + * ada-tasks.c: Remove _initialize_tasks prototype. + * addrmap.c: Remove _initialize_addrmap prototype. + * agent.c: Remove _initialize_agent prototype. + * aix-thread.c: Remove _initialize_aix_thread prototype. + * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype. + * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype. + * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep + prototype. + * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype. + * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype. + * alpha-tdep.c: Remove _initialize_alpha_tdep prototype. + * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep + prototype. + * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep + prototype. + * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype. + * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype. + * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype. + * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep + prototype. + * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype. + * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype. + * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype. + * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype. + * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. + * amd64-tdep.c: Remove _initialize_amd64_tdep prototype. + * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat + prototype. + * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep + prototype. + * annotate.c: Remove _initialize_annotate prototype. + * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype. + * arc-tdep.c: Remove _initialize_arc_tdep prototype. + * arch-utils.c: Remove _initialize_gdbarch_utils prototype. + * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype. + * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype. + * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype. + * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype. + * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep + prototype. + * arm-tdep.c: Remove _initialize_arm_tdep prototype. + * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype. + * auto-load.c: Remove _initialize_auto_load prototype. + * auxv.c: Remove _initialize_auxv prototype. + * avr-tdep.c: Remove _initialize_avr_tdep prototype. + * ax-gdb.c: Remove _initialize_ax_gdb prototype. + * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype. + * bfin-tdep.c: Remove _initialize_bfin_tdep prototype. + * break-catch-sig.c: Remove _initialize_break_catch_sig prototype. + * break-catch-syscall.c: Remove _initialize_break_catch_syscall + prototype. + * break-catch-throw.c: Remove _initialize_break_catch_throw + prototype. + * breakpoint.c: Remove _initialize_breakpoint prototype. + * bsd-uthread.c: Remove _initialize_bsd_uthread prototype. + * btrace.c: Remove _initialize_btrace prototype. + * charset.c: Remove _initialize_charset prototype. + * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype. + * cli/cli-dump.c: Remove _initialize_cli_dump prototype. + * cli/cli-interp.c: Remove _initialize_cli_interp prototype. + * cli/cli-logging.c: Remove _initialize_cli_logging prototype. + * cli/cli-script.c: Remove _initialize_cli_script prototype. + * coff-pe-read.c: Remove _initialize_coff_pe_read prototype. + * coffread.c: Remove _initialize_coffread prototype. + * compile/compile.c: Remove _initialize_compile prototype. + * complaints.c: Remove _initialize_complaints prototype. + * completer.c: Remove _initialize_completer prototype. + * copying.awk: Remove _initialize_copying prototype. + * copying.c: Regenerate. + * core-regset.c: Remove _initialize_core_regset prototype. + * corefile.c: Remove _initialize_core prototype. + * corelow.c: Remove _initialize_corelow prototype. + * cp-abi.c: Remove _initialize_cp_abi prototype. + * cp-namespace.c: Remove _initialize_cp_namespace prototype. + * cp-support.c: Remove _initialize_cp_support prototype. + * cp-valprint.c: Remove _initialize_cp_valprint prototype. + * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype. + * cris-tdep.c: Remove _initialize_cris_tdep prototype. + * ctf.c: Remove _initialize_ctf prototype. + * d-lang.c: Remove _initialize_d_language prototype. + * darwin-nat-info.c: Remove _initialize_darwin_info_commands + prototype. + * darwin-nat.c: Remove _initialize_darwin_inferior prototype. + * dbxread.c: Remove _initialize_dbxread prototype. + * dcache.c: Remove _initialize_dcache prototype. + * demangle.c: Remove _initialize_demangler prototype. + * disasm-selftests.c: Remove _initialize_disasm_selftests + prototype. + * disasm.c: Remove _initialize_disasm prototype. + * dtrace-probe.c: Remove _initialize_dtrace_probe prototype. + * dummy-frame.c: Remove _initialize_dummy_frame prototype. + * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame + prototype. + * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype. + * dwarf2expr.c: Remove _initialize_dwarf2expr prototype. + * dwarf2loc.c: Remove _initialize_dwarf2loc prototype. + * dwarf2read.c: Remove _initialize_dwarf2_read prototype. + * elfread.c: Remove _initialize_elfread prototype. + * exec.c: Remove _initialize_exec prototype. + * extension.c: Remove _initialize_extension prototype. + * f-lang.c: Remove _initialize_f_language prototype. + * f-valprint.c: Remove _initialize_f_valprint prototype. + * fbsd-nat.c: Remove _initialize_fbsd_nat prototype. + * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype. + * filesystem.c: Remove _initialize_filesystem prototype. + * findcmd.c: Remove _initialize_mem_search prototype. + * fork-child.c: Remove _initialize_fork_child prototype. + * frame-base.c: Remove _initialize_frame_base prototype. + * frame-unwind.c: Remove _initialize_frame_unwind prototype. + * frame.c: Remove _initialize_frame prototype. + * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype. + * frv-tdep.c: Remove _initialize_frv_tdep prototype. + * ft32-tdep.c: Remove _initialize_ft32_tdep prototype. + * gcore.c: Remove _initialize_gcore prototype. + * gdb_bfd.c: Remove _initialize_gdb_bfd prototype. + * gdbarch.c: Regenerate. + * gdbarch.sh: Remove _initialize_gdbarch prototype. + * gdbtypes.c: Remove _initialize_gdbtypes prototype. + * gnu-nat.c: Remove _initialize_gnu_nat prototype. + * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype. + * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype. + * go-lang.c: Remove _initialize_go_language prototype. + * go32-nat.c: Remove _initialize_go32_nat prototype. + * guile/guile.c: Remove _initialize_guile prototype. + * h8300-tdep.c: Remove _initialize_h8300_tdep prototype. + * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype. + * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype. + * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype. + * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype. + * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype. + * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype. + * hppa-tdep.c: Remove _initialize_hppa_tdep prototype. + * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype. + * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep + prototype. + * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep + prototype. + * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype. + * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype. + * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype. + * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype. + * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype. + * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype. + * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype. + * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype. + * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype. + * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype. + * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype. + * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype. + * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype. + * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype. + * i386-tdep.c: Remove _initialize_i386_tdep prototype. + * i386-windows-nat.c: Remove _initialize_i386_windows_nat + prototype. + * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame + prototype. + * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype. + * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype. + * ia64-tdep.c: Remove _initialize_ia64_tdep prototype. + * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype. + * infcall.c: Remove _initialize_infcall prototype. + * infcmd.c: Remove _initialize_infcmd prototype. + * inferior.c: Remove _initialize_inferiors prototype. + * inflow.c: Remove _initialize_inflow prototype. + * infrun.c: Remove _initialize_infrun prototype. + * interps.c: Remove _initialize_interpreter prototype. + * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype. + * jit.c: Remove _initialize_jit prototype. + * language.c: Remove _initialize_language prototype. + * linux-fork.c: Remove _initialize_linux_fork prototype. + * linux-nat.c: Remove _initialize_linux_nat prototype. + * linux-tdep.c: Remove _initialize_linux_tdep prototype. + * linux-thread-db.c: Remove _initialize_thread_db prototype. + * lm32-tdep.c: Remove _initialize_lm32_tdep prototype. + * m2-lang.c: Remove _initialize_m2_language prototype. + * m32c-tdep.c: Remove _initialize_m32c_tdep prototype. + * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype. + * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype. + * m32r-tdep.c: Remove _initialize_m32r_tdep prototype. + * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype. + * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. + * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype. + * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype. + * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype. + * m68k-tdep.c: Remove _initialize_m68k_tdep prototype. + * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype. + * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype. + * machoread.c: Remove _initialize_machoread prototype. + * macrocmd.c: Remove _initialize_macrocmd prototype. + * macroscope.c: Remove _initialize_macroscope prototype. + * maint.c: Remove _initialize_maint_cmds prototype. + * mdebugread.c: Remove _initialize_mdebugread prototype. + * memattr.c: Remove _initialize_mem prototype. + * mep-tdep.c: Remove _initialize_mep_tdep prototype. + * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype. + * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype. + * mi/mi-interp.c: Remove _initialize_mi_interp prototype. + * mi/mi-main.c: Remove _initialize_mi_main prototype. + * microblaze-linux-tdep.c: Remove + _initialize_microblaze_linux_tdep prototype. + * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype. + * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype. + * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype. + * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype. + * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype. + * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype. + * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype. + * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype. + * mips-tdep.c: Remove _initialize_mips_tdep prototype. + * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype. + * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep + prototype. + * mipsread.c: Remove _initialize_mipsread prototype. + * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep + prototype. + * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype. + * moxie-tdep.c: Remove _initialize_moxie_tdep prototype. + * msp430-tdep.c: Remove _initialize_msp430_tdep prototype. + * mt-tdep.c: Remove _initialize_mt_tdep prototype. + * nds32-tdep.c: Remove _initialize_nds32_tdep prototype. + * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep + prototype. + * nios2-tdep.c: Remove _initialize_nios2_tdep prototype. + * nto-procfs.c: Remove _initialize_procfs prototype. + * nto-tdep.c: Remove _initialize_nto_tdep prototype. + * objc-lang.c: Remove _initialize_objc_language prototype. + * objfiles.c: Remove _initialize_objfiles prototype. + * observer.c: Remove observer_test_first_notification_function, + observer_test_second_notification_function, + observer_test_third_notification_function, and + _initialize_observer prototypes. + * opencl-lang.c: Remove _initialize_opencl_language prototypes. + * osabi.c: Remove _initialize_gdb_osabi prototype. + * osdata.c: Remove _initialize_osdata prototype. + * p-valprint.c: Remove _initialize_pascal_valprint prototype. + * parse.c: Remove _initialize_parse prototype. + * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype. + * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype. + * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype. + * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype. + * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype. + * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype. + * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype. + * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype. + * printcmd.c: Remove _initialize_printcmd prototype. + * probe.c: Remove _initialize_probe prototype. + * proc-api.c: Remove _initialize_proc_api prototype. + * proc-events.c: Remove _initialize_proc_events prototype. + * proc-service.c: Remove _initialize_proc_service prototype. + * procfs.c: Remove _initialize_procfs prototype. + * psymtab.c: Remove _initialize_psymtab prototype. + * python/python.c: Remove _initialize_python prototype. + * ravenscar-thread.c: Remove _initialize_ravenscar prototype. + * record-btrace.c: Remove _initialize_record_btrace prototype. + * record-full.c: Remove _initialize_record_full prototype. + * record.c: Remove _initialize_record prototype. + * regcache.c: Remove _initialize_regcache prototype. + * reggroups.c: Remove _initialize_reggroup prototype. + * remote-notif.c: Remove _initialize_notif prototype. + * remote-sim.c: Remove _initialize_remote_sim prototype. + * remote.c: Remove _initialize_remote prototype. + * reverse.c: Remove _initialize_reverse prototype. + * rl78-tdep.c: Remove _initialize_rl78_tdep prototype. + * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype. + * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep + prototype. + * rs6000-nat.c: Remove _initialize_rs6000_nat prototype. + * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype. + * rust-exp.y: Remove _initialize_rust_exp prototype. + * rx-tdep.c: Remove _initialize_rx_tdep prototype. + * s390-linux-nat.c: Remove _initialize_s390_nat prototype. + * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype. + * score-tdep.c: Remove _initialize_score_tdep prototype. + * selftest-arch.c: Remove _initialize_selftests_foreach_arch + prototype. + * ser-go32.c: Remove _initialize_ser_dos prototype. + * ser-mingw.c: Remove _initialize_ser_windows prototype. + * ser-pipe.c: Remove _initialize_ser_pipe prototype. + * ser-tcp.c: Remove _initialize_ser_tcp prototype. + * ser-unix.c: Remove _initialize_ser_hardwire prototype. + * serial.c: Remove _initialize_serial prototype. + * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype. + * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype. + * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype. + * sh-tdep.c: Remove _initialize_sh_tdep prototype. + * skip.c: Remove _initialize_step_skip prototype. + * sol-thread.c: Remove _initialize_sol_thread prototype. + * solib-aix.c: Remove _initialize_solib_aix prototype. + * solib-darwin.c: Remove _initialize_darwin_solib prototype. + * solib-dsbt.c: Remove _initialize_dsbt_solib prototype. + * solib-frv.c: Remove _initialize_frv_solib prototype. + * solib-spu.c: Remove _initialize_spu_solib prototype. + * solib-svr4.c: Remove _initialize_svr4_solib prototype. + * solib-target.c: Remove _initialize_solib_target prototype. + * solib.c: Remove _initialize_solib prototype. + * source.c: Remove _initialize_source prototype. + * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype. + * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep + prototype. + * sparc-nat.c: Remove _initialize_sparc_nat prototype. + * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype. + * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype. + * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep + prototype. + * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype. + * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype. + * sparc-tdep.c: Remove _initialize_sparc_tdep prototype. + * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat + prototype. + * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep + prototype. + * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat + prototype. + * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep + prototype. + * sparc64-nat.c: Remove _initialize_sparc64_nat prototype. + * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat + prototype. + * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep + prototype. + * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat + prototype. + * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep + prototype. + * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep + prototype. + * spu-linux-nat.c: Remove _initialize_spu_nat prototype. + * spu-multiarch.c: Remove _initialize_spu_multiarch prototype. + * spu-tdep.c: Remove _initialize_spu_tdep prototype. + * stabsread.c: Remove _initialize_stabsread prototype. + * stack.c: Remove _initialize_stack prototype. + * stap-probe.c: Remove _initialize_stap_probe prototype. + * std-regs.c: Remove _initialize_frame_reg prototype. + * symfile-debug.c: Remove _initialize_symfile_debug prototype. + * symfile-mem.c: Remove _initialize_symfile_mem prototype. + * symfile.c: Remove _initialize_symfile prototype. + * symmisc.c: Remove _initialize_symmisc prototype. + * symtab.c: Remove _initialize_symtab prototype. + * target-dcache.c: Remove _initialize_target_dcache prototype. + * target-descriptions.c: Remove _initialize_target_descriptions + prototype. + * thread.c: Remove _initialize_thread prototype. + * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep + prototype. + * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype. + * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype. + * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep + prototype. + * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype. + * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype. + * tracefile.c: Remove _initialize_tracefile prototype. + * tracepoint.c: Remove _initialize_tracepoint prototype. + * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype. + * tui/tui-interp.c: Remove _initialize_tui_interp prototype. + * tui/tui-layout.c: Remove _initialize_tui_layout prototype. + * tui/tui-regs.c: Remove _initialize_tui_regs prototype. + * tui/tui-stack.c: Remove _initialize_tui_stack prototype. + * tui/tui-win.c: Remove _initialize_tui_win prototype. + * tui/tui.c: Remove _initialize_tui prototype. + * typeprint.c: Remove _initialize_typeprint prototype. + * user-regs.c: Remove _initialize_user_regs prototype. + * utils.c: Remove _initialize_utils prototype. + * v850-tdep.c: Remove _initialize_v850_tdep prototype. + * valarith.c: Remove _initialize_valarith prototype. + * valops.c: Remove _initialize_valops prototype. + * valprint.c: Remove _initialize_valprint prototype. + * value.c: Remove _initialize_values prototype. + * varobj.c: Remove _initialize_varobj prototype. + * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype. + * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype. + * vax-tdep.c: Remove _initialize_vax_tdep prototype. + * windows-nat.c: Remove _initialize_windows_nat, + _initialize_check_for_gdb_ini, and _initialize_loadable + prototypes. + * windows-tdep.c: Remove _initialize_windows_tdep prototype. + * xcoffread.c: Remove _initialize_xcoffread prototype. + * xml-support.c: Remove _initialize_xml_support prototype. + * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype. + * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat + prototype. + * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep + prototype. + * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype. + 2017-09-08 Keith Seitz * dwarf2read.c (struct field_info) : Remove unused diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c index 3f5b30eaeb2..6ad6f663bfe 100644 --- a/gdb/aarch64-linux-nat.c +++ b/gdb/aarch64-linux-nat.c @@ -801,9 +801,6 @@ triggers a breakpoint or watchpoint."), &maintenance_show_cmdlist); } -/* -Wmissing-prototypes. */ -void _initialize_aarch64_linux_nat (void); - void _initialize_aarch64_linux_nat (void) { diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index 847454f1d14..4381359fe05 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -1227,9 +1227,6 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) aarch64_displaced_step_hw_singlestep); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_aarch64_linux_tdep; - void _initialize_aarch64_linux_tdep (void) { diff --git a/gdb/aarch64-newlib-tdep.c b/gdb/aarch64-newlib-tdep.c index 52bf993dceb..9d9fce1b304 100644 --- a/gdb/aarch64-newlib-tdep.c +++ b/gdb/aarch64-newlib-tdep.c @@ -36,9 +36,6 @@ aarch64_newlib_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tdep->jb_pc = 11; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_aarch64_newlib_tdep; - void _initialize_aarch64_newlib_tdep (void) { diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c index 5a627a3a186..e88889fac8e 100644 --- a/gdb/aarch64-tdep.c +++ b/gdb/aarch64-tdep.c @@ -3047,9 +3047,6 @@ static void aarch64_process_record_test (void); } #endif -/* Suppress warning from -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_aarch64_tdep; - void _initialize_aarch64_tdep (void) { diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index 618c9d540e9..4c1ff7b493c 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -1480,9 +1480,6 @@ type_system_address (struct parser_state *par_state) return type != NULL ? type : parse_type (par_state)->builtin_data_ptr; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_ada_exp; - void _initialize_ada_exp (void) { diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 86f09b941a3..fdc2a9002cc 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -13990,9 +13990,6 @@ extern const struct language_defn ada_language_defn = { LANG_MAGIC }; -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_ada_language; - /* Command-list for the "set/show ada" prefix command. */ static struct cmd_list_element *set_ada_list; static struct cmd_list_element *show_ada_list; diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index cf43f0eb3f5..19f74ddac71 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -1422,9 +1422,6 @@ ada_tasks_new_objfile_observer (struct objfile *objfile) ada_tasks_invalidate_inferior_data (inf); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tasks; - void _initialize_tasks (void) { diff --git a/gdb/addrmap.c b/gdb/addrmap.c index 8e6c477d691..93454e6ac1d 100644 --- a/gdb/addrmap.c +++ b/gdb/addrmap.c @@ -588,13 +588,8 @@ addrmap_create_mutable (struct obstack *obstack) return (struct addrmap *) map; } - - /* Initialization. */ -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_addrmap; - void _initialize_addrmap (void) { diff --git a/gdb/agent.c b/gdb/agent.c index 6f6af2a1b73..c0f10aa702d 100644 --- a/gdb/agent.c +++ b/gdb/agent.c @@ -51,9 +51,6 @@ set_can_use_agent (char *args, int from_tty, struct cmd_list_element *c) can_use_agent = can_use_agent_off; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_agent; - #include "observer.h" #include "objfiles.h" diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index f3434a6db67..f9ec8641657 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -1831,8 +1831,6 @@ init_aix_thread_ops (void) /* Module startup initialization function, automagically called by init.c. */ -void _initialize_aix_thread (void); - void _initialize_aix_thread (void) { diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c index 102555344df..8a67bb05145 100644 --- a/gdb/alpha-bsd-nat.c +++ b/gdb/alpha-bsd-nat.c @@ -187,9 +187,6 @@ alphabsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_alphabsd_nat (void); - void _initialize_alphabsd_nat (void) { diff --git a/gdb/alpha-linux-nat.c b/gdb/alpha-linux-nat.c index a8f1a1c0a48..b88ffedff8c 100644 --- a/gdb/alpha-linux-nat.c +++ b/gdb/alpha-linux-nat.c @@ -91,8 +91,6 @@ alpha_linux_register_u_offset (struct gdbarch *gdbarch, int regno, int store_p) return FPR_BASE + regno - gdbarch_fp0_regnum (gdbarch); } -void _initialize_alpha_linux_nat (void); - void _initialize_alpha_linux_nat (void) { diff --git a/gdb/alpha-linux-tdep.c b/gdb/alpha-linux-tdep.c index 33587b8dcfa..1392566fdd4 100644 --- a/gdb/alpha-linux-tdep.c +++ b/gdb/alpha-linux-tdep.c @@ -388,9 +388,6 @@ alpha_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) alpha_linux_gdb_signal_to_target); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_alpha_linux_tdep; - void _initialize_alpha_linux_tdep (void) { diff --git a/gdb/alpha-nbsd-tdep.c b/gdb/alpha-nbsd-tdep.c index 32f11ec49ed..a9b372b6f21 100644 --- a/gdb/alpha-nbsd-tdep.c +++ b/gdb/alpha-nbsd-tdep.c @@ -276,9 +276,6 @@ alphanbsd_init_abi (struct gdbarch_info info, } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_alphanbsd_tdep (void); - void _initialize_alphanbsd_tdep (void) { diff --git a/gdb/alpha-obsd-tdep.c b/gdb/alpha-obsd-tdep.c index 5f125f2a888..461e062e7b5 100644 --- a/gdb/alpha-obsd-tdep.c +++ b/gdb/alpha-obsd-tdep.c @@ -126,9 +126,6 @@ alphaobsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch) } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_alphaobsd_tdep (void); - void _initialize_alphaobsd_tdep (void) { diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 06ee90cbc77..e66517d21cd 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -1850,8 +1850,6 @@ alpha_dwarf2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) frame_base_append_sniffer (gdbarch, dwarf2_frame_base_sniffer); } -extern initialize_file_ftype _initialize_alpha_tdep; /* -Wmissing-prototypes */ - void _initialize_alpha_tdep (void) { diff --git a/gdb/amd64-darwin-tdep.c b/gdb/amd64-darwin-tdep.c index 81dba82102a..7f6cb94ad64 100644 --- a/gdb/amd64-darwin-tdep.c +++ b/gdb/amd64-darwin-tdep.c @@ -117,9 +117,6 @@ x86_darwin_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_ops (gdbarch, &darwin_so_ops); } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_amd64_darwin_tdep; - void _initialize_amd64_darwin_tdep (void) { diff --git a/gdb/amd64-dicos-tdep.c b/gdb/amd64-dicos-tdep.c index d319dd928f2..99a77a0f7d8 100644 --- a/gdb/amd64-dicos-tdep.c +++ b/gdb/amd64-dicos-tdep.c @@ -46,9 +46,6 @@ amd64_dicos_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64_dicos_tdep (void); - void _initialize_amd64_dicos_tdep (void) { diff --git a/gdb/amd64-fbsd-nat.c b/gdb/amd64-fbsd-nat.c index 107b4f8fb0f..f47e806bd6b 100644 --- a/gdb/amd64-fbsd-nat.c +++ b/gdb/amd64-fbsd-nat.c @@ -185,9 +185,6 @@ amd64fbsd_read_description (struct target_ops *ops) return i386_target_description (X86_XSTATE_SSE_MASK); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64fbsd_nat (void); - void _initialize_amd64fbsd_nat (void) { diff --git a/gdb/amd64-fbsd-tdep.c b/gdb/amd64-fbsd-tdep.c index 897cab945f6..0047e2ce24e 100644 --- a/gdb/amd64-fbsd-tdep.c +++ b/gdb/amd64-fbsd-tdep.c @@ -240,10 +240,6 @@ amd64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_lp64_fetch_link_map_offsets); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64fbsd_tdep (void); void _initialize_amd64fbsd_tdep (void) diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c index d24c028d215..a83ad8b1ea6 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c @@ -396,9 +396,6 @@ amd64_linux_siginfo_fixup (siginfo_t *ptrace, gdb_byte *inf, int direction) return 0; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64_linux_nat (void); - void _initialize_amd64_linux_nat (void) { diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index 89d3b6a7da0..87f09a4542b 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -2265,10 +2265,6 @@ amd64_x32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_ilp32_fetch_link_map_offsets); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_amd64_linux_tdep (void); void _initialize_amd64_linux_tdep (void) diff --git a/gdb/amd64-nbsd-nat.c b/gdb/amd64-nbsd-nat.c index 560ae89c7f3..73b737c1b8d 100644 --- a/gdb/amd64-nbsd-nat.c +++ b/gdb/amd64-nbsd-nat.c @@ -52,10 +52,6 @@ static int amd64nbsd32_r_reg_offset[] = 16 * 8, /* %fs */ 15 * 8 /* %gs */ }; - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64nbsd_nat (void); void _initialize_amd64nbsd_nat (void) diff --git a/gdb/amd64-nbsd-tdep.c b/gdb/amd64-nbsd-tdep.c index 9ae022729f6..6c4b6cc99f7 100644 --- a/gdb/amd64-nbsd-tdep.c +++ b/gdb/amd64-nbsd-tdep.c @@ -119,10 +119,6 @@ amd64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_lp64_fetch_link_map_offsets); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64nbsd_tdep (void); void _initialize_amd64nbsd_tdep (void) diff --git a/gdb/amd64-obsd-nat.c b/gdb/amd64-obsd-nat.c index 1c46581f8b8..8d05aaf43ef 100644 --- a/gdb/amd64-obsd-nat.c +++ b/gdb/amd64-obsd-nat.c @@ -124,10 +124,6 @@ amd64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64obsd_nat (void); void _initialize_amd64obsd_nat (void) diff --git a/gdb/amd64-obsd-tdep.c b/gdb/amd64-obsd-tdep.c index 54942cc7158..729342e2de7 100644 --- a/gdb/amd64-obsd-tdep.c +++ b/gdb/amd64-obsd-tdep.c @@ -447,10 +447,6 @@ amd64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* Unwind kernel trap frames correctly. */ frame_unwind_prepend_unwinder (gdbarch, &amd64obsd_trapframe_unwind); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64obsd_tdep (void); void _initialize_amd64obsd_tdep (void) diff --git a/gdb/amd64-sol2-tdep.c b/gdb/amd64-sol2-tdep.c index 1ae2edc6333..b44e5f1f06a 100644 --- a/gdb/amd64-sol2-tdep.c +++ b/gdb/amd64-sol2-tdep.c @@ -116,10 +116,6 @@ amd64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* How to print LWP PTIDs from core files. */ set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_amd64_sol2_tdep (void); void _initialize_amd64_sol2_tdep (void) diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index d459eb2f288..f1e2078ef55 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -3221,9 +3221,6 @@ amd64_target_description (uint64_t xcr0) return *tdesc; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_amd64_tdep (void); - void _initialize_amd64_tdep (void) { diff --git a/gdb/amd64-windows-nat.c b/gdb/amd64-windows-nat.c index fd79bfc16d2..2a90d6a4dfd 100644 --- a/gdb/amd64-windows-nat.c +++ b/gdb/amd64-windows-nat.c @@ -95,9 +95,6 @@ amd64_windows_segment_register_p (int regnum) return regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_amd64_windows_nat; - void _initialize_amd64_windows_nat (void) { diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c index 5ac73bd8c97..975c6848a49 100644 --- a/gdb/amd64-windows-tdep.c +++ b/gdb/amd64-windows-tdep.c @@ -1245,9 +1245,6 @@ amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_auto_wide_charset (gdbarch, amd64_windows_auto_wide_charset); } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_amd64_windows_tdep; - void _initialize_amd64_windows_tdep (void) { diff --git a/gdb/annotate.c b/gdb/annotate.c index 426005adba5..f68ff1098f1 100644 --- a/gdb/annotate.c +++ b/gdb/annotate.c @@ -30,8 +30,6 @@ /* Prototypes for local functions. */ -extern void _initialize_annotate (void); - static void print_value_flags (struct type *); static void breakpoint_changed (struct breakpoint *b); diff --git a/gdb/arc-newlib-tdep.c b/gdb/arc-newlib-tdep.c index a6a232f0953..50a1bce4d1c 100644 --- a/gdb/arc-newlib-tdep.c +++ b/gdb/arc-newlib-tdep.c @@ -56,9 +56,6 @@ arc_newlib_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_arc_newlib_tdep; - void _initialize_arc_newlib_tdep (void) { diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 21f70156bf0..31c7b569e9e 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -2135,9 +2135,6 @@ dump_arc_instruction_command (char *args, int from_tty) arc_insn_dump (insn); } -/* Suppress warning from -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_arc_tdep; - void _initialize_arc_tdep (void) { diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 4e0fdf4a683..02ffd6b574f 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -996,9 +996,6 @@ gdbarch_skip_prologue_noexcept (gdbarch *gdbarch, CORE_ADDR pc) noexcept return new_pc; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_gdbarch_utils; - void _initialize_gdbarch_utils (void) { diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index 4039d1e8d8b..fc66063ce50 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -1283,8 +1283,6 @@ arm_linux_new_fork (struct lwp_info *parent, pid_t child_pid) *child_state = *parent_state; } -void _initialize_arm_linux_nat (void); - void _initialize_arm_linux_nat (void) { diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index 95c52608adb..f3ca8f7eb61 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -1996,9 +1996,6 @@ arm_linux_init_abi (struct gdbarch_info info, arm_linux_record_tdep.arg7 = ARM_A1_REGNUM + 6; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_arm_linux_tdep; - void _initialize_arm_linux_tdep (void) { diff --git a/gdb/arm-nbsd-tdep.c b/gdb/arm-nbsd-tdep.c index 92d368ccecf..09780d88a47 100644 --- a/gdb/arm-nbsd-tdep.c +++ b/gdb/arm-nbsd-tdep.c @@ -85,9 +85,6 @@ arm_netbsd_elf_init_abi (struct gdbarch_info info, (gdbarch, svr4_ilp32_fetch_link_map_offsets); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_arm_netbsd_tdep; - void _initialize_arm_netbsd_tdep (void) { diff --git a/gdb/arm-obsd-tdep.c b/gdb/arm-obsd-tdep.c index 6db5487020b..66e648888ff 100644 --- a/gdb/arm-obsd-tdep.c +++ b/gdb/arm-obsd-tdep.c @@ -114,10 +114,6 @@ armobsd_init_abi (struct gdbarch_info info, break; } } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_armobsd_tdep; void _initialize_armobsd_tdep (void) diff --git a/gdb/arm-symbian-tdep.c b/gdb/arm-symbian-tdep.c index f55e12e089a..061fd1fd675 100644 --- a/gdb/arm-symbian-tdep.c +++ b/gdb/arm-symbian-tdep.c @@ -119,9 +119,6 @@ arm_symbian_osabi_sniffer (bfd *abfd) return GDB_OSABI_SYMBIAN; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_arm_symbian_tdep; - void _initialize_arm_symbian_tdep (void) { diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 0c1a0b3294a..6dda13dda0d 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -9589,8 +9589,6 @@ static void arm_record_test (void); } #endif -extern initialize_file_ftype _initialize_arm_tdep; /* -Wmissing-prototypes */ - void _initialize_arm_tdep (void) { diff --git a/gdb/arm-wince-tdep.c b/gdb/arm-wince-tdep.c index 76bf08fd60e..786c39a826e 100644 --- a/gdb/arm-wince-tdep.c +++ b/gdb/arm-wince-tdep.c @@ -154,9 +154,6 @@ arm_wince_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_arm_wince_tdep (void); - void _initialize_arm_wince_tdep (void) { diff --git a/gdb/auto-load.c b/gdb/auto-load.c index 5bba8136598..ddd060182f6 100644 --- a/gdb/auto-load.c +++ b/gdb/auto-load.c @@ -1567,8 +1567,6 @@ found and/or loaded."), return &retval; } -void _initialize_auto_load (void); - void _initialize_auto_load (void) { diff --git a/gdb/auxv.c b/gdb/auxv.c index 3daf5258146..95cbeecd797 100644 --- a/gdb/auxv.c +++ b/gdb/auxv.c @@ -567,9 +567,6 @@ info_auxv_command (char *cmd, int from_tty) } } - -extern initialize_file_ftype _initialize_auxv; /* -Wmissing-prototypes; */ - void _initialize_auxv (void) { diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index 7867c2fabeb..6818f334e75 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -1615,8 +1615,6 @@ avr_io_reg_read_command (char *args, int from_tty) } } -extern initialize_file_ftype _initialize_avr_tdep; /* -Wmissing-prototypes */ - void _initialize_avr_tdep (void) { diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index 2b5e481dc01..c888e8ca418 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -2756,11 +2756,9 @@ maint_agent_printf_command (char *exp, int from_tty) do_cleanups (old_chain); dont_repeat (); } - /* Initialization code. */ -void _initialize_ax_gdb (void); void _initialize_ax_gdb (void) { diff --git a/gdb/bfin-linux-tdep.c b/gdb/bfin-linux-tdep.c index cd877699b58..39ef2c89bde 100644 --- a/gdb/bfin-linux-tdep.c +++ b/gdb/bfin-linux-tdep.c @@ -161,9 +161,6 @@ bfin_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) bfin_linux_get_syscall_number); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_bfin_linux_tdep; - void _initialize_bfin_linux_tdep (void) { diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c index aa9efebe2fb..2e99418a32d 100644 --- a/gdb/bfin-tdep.c +++ b/gdb/bfin-tdep.c @@ -851,9 +851,6 @@ bfin_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_bfin_tdep; - void _initialize_bfin_tdep (void) { diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index 9b8cf64950b..805084fda1f 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -423,8 +423,6 @@ initialize_signal_catchpoint_ops (void) ops->explains_signal = signal_catchpoint_explains_signal; } -initialize_file_ftype _initialize_break_catch_sig; - void _initialize_break_catch_sig (void) { diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c index 1be29bea629..01e761ce37e 100644 --- a/gdb/break-catch-syscall.c +++ b/gdb/break-catch-syscall.c @@ -635,8 +635,6 @@ initialize_syscall_catchpoint_ops (void) ops->print_recreate = print_recreate_catch_syscall; } -initialize_file_ftype _initialize_break_catch_syscall; - void _initialize_break_catch_syscall (void) { diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c index da06baa026f..c8612db120a 100644 --- a/gdb/break-catch-throw.c +++ b/gdb/break-catch-throw.c @@ -537,8 +537,6 @@ initialize_throw_catchpoint_ops (void) ops->check_status = check_status_exception_catchpoint; } -initialize_file_ftype _initialize_break_catch_throw; - void _initialize_break_catch_throw (void) { diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 778a011161f..4b329b9bfed 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -551,8 +551,6 @@ gdb_evaluates_breakpoint_condition_p (void) return (mode == condition_evaluation_host); } -void _initialize_breakpoint (void); - /* Are we executing breakpoint commands? */ static int executing_breakpoint_commands; diff --git a/gdb/bsd-uthread.c b/gdb/bsd-uthread.c index 92497003a80..c97dd345924 100644 --- a/gdb/bsd-uthread.c +++ b/gdb/bsd-uthread.c @@ -547,9 +547,6 @@ bsd_uthread_target (void) return t; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_bsd_uthread; - void _initialize_bsd_uthread (void) { diff --git a/gdb/btrace.c b/gdb/btrace.c index d9810f36879..8527c6fd127 100644 --- a/gdb/btrace.c +++ b/gdb/btrace.c @@ -3484,7 +3484,6 @@ show_maint_btrace_pt_skip_pad (struct ui_file *file, int from_tty, /* Initialize btrace maintenance commands. */ -void _initialize_btrace (void); void _initialize_btrace (void) { diff --git a/gdb/charset.c b/gdb/charset.c index be95bbe11c5..cc743310589 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -705,11 +705,8 @@ wchar_iterator::iterate (enum wchar_iterate_result *out_result, return -1; } - /* The charset.c module initialization function. */ -extern initialize_file_ftype _initialize_charset; /* -Wmissing-prototype */ - static VEC (char_ptr) *charsets; #ifdef PHONY_ICONV diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index b79ceb2c3cf..a2041fa5098 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1665,10 +1665,6 @@ show_max_user_call_depth (struct ui_file *file, int from_tty, value); } - - -initialize_file_ftype _initialize_cli_cmds; - void _initialize_cli_cmds (void) { diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 30897d8df7f..8e59ed4f236 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -623,8 +623,6 @@ binary_append_command (char *cmd, int from_tty) gdb_stdout); } -extern initialize_file_ftype _initialize_cli_dump; /* -Wmissing-prototypes */ - void _initialize_cli_dump (void) { diff --git a/gdb/cli/cli-interp.c b/gdb/cli/cli-interp.c index 8712c75f396..609a419fe86 100644 --- a/gdb/cli/cli-interp.c +++ b/gdb/cli/cli-interp.c @@ -458,7 +458,6 @@ cli_interp_factory (const char *name) } /* Standard gdb initialization hook. */ -extern initialize_file_ftype _initialize_cli_interp; /* -Wmissing-prototypes */ void _initialize_cli_interp (void) diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index e8ec4449b9e..67005a17ef8 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -203,9 +203,6 @@ show_logging_command (char *args, int from_tty) printf_unfiltered (_("Output will be logged and displayed.\n")); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_cli_logging; - void _initialize_cli_logging (void) { diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 1757e4e1966..9b2ffd06b14 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -1618,10 +1618,6 @@ show_user_1 (struct cmd_list_element *c, const char *prefix, const char *name, fputs_filtered ("\n", stream); } - - -initialize_file_ftype _initialize_cli_script; - void _initialize_cli_script (void) { diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c index e8c6b67d623..0aab8016dbd 100644 --- a/gdb/coff-pe-read.c +++ b/gdb/coff-pe-read.c @@ -698,10 +698,6 @@ show_debug_coff_pe_read (struct ui_file *file, int from_tty, fprintf_filtered (file, _("Coff PE read debugging is %s.\n"), value); } -/* Provide a prototype to silence -Wmissing-prototypes. */ - -void _initialize_coff_pe_read (void); - /* Adds "Set/show debug coff_pe_read" commands. */ void diff --git a/gdb/coffread.c b/gdb/coffread.c index 9db47925573..4b5edf0919e 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -43,8 +43,6 @@ #include "psymtab.h" #include "build-id.h" -extern void _initialize_coffread (void); - /* Key for COFF-associated data. */ static const struct objfile_data *coff_objfile_data_key; diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index e4865d07232..fc23d126ef8 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -675,8 +675,6 @@ compile_register_name_demangle (struct gdbarch *gdbarch, error (_("Cannot find gdbarch register \"%s\"."), regname); } -extern initialize_file_ftype _initialize_compile; - void _initialize_compile (void) { diff --git a/gdb/complaints.c b/gdb/complaints.c index dc60dc3be32..aba305c7292 100644 --- a/gdb/complaints.c +++ b/gdb/complaints.c @@ -22,8 +22,6 @@ #include "command.h" #include "gdbcmd.h" -extern void _initialize_complaints (void); - /* Should each complaint message be self explanatory, or should we assume that a series of complaints is being produced? */ diff --git a/gdb/completer.c b/gdb/completer.c index a029263746a..5d81f24bdde 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -2775,8 +2775,6 @@ gdb_display_match_list (char **matches, int len, int max, } } } - -extern initialize_file_ftype _initialize_completer; /* -Wmissing-prototypes */ void _initialize_completer (void) diff --git a/gdb/copying.awk b/gdb/copying.awk index 1801997db15..2a71939a6f5 100644 --- a/gdb/copying.awk +++ b/gdb/copying.awk @@ -14,8 +14,6 @@ BEGIN { print "" print "static void show_warranty_command (char *, int);" print "" - print "void _initialize_copying (void);" - print "" print "static void"; print "show_copying_command (char *ignore, int from_tty)"; print "{"; diff --git a/gdb/copying.c b/gdb/copying.c index 66837b87fd6..db024627cd3 100644 --- a/gdb/copying.c +++ b/gdb/copying.c @@ -10,8 +10,6 @@ static void show_copying_command (char *, int); static void show_warranty_command (char *, int); -void _initialize_copying (void); - static void show_copying_command (char *ignore, int from_tty) { diff --git a/gdb/core-regset.c b/gdb/core-regset.c index 278887be8f0..9d2b91457a0 100644 --- a/gdb/core-regset.c +++ b/gdb/core-regset.c @@ -111,9 +111,6 @@ static struct core_fns regset_core_fns = NULL /* next */ }; -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_core_regset (void); - void _initialize_core_regset (void) { diff --git a/gdb/corefile.c b/gdb/corefile.c index 0996f9c0212..da3f72ffe62 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -33,10 +33,6 @@ #include "observer.h" #include "cli/cli-utils.h" -/* Local function declarations. */ - -extern void _initialize_core (void); - /* You can have any number of hooks for `exec_file_command' command to call. If there's only one hook, it is set in exec_file_display hook. If there are two or more hooks, they are set in diff --git a/gdb/corelow.c b/gdb/corelow.c index ac7226821c2..594db1d6f28 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -88,8 +88,6 @@ static void add_to_thread_list (bfd *, asection *, void *); static void init_core_ops (void); -void _initialize_corelow (void); - static struct target_ops core_ops; /* An arbitrary identifier for the core inferior. */ diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c index f4cf9448d35..49fab32561f 100644 --- a/gdb/cp-abi.c +++ b/gdb/cp-abi.c @@ -390,8 +390,6 @@ show_cp_abi_cmd (char *args, int from_tty) uiout->text (").\n"); } -extern initialize_file_ftype _initialize_cp_abi; /* -Wmissing-prototypes */ - void _initialize_cp_abi (void) { diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index c7b5aa8d45a..f27783ae5ac 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -1082,9 +1082,6 @@ maintenance_cplus_namespace (char *args, int from_tty) printf_unfiltered (_("The `maint namespace' command was removed.\n")); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_cp_namespace; - void _initialize_cp_namespace (void) { diff --git a/gdb/cp-support.c b/gdb/cp-support.c index 8bcbe657a4e..11318efbcbf 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -1628,9 +1628,6 @@ first_component_command (char *arg, int from_tty) printf_unfiltered ("%s\n", prefix); } -extern initialize_file_ftype _initialize_cp_support; /* -Wmissing-prototypes */ - - /* Implement "info vtbl". */ static void diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index af70421fd77..fb9bfd904f7 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -74,8 +74,6 @@ static struct obstack dont_print_vb_obstack; static struct obstack dont_print_statmem_obstack; static struct obstack dont_print_stat_array_obstack; -extern void _initialize_cp_valprint (void); - static void cp_print_static_field (struct type *, struct value *, struct ui_file *, int, const struct value_print_options *); diff --git a/gdb/cris-linux-tdep.c b/gdb/cris-linux-tdep.c index 896a35e0989..9219a97e40c 100644 --- a/gdb/cris-linux-tdep.c +++ b/gdb/cris-linux-tdep.c @@ -46,9 +46,6 @@ cris_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_cris_linux_tdep; - void _initialize_cris_linux_tdep (void) { diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 85a12e25b17..d64c99ac817 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -3866,8 +3866,6 @@ static struct core_fns cris_elf_core_fns = NULL /* next */ }; -extern initialize_file_ftype _initialize_cris_tdep; /* -Wmissing-prototypes */ - void _initialize_cris_tdep (void) { diff --git a/gdb/ctf.c b/gdb/ctf.c index 82e7013f976..46a1bb52c35 100644 --- a/gdb/ctf.c +++ b/gdb/ctf.c @@ -1731,10 +1731,6 @@ Specify the filename of the CTF directory."; #endif -/* -Wmissing-prototypes */ - -extern initialize_file_ftype _initialize_ctf; - /* module initialization */ void diff --git a/gdb/d-lang.c b/gdb/d-lang.c index 941d3ed4c53..277df012b35 100644 --- a/gdb/d-lang.c +++ b/gdb/d-lang.c @@ -342,9 +342,6 @@ builtin_d_type (struct gdbarch *gdbarch) return (const struct builtin_d_type *) gdbarch_data (gdbarch, d_type_data); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_d_language; - void _initialize_d_language (void) { diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c index 91bc5b3d542..c15c2fd574d 100644 --- a/gdb/darwin-nat-info.c +++ b/gdb/darwin-nat-info.c @@ -841,9 +841,6 @@ info_mach_exceptions_command (char *args, int from_tty) } } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_darwin_info_commands; - void _initialize_darwin_info_commands (void) { diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index b721da86b81..e96f24dd63a 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -2338,9 +2338,6 @@ darwin_supports_multi_process (struct target_ops *self) return 1; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_darwin_inferior; - void _initialize_darwin_inferior (void) { diff --git a/gdb/dbxread.c b/gdb/dbxread.c index daa3ce9f813..95b89f9493b 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -249,8 +249,6 @@ static int bincls_allocated; /* Local function prototypes. */ -extern void _initialize_dbxread (void); - static void read_ofile_symtab (struct objfile *, struct partial_symtab *); static void dbx_read_symtab (struct partial_symtab *self, diff --git a/gdb/dcache.c b/gdb/dcache.c index cec1a81e301..891fa02fbdd 100644 --- a/gdb/dcache.c +++ b/gdb/dcache.c @@ -127,8 +127,6 @@ static struct dcache_block *dcache_alloc (DCACHE *dcache, CORE_ADDR addr); static void info_dcache_command (char *exp, int tty); -void _initialize_dcache (void); - static int dcache_enabled_p = 0; /* OBSOLETE */ static void diff --git a/gdb/demangle.c b/gdb/demangle.c index 882356992ed..d034f4e3fa0 100644 --- a/gdb/demangle.c +++ b/gdb/demangle.c @@ -217,8 +217,6 @@ demangle_command (char *args, int from_tty) error (_("Can't demangle \"%s\""), name); } -extern initialize_file_ftype _initialize_demangler; /* -Wmissing-prototypes */ - void _initialize_demangler (void) { diff --git a/gdb/disasm-selftests.c b/gdb/disasm-selftests.c index 4d38ccf251b..bc2f7b78060 100644 --- a/gdb/disasm-selftests.c +++ b/gdb/disasm-selftests.c @@ -207,9 +207,6 @@ memory_error_test (struct gdbarch *gdbarch) } // namespace selftests #endif /* GDB_SELF_TEST */ -/* Suppress warning from -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_disasm_selftests; - void _initialize_disasm_selftests (void) { diff --git a/gdb/disasm.c b/gdb/disasm.c index c3528e006ff..8061b603807 100644 --- a/gdb/disasm.c +++ b/gdb/disasm.c @@ -1052,9 +1052,6 @@ disassembler_options_completer (struct cmd_list_element *ignore, /* Initialization code. */ -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_disasm; - void _initialize_disasm (void) { diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c index c611b16375d..c1a8cb02d38 100644 --- a/gdb/dtrace-probe.c +++ b/gdb/dtrace-probe.c @@ -908,8 +908,6 @@ info_probes_dtrace_command (char *arg, int from_tty) info_probes_for_ops (arg, from_tty, &dtrace_probe_ops); } -void _initialize_dtrace_probe (void); - void _initialize_dtrace_probe (void) { diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c index 2a84b28ee78..8dc4c9be0f9 100644 --- a/gdb/dummy-frame.c +++ b/gdb/dummy-frame.c @@ -417,8 +417,6 @@ maintenance_print_dummy_frames (char *args, int from_tty) } } -extern void _initialize_dummy_frame (void); - void _initialize_dummy_frame (void) { diff --git a/gdb/dwarf2-frame-tailcall.c b/gdb/dwarf2-frame-tailcall.c index 310fc4df6c4..b46bccddb9e 100644 --- a/gdb/dwarf2-frame-tailcall.c +++ b/gdb/dwarf2-frame-tailcall.c @@ -464,9 +464,6 @@ const struct frame_unwind dwarf2_tailcall_frame_unwind = tailcall_frame_prev_arch }; -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tailcall_frame; - void _initialize_tailcall_frame (void) { diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index aaf3aee33d1..64ae586492e 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -2396,9 +2396,6 @@ dwarf2_build_frame_info (struct objfile *objfile) set_objfile_data (objfile, dwarf2_frame_objfile_data, fde_table2); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_dwarf2_frame (void); - void _initialize_dwarf2_frame (void) { diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index a693856ef5a..e2724da05c8 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -1445,9 +1445,6 @@ abort_expression: gdb_assert (this->recursion_depth >= 0); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_dwarf2expr; - void _initialize_dwarf2expr (void) { diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 1a1b06a1b26..ded9e00b4fc 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -4667,9 +4667,6 @@ const struct symbol_computed_ops dwarf2_loclist_funcs = { loclist_generate_c_location }; -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_dwarf2loc; - void _initialize_dwarf2loc (void) { diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 201a8575d82..30b0fe8412b 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -24104,8 +24104,6 @@ show_check_physname (struct ui_file *file, int from_tty, value); } -void _initialize_dwarf2_read (void); - void _initialize_dwarf2_read (void) { diff --git a/gdb/elfread.c b/gdb/elfread.c index ae84e43837c..f3d464120f5 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -48,8 +48,6 @@ #include "location.h" #include "auxv.h" -extern void _initialize_elfread (void); - /* Forward declarations. */ extern const struct sym_fns elf_sym_fns_gdb_index; extern const struct sym_fns elf_sym_fns_lazy_psyms; diff --git a/gdb/exec.c b/gdb/exec.c index 92c87e4e02f..d20afdce291 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -57,8 +57,6 @@ static void exec_files_info (struct target_ops *); static void init_exec_ops (void); -void _initialize_exec (void); - /* The target vector for executable files. */ static struct target_ops exec_ops; diff --git a/gdb/extension.c b/gdb/extension.c index cfbae2c3398..54ce4a22ba7 100644 --- a/gdb/extension.c +++ b/gdb/extension.c @@ -1061,8 +1061,6 @@ ext_lang_before_prompt (const char *current_gdb_prompt) } } -extern initialize_file_ftype _initialize_extension; - void _initialize_extension (void) { diff --git a/gdb/f-lang.c b/gdb/f-lang.c index 903cfd169e2..54f665d0070 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -37,8 +37,6 @@ /* Local functions */ -extern void _initialize_f_language (void); - static void f_printchar (int c, struct type *type, struct ui_file * stream); static void f_emit_char (int c, struct type *type, struct ui_file * stream, int quoter); diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 8fc894ae624..5bcab9d525f 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -34,7 +34,6 @@ #include "block.h" #include "dictionary.h" -extern void _initialize_f_valprint (void); static void info_common_command (char *, int); static void f77_get_dynamic_length_of_aggregate (struct type *); diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 80e0eca111e..5ad0dda5b43 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -1216,9 +1216,6 @@ fbsd_nat_add_target (struct target_ops *t) add_target (t); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_fbsd_nat; - void _initialize_fbsd_nat (void) { diff --git a/gdb/fbsd-tdep.c b/gdb/fbsd-tdep.c index 6f30197a836..19082696326 100644 --- a/gdb/fbsd-tdep.c +++ b/gdb/fbsd-tdep.c @@ -524,9 +524,6 @@ fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_get_syscall_number (gdbarch, fbsd_get_syscall_number); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_fbsd_tdep; - void _initialize_fbsd_tdep (void) { diff --git a/gdb/filesystem.c b/gdb/filesystem.c index 1e42d83b71d..624563aef3b 100644 --- a/gdb/filesystem.c +++ b/gdb/filesystem.c @@ -76,9 +76,6 @@ is \"%s\".\n"), value); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_filesystem; - void _initialize_filesystem (void) { diff --git a/gdb/findcmd.c b/gdb/findcmd.c index 9944aedaa74..e35c224ad01 100644 --- a/gdb/findcmd.c +++ b/gdb/findcmd.c @@ -317,9 +317,6 @@ find_command (char *args, int from_tty) do_cleanups (old_cleanups); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_mem_search; - void _initialize_mem_search (void) { diff --git a/gdb/fork-child.c b/gdb/fork-child.c index 60985d852dd..194aab57cac 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -159,9 +159,6 @@ show_startup_with_shell (struct ui_file *file, int from_tty, value); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_fork_child; - void _initialize_fork_child (void) { diff --git a/gdb/frame-base.c b/gdb/frame-base.c index 4f7213daae7..ba438dc08e7 100644 --- a/gdb/frame-base.c +++ b/gdb/frame-base.c @@ -120,8 +120,6 @@ frame_base_find_by_frame (struct frame_info *this_frame) return table->default_base; } -extern initialize_file_ftype _initialize_frame_base; /* -Wmissing-prototypes */ - void _initialize_frame_base (void) { diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index 3a750130594..096631c58b0 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -288,9 +288,6 @@ frame_unwind_got_address (struct frame_info *frame, int regnum, return reg_val; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_frame_unwind; - void _initialize_frame_unwind (void) { diff --git a/gdb/frame.c b/gdb/frame.c index 55d4ddb396f..f100da356ab 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -2927,8 +2927,6 @@ frame_prepare_for_sniffer (struct frame_info *frame, return make_cleanup (frame_cleanup_after_sniffer, frame); } -extern initialize_file_ftype _initialize_frame; /* -Wmissing-prototypes */ - static struct cmd_list_element *set_backtrace_cmdlist; static struct cmd_list_element *show_backtrace_cmdlist; diff --git a/gdb/frv-linux-tdep.c b/gdb/frv-linux-tdep.c index cd02669d253..7974f751f6a 100644 --- a/gdb/frv-linux-tdep.c +++ b/gdb/frv-linux-tdep.c @@ -480,9 +480,6 @@ frv_linux_elf_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_frv_linux_tdep (void); - void _initialize_frv_linux_tdep (void) { diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c index c0257bdb4cd..8a3a8932829 100644 --- a/gdb/frv-tdep.c +++ b/gdb/frv-tdep.c @@ -39,8 +39,6 @@ #include "frv-tdep.h" #include "objfiles.h" -extern void _initialize_frv_tdep (void); - struct frv_unwind_cache /* was struct frame_extra_info */ { /* The previous frame's inner-most stack address. Used as this diff --git a/gdb/ft32-tdep.c b/gdb/ft32-tdep.c index 5a7aea1bd2d..a988421ec39 100644 --- a/gdb/ft32-tdep.c +++ b/gdb/ft32-tdep.c @@ -45,10 +45,6 @@ #define RAM_BIAS 0x800000 /* Bias added to RAM addresses. */ -/* Local functions. */ - -extern void _initialize_ft32_tdep (void); - /* Use an invalid address -1 as 'not available' marker. */ enum { REG_UNAVAIL = (CORE_ADDR) (-1) }; diff --git a/gdb/gcore.c b/gdb/gcore.c index 07c1997bfdf..69e5eb9575e 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -609,9 +609,6 @@ gcore_memory_sections (bfd *obfd) return 1; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_gcore; - void _initialize_gcore (void) { diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c index c0dc1916355..d80b3fb7bcd 100644 --- a/gdb/gdb_bfd.c +++ b/gdb/gdb_bfd.c @@ -987,9 +987,6 @@ maintenance_info_bfds (char *arg, int from_tty) htab_traverse (all_bfds, print_one_bfd, uiout); } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_gdb_bfd; - void _initialize_gdb_bfd (void) { diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 24521b5e231..5a84879ae1e 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -5479,8 +5479,6 @@ target_gdbarch (void) return current_inferior ()->gdbarch; } -extern void _initialize_gdbarch (void); - void _initialize_gdbarch (void) { diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 36451b1a2fb..026065e52a8 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -2525,8 +2525,6 @@ target_gdbarch (void) return current_inferior ()->gdbarch; } -extern void _initialize_gdbarch (void); - void _initialize_gdbarch (void) { diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index fc86225bf67..37162d050d0 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -5368,8 +5368,6 @@ objfile_type (struct objfile *objfile) return objfile_type; } -extern initialize_file_ftype _initialize_gdbtypes; - void _initialize_gdbtypes (void) { diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index d5e3841e68c..d3726e78424 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -3480,11 +3480,6 @@ to the thread's initial suspend-count when gdb notices the threads."), &thread_cmd_list); } - - -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_gnu_nat; - void _initialize_gnu_nat (void) { diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index 91c42015aae..c25b23089c9 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -413,8 +413,6 @@ init_gnuv2_ops (void) gnu_v2_abi_ops.baseclass_offset = gnuv2_baseclass_offset; } -extern initialize_file_ftype _initialize_gnu_v2_abi; /* -Wmissing-prototypes */ - void _initialize_gnu_v2_abi (void) { diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index f5d3d13a537..aad812b47ac 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -1358,8 +1358,6 @@ init_gnuv3_ops (void) gnu_v3_abi_ops.pass_by_reference = gnuv3_pass_by_reference; } -extern initialize_file_ftype _initialize_gnu_v3_abi; /* -Wmissing-prototypes */ - void _initialize_gnu_v3_abi (void) { diff --git a/gdb/go-lang.c b/gdb/go-lang.c index 60bb3c55472..7441bb30f6f 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -670,8 +670,6 @@ builtin_go_type (struct gdbarch *gdbarch) return (const struct builtin_go_type *) gdbarch_data (gdbarch, go_type_data); } -extern initialize_file_ftype _initialize_go_language; - void _initialize_go_language (void) { diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 4e609a87e7a..92f7381ef6f 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -2058,9 +2058,6 @@ go32_info_dos_command (char *args, int from_tty) help_list (info_dos_cmdlist, "info dos ", class_info, gdb_stdout); } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_go32_nat; - void _initialize_go32_nat (void) { diff --git a/gdb/guile/guile.c b/gdb/guile/guile.c index 0dadc3ccc8a..d6252d6855e 100644 --- a/gdb/guile/guile.c +++ b/gdb/guile/guile.c @@ -815,9 +815,6 @@ message == an error message without a stack will be printed."), &set_guile_list, &show_guile_list); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_guile; - void _initialize_guile (void) { diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 1e8bde17fcd..7edc3ccaed0 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -1396,8 +1396,6 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) } -extern initialize_file_ftype _initialize_h8300_tdep; /* -Wmissing-prototypes */ - void _initialize_h8300_tdep (void) { diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c index c8eb93c51c0..c190a4bf35e 100644 --- a/gdb/hppa-linux-nat.c +++ b/gdb/hppa-linux-nat.c @@ -377,8 +377,6 @@ fill_fpregset (const struct regcache *regcache, } } -void _initialize_hppa_linux_nat (void); - void _initialize_hppa_linux_nat (void) { diff --git a/gdb/hppa-linux-tdep.c b/gdb/hppa-linux-tdep.c index a560bbc3b9b..9fc06e8189e 100644 --- a/gdb/hppa-linux-tdep.c +++ b/gdb/hppa-linux-tdep.c @@ -483,10 +483,6 @@ hppa_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, NULL, cb_data); cb (".reg2", 64 * 4, &hppa_linux_fpregset, NULL, cb_data); } - - -/* Forward declarations. */ -extern initialize_file_ftype _initialize_hppa_linux_tdep; static void hppa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) diff --git a/gdb/hppa-nbsd-nat.c b/gdb/hppa-nbsd-nat.c index 54c776cf59a..98ac4092a59 100644 --- a/gdb/hppa-nbsd-nat.c +++ b/gdb/hppa-nbsd-nat.c @@ -222,10 +222,6 @@ hppanbsd_store_registers (struct target_ops *ops, } } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_hppanbsd_nat (void); - void _initialize_hppanbsd_nat (void) { diff --git a/gdb/hppa-nbsd-tdep.c b/gdb/hppa-nbsd-tdep.c index 1beea448e31..2401784ddaf 100644 --- a/gdb/hppa-nbsd-tdep.c +++ b/gdb/hppa-nbsd-tdep.c @@ -205,10 +205,6 @@ hppanbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tramp_frame_prepend_unwinder (gdbarch, &hppanbsd_sigtramp_si4); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_hppanbsd_tdep; void _initialize_hppanbsd_tdep (void) diff --git a/gdb/hppa-obsd-nat.c b/gdb/hppa-obsd-nat.c index 7a255c9953e..bc7ef9338b2 100644 --- a/gdb/hppa-obsd-nat.c +++ b/gdb/hppa-obsd-nat.c @@ -246,9 +246,6 @@ hppaobsd_store_registers (struct target_ops *ops, } } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_hppaobsd_nat (void); - void _initialize_hppaobsd_nat (void) { diff --git a/gdb/hppa-obsd-tdep.c b/gdb/hppa-obsd-tdep.c index 91a45c09e16..3e92ff91aba 100644 --- a/gdb/hppa-obsd-tdep.c +++ b/gdb/hppa-obsd-tdep.c @@ -164,10 +164,6 @@ hppaobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_iterate_over_regset_sections (gdbarch, hppaobsd_iterate_over_regset_sections); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_hppabsd_tdep (void); void _initialize_hppabsd_tdep (void) diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 229b061b106..1a04588411d 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -3187,9 +3187,6 @@ hppa_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) fprintf_unfiltered (file, "elf = %s\n", tdep->is_elf ? "yes" : "no"); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_hppa_tdep; - void _initialize_hppa_tdep (void) { diff --git a/gdb/i386-bsd-nat.c b/gdb/i386-bsd-nat.c index 1de6c780c03..791c29254c0 100644 --- a/gdb/i386-bsd-nat.c +++ b/gdb/i386-bsd-nat.c @@ -280,10 +280,6 @@ i386bsd_target (void) t->to_store_registers = i386bsd_store_inferior_registers; return t; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_i386bsd_nat (void); void _initialize_i386bsd_nat (void) diff --git a/gdb/i386-cygwin-tdep.c b/gdb/i386-cygwin-tdep.c index c8139ff047b..eb6e05346ce 100644 --- a/gdb/i386-cygwin-tdep.c +++ b/gdb/i386-cygwin-tdep.c @@ -252,9 +252,6 @@ i386_cygwin_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_i386_cygwin_tdep (void); - void _initialize_i386_cygwin_tdep (void) { diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c index 0c558ccf561..a888e10c895 100644 --- a/gdb/i386-darwin-tdep.c +++ b/gdb/i386-darwin-tdep.c @@ -287,9 +287,6 @@ i386_mach_o_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_i386_darwin_tdep; - void _initialize_i386_darwin_tdep (void) { diff --git a/gdb/i386-dicos-tdep.c b/gdb/i386-dicos-tdep.c index ff0018ed1d4..fba9c607e79 100644 --- a/gdb/i386-dicos-tdep.c +++ b/gdb/i386-dicos-tdep.c @@ -40,9 +40,6 @@ i386_dicos_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_i386_dicos_tdep (void); - void _initialize_i386_dicos_tdep (void) { diff --git a/gdb/i386-fbsd-nat.c b/gdb/i386-fbsd-nat.c index 3b2ed318215..53f58a7ab6f 100644 --- a/gdb/i386-fbsd-nat.c +++ b/gdb/i386-fbsd-nat.c @@ -147,9 +147,6 @@ i386fbsd_read_description (struct target_ops *ops) } #endif -/* Prevent warning from -Wmissing-prototypes. */ -void _initialize_i386fbsd_nat (void); - void _initialize_i386fbsd_nat (void) { diff --git a/gdb/i386-fbsd-tdep.c b/gdb/i386-fbsd-tdep.c index baca978612d..5a2c67eb206 100644 --- a/gdb/i386-fbsd-tdep.c +++ b/gdb/i386-fbsd-tdep.c @@ -417,10 +417,6 @@ i386fbsd4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) i386fbsd_core_read_description); } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_i386fbsd_tdep (void); - void _initialize_i386fbsd_tdep (void) { diff --git a/gdb/i386-gnu-nat.c b/gdb/i386-gnu-nat.c index 3bce88a2060..07e3a8361c1 100644 --- a/gdb/i386-gnu-nat.c +++ b/gdb/i386-gnu-nat.c @@ -409,9 +409,6 @@ i386_gnu_dr_get_control (void) } #endif /* i386_DEBUG_STATE */ -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_i386gnu_nat; - void _initialize_i386gnu_nat (void) { diff --git a/gdb/i386-gnu-tdep.c b/gdb/i386-gnu-tdep.c index a5f53bc09f5..f178ae08678 100644 --- a/gdb/i386-gnu-tdep.c +++ b/gdb/i386-gnu-tdep.c @@ -61,9 +61,6 @@ i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tdep->jb_pc_offset = 20; /* From . */ } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_i386gnu_tdep (void); - void _initialize_i386gnu_tdep (void) { diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index b08470f3058..dd86c2f3537 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -702,10 +702,6 @@ i386_linux_resume (struct target_ops *ops, if (ptrace (request, pid, 0, gdb_signal_to_host (signal)) == -1) perror_with_name (("ptrace")); } - - -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_i386_linux_nat; void _initialize_i386_linux_nat (void) diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c index 3e2bee916a1..87a9598f8af 100644 --- a/gdb/i386-linux-tdep.c +++ b/gdb/i386-linux-tdep.c @@ -1076,9 +1076,6 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) i386_linux_handle_segmentation_fault); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_i386_linux_tdep (void); - void _initialize_i386_linux_tdep (void) { diff --git a/gdb/i386-nbsd-nat.c b/gdb/i386-nbsd-nat.c index 3d40ad27d4e..f862c6870d8 100644 --- a/gdb/i386-nbsd-nat.c +++ b/gdb/i386-nbsd-nat.c @@ -70,10 +70,6 @@ i386nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_i386nbsd_nat (void); void _initialize_i386nbsd_nat (void) diff --git a/gdb/i386-nbsd-tdep.c b/gdb/i386-nbsd-tdep.c index 7a3b0a4eb3d..263cb99cbd4 100644 --- a/gdb/i386-nbsd-tdep.c +++ b/gdb/i386-nbsd-tdep.c @@ -316,9 +316,6 @@ i386nbsdelf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tdep->struct_return = pcc_struct_return; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_i386nbsd_tdep; - void _initialize_i386nbsd_tdep (void) { diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c index 3fe715f4ca0..5f0b88614ab 100644 --- a/gdb/i386-nto-tdep.c +++ b/gdb/i386-nto-tdep.c @@ -367,9 +367,6 @@ i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_wchar_signed (gdbarch, 0); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_i386nto_tdep; - void _initialize_i386nto_tdep (void) { diff --git a/gdb/i386-obsd-nat.c b/gdb/i386-obsd-nat.c index ddff12235bf..76079afaa65 100644 --- a/gdb/i386-obsd-nat.c +++ b/gdb/i386-obsd-nat.c @@ -87,10 +87,6 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - - -/* Prevent warning from -Wmissing-prototypes. */ -void _initialize_i386obsd_nat (void); void _initialize_i386obsd_nat (void) diff --git a/gdb/i386-obsd-tdep.c b/gdb/i386-obsd-tdep.c index 22375c5b750..5dfda153604 100644 --- a/gdb/i386-obsd-tdep.c +++ b/gdb/i386-obsd-tdep.c @@ -442,10 +442,6 @@ i386obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_ilp32_fetch_link_map_offsets); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_i386obsd_tdep (void); void _initialize_i386obsd_tdep (void) diff --git a/gdb/i386-sol2-nat.c b/gdb/i386-sol2-nat.c index 873050e885c..0c5d03fb0d3 100644 --- a/gdb/i386-sol2-nat.c +++ b/gdb/i386-sol2-nat.c @@ -130,9 +130,6 @@ fill_fpregset (const struct regcache *regcache, #endif -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_amd64_sol2_nat (void); - void _initialize_amd64_sol2_nat (void) { diff --git a/gdb/i386-sol2-tdep.c b/gdb/i386-sol2-tdep.c index 356d56edbb0..cfa336e0d10 100644 --- a/gdb/i386-sol2-tdep.c +++ b/gdb/i386-sol2-tdep.c @@ -150,9 +150,6 @@ i386_sol2_osabi_sniffer (bfd *abfd) return GDB_OSABI_UNKNOWN; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_i386_sol2_tdep (void); - void _initialize_i386_sol2_tdep (void) { diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 74011398abe..eefa03a3bf5 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -8984,9 +8984,6 @@ show_mpx_cmd (char *args, int from_tty) cmd_show_list (mpx_show_cmdlist, from_tty, ""); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_i386_tdep (void); - void _initialize_i386_tdep (void) { diff --git a/gdb/i386-windows-nat.c b/gdb/i386-windows-nat.c index 7339e4e5090..2a309c3c7e9 100644 --- a/gdb/i386-windows-nat.c +++ b/gdb/i386-windows-nat.c @@ -79,9 +79,6 @@ i386_windows_segment_register_p (int regnum) return regnum >= I386_CS_REGNUM && regnum <= I386_GS_REGNUM; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_i386_windows_nat; - void _initialize_i386_windows_nat (void) { diff --git a/gdb/ia64-libunwind-tdep.c b/gdb/ia64-libunwind-tdep.c index 025c87039e2..62b5bb3bee8 100644 --- a/gdb/ia64-libunwind-tdep.c +++ b/gdb/ia64-libunwind-tdep.c @@ -592,9 +592,6 @@ libunwind_is_initialized (void) return libunwind_initialized; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_libunwind_frame (void); - void _initialize_libunwind_frame (void) { diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index a532b983859..14b68431040 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -891,8 +891,6 @@ ia64_linux_status_is_event (int status) || WSTOPSIG (status) == SIGILL); } -void _initialize_ia64_linux_nat (void); - void _initialize_ia64_linux_nat (void) { diff --git a/gdb/ia64-linux-tdep.c b/gdb/ia64-linux-tdep.c index 3f914dee16f..c08d494c974 100644 --- a/gdb/ia64-linux-tdep.c +++ b/gdb/ia64-linux-tdep.c @@ -256,9 +256,6 @@ ia64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) ia64_linux_stap_is_single_operand); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_ia64_linux_tdep; - void _initialize_ia64_linux_tdep (void) { diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 5a16db1563c..5fc32a8bfc4 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -4038,8 +4038,6 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -extern initialize_file_ftype _initialize_ia64_tdep; /* -Wmissing-prototypes */ - void _initialize_ia64_tdep (void) { diff --git a/gdb/ia64-vms-tdep.c b/gdb/ia64-vms-tdep.c index fa22cf718d2..f47cf0a1933 100644 --- a/gdb/ia64-vms-tdep.c +++ b/gdb/ia64-vms-tdep.c @@ -154,9 +154,6 @@ ia64_openvms_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) #endif } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_ia64_vms_tdep; - void _initialize_ia64_vms_tdep (void) { diff --git a/gdb/infcall.c b/gdb/infcall.c index cd3eedfeeb7..5df04e3b9a9 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -1412,10 +1412,6 @@ When the function is done executing, GDB will silently stop."), /* The above code errors out, so ... */ gdb_assert_not_reached ("... should not be here"); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_infcall (void); void _initialize_infcall (void) diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 3b7178c4d8e..25cf0254262 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -100,8 +100,6 @@ static void step_command (char *, int); static void run_command (char *, int); -void _initialize_infcmd (void); - #define ERROR_NO_INFERIOR \ if (!target_has_execution) error (_("The program is not being run.")); diff --git a/gdb/inferior.c b/gdb/inferior.c index a20c6c5b9ba..b916909905c 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -37,8 +37,6 @@ #include "readline/tilde.h" #include "progspace-and-thread.h" -void _initialize_inferiors (void); - /* Keep a registry of per-inferior data-pointers required by other GDB modules. */ diff --git a/gdb/inflow.c b/gdb/inflow.c index 41a2251e885..0e8c0f3c80d 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -42,8 +42,6 @@ #define O_NOCTTY 0 #endif -extern void _initialize_inflow (void); - static void pass_signal (int); static void child_terminal_ours_1 (int); diff --git a/gdb/infrun.c b/gdb/infrun.c index 1e301d3a441..3f2ac85b919 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -95,8 +95,6 @@ static void set_schedlock_func (char *args, int from_tty, static int currently_stepping (struct thread_info *tp); -void _initialize_infrun (void); - void nullify_last_target_wait_ptid (void); static void insert_hp_step_resume_breakpoint_at_frame (struct frame_info *); diff --git a/gdb/interps.c b/gdb/interps.c index 1e59034a5e8..19694ff8281 100644 --- a/gdb/interps.c +++ b/gdb/interps.c @@ -74,8 +74,6 @@ get_current_interp_info (void) /* The magic initialization routine for this module. */ -void _initialize_interpreter (void); - static struct interp *interp_lookup_existing (struct ui *ui, const char *name); diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c index 99824b7f8aa..deafaaa38dd 100644 --- a/gdb/iq2000-tdep.c +++ b/gdb/iq2000-tdep.c @@ -858,9 +858,6 @@ iq2000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) Initializer function for the iq2000 module. Called by gdb at start-up. */ -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_iq2000_tdep; - void _initialize_iq2000_tdep (void) { diff --git a/gdb/jit.c b/gdb/jit.c index 725d41ef0a5..72eed50befd 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -1501,10 +1501,6 @@ jit_gdbarch_data_init (struct obstack *obstack) return data; } -/* Provide a prototype to silence -Wmissing-prototypes. */ - -extern void _initialize_jit (void); - void _initialize_jit (void) { diff --git a/gdb/language.c b/gdb/language.c index 073039e3266..7f870d83522 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -46,8 +46,6 @@ #include "c-lang.h" #include -extern void _initialize_language (void); - static void unk_lang_error (const char *); static int unk_lang_parser (struct parser_state *); diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c index 16403c96016..22a11c6529b 100644 --- a/gdb/linux-fork.c +++ b/gdb/linux-fork.c @@ -38,9 +38,6 @@ struct fork_info *fork_list; static int highest_fork_num; -/* Prevent warning from -Wmissing-prototypes. */ -extern void _initialize_linux_fork (void); - /* Fork list data structure: */ struct fork_info { diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 41243185d7f..89e0c62fb13 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4952,9 +4952,6 @@ current_lwp_ptid (void) return inferior_ptid; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_linux_nat; - void _initialize_linux_nat (void) { diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index eb446599528..61ea13c6a85 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -2552,9 +2552,6 @@ linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_get_siginfo_type (gdbarch, linux_get_siginfo_type); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_linux_tdep; - void _initialize_linux_tdep (void) { diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 6d981357cf8..6567e93b066 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -1696,9 +1696,6 @@ init_thread_db_ops (void) complete_target_initialization (&thread_db_ops); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_thread_db; - void _initialize_thread_db (void) { diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c index 1ca6c08bf2d..24bc5c2cbe2 100644 --- a/gdb/lm32-tdep.c +++ b/gdb/lm32-tdep.c @@ -571,9 +571,6 @@ lm32_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_lm32_tdep; - void _initialize_lm32_tdep (void) { diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c index b9ab2b3c729..ddd50af54cb 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -28,7 +28,6 @@ #include "c-lang.h" #include "valprint.h" -extern void _initialize_m2_language (void); static void m2_printchar (int, struct type *, struct ui_file *); static void m2_emit_char (int, struct type *, struct ui_file *, int); diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index 1bc5950c6e0..73591413c84 100644 --- a/gdb/m32c-tdep.c +++ b/gdb/m32c-tdep.c @@ -2681,9 +2681,6 @@ m32c_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_m32c_tdep; - void _initialize_m32c_tdep (void) { diff --git a/gdb/m32r-linux-nat.c b/gdb/m32r-linux-nat.c index a33de23dc32..65d85e16b94 100644 --- a/gdb/m32r-linux-nat.c +++ b/gdb/m32r-linux-nat.c @@ -231,8 +231,6 @@ m32r_linux_store_inferior_registers (struct target_ops *ops, _("Got request to store bad register number %d."), regno); } -void _initialize_m32r_linux_nat (void); - void _initialize_m32r_linux_nat (void) { diff --git a/gdb/m32r-linux-tdep.c b/gdb/m32r-linux-tdep.c index f72dccd4644..c61f2e3a6a6 100644 --- a/gdb/m32r-linux-tdep.c +++ b/gdb/m32r-linux-tdep.c @@ -470,9 +470,6 @@ m32r_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) svr4_fetch_objfile_link_map); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_m32r_linux_tdep (void); - void _initialize_m32r_linux_tdep (void) { diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c index 28017b67cac..d40c39069e2 100644 --- a/gdb/m32r-tdep.c +++ b/gdb/m32r-tdep.c @@ -44,8 +44,6 @@ /* Local functions */ -extern void _initialize_m32r_tdep (void); - static CORE_ADDR m32r_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp) { diff --git a/gdb/m68hc11-tdep.c b/gdb/m68hc11-tdep.c index b0b97b2de40..b144d8b3542 100644 --- a/gdb/m68hc11-tdep.c +++ b/gdb/m68hc11-tdep.c @@ -1543,9 +1543,6 @@ m68hc11_gdbarch_init (struct gdbarch_info info, return gdbarch; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_m68hc11_tdep; - void _initialize_m68hc11_tdep (void) { diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c index e0aee05ce5c..bdd00b92238 100644 --- a/gdb/m68k-bsd-nat.c +++ b/gdb/m68k-bsd-nat.c @@ -215,10 +215,6 @@ m68kbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_m68kbsd_nat (void); void _initialize_m68kbsd_nat (void) diff --git a/gdb/m68k-bsd-tdep.c b/gdb/m68k-bsd-tdep.c index 45f43969785..6b7cb3cfd69 100644 --- a/gdb/m68k-bsd-tdep.c +++ b/gdb/m68k-bsd-tdep.c @@ -150,10 +150,6 @@ m68kbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_ilp32_fetch_link_map_offsets); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_m68kbsd_tdep (void); void _initialize_m68kbsd_tdep (void) diff --git a/gdb/m68k-linux-nat.c b/gdb/m68k-linux-nat.c index eb143753222..0915cbec8b8 100644 --- a/gdb/m68k-linux-nat.c +++ b/gdb/m68k-linux-nat.c @@ -505,9 +505,6 @@ ps_get_thread_area (struct ps_prochandle *ph, return PS_OK; } - - -void _initialize_m68k_linux_nat (void); void _initialize_m68k_linux_nat (void) diff --git a/gdb/m68k-linux-tdep.c b/gdb/m68k-linux-tdep.c index 4e6221ebdfb..fa0848f453a 100644 --- a/gdb/m68k-linux-tdep.c +++ b/gdb/m68k-linux-tdep.c @@ -423,9 +423,6 @@ m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) svr4_fetch_objfile_link_map); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_m68k_linux_tdep; - void _initialize_m68k_linux_tdep (void) { diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index 619a40b9a9f..afd86782198 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -1279,8 +1279,6 @@ m68k_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) return; } -extern initialize_file_ftype _initialize_m68k_tdep; /* -Wmissing-prototypes */ - void _initialize_m68k_tdep (void) { diff --git a/gdb/m88k-bsd-nat.c b/gdb/m88k-bsd-nat.c index 9549b8d3a21..4a3e32eba20 100644 --- a/gdb/m88k-bsd-nat.c +++ b/gdb/m88k-bsd-nat.c @@ -94,10 +94,6 @@ m88kbsd_store_inferior_registers (struct target_ops *ops, (PTRACE_TYPE_ARG3) ®s, 0) == -1) perror_with_name (_("Couldn't write registers")); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_m88kbsd_nat (void); void _initialize_m88kbsd_nat (void) diff --git a/gdb/m88k-tdep.c b/gdb/m88k-tdep.c index d08a9130c72..9f1688abf0a 100644 --- a/gdb/m88k-tdep.c +++ b/gdb/m88k-tdep.c @@ -861,10 +861,6 @@ m88k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_m88k_tdep (void); void _initialize_m88k_tdep (void) diff --git a/gdb/machoread.c b/gdb/machoread.c index 1c317ed8225..e1833e293b0 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -994,9 +994,6 @@ static const struct sym_fns macho_sym_fns = { &psym_functions }; -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_machoread; - void _initialize_machoread (void) { diff --git a/gdb/macrocmd.c b/gdb/macrocmd.c index cb6c38c91b8..957c47997cf 100644 --- a/gdb/macrocmd.c +++ b/gdb/macrocmd.c @@ -481,11 +481,8 @@ macro_list_command (char *exp, int from_tty) macro_for_each (macro_user_macros, print_one_macro); } - /* Initializing the `macrocmd' module. */ -extern initialize_file_ftype _initialize_macrocmd; /* -Wmissing-prototypes */ - void _initialize_macrocmd (void) { diff --git a/gdb/macroscope.c b/gdb/macroscope.c index a3a9c9ccb9d..481775f80ab 100644 --- a/gdb/macroscope.c +++ b/gdb/macroscope.c @@ -156,9 +156,6 @@ standard_macro_lookup (const char *name, void *baton) return result; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_macroscope; - void _initialize_macroscope (void) { diff --git a/gdb/maint.c b/gdb/maint.c index 28f7287b31b..6dd6e8b6954 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -44,8 +44,6 @@ #include "cli/cli-utils.h" #include "cli/cli-setshow.h" -extern void _initialize_maint_cmds (void); - static void maintenance_command (char *, int); static void maintenance_internal_error (char *args, int from_tty); diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 8e27194a642..d9942166c5c 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -68,8 +68,6 @@ #include "expression.h" -extern void _initialize_mdebugread (void); - /* Provide a way to test if we have both ECOFF and ELF symbol tables. We use this define in order to know whether we should override a symbol's ECOFF section with its ELF section. This is necessary in diff --git a/gdb/memattr.c b/gdb/memattr.c index 8604e53ac2d..c1ac978d9fb 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -687,8 +687,6 @@ static void dummy_cmd (char *args, int from_tty) { } - -extern initialize_file_ftype _initialize_mem; /* -Wmissing-prototype */ static struct cmd_list_element *mem_set_cmdlist; static struct cmd_list_element *mem_show_cmdlist; diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c index 7e9b855fca0..fffd40569cc 100644 --- a/gdb/mep-tdep.c +++ b/gdb/mep-tdep.c @@ -2503,9 +2503,6 @@ mep_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_mep_tdep; - void _initialize_mep_tdep (void) { diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c index f24f387b14f..977b6e274da 100644 --- a/gdb/mi/mi-cmd-env.c +++ b/gdb/mi/mi-cmd-env.c @@ -34,8 +34,6 @@ static void env_mod_path (char *dirname, char **which_path); -extern void _initialize_mi_cmd_env (void); - static const char path_var_name[] = "PATH"; static char *orig_path = NULL; diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c index b7494ce838e..18f6653e18e 100644 --- a/gdb/mi/mi-cmds.c +++ b/gdb/mi/mi-cmds.c @@ -23,8 +23,6 @@ #include "mi-cmds.h" #include "mi-main.h" -extern void _initialize_mi_cmds (void); - struct mi_cmd; static struct mi_cmd **lookup_table (const char *command); static void build_table (struct mi_cmd *commands); diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 6b6d8f06222..ca8ff1437b7 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -1411,8 +1411,6 @@ mi_interp_factory (const char *name) return new mi_interp (name); } -extern initialize_file_ftype _initialize_mi_interp; /* -Wmissing-prototypes */ - void _initialize_mi_interp (void) { diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index c485544d03b..8e3684abaf2 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -87,7 +87,6 @@ int running_result_record_printed = 1; command was issued. */ int mi_proceeded; -extern void _initialize_mi_main (void); static void mi_cmd_execute (struct mi_parse *parse); static void mi_execute_cli_command (const char *cmd, int args_p, diff --git a/gdb/microblaze-linux-tdep.c b/gdb/microblaze-linux-tdep.c index 54e7ad1e90d..285eefe33fb 100644 --- a/gdb/microblaze-linux-tdep.c +++ b/gdb/microblaze-linux-tdep.c @@ -135,9 +135,6 @@ microblaze_linux_init_abi (struct gdbarch_info info, µblaze_linux_sighandler_tramp_frame); } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_microblaze_linux_tdep; - void _initialize_microblaze_linux_tdep (void) { diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c index 55c77151f8f..7547581c63a 100644 --- a/gdb/microblaze-tdep.c +++ b/gdb/microblaze-tdep.c @@ -759,9 +759,6 @@ microblaze_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_microblaze_tdep (void); - void _initialize_microblaze_tdep (void) { diff --git a/gdb/mips-fbsd-nat.c b/gdb/mips-fbsd-nat.c index c3811865354..f86d447a449 100644 --- a/gdb/mips-fbsd-nat.c +++ b/gdb/mips-fbsd-nat.c @@ -119,10 +119,6 @@ mips_fbsd_store_inferior_registers (struct target_ops *ops, perror_with_name (_("Couldn't write floating point status")); } } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_mips_fbsd_nat (void); void _initialize_mips_fbsd_nat (void) diff --git a/gdb/mips-fbsd-tdep.c b/gdb/mips-fbsd-tdep.c index feb18e1a7ac..05545e37d8a 100644 --- a/gdb/mips-fbsd-tdep.c +++ b/gdb/mips-fbsd-tdep.c @@ -534,10 +534,6 @@ mips_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) mips_fbsd_ilp32_fetch_link_map_offsets : mips_fbsd_lp64_fetch_link_map_offsets)); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_mips_fbsd_tdep (void); void _initialize_mips_fbsd_tdep (void) diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index 1fd33653319..a86963d4852 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -756,8 +756,6 @@ mips_linux_close (struct target_ops *self) super_close (self); } -void _initialize_mips_linux_nat (void); - void _initialize_mips_linux_nat (void) { diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c index 001fd40027b..20d90016940 100644 --- a/gdb/mips-linux-tdep.c +++ b/gdb/mips-linux-tdep.c @@ -1727,9 +1727,6 @@ mips_linux_init_abi (struct gdbarch_info info, } } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_mips_linux_tdep; - void _initialize_mips_linux_tdep (void) { diff --git a/gdb/mips-nbsd-nat.c b/gdb/mips-nbsd-nat.c index 41e67b7ff51..c6e9828db33 100644 --- a/gdb/mips-nbsd-nat.c +++ b/gdb/mips-nbsd-nat.c @@ -106,10 +106,6 @@ mipsnbsd_store_inferior_registers (struct target_ops *ops, perror_with_name (_("Couldn't write floating point status")); } } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_mipsnbsd_nat (void); void _initialize_mipsnbsd_nat (void) diff --git a/gdb/mips-nbsd-tdep.c b/gdb/mips-nbsd-tdep.c index 352346b10c4..222ba54a4f2 100644 --- a/gdb/mips-nbsd-tdep.c +++ b/gdb/mips-nbsd-tdep.c @@ -372,10 +372,6 @@ mipsnbsd_init_abi (struct gdbarch_info info, mipsnbsd_ilp32_fetch_link_map_offsets : mipsnbsd_lp64_fetch_link_map_offsets)); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_mipsnbsd_tdep; void _initialize_mipsnbsd_tdep (void) diff --git a/gdb/mips-sde-tdep.c b/gdb/mips-sde-tdep.c index 286ff1b7943..e1334255c92 100644 --- a/gdb/mips-sde-tdep.c +++ b/gdb/mips-sde-tdep.c @@ -256,9 +256,6 @@ mips_sde_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) frame_base_append_sniffer (gdbarch, mips_sde_frame_base_sniffer); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_mips_sde_tdep; - void _initialize_mips_sde_tdep (void) { diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 75e45ef0841..9cde2f4d634 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -8984,8 +8984,6 @@ mips_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) mips_fpu_type_str (MIPS_FPU_TYPE (gdbarch))); } -extern initialize_file_ftype _initialize_mips_tdep; /* -Wmissing-prototypes */ - void _initialize_mips_tdep (void) { diff --git a/gdb/mips64-obsd-nat.c b/gdb/mips64-obsd-nat.c index d32af80da09..2e16cb36640 100644 --- a/gdb/mips64-obsd-nat.c +++ b/gdb/mips64-obsd-nat.c @@ -108,10 +108,6 @@ mips64obsd_store_inferior_registers (struct target_ops *ops, if (ptrace (PT_SETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) perror_with_name (_("Couldn't write registers")); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_mips64obsd_nat (void); void _initialize_mips64obsd_nat (void) diff --git a/gdb/mips64-obsd-tdep.c b/gdb/mips64-obsd-tdep.c index 487a8e50dc5..2d34db88cba 100644 --- a/gdb/mips64-obsd-tdep.c +++ b/gdb/mips64-obsd-tdep.c @@ -158,10 +158,6 @@ mips64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) (gdbarch, svr4_lp64_fetch_link_map_offsets); } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_mips64obsd_tdep (void); - void _initialize_mips64obsd_tdep (void) { diff --git a/gdb/mipsread.c b/gdb/mipsread.c index f2afe99ebec..1a28a8e01b8 100644 --- a/gdb/mipsread.c +++ b/gdb/mipsread.c @@ -413,9 +413,6 @@ static const struct sym_fns ecoff_sym_fns = &psym_functions }; -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_mipsread (void); - void _initialize_mipsread (void) { diff --git a/gdb/mn10300-linux-tdep.c b/gdb/mn10300-linux-tdep.c index 44707e8e241..1ffcfca1031 100644 --- a/gdb/mn10300-linux-tdep.c +++ b/gdb/mn10300-linux-tdep.c @@ -718,9 +718,6 @@ am33_linux_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch) tramp_frame_prepend_unwinder (gdbarch, &am33_linux_rt_sigframe); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_mn10300_linux_tdep; - void _initialize_mn10300_linux_tdep (void) { diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index 669bfa1bce5..7b21e4f6dc9 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -1476,9 +1476,6 @@ mn10300_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) tdep->am33_mode); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_mn10300_tdep; - void _initialize_mn10300_tdep (void) { diff --git a/gdb/moxie-tdep.c b/gdb/moxie-tdep.c index 4cd3bcd18f3..81b19764135 100644 --- a/gdb/moxie-tdep.c +++ b/gdb/moxie-tdep.c @@ -41,10 +41,6 @@ #include "moxie-tdep.h" #include -/* Local functions. */ - -extern void _initialize_moxie_tdep (void); - /* Use an invalid address value as 'not available' marker. */ enum { REG_UNAVAIL = (CORE_ADDR) -1 }; diff --git a/gdb/msp430-tdep.c b/gdb/msp430-tdep.c index 7debe250a32..d74be1dcdf0 100644 --- a/gdb/msp430-tdep.c +++ b/gdb/msp430-tdep.c @@ -1021,9 +1021,6 @@ msp430_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_msp430_tdep; - /* Register the initialization routine. */ void diff --git a/gdb/mt-tdep.c b/gdb/mt-tdep.c index 2ab6c02c07d..e3ea322bacb 100644 --- a/gdb/mt-tdep.c +++ b/gdb/mt-tdep.c @@ -1214,9 +1214,6 @@ mt_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_mt_tdep; - void _initialize_mt_tdep (void) { diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c index 7725248aaa4..962b2e76f0b 100644 --- a/gdb/nds32-tdep.c +++ b/gdb/nds32-tdep.c @@ -55,8 +55,6 @@ #define N32_FLDI_SP \ N32_TYPE2 (LDC, 0, REG_SP, 0) -extern void _initialize_nds32_tdep (void); - /* Use an invalid address value as 'not available' marker. */ enum { REG_UNAVAIL = (CORE_ADDR) -1 }; diff --git a/gdb/nios2-linux-tdep.c b/gdb/nios2-linux-tdep.c index d3a9e2e51a6..8cada5472a1 100644 --- a/gdb/nios2-linux-tdep.c +++ b/gdb/nios2-linux-tdep.c @@ -238,10 +238,6 @@ nios2_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tdep->jb_pc = 10; } -/* Provide a prototype to silence -Wmissing-prototypes. */ - -extern initialize_file_ftype _initialize_nios2_linux_tdep; - void _initialize_nios2_linux_tdep (void) { diff --git a/gdb/nios2-tdep.c b/gdb/nios2-tdep.c index 905d8591b73..4ad49aef058 100644 --- a/gdb/nios2-tdep.c +++ b/gdb/nios2-tdep.c @@ -2354,8 +2354,6 @@ nios2_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -extern initialize_file_ftype _initialize_nios2_tdep; /* -Wmissing-prototypes */ - void _initialize_nios2_tdep (void) { diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 7fb7095745f..a6fe390b029 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -1533,8 +1533,6 @@ init_procfs_targets (void) #define OSTYPE_NTO 1 -extern initialize_file_ftype _initialize_procfs; - void _initialize_procfs (void) { diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c index 0b53c4b9feb..27bd19124a3 100644 --- a/gdb/nto-tdep.c +++ b/gdb/nto-tdep.c @@ -533,9 +533,6 @@ nto_inferior_data (struct inferior *const inferior) return inf_data; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_nto_tdep; - void _initialize_nto_tdep (void) { diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index 624310e3b01..dc9c9346f1c 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -1373,9 +1373,6 @@ find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc) return 0; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_objc_language; - void _initialize_objc_language (void) { @@ -1616,9 +1613,6 @@ resolve_msgsend_super_stret (CORE_ADDR pc, CORE_ADDR *new_pc) return 0; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_objc_lang; - void _initialize_objc_lang (void) { diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 96634b3f052..e743834df19 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -1630,9 +1630,6 @@ objfile_flavour_name (struct objfile *objfile) return NULL; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_objfiles; - void _initialize_objfiles (void) { diff --git a/gdb/observer.c b/gdb/observer.c index 634c29e5fb0..c461cda288d 100644 --- a/gdb/observer.c +++ b/gdb/observer.c @@ -181,11 +181,6 @@ int observer_test_first_observer = 0; int observer_test_second_observer = 0; int observer_test_third_observer = 0; -/* Provide prototypes to silence -Wmissing-prototypes. */ -extern void observer_test_first_notification_function (int arg); -extern void observer_test_second_notification_function (int arg); -extern void observer_test_third_notification_function (int arg); - void observer_test_first_notification_function (int arg) { @@ -204,8 +199,6 @@ observer_test_third_notification_function (int arg) observer_test_third_observer++; } -extern initialize_file_ftype _initialize_observer; /* -Wmissing-prototypes */ - void _initialize_observer (void) { diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c index 9b0f015752a..a9c9a3460ee 100644 --- a/gdb/opencl-lang.c +++ b/gdb/opencl-lang.c @@ -27,8 +27,6 @@ #include "varobj.h" #include "c-lang.h" -extern void _initialize_opencl_language (void); - /* This macro generates enum values from a given type. */ #define OCL_P_TYPE(TYPE)\ @@ -1178,9 +1176,6 @@ build_opencl_types (struct gdbarch *gdbarch) return types; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_opencl_language; - void _initialize_opencl_language (void) { diff --git a/gdb/osabi.c b/gdb/osabi.c index 84fa9c02739..b4850bc9ad7 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -653,8 +653,6 @@ show_osabi (struct ui_file *file, int from_tty, struct cmd_list_element *c, fprintf_filtered (file, _("The default OS ABI is \"%s\".\n"), gdbarch_osabi_name (GDB_OSABI_DEFAULT)); } - -extern initialize_file_ftype _initialize_gdb_osabi; /* -Wmissing-prototype */ void _initialize_gdb_osabi (void) diff --git a/gdb/osdata.c b/gdb/osdata.c index 5458e2fc3b9..9da3d07cdb3 100644 --- a/gdb/osdata.c +++ b/gdb/osdata.c @@ -414,8 +414,6 @@ info_osdata_command (char *arg, int from_tty) info_osdata (arg); } -extern initialize_file_ftype _initialize_osdata; /* -Wmissing-prototypes */ - void _initialize_osdata (void) { diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index 2c802336e32..1cd69cc2b11 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -891,9 +891,6 @@ pascal_object_print_static_field (struct value *val, common_val_print (val, stream, recurse, &opts, current_language); } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_pascal_valprint; - void _initialize_pascal_valprint (void) { diff --git a/gdb/parse.c b/gdb/parse.c index fb0dff2443b..6bbf25f6990 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -121,8 +121,6 @@ static expression_up parse_exp_in_context_1 (const char **, CORE_ADDR, const struct block *, int, int, int *); -void _initialize_parse (void); - /* Data structure for saving values of arglist_len for function calls whose arguments contain other function calls. */ diff --git a/gdb/ppc-fbsd-nat.c b/gdb/ppc-fbsd-nat.c index ae5877af9f8..df8de147100 100644 --- a/gdb/ppc-fbsd-nat.c +++ b/gdb/ppc-fbsd-nat.c @@ -195,10 +195,6 @@ ppcfbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } -/* Provide a prototype to silence -Wmissing-prototypes. */ - -void _initialize_ppcfbsd_nat (void); - void _initialize_ppcfbsd_nat (void) { diff --git a/gdb/ppc-fbsd-tdep.c b/gdb/ppc-fbsd-tdep.c index 18be8cd3b07..05365cb8b8a 100644 --- a/gdb/ppc-fbsd-tdep.c +++ b/gdb/ppc-fbsd-tdep.c @@ -336,10 +336,6 @@ ppcfbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) svr4_fetch_objfile_link_map); } -/* Provide a prototype to silence -Wmissing-prototypes. */ - -void _initialize_ppcfbsd_tdep (void); - void _initialize_ppcfbsd_tdep (void) { diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 40ea5893664..45c8903ef68 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -2473,8 +2473,6 @@ ppc_linux_read_description (struct target_ops *ops) return isa205? tdesc_powerpc_isa205_32l : tdesc_powerpc_32l; } -void _initialize_ppc_linux_nat (void); - void _initialize_ppc_linux_nat (void) { diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 324b29d90c1..b6e536273a2 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -1833,9 +1833,6 @@ ppc_linux_init_abi (struct gdbarch_info info, ppc_init_linux_record_tdep (&ppc64_linux_record_tdep, 8); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_ppc_linux_tdep; - void _initialize_ppc_linux_tdep (void) { diff --git a/gdb/ppc-nbsd-nat.c b/gdb/ppc-nbsd-nat.c index b170583f2a4..98a8a7c4885 100644 --- a/gdb/ppc-nbsd-nat.c +++ b/gdb/ppc-nbsd-nat.c @@ -174,9 +174,6 @@ ppcnbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_ppcnbsd_nat (void); - void _initialize_ppcnbsd_nat (void) { diff --git a/gdb/ppc-nbsd-tdep.c b/gdb/ppc-nbsd-tdep.c index 2c03f97d65b..f2840da5111 100644 --- a/gdb/ppc-nbsd-tdep.c +++ b/gdb/ppc-nbsd-tdep.c @@ -187,10 +187,6 @@ ppcnbsd_init_abi (struct gdbarch_info info, tramp_frame_prepend_unwinder (gdbarch, &ppcnbsd_sigtramp); tramp_frame_prepend_unwinder (gdbarch, &ppcnbsd2_sigtramp); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_ppcnbsd_tdep (void); void _initialize_ppcnbsd_tdep (void) diff --git a/gdb/ppc-obsd-nat.c b/gdb/ppc-obsd-nat.c index 20360f53c3b..60f6a4f2349 100644 --- a/gdb/ppc-obsd-nat.c +++ b/gdb/ppc-obsd-nat.c @@ -180,10 +180,6 @@ ppcobsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_ppcobsd_nat (void); void _initialize_ppcobsd_nat (void) diff --git a/gdb/ppc-obsd-tdep.c b/gdb/ppc-obsd-tdep.c index 7188ce1e2ab..821a4baaf10 100644 --- a/gdb/ppc-obsd-tdep.c +++ b/gdb/ppc-obsd-tdep.c @@ -260,10 +260,6 @@ ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) frame_unwind_append_unwinder (gdbarch, &ppcobsd_sigtramp_frame_unwind); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_ppcobsd_tdep (void); void _initialize_ppcobsd_tdep (void) diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 6206d8d18f9..a7d5762bf98 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -158,10 +158,6 @@ static int display_number; B ? (TMP = B->next, 1): 0; \ B = TMP) -/* Prototypes for exported functions. */ - -void _initialize_printcmd (void); - /* Prototypes for local functions. */ static void do_one_display (struct display *); diff --git a/gdb/probe.c b/gdb/probe.c index ce2836193b7..8a0689db2c4 100644 --- a/gdb/probe.c +++ b/gdb/probe.c @@ -1025,8 +1025,6 @@ static const struct internalvar_funcs probe_funcs = VEC (probe_ops_cp) *all_probe_ops; -void _initialize_probe (void); - void _initialize_probe (void) { diff --git a/gdb/proc-api.c b/gdb/proc-api.c index dd9af0d7238..2198b2678e5 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -768,10 +768,6 @@ proc_prettyfprint_status (long flags, int why, int what, int thread) } } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_proc_api (void); - void _initialize_proc_api (void) { diff --git a/gdb/proc-events.c b/gdb/proc-events.c index 961d6261136..9d3233e611e 100644 --- a/gdb/proc-events.c +++ b/gdb/proc-events.c @@ -1716,10 +1716,6 @@ void proc_prettyprint_actionset (struct sigaction *actions, int verbose) { } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_proc_events (void); void _initialize_proc_events (void) diff --git a/gdb/proc-service.c b/gdb/proc-service.c index 1e5433c6ba2..4620fea21a2 100644 --- a/gdb/proc-service.c +++ b/gdb/proc-service.c @@ -219,9 +219,6 @@ ps_getpid (gdb_ps_prochandle_t ph) return ptid_get_pid (ph->ptid); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_proc_service; - void _initialize_proc_service (void) { diff --git a/gdb/procfs.c b/gdb/procfs.c index 504d74c05fb..734430411ee 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -5266,10 +5266,6 @@ proc_untrace_sysexit_cmd (char *args, int from_tty) proc_trace_syscalls (args, from_tty, PR_SYSEXIT, FLAG_RESET); } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_procfs (void); - void _initialize_procfs (void) { diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 4cbf91c60c2..ea300fe86ef 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -2245,10 +2245,6 @@ maintenance_check_psymtabs (char *ignore, int from_tty) } } - - -extern initialize_file_ftype _initialize_psymtab; - void _initialize_psymtab (void) { diff --git a/gdb/python/python.c b/gdb/python/python.c index f40fe89a31b..b086cef2510 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1472,12 +1472,6 @@ finalize_python (void *ignore) restore_active_ext_lang (previous_active); } -#endif - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_python; - -#ifdef HAVE_PYTHON static bool do_start_initialization () diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c index 1f89ea23a9d..1f93e3df0eb 100644 --- a/gdb/ravenscar-thread.c +++ b/gdb/ravenscar-thread.c @@ -421,9 +421,6 @@ Support for Ravenscar task/thread switching is enabled\n")); Support for Ravenscar task/thread switching is disabled\n")); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_ravenscar (void); - /* Module startup initialization function, automagically called by init.c. */ diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 220b33ca2e7..783e5a17aab 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -3042,8 +3042,6 @@ show_record_pt_buffer_size_value (struct ui_file *file, int from_tty, value); } -void _initialize_record_btrace (void); - /* Initialize btrace commands. */ void diff --git a/gdb/record-full.c b/gdb/record-full.c index 7f6ecc71530..d3cf78906ab 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -2816,9 +2816,6 @@ show_record_full_command (char *args, int from_tty) cmd_show_list (show_record_full_cmdlist, from_tty, ""); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_record_full; - void _initialize_record_full (void) { diff --git a/gdb/record.c b/gdb/record.c index 9ee3560155a..7eef8276400 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -773,9 +773,6 @@ set_record_call_history_size (char *args, int from_tty, &record_call_history_size); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_record; - void _initialize_record (void) { diff --git a/gdb/regcache.c b/gdb/regcache.c index dcbcedd7a3b..63d70d7c815 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -1736,8 +1736,6 @@ current_regcache_test (void) } // namespace selftests #endif /* GDB_SELF_TEST */ -extern initialize_file_ftype _initialize_regcache; /* -Wmissing-prototype */ - void _initialize_regcache (void) { diff --git a/gdb/reggroups.c b/gdb/reggroups.c index ae7d4ceeb72..512fe11b114 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -295,8 +295,6 @@ struct reggroup *const all_reggroup = &all_group; struct reggroup *const save_reggroup = &save_group; struct reggroup *const restore_reggroup = &restore_group; -extern initialize_file_ftype _initialize_reggroup; /* -Wmissing-prototypes */ - void _initialize_reggroup (void) { diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c index b5acc4676a3..39521613738 100644 --- a/gdb/remote-notif.c +++ b/gdb/remote-notif.c @@ -270,9 +270,6 @@ remote_notif_state_xfree (struct remote_notif_state *state) xfree (state); } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_notif; - void _initialize_notif (void) { diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index ca824d7985b..48fa503cf46 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -44,8 +44,6 @@ /* Prototypes */ -extern void _initialize_remote_sim (void); - static void init_callbacks (void); static void end_callbacks (void); diff --git a/gdb/remote.c b/gdb/remote.c index abeef0d9fd0..0963693a225 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -209,8 +209,6 @@ static void remote_query_supported (void); static void remote_check_symbols (void); -void _initialize_remote (void); - struct stop_reply; static void stop_reply_xfree (struct stop_reply *); static void remote_parse_stop_reply (char *, struct stop_reply *); diff --git a/gdb/reverse.c b/gdb/reverse.c index c3c20fb2827..80e414ab763 100644 --- a/gdb/reverse.c +++ b/gdb/reverse.c @@ -322,10 +322,6 @@ info_bookmarks_command (char *args, int from_tty) } } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_reverse; - void _initialize_reverse (void) { diff --git a/gdb/rl78-tdep.c b/gdb/rl78-tdep.c index 5775f96d310..56abe28f5e1 100644 --- a/gdb/rl78-tdep.c +++ b/gdb/rl78-tdep.c @@ -1491,9 +1491,6 @@ rl78_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_rl78_tdep; - /* Register the above initialization routine. */ void diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c index e9b3f10686b..f4f3eb7c3ad 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -1089,9 +1089,6 @@ rs6000_aix_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_ops (gdbarch, &solib_aix_so_ops); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_rs6000_aix_tdep; - void _initialize_rs6000_aix_tdep (void) { diff --git a/gdb/rs6000-lynx178-tdep.c b/gdb/rs6000-lynx178-tdep.c index d72a61958e3..18f1802e58f 100644 --- a/gdb/rs6000-lynx178-tdep.c +++ b/gdb/rs6000-lynx178-tdep.c @@ -411,9 +411,6 @@ rs6000_lynx178_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT); } -/* -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_rs6000_lynx178_tdep; - void _initialize_rs6000_lynx178_tdep (void) { diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 833cf016195..af9273ae752 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -655,8 +655,6 @@ rs6000_xfer_shared_libraries } } -void _initialize_rs6000_nat (void); - void _initialize_rs6000_nat (void) { diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 59d68963511..95b2ca71c94 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -6751,9 +6751,6 @@ ppc_insn_ds_field (unsigned int insn) /* Initialization code. */ -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_rs6000_tdep; - void _initialize_rs6000_tdep (void) { diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y index 4cb3aa28a8b..5d999942111 100644 --- a/gdb/rust-exp.y +++ b/gdb/rust-exp.y @@ -39,8 +39,6 @@ #define RUSTSTYPE YYSTYPE -extern initialize_file_ftype _initialize_rust_exp; - struct rust_op; typedef std::vector rust_op_vector; diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c index cfd185644a0..d1bc0b24276 100644 --- a/gdb/rx-tdep.c +++ b/gdb/rx-tdep.c @@ -1165,9 +1165,6 @@ rx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_rx_tdep; - /* Register the above initialization routine. */ void diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c index 90c73c44cd8..b395529f2a5 100644 --- a/gdb/s390-linux-nat.c +++ b/gdb/s390-linux-nat.c @@ -1002,8 +1002,6 @@ s390_read_description (struct target_ops *ops) tdesc_s390_linux32); } -void _initialize_s390_nat (void); - void _initialize_s390_nat (void) { diff --git a/gdb/s390-linux-tdep.c b/gdb/s390-linux-tdep.c index 5682c4a5728..a6882fbbf4b 100644 --- a/gdb/s390-linux-tdep.c +++ b/gdb/s390-linux-tdep.c @@ -8141,9 +8141,6 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } - -extern initialize_file_ftype _initialize_s390_tdep; /* -Wmissing-prototypes */ - void _initialize_s390_tdep (void) { diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c index d231674196c..5b68a2b3320 100644 --- a/gdb/score-tdep.c +++ b/gdb/score-tdep.c @@ -1531,8 +1531,6 @@ score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -extern initialize_file_ftype _initialize_score_tdep; - void _initialize_score_tdep (void) { diff --git a/gdb/selftest-arch.c b/gdb/selftest-arch.c index 9a19f7688e3..522b1daf4f4 100644 --- a/gdb/selftest-arch.c +++ b/gdb/selftest-arch.c @@ -100,9 +100,6 @@ tests_with_arch () } // namespace selftests #endif /* GDB_SELF_TEST */ -/* Suppress warning from -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_selftests_foreach_arch; - void _initialize_selftests_foreach_arch () { diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c index 41503aca6f7..e3528951b4b 100644 --- a/gdb/ser-go32.c +++ b/gdb/ser-go32.c @@ -927,9 +927,6 @@ info_serial_command (char *arg, int from_tty) #endif } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_ser_dos; - void _initialize_ser_dos (void) { diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index 0b78ba18e0f..33e4df3b219 100644 --- a/gdb/ser-mingw.c +++ b/gdb/ser-mingw.c @@ -31,8 +31,6 @@ #include "command.h" -void _initialize_ser_windows (void); - struct ser_windows_state { int in_progress; diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c index ae989a08dd1..cb94242745a 100644 --- a/gdb/ser-pipe.c +++ b/gdb/ser-pipe.c @@ -36,8 +36,6 @@ static int pipe_open (struct serial *scb, const char *name); static void pipe_close (struct serial *scb); -extern void _initialize_ser_pipe (void); - struct pipe_state { int pid; diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 57a7c5507f5..f35991c8511 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -60,8 +60,6 @@ typedef int socklen_t; #endif -void _initialize_ser_tcp (void); - /* For "set tcp" and "show tcp". */ static struct cmd_list_element *tcp_set_cmdlist; diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index 54b0b75c174..53c33e663f0 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -99,8 +99,6 @@ static int hardwire_flush_input (struct serial *); static int hardwire_send_break (struct serial *); static int hardwire_setstopbits (struct serial *, int); -void _initialize_ser_hardwire (void); - /* Open up a real live device for serial I/O. */ static int diff --git a/gdb/serial.c b/gdb/serial.c index b48b9779ed2..01294d1ebd5 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -23,8 +23,6 @@ #include "gdbcmd.h" #include "cli/cli-utils.h" -extern void _initialize_serial (void); - /* Is serial being debugged? */ static unsigned int global_serial_debug_p; diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c index c5c745d2188..b70f996c2cd 100644 --- a/gdb/sh-linux-tdep.c +++ b/gdb/sh-linux-tdep.c @@ -212,9 +212,6 @@ sh_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) } } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_sh_linux_tdep (void); - void _initialize_sh_linux_tdep (void) { diff --git a/gdb/sh-nbsd-nat.c b/gdb/sh-nbsd-nat.c index ac93dcd59c9..7cf7a9910ec 100644 --- a/gdb/sh-nbsd-nat.c +++ b/gdb/sh-nbsd-nat.c @@ -91,9 +91,6 @@ shnbsd_store_inferior_registers (struct target_ops *ops, } } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_shnbsd_nat (void); - void _initialize_shnbsd_nat (void) { diff --git a/gdb/sh-nbsd-tdep.c b/gdb/sh-nbsd-tdep.c index 6fe776335b0..4a335de02d0 100644 --- a/gdb/sh-nbsd-tdep.c +++ b/gdb/sh-nbsd-tdep.c @@ -69,10 +69,6 @@ shnbsd_init_abi (struct gdbarch_info info, set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_ilp32_fetch_link_map_offsets); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_shnbsd_tdep; void _initialize_shnbsd_tdep (void) diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index a87547d4ced..a413daae12d 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -2444,8 +2444,6 @@ set_sh_command (char *args, int from_tty) help_list (setshcmdlist, "set sh ", all_commands, gdb_stdout); } -extern initialize_file_ftype _initialize_sh_tdep; /* -Wmissing-prototypes */ - void _initialize_sh_tdep (void) { diff --git a/gdb/skip.c b/gdb/skip.c index bd9eec9d7c0..8db0cd5d12e 100644 --- a/gdb/skip.c +++ b/gdb/skip.c @@ -600,9 +600,6 @@ function_name_is_marked_for_skip (const char *function_name, return false; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_step_skip; - void _initialize_step_skip (void) { diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index c4d4b02c7c7..d493f7b8d50 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -1214,9 +1214,6 @@ init_sol_thread_ops (void) sol_thread_ops.to_magic = OPS_MAGIC; } -/* Silence -Wmissing-prototypes. */ -extern void _initialize_sol_thread (void); - void _initialize_sol_thread (void) { diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c index d0f5e96119f..633c9e6aaf3 100644 --- a/gdb/solib-aix.c +++ b/gdb/solib-aix.c @@ -775,9 +775,6 @@ 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; -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_solib_aix; - void _initialize_solib_aix (void) { diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c index c2b776d3203..04bbf86cf10 100644 --- a/gdb/solib-darwin.c +++ b/gdb/solib-darwin.c @@ -648,9 +648,6 @@ darwin_bfd_open (char *pathname) struct target_so_ops darwin_so_ops; -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_darwin_solib; - void _initialize_darwin_solib (void) { diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c index facbd93361b..86b9e30864c 100644 --- a/gdb/solib-dsbt.c +++ b/gdb/solib-dsbt.c @@ -1054,9 +1054,6 @@ show_dsbt_debug (struct ui_file *file, int from_tty, struct target_so_ops dsbt_so_ops; -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_dsbt_solib; - void _initialize_dsbt_solib (void) { diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c index f0265e3f25b..6d74652ea9d 100644 --- a/gdb/solib-frv.c +++ b/gdb/solib-frv.c @@ -1153,9 +1153,6 @@ frv_fetch_objfile_link_map (struct objfile *objfile) struct target_so_ops frv_so_ops; -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_frv_solib; - void _initialize_frv_solib (void) { diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c index e6eab63854e..886322d9bc3 100644 --- a/gdb/solib-spu.c +++ b/gdb/solib-spu.c @@ -542,9 +542,6 @@ spu_solib_loaded (struct so_list *so) } } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_spu_solib; - void _initialize_spu_solib (void) { diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index f99e2e2bf6d..405de37aa51 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -3293,8 +3293,6 @@ elf_lookup_lib_symbol (struct objfile *objfile, return lookup_global_symbol_from_objfile (objfile, name, domain); } -extern initialize_file_ftype _initialize_svr4_solib; /* -Wmissing-prototypes */ - void _initialize_svr4_solib (void) { diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 71a0da322c7..dcd0f85d34e 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -470,9 +470,6 @@ solib_target_in_dynsym_resolve_code (CORE_ADDR pc) struct target_so_ops solib_target_so_ops; -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_solib_target; - void _initialize_solib_target (void) { diff --git a/gdb/solib.c b/gdb/solib.c index c8fe4d2cc70..0684297842a 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1600,8 +1600,6 @@ remove_user_added_objfile (struct objfile *objfile) } } -extern initialize_file_ftype _initialize_solib; /* -Wmissing-prototypes */ - void _initialize_solib (void) { diff --git a/gdb/source.c b/gdb/source.c index bac404530c0..0564c1581b4 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -48,10 +48,6 @@ #define OPEN_MODE (O_RDONLY | O_BINARY) #define FDOPEN_MODE FOPEN_RB -/* Prototypes for exported functions. */ - -void _initialize_source (void); - /* Prototypes for local functions. */ static int get_filename_and_charpos (struct symtab *, char **); diff --git a/gdb/sparc-linux-nat.c b/gdb/sparc-linux-nat.c index bdaf8dcc259..6fcef4811bb 100644 --- a/gdb/sparc-linux-nat.c +++ b/gdb/sparc-linux-nat.c @@ -53,8 +53,6 @@ fill_fpregset (const struct regcache *regcache, sparc32_collect_fpregset (sparc_fpregmap, regcache, regnum, fpregs); } -void _initialize_sparc_linux_nat (void); - void _initialize_sparc_linux_nat (void) { diff --git a/gdb/sparc-linux-tdep.c b/gdb/sparc-linux-tdep.c index 52cfeda24a9..6ed717aa9fb 100644 --- a/gdb/sparc-linux-tdep.c +++ b/gdb/sparc-linux-tdep.c @@ -465,9 +465,6 @@ sparc32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) sparc32_linux_gdb_signal_to_target); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_sparc_linux_tdep (void); - void _initialize_sparc_linux_tdep (void) { diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c index b842f2b4827..fe9dca33c3a 100644 --- a/gdb/sparc-nat.c +++ b/gdb/sparc-nat.c @@ -338,10 +338,6 @@ sparc_target (void) return t; } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc_nat (void); - void _initialize_sparc_nat (void) { diff --git a/gdb/sparc-nbsd-nat.c b/gdb/sparc-nbsd-nat.c index af7f33f6710..69987cffc9d 100644 --- a/gdb/sparc-nbsd-nat.c +++ b/gdb/sparc-nbsd-nat.c @@ -54,10 +54,6 @@ sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparcnbsd_nat (void); void _initialize_sparcnbsd_nat (void) diff --git a/gdb/sparc-nbsd-tdep.c b/gdb/sparc-nbsd-tdep.c index f9e5befcdd3..d6a06b102c4 100644 --- a/gdb/sparc-nbsd-tdep.c +++ b/gdb/sparc-nbsd-tdep.c @@ -314,10 +314,6 @@ sparc32nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) (gdbarch, svr4_ilp32_fetch_link_map_offsets); } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparcnbsd_tdep (void); - void _initialize_sparcnbsd_tdep (void) { diff --git a/gdb/sparc-obsd-tdep.c b/gdb/sparc-obsd-tdep.c index b7d3d3cf47a..fbe5aab795f 100644 --- a/gdb/sparc-obsd-tdep.c +++ b/gdb/sparc-obsd-tdep.c @@ -246,10 +246,6 @@ sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) bsd_uthread_set_collect_uthread (gdbarch, sparc32obsd_collect_uthread); } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc32obsd_tdep (void); - void _initialize_sparc32obsd_tdep (void) { diff --git a/gdb/sparc-sol2-nat.c b/gdb/sparc-sol2-nat.c index 4c79688f464..cf80dd99204 100644 --- a/gdb/sparc-sol2-nat.c +++ b/gdb/sparc-sol2-nat.c @@ -98,9 +98,6 @@ fill_fpregset (const struct regcache *regcache, sparc_collect_fpregset (&sparc_sol2_fpregmap, regcache, regnum, fpregs); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_sparc_sol2_nat; - void _initialize_sparc_sol2_nat (void) { diff --git a/gdb/sparc-sol2-tdep.c b/gdb/sparc-sol2-tdep.c index d9f92d1d53b..ed53ac33c42 100644 --- a/gdb/sparc-sol2-tdep.c +++ b/gdb/sparc-sol2-tdep.c @@ -292,10 +292,6 @@ sparc32_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* How to print LWP PTIDs from core files. */ set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc_sol2_tdep (void); void _initialize_sparc_sol2_tdep (void) diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 1f08865f9aa..949c50104d8 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -2253,10 +2253,6 @@ const struct sparc_fpregmap sparc32_bsd_fpregmap = 0 * 4, /* %f0 */ 32 * 4, /* %fsr */ }; - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc_tdep (void); void _initialize_sparc_tdep (void) diff --git a/gdb/sparc64-fbsd-nat.c b/gdb/sparc64-fbsd-nat.c index d799a969439..8fc8b3187f7 100644 --- a/gdb/sparc64-fbsd-nat.c +++ b/gdb/sparc64-fbsd-nat.c @@ -58,10 +58,6 @@ sparc64fbsd_kvm_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64fbsd_nat (void); void _initialize_sparc64fbsd_nat (void) diff --git a/gdb/sparc64-fbsd-tdep.c b/gdb/sparc64-fbsd-tdep.c index 29d2f959270..031da5b3b96 100644 --- a/gdb/sparc64-fbsd-tdep.c +++ b/gdb/sparc64-fbsd-tdep.c @@ -241,9 +241,6 @@ sparc64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) (gdbarch, svr4_lp64_fetch_link_map_offsets); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64fbsd_tdep (void); - void _initialize_sparc64fbsd_tdep (void) { diff --git a/gdb/sparc64-linux-nat.c b/gdb/sparc64-linux-nat.c index 282980a812f..204a9097a9a 100644 --- a/gdb/sparc64-linux-nat.c +++ b/gdb/sparc64-linux-nat.c @@ -69,9 +69,6 @@ fill_fpregset (const struct regcache *regcache, sparc64_collect_fpregset (&sparc64_bsd_fpregmap, regcache, regnum, fpregs); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64_linux_nat (void); - void _initialize_sparc64_linux_nat (void) { diff --git a/gdb/sparc64-linux-tdep.c b/gdb/sparc64-linux-tdep.c index 2da978fbf80..8c61072a3a1 100644 --- a/gdb/sparc64-linux-tdep.c +++ b/gdb/sparc64-linux-tdep.c @@ -408,10 +408,6 @@ sparc64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_handle_segmentation_fault (gdbarch, sparc64_linux_handle_segmentation_fault); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern void _initialize_sparc64_linux_tdep (void); void _initialize_sparc64_linux_tdep (void) diff --git a/gdb/sparc64-nat.c b/gdb/sparc64-nat.c index 444300f8234..d7d5ae1e416 100644 --- a/gdb/sparc64-nat.c +++ b/gdb/sparc64-nat.c @@ -68,10 +68,6 @@ sparc64_fpregset_supplies_p (struct gdbarch *gdbarch, int regnum) return 0; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64_nat (void); void _initialize_sparc64_nat (void) diff --git a/gdb/sparc64-nbsd-nat.c b/gdb/sparc64-nbsd-nat.c index 9c7e8b1b902..44e54f54449 100644 --- a/gdb/sparc64-nbsd-nat.c +++ b/gdb/sparc64-nbsd-nat.c @@ -167,10 +167,6 @@ sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64nbsd_nat (void); - void _initialize_sparc64nbsd_nat (void) { diff --git a/gdb/sparc64-nbsd-tdep.c b/gdb/sparc64-nbsd-tdep.c index 08ba64bf8fd..0876539012b 100644 --- a/gdb/sparc64-nbsd-tdep.c +++ b/gdb/sparc64-nbsd-tdep.c @@ -267,10 +267,6 @@ sparc64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_lp64_fetch_link_map_offsets); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64nbsd_tdep (void); void _initialize_sparc64nbsd_tdep (void) diff --git a/gdb/sparc64-obsd-nat.c b/gdb/sparc64-obsd-nat.c index a59fc69c37c..9af3e5e4ebf 100644 --- a/gdb/sparc64-obsd-nat.c +++ b/gdb/sparc64-obsd-nat.c @@ -106,10 +106,6 @@ sparc64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64obsd_nat (void); - void _initialize_sparc64obsd_nat (void) { diff --git a/gdb/sparc64-obsd-tdep.c b/gdb/sparc64-obsd-tdep.c index 0da50b1dc76..e86872ec12f 100644 --- a/gdb/sparc64-obsd-tdep.c +++ b/gdb/sparc64-obsd-tdep.c @@ -439,10 +439,6 @@ sparc64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) bsd_uthread_set_supply_uthread (gdbarch, sparc64obsd_supply_uthread); bsd_uthread_set_collect_uthread (gdbarch, sparc64obsd_collect_uthread); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64obsd_tdep (void); void _initialize_sparc64obsd_tdep (void) diff --git a/gdb/sparc64-sol2-tdep.c b/gdb/sparc64-sol2-tdep.c index 5417df4ce14..1d768fa7d02 100644 --- a/gdb/sparc64-sol2-tdep.c +++ b/gdb/sparc64-sol2-tdep.c @@ -242,10 +242,6 @@ sparc64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* How to print LWP PTIDs from core files. */ set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_sparc64_sol2_tdep (void); void _initialize_sparc64_sol2_tdep (void) diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c index 19552fc1feb..77f56208c75 100644 --- a/gdb/spu-linux-nat.c +++ b/gdb/spu-linux-nat.c @@ -634,9 +634,6 @@ spu_can_use_hw_breakpoint (struct target_ops *self, return 0; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_spu_nat; - /* Initialize SPU native target. */ void _initialize_spu_nat (void) diff --git a/gdb/spu-multiarch.c b/gdb/spu-multiarch.c index 7682ca29807..ebca082d2e5 100644 --- a/gdb/spu-multiarch.c +++ b/gdb/spu-multiarch.c @@ -402,9 +402,6 @@ init_spu_ops (void) spu_ops.to_magic = OPS_MAGIC; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_spu_multiarch; - void _initialize_spu_multiarch (void) { diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c index 59c51b2b86f..2de9155938d 100644 --- a/gdb/spu-tdep.c +++ b/gdb/spu-tdep.c @@ -2780,9 +2780,6 @@ spu_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_spu_tdep; - void _initialize_spu_tdep (void) { diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 8ba6bb55632..d9a4d5e1d7e 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -52,8 +52,6 @@ #include "stabsread.h" /* Our own declarations */ #undef EXTERN -extern void _initialize_stabsread (void); - struct nextfield { struct nextfield *next; diff --git a/gdb/stack.c b/gdb/stack.c index 8a066b2b691..06d891d1673 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -2564,10 +2564,6 @@ func_command (char *arg, int from_tty) else if (frame != get_selected_frame (NULL)) select_and_print_frame (frame); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_stack (void); void _initialize_stack (void) diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c index 89c1ccc7cd2..c0cc6623344 100644 --- a/gdb/stap-probe.c +++ b/gdb/stap-probe.c @@ -1713,8 +1713,6 @@ info_probes_stap_command (char *arg, int from_tty) info_probes_for_ops (arg, from_tty, &stap_probe_ops); } -void _initialize_stap_probe (void); - void _initialize_stap_probe (void) { diff --git a/gdb/std-regs.c b/gdb/std-regs.c index 73bafceb82f..ebcbb97e46f 100644 --- a/gdb/std-regs.c +++ b/gdb/std-regs.c @@ -89,8 +89,6 @@ value_of_builtin_frame_ps_reg (struct frame_info *frame, const void *baton) error (_("Standard register ``$ps'' is not available for this target")); } -extern initialize_file_ftype _initialize_frame_reg; /* -Wmissing-prototypes */ - void _initialize_frame_reg (void) { diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c index 5ca1fa73fff..e7890c943c9 100644 --- a/gdb/symfile-debug.c +++ b/gdb/symfile-debug.c @@ -673,8 +673,6 @@ show_debug_symfile (struct ui_file *file, int from_tty, fprintf_filtered (file, _("Symfile debugging is %s.\n"), value); } -initialize_file_ftype _initialize_symfile_debug; - void _initialize_symfile_debug (void) { diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c index acbaaaf562f..b3543d6a56f 100644 --- a/gdb/symfile-mem.c +++ b/gdb/symfile-mem.c @@ -236,11 +236,6 @@ add_vsyscall_page (struct target_ops *target, int from_tty) } } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_symfile_mem; - void _initialize_symfile_mem (void) { diff --git a/gdb/symfile.c b/gdb/symfile.c index d600b613729..96b7d6ffb4f 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -116,8 +116,6 @@ static void info_ext_lang_command (char *args, int from_tty); static void symfile_find_segment_sections (struct objfile *objfile); -void _initialize_symfile (void); - /* List of all available sym_fns. On gdb startup, each object file reader calls add_symtab_fns() to register information on each format it is prepared to read. */ diff --git a/gdb/symmisc.c b/gdb/symmisc.c index c85f0b715c9..6cbb2cea3f4 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -54,8 +54,6 @@ FILE *std_err; static int block_depth (struct block *); -void _initialize_symmisc (void); - struct print_symbol_args { struct gdbarch *gdbarch; diff --git a/gdb/symtab.c b/gdb/symtab.c index 84923153059..b504cd62631 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -92,8 +92,6 @@ static struct block_symbol /* See symtab.h. */ const struct block_symbol null_block_symbol = { NULL, NULL }; -extern initialize_file_ftype _initialize_symtab; - /* Program space key for finding name and language of "main". */ static const struct program_space_data *main_progspace_key; diff --git a/gdb/target-dcache.c b/gdb/target-dcache.c index fe5e56a1a31..76024403aa6 100644 --- a/gdb/target-dcache.c +++ b/gdb/target-dcache.c @@ -168,9 +168,6 @@ code_cache_enabled_p (void) return code_cache_enabled; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_target_dcache; - void _initialize_target_dcache (void) { diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 2b3c1462f57..3735e6449b1 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -2389,9 +2389,6 @@ maintenance_check_xml_descriptions (char *dir, int from_tty) (long) selftests::xml_tdesc.size (), failed); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_target_descriptions; - void _initialize_target_descriptions (void) { diff --git a/gdb/thread.c b/gdb/thread.c index 8a0ed0c44e6..2185d505a3f 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -48,10 +48,6 @@ /* Definition of struct thread_info exported to gdbthread.h. */ -/* Prototypes for exported functions. */ - -void _initialize_thread (void); - /* Prototypes for local functions. */ struct thread_info *thread_list = NULL; diff --git a/gdb/tic6x-linux-tdep.c b/gdb/tic6x-linux-tdep.c index 9bf490d89e4..1a03a29b812 100644 --- a/gdb/tic6x-linux-tdep.c +++ b/gdb/tic6x-linux-tdep.c @@ -207,9 +207,6 @@ tic6x_uclinux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) &tic6x_linux_rt_sigreturn_tramp_frame); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tic6x_linux_tdep; - void _initialize_tic6x_linux_tdep (void) { diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c index 156a54f3afc..013a084a2f7 100644 --- a/gdb/tic6x-tdep.c +++ b/gdb/tic6x-tdep.c @@ -1336,9 +1336,6 @@ tic6x_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_tic6x_tdep; - void _initialize_tic6x_tdep (void) { diff --git a/gdb/tilegx-linux-nat.c b/gdb/tilegx-linux-nat.c index 5cdf74daf2f..c5c3a14352d 100644 --- a/gdb/tilegx-linux-nat.c +++ b/gdb/tilegx-linux-nat.c @@ -154,9 +154,6 @@ store_inferior_registers (struct target_ops *ops, perror_with_name (_("Couldn't write registers")); } - -extern initialize_file_ftype _initialize_tile_linux_nat; - void _initialize_tile_linux_nat (void) { diff --git a/gdb/tilegx-linux-tdep.c b/gdb/tilegx-linux-tdep.c index 5ae24c43066..f687d48ef74 100644 --- a/gdb/tilegx-linux-tdep.c +++ b/gdb/tilegx-linux-tdep.c @@ -134,9 +134,6 @@ tilegx_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tilegx_linux_tdep; - void _initialize_tilegx_linux_tdep (void) { diff --git a/gdb/tilegx-tdep.c b/gdb/tilegx-tdep.c index 2db679066b1..b26622d05db 100644 --- a/gdb/tilegx-tdep.c +++ b/gdb/tilegx-tdep.c @@ -1063,9 +1063,6 @@ tilegx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tilegx_tdep; - void _initialize_tilegx_tdep (void) { diff --git a/gdb/tracefile-tfile.c b/gdb/tracefile-tfile.c index 37bd96a33b1..7288e7c261e 100644 --- a/gdb/tracefile-tfile.c +++ b/gdb/tracefile-tfile.c @@ -1132,8 +1132,6 @@ init_tfile_ops (void) tfile_ops.to_traceframe_info = tfile_traceframe_info; } -extern initialize_file_ftype _initialize_tracefile_tfile; - void _initialize_tracefile_tfile (void) { diff --git a/gdb/tracefile.c b/gdb/tracefile.c index 8dde605b0e7..b6a800cf7d1 100644 --- a/gdb/tracefile.c +++ b/gdb/tracefile.c @@ -495,8 +495,6 @@ init_tracefile_ops (struct target_ops *ops) ops->to_magic = OPS_MAGIC; } -extern initialize_file_ftype _initialize_tracefile; - void _initialize_tracefile (void) { diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index f8aa3297b3c..dbd850fa441 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -185,8 +185,6 @@ static char *mem2hex (gdb_byte *, char *, int); static struct command_line * all_tracepoint_actions_and_cleanup (struct breakpoint *t); -extern void _initialize_tracepoint (void); - static struct trace_status trace_status; const char *stop_reason_names[] = { diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index 315f5b27dc5..acb63812a4d 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -266,8 +266,6 @@ tui_remove_hooks (void) tui_register_changed_observer = NULL; } -void _initialize_tui_hooks (void); - void _initialize_tui_hooks (void) { diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c index 702c34269c0..e5e73210c71 100644 --- a/gdb/tui/tui-interp.c +++ b/gdb/tui/tui-interp.c @@ -311,9 +311,6 @@ tui_interp_factory (const char *name) return new tui_interp (name); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tui_interp; - void _initialize_tui_interp (void) { diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 7ecfaec5efb..eab1ab6336d 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -367,9 +367,6 @@ layout_completer (struct cmd_list_element *ignore, /* Function to initialize gdb commands, for tui window layout manipulation. */ -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tui_layout; - void _initialize_tui_layout (void) { diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 217fff29508..838172e8233 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -687,9 +687,6 @@ tui_reggroup_completer (struct cmd_list_element *ignore, } } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tui_regs; - void _initialize_tui_regs (void) { diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index c075bef4e4d..ce7c5ee7324 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -487,9 +487,6 @@ tui_show_frame_info (struct frame_info *fi) /* Function to initialize gdb commands, for tui window stack manipulation. */ -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tui_stack; - void _initialize_tui_stack (void) { diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index e0df667b291..cb8e475b727 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -436,9 +436,6 @@ winheight_completer (struct cmd_list_element *ignore, /* Function to initialize gdb commands, for tui window manipulation. */ -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tui_win; - void _initialize_tui_win (void) { diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index b77a885adb9..77dc86642f2 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -671,9 +671,6 @@ tui_get_command_dimension (unsigned int *width, return 1; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_tui; - void _initialize_tui (void) { diff --git a/gdb/typeprint.c b/gdb/typeprint.c index 0cc6821cf5a..c82e623cfa9 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -37,8 +37,6 @@ #include "extension.h" #include "completer.h" -extern void _initialize_typeprint (void); - static void ptype_command (char *, int); static void whatis_command (char *, int); diff --git a/gdb/user-regs.c b/gdb/user-regs.c index a19a12aab60..121c69ffd73 100644 --- a/gdb/user-regs.c +++ b/gdb/user-regs.c @@ -237,8 +237,6 @@ maintenance_print_user_registers (char *args, int from_tty) fprintf_unfiltered (gdb_stdout, " %-11s %3d\n", reg->name, regnum); } -extern initialize_file_ftype _initialize_user_regs; /* -Wmissing-prototypes */ - void _initialize_user_regs (void) { diff --git a/gdb/utils.c b/gdb/utils.c index f2da2df60f5..583c1552c83 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3278,9 +3278,6 @@ strip_leading_path_elements (const char *path, int n) return p; } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_utils; - void _initialize_utils (void) { diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c index 30cd35be8ab..46a74aadcbc 100644 --- a/gdb/v850-tdep.c +++ b/gdb/v850-tdep.c @@ -1478,8 +1478,6 @@ v850_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -extern initialize_file_ftype _initialize_v850_tdep; /* -Wmissing-prototypes */ - void _initialize_v850_tdep (void) { diff --git a/gdb/valarith.c b/gdb/valarith.c index bcc5ff6c0a9..a277be42bc0 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -36,9 +36,6 @@ #define TRUNCATION_TOWARDS_ZERO ((-5 / 2) == -2) #endif -void _initialize_valarith (void); - - /* Given a pointer, return the size of its target. If the pointer type is void *, then return 1. If the target type is incomplete, then error out. diff --git a/gdb/valops.c b/gdb/valops.c index 19f96c8ddc5..defc7d525a4 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -101,8 +101,6 @@ static void find_method_list (struct value **, const char *, VEC (xmethod_worker_ptr) **, struct type **, LONGEST *); -void _initialize_valops (void); - #if 0 /* Flag for whether we want to abandon failed expression evals by default. */ diff --git a/gdb/valprint.c b/gdb/valprint.c index 5b02e2facea..d3094ca6f18 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -104,8 +104,6 @@ static void val_print_type_code_flags (struct type *type, const gdb_byte *valaddr, struct ui_file *stream); -void _initialize_valprint (void); - #define PRINT_MAX_DEFAULT 200 /* Start print_max off at this value. */ struct value_print_options user_print_options = diff --git a/gdb/value.c b/gdb/value.c index ec615b36630..1fd9cc9a7d0 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -43,10 +43,6 @@ #include #include "completer.h" -/* Prototypes for exported functions. */ - -void _initialize_values (void); - /* Definition of a user function. */ struct internal_function { diff --git a/gdb/varobj.c b/gdb/varobj.c index 7bd549d45c5..f6691809f28 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -2638,8 +2638,7 @@ varobj_invalidate (void) { all_root_varobjs (varobj_invalidate_iter, NULL); } - -extern void _initialize_varobj (void); + void _initialize_varobj (void) { diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c index 62953682d31..4ed9a804829 100644 --- a/gdb/vax-bsd-nat.c +++ b/gdb/vax-bsd-nat.c @@ -125,10 +125,6 @@ vaxbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_vaxbsd_nat (void); void _initialize_vaxbsd_nat (void) diff --git a/gdb/vax-nbsd-tdep.c b/gdb/vax-nbsd-tdep.c index cbd50f115de..1f6cc1ac7f9 100644 --- a/gdb/vax-nbsd-tdep.c +++ b/gdb/vax-nbsd-tdep.c @@ -33,10 +33,6 @@ vaxnbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_ilp32_fetch_link_map_offsets); } - - -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_vaxnbsd_tdep (void); void _initialize_vaxnbsd_tdep (void) diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c index a92a35aaa33..4ff12fde3f6 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -514,9 +514,6 @@ vax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return (gdbarch); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -void _initialize_vax_tdep (void); - void _initialize_vax_tdep (void) { diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 6a5a295ad16..ab5582d46cf 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -2959,9 +2959,6 @@ windows_target (void) return t; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_windows_nat; - void _initialize_windows_nat (void) { @@ -3130,9 +3127,6 @@ windows_thread_alive (struct target_ops *ops, ptid_t ptid) ? FALSE : TRUE; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_check_for_gdb_ini; - void _initialize_check_for_gdb_ini (void) { @@ -3227,9 +3221,6 @@ bad_GetConsoleFontSize (HANDLE w, DWORD nFont) return size; } -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_loadable; - /* Load any functions which may not be available in ancient versions of Windows. */ diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c index 3e7e8f8b279..886c4ece678 100644 --- a/gdb/windows-tdep.c +++ b/gdb/windows-tdep.c @@ -479,9 +479,6 @@ windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_solib_ops (gdbarch, &solib_target_so_ops); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_windows_tdep; - /* Implementation of `tlb' variable. */ static const struct internalvar_funcs tlb_funcs = diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 138f941caba..0707cd78ffc 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -3184,9 +3184,6 @@ xcoff_free_info (struct objfile *objfile, void *arg) xfree (arg); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_xcoffread; - void _initialize_xcoffread (void) { diff --git a/gdb/xml-support.c b/gdb/xml-support.c index 65638b963b7..50a062a3a47 100644 --- a/gdb/xml-support.c +++ b/gdb/xml-support.c @@ -1055,8 +1055,6 @@ xml_fetch_content_from_file (const char *filename, void *baton) return text; } -void _initialize_xml_support (void); - void _initialize_xml_support (void) { diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c index 9d91fd540f8..40a6d9818f8 100644 --- a/gdb/xstormy16-tdep.c +++ b/gdb/xstormy16-tdep.c @@ -861,9 +861,6 @@ xstormy16_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) Initializer function for the Sanyo Xstormy16a module. Called by gdb at start-up. */ -/* -Wmissing-prototypes */ -extern initialize_file_ftype _initialize_xstormy16_tdep; - void _initialize_xstormy16_tdep (void) { diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c index 278168620c4..b8366c55a41 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -338,8 +338,6 @@ ps_get_thread_area (struct ps_prochandle *ph, return PS_OK; } -void _initialize_xtensa_linux_nat (void); - void _initialize_xtensa_linux_nat (void) { diff --git a/gdb/xtensa-linux-tdep.c b/gdb/xtensa-linux-tdep.c index d27cc42e0e8..e912c01940c 100644 --- a/gdb/xtensa-linux-tdep.c +++ b/gdb/xtensa-linux-tdep.c @@ -112,9 +112,6 @@ xtensa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) svr4_fetch_objfile_link_map); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_xtensa_linux_tdep; - void _initialize_xtensa_linux_tdep (void) { diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index bfb9ac6fa4a..51fa520702e 100644 --- a/gdb/xtensa-tdep.c +++ b/gdb/xtensa-tdep.c @@ -3278,9 +3278,6 @@ xtensa_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) error (_("xtensa_dump_tdep(): not implemented")); } -/* Provide a prototype to silence -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_xtensa_tdep; - void _initialize_xtensa_tdep (void) { -- 2.30.2