xref: /netbsd-src/external/gpl3/gdb/lib/libgdb/arch/riscv32/init.c (revision 22ebeae4b2252475e0ebe332f69734639cb946ea)
106dfa844Sskrll /* This file is automatically generated.  DO NOT EDIT! */
2*22ebeae4Schristos /* Generated from: NetBSD: mknative-gdb,v 1.17 2024/08/18 03:47:55 rin Exp  */
306dfa844Sskrll /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
406dfa844Sskrll 
506dfa844Sskrll /* Do not modify this file.  */
606dfa844Sskrll /* It is created automatically by the Makefile.  */
72dd29543Schristos #include <algorithm>
82dd29543Schristos 
906dfa844Sskrll extern initialize_file_ftype _initialize_riscv_tdep;
102dd29543Schristos extern initialize_file_ftype _initialize_riscv_none_tdep;
1106dfa844Sskrll extern initialize_file_ftype _initialize_ravenscar;
1206dfa844Sskrll extern initialize_file_ftype _initialize_svr4_solib;
13f5a9565aSchristos extern initialize_file_ftype _initialize_riscv_nbsd_tdep;
1406dfa844Sskrll extern initialize_file_ftype _initialize_ser_hardwire;
1506dfa844Sskrll extern initialize_file_ftype _initialize_ser_pipe;
1606dfa844Sskrll extern initialize_file_ftype _initialize_ser_tcp;
1706dfa844Sskrll extern initialize_file_ftype _initialize_ser_socket;
18f5a9565aSchristos extern initialize_file_ftype _initialize_fork_child;
19f5a9565aSchristos extern initialize_file_ftype _initialize_riscv_nbsd_nat;
2006dfa844Sskrll extern initialize_file_ftype _initialize_tui;
21*22ebeae4Schristos extern initialize_file_ftype _initialize_tui_disasm;
2206dfa844Sskrll extern initialize_file_ftype _initialize_tui_hooks;
2306dfa844Sskrll extern initialize_file_ftype _initialize_tui_interp;
2406dfa844Sskrll extern initialize_file_ftype _initialize_tui_layout;
2506dfa844Sskrll extern initialize_file_ftype _initialize_tui_regs;
2606dfa844Sskrll extern initialize_file_ftype _initialize_tui_stack;
2706dfa844Sskrll extern initialize_file_ftype _initialize_tui_win;
2806dfa844Sskrll extern initialize_file_ftype _initialize_python;
2906dfa844Sskrll extern initialize_file_ftype _initialize_guile;
3006dfa844Sskrll extern initialize_file_ftype _initialize_elfread;
3106dfa844Sskrll extern initialize_file_ftype _initialize_stap_probe;
3206dfa844Sskrll extern initialize_file_ftype _initialize_dtrace_probe;
33*22ebeae4Schristos extern initialize_file_ftype _initialize_cp_name_parser;
3406dfa844Sskrll extern initialize_file_ftype _initialize_ada_language;
3506dfa844Sskrll extern initialize_file_ftype _initialize_tasks;
362dd29543Schristos extern initialize_file_ftype _initialize_addrmap;
3706dfa844Sskrll extern initialize_file_ftype _initialize_agent;
3806dfa844Sskrll extern initialize_file_ftype _initialize_annotate;
3906dfa844Sskrll extern initialize_file_ftype _initialize_gdbarch_utils;
4006dfa844Sskrll extern initialize_file_ftype _initialize_auto_load;
4106dfa844Sskrll extern initialize_file_ftype _initialize_auxv;
4206dfa844Sskrll extern initialize_file_ftype _initialize_ax_gdb;
432dd29543Schristos extern initialize_file_ftype _initialize_break_catch_exec;
442dd29543Schristos extern initialize_file_ftype _initialize_break_catch_fork;
452dd29543Schristos extern initialize_file_ftype _initialize_break_catch_load;
4606dfa844Sskrll extern initialize_file_ftype _initialize_break_catch_sig;
4706dfa844Sskrll extern initialize_file_ftype _initialize_break_catch_syscall;
4806dfa844Sskrll extern initialize_file_ftype _initialize_break_catch_throw;
4906dfa844Sskrll extern initialize_file_ftype _initialize_breakpoint;
5006dfa844Sskrll extern initialize_file_ftype _initialize_btrace;
5106dfa844Sskrll extern initialize_file_ftype _initialize_charset;
5206dfa844Sskrll extern initialize_file_ftype _initialize_coff_pe_read;
5306dfa844Sskrll extern initialize_file_ftype _initialize_coffread;
5406dfa844Sskrll extern initialize_file_ftype _initialize_complaints;
5506dfa844Sskrll extern initialize_file_ftype _initialize_completer;
5606dfa844Sskrll extern initialize_file_ftype _initialize_copying;
5706dfa844Sskrll extern initialize_file_ftype _initialize_core;
5806dfa844Sskrll extern initialize_file_ftype _initialize_corelow;
5906dfa844Sskrll extern initialize_file_ftype _initialize_cp_abi;
6006dfa844Sskrll extern initialize_file_ftype _initialize_cp_namespace;
6106dfa844Sskrll extern initialize_file_ftype _initialize_cp_support;
6206dfa844Sskrll extern initialize_file_ftype _initialize_cp_valprint;
6306dfa844Sskrll extern initialize_file_ftype _initialize_dbxread;
6406dfa844Sskrll extern initialize_file_ftype _initialize_dcache;
652dd29543Schristos extern initialize_file_ftype _initialize_debuginfod;
6606dfa844Sskrll extern initialize_file_ftype _initialize_disasm;
672dd29543Schristos extern initialize_file_ftype _initialize_displaced_stepping;
6806dfa844Sskrll extern initialize_file_ftype _initialize_dummy_frame;
692dd29543Schristos extern initialize_file_ftype _initialize_cooked_index;
7006dfa844Sskrll extern initialize_file_ftype _initialize_tailcall_frame;
7106dfa844Sskrll extern initialize_file_ftype _initialize_dwarf2_frame;
7206dfa844Sskrll extern initialize_file_ftype _initialize_index_cache;
7306dfa844Sskrll extern initialize_file_ftype _initialize_dwarf_index_write;
7406dfa844Sskrll extern initialize_file_ftype _initialize_dwarf2loc;
7506dfa844Sskrll extern initialize_file_ftype _initialize_dwarf2_read;
76*22ebeae4Schristos extern initialize_file_ftype _initialize_read_gdb_index;
77*22ebeae4Schristos extern initialize_file_ftype _initialize_extract_store_integer;
782dd29543Schristos extern initialize_file_ftype _initialize_event_top;
7906dfa844Sskrll extern initialize_file_ftype _initialize_exec;
8006dfa844Sskrll extern initialize_file_ftype _initialize_extension;
8106dfa844Sskrll extern initialize_file_ftype _initialize_f_language;
8206dfa844Sskrll extern initialize_file_ftype _initialize_f_valprint;
8306dfa844Sskrll extern initialize_file_ftype _initialize_filesystem;
8406dfa844Sskrll extern initialize_file_ftype _initialize_mem_search;
8506dfa844Sskrll extern initialize_file_ftype _initialize_frame;
86*22ebeae4Schristos extern initialize_file_ftype _initialize_frame_unwind;
8706dfa844Sskrll extern initialize_file_ftype _initialize_gcore;
8806dfa844Sskrll extern initialize_file_ftype _initialize_gdb_demangle;
8906dfa844Sskrll extern initialize_file_ftype _initialize_gdb_bfd;
9006dfa844Sskrll extern initialize_file_ftype _initialize_gdbtypes;
912dd29543Schristos extern initialize_file_ftype _initialize_gmp_utils;
9206dfa844Sskrll extern initialize_file_ftype _initialize_gnu_v2_abi;
9306dfa844Sskrll extern initialize_file_ftype _initialize_gnu_v3_abi;
9406dfa844Sskrll extern initialize_file_ftype _initialize_infcall;
9506dfa844Sskrll extern initialize_file_ftype _initialize_infcmd;
9606dfa844Sskrll extern initialize_file_ftype _initialize_inflow;
9706dfa844Sskrll extern initialize_file_ftype _initialize_infrun;
9806dfa844Sskrll extern initialize_file_ftype _initialize_interpreter;
9906dfa844Sskrll extern initialize_file_ftype _initialize_jit;
10006dfa844Sskrll extern initialize_file_ftype _initialize_language;
10106dfa844Sskrll extern initialize_file_ftype _initialize_macrocmd;
10206dfa844Sskrll extern initialize_file_ftype _initialize_macroscope;
10306dfa844Sskrll extern initialize_file_ftype _initialize_maint_cmds;
10406dfa844Sskrll extern initialize_file_ftype _initialize_maint_test_options;
10506dfa844Sskrll extern initialize_file_ftype _initialize_maint_test_settings;
10606dfa844Sskrll extern initialize_file_ftype _initialize_mdebugread;
10706dfa844Sskrll extern initialize_file_ftype _initialize_mem;
10806dfa844Sskrll extern initialize_file_ftype _initialize_mipsread;
10906dfa844Sskrll extern initialize_file_ftype _initialize_objc_language;
11006dfa844Sskrll extern initialize_file_ftype _initialize_observer;
11106dfa844Sskrll extern initialize_file_ftype _initialize_gdb_osabi;
11206dfa844Sskrll extern initialize_file_ftype _initialize_osdata;
11306dfa844Sskrll extern initialize_file_ftype _initialize_pascal_valprint;
11406dfa844Sskrll extern initialize_file_ftype _initialize_parse;
11506dfa844Sskrll extern initialize_file_ftype _initialize_printcmd;
11606dfa844Sskrll extern initialize_file_ftype _initialize_probe;
11706dfa844Sskrll extern initialize_file_ftype _initialize_producer;
11806dfa844Sskrll extern initialize_file_ftype _initialize_psymtab;
11906dfa844Sskrll extern initialize_file_ftype _initialize_record;
12006dfa844Sskrll extern initialize_file_ftype _initialize_record_btrace;
12106dfa844Sskrll extern initialize_file_ftype _initialize_record_full;
12206dfa844Sskrll extern initialize_file_ftype _initialize_regcache;
12306dfa844Sskrll extern initialize_file_ftype _initialize_regcache_dump;
12406dfa844Sskrll extern initialize_file_ftype _initialize_reggroup;
12506dfa844Sskrll extern initialize_file_ftype _initialize_remote;
12606dfa844Sskrll extern initialize_file_ftype _initialize_notif;
12706dfa844Sskrll extern initialize_file_ftype _initialize_reverse;
12806dfa844Sskrll extern initialize_file_ftype _initialize_run_on_main_thread;
1292dd29543Schristos extern initialize_file_ftype _initialize_rust_exp;
13006dfa844Sskrll extern initialize_file_ftype _initialize_serial;
13106dfa844Sskrll extern initialize_file_ftype _initialize_step_skip;
13206dfa844Sskrll extern initialize_file_ftype _initialize_solib;
13306dfa844Sskrll extern initialize_file_ftype _initialize_source;
13406dfa844Sskrll extern initialize_file_ftype _initialize_source_cache;
13506dfa844Sskrll extern initialize_file_ftype _initialize_stabsread;
13606dfa844Sskrll extern initialize_file_ftype _initialize_stack;
13706dfa844Sskrll extern initialize_file_ftype _initialize_frame_reg;
13806dfa844Sskrll extern initialize_file_ftype _initialize_symfile;
13906dfa844Sskrll extern initialize_file_ftype _initialize_symfile_debug;
14006dfa844Sskrll extern initialize_file_ftype _initialize_symmisc;
14106dfa844Sskrll extern initialize_file_ftype _initialize_symtab;
14206dfa844Sskrll extern initialize_file_ftype _initialize_target;
14306dfa844Sskrll extern initialize_file_ftype _initialize_target_connection;
14406dfa844Sskrll extern initialize_file_ftype _initialize_target_dcache;
14506dfa844Sskrll extern initialize_file_ftype _initialize_target_descriptions;
14606dfa844Sskrll extern initialize_file_ftype _initialize_thread;
1472dd29543Schristos extern initialize_file_ftype _initialize_top;
14806dfa844Sskrll extern initialize_file_ftype _initialize_ctf;
14906dfa844Sskrll extern initialize_file_ftype _initialize_tracefile;
15006dfa844Sskrll extern initialize_file_ftype _initialize_tracefile_tfile;
15106dfa844Sskrll extern initialize_file_ftype _initialize_tracepoint;
15206dfa844Sskrll extern initialize_file_ftype _initialize_typeprint;
153*22ebeae4Schristos extern initialize_file_ftype _initialize_ui;
15406dfa844Sskrll extern initialize_file_ftype _initialize_ui_style;
15506dfa844Sskrll extern initialize_file_ftype _initialize_user_regs;
15606dfa844Sskrll extern initialize_file_ftype _initialize_utils;
15706dfa844Sskrll extern initialize_file_ftype _initialize_valops;
15806dfa844Sskrll extern initialize_file_ftype _initialize_valprint;
15906dfa844Sskrll extern initialize_file_ftype _initialize_values;
16006dfa844Sskrll extern initialize_file_ftype _initialize_varobj;
16106dfa844Sskrll extern initialize_file_ftype _initialize_xml_support;
16206dfa844Sskrll extern initialize_file_ftype _initialize_cli_cmds;
16306dfa844Sskrll extern initialize_file_ftype _initialize_cli_dump;
16406dfa844Sskrll extern initialize_file_ftype _initialize_cli_interp;
16506dfa844Sskrll extern initialize_file_ftype _initialize_cli_logging;
16606dfa844Sskrll extern initialize_file_ftype _initialize_cli_script;
16706dfa844Sskrll extern initialize_file_ftype _initialize_cli_style;
168*22ebeae4Schristos extern initialize_file_ftype _initialize_mi_cmd_env;
169*22ebeae4Schristos extern initialize_file_ftype _initialize_mi_cmds;
170*22ebeae4Schristos extern initialize_file_ftype _initialize_mi_interp;
171*22ebeae4Schristos extern initialize_file_ftype _initialize_mi_main;
17206dfa844Sskrll extern initialize_file_ftype _initialize_compile;
17306dfa844Sskrll extern initialize_file_ftype _initialize_compile_cplus_types;
1742dd29543Schristos 
1752dd29543Schristos void initialize_all_files ();
17606dfa844Sskrll void
1772dd29543Schristos initialize_all_files ()
17806dfa844Sskrll {
1792dd29543Schristos   std::vector<initialize_file_ftype *> functions =
1802dd29543Schristos     {
1812dd29543Schristos       _initialize_riscv_tdep,
1822dd29543Schristos       _initialize_riscv_none_tdep,
1832dd29543Schristos       _initialize_ravenscar,
1842dd29543Schristos       _initialize_svr4_solib,
185f5a9565aSchristos       _initialize_riscv_nbsd_tdep,
1862dd29543Schristos       _initialize_ser_hardwire,
1872dd29543Schristos       _initialize_ser_pipe,
1882dd29543Schristos       _initialize_ser_tcp,
1892dd29543Schristos       _initialize_ser_socket,
190f5a9565aSchristos       _initialize_fork_child,
191f5a9565aSchristos       _initialize_riscv_nbsd_nat,
1922dd29543Schristos       _initialize_tui,
193*22ebeae4Schristos       _initialize_tui_disasm,
1942dd29543Schristos       _initialize_tui_hooks,
1952dd29543Schristos       _initialize_tui_interp,
1962dd29543Schristos       _initialize_tui_layout,
1972dd29543Schristos       _initialize_tui_regs,
1982dd29543Schristos       _initialize_tui_stack,
1992dd29543Schristos       _initialize_tui_win,
2002dd29543Schristos       _initialize_python,
2012dd29543Schristos       _initialize_guile,
2022dd29543Schristos       _initialize_elfread,
2032dd29543Schristos       _initialize_stap_probe,
2042dd29543Schristos       _initialize_dtrace_probe,
205*22ebeae4Schristos       _initialize_cp_name_parser,
2062dd29543Schristos       _initialize_ada_language,
2072dd29543Schristos       _initialize_tasks,
2082dd29543Schristos       _initialize_addrmap,
2092dd29543Schristos       _initialize_agent,
2102dd29543Schristos       _initialize_annotate,
2112dd29543Schristos       _initialize_gdbarch_utils,
2122dd29543Schristos       _initialize_auto_load,
2132dd29543Schristos       _initialize_auxv,
2142dd29543Schristos       _initialize_ax_gdb,
2152dd29543Schristos       _initialize_break_catch_exec,
2162dd29543Schristos       _initialize_break_catch_fork,
2172dd29543Schristos       _initialize_break_catch_load,
2182dd29543Schristos       _initialize_break_catch_sig,
2192dd29543Schristos       _initialize_break_catch_syscall,
2202dd29543Schristos       _initialize_break_catch_throw,
2212dd29543Schristos       _initialize_breakpoint,
2222dd29543Schristos       _initialize_btrace,
2232dd29543Schristos       _initialize_charset,
2242dd29543Schristos       _initialize_coff_pe_read,
2252dd29543Schristos       _initialize_coffread,
2262dd29543Schristos       _initialize_complaints,
2272dd29543Schristos       _initialize_completer,
2282dd29543Schristos       _initialize_copying,
2292dd29543Schristos       _initialize_core,
2302dd29543Schristos       _initialize_corelow,
2312dd29543Schristos       _initialize_cp_abi,
2322dd29543Schristos       _initialize_cp_namespace,
2332dd29543Schristos       _initialize_cp_support,
2342dd29543Schristos       _initialize_cp_valprint,
2352dd29543Schristos       _initialize_dbxread,
2362dd29543Schristos       _initialize_dcache,
2372dd29543Schristos       _initialize_debuginfod,
2382dd29543Schristos       _initialize_disasm,
2392dd29543Schristos       _initialize_displaced_stepping,
2402dd29543Schristos       _initialize_dummy_frame,
2412dd29543Schristos       _initialize_cooked_index,
2422dd29543Schristos       _initialize_tailcall_frame,
2432dd29543Schristos       _initialize_dwarf2_frame,
2442dd29543Schristos       _initialize_index_cache,
2452dd29543Schristos       _initialize_dwarf_index_write,
2462dd29543Schristos       _initialize_dwarf2loc,
2472dd29543Schristos       _initialize_dwarf2_read,
248*22ebeae4Schristos       _initialize_read_gdb_index,
249*22ebeae4Schristos       _initialize_extract_store_integer,
2502dd29543Schristos       _initialize_event_top,
2512dd29543Schristos       _initialize_exec,
2522dd29543Schristos       _initialize_extension,
2532dd29543Schristos       _initialize_f_language,
2542dd29543Schristos       _initialize_f_valprint,
2552dd29543Schristos       _initialize_filesystem,
2562dd29543Schristos       _initialize_mem_search,
2572dd29543Schristos       _initialize_frame,
258*22ebeae4Schristos       _initialize_frame_unwind,
2592dd29543Schristos       _initialize_gcore,
2602dd29543Schristos       _initialize_gdb_demangle,
2612dd29543Schristos       _initialize_gdb_bfd,
2622dd29543Schristos       _initialize_gdbtypes,
2632dd29543Schristos       _initialize_gmp_utils,
2642dd29543Schristos       _initialize_gnu_v2_abi,
2652dd29543Schristos       _initialize_gnu_v3_abi,
2662dd29543Schristos       _initialize_infcall,
2672dd29543Schristos       _initialize_infcmd,
2682dd29543Schristos       _initialize_inflow,
2692dd29543Schristos       _initialize_infrun,
2702dd29543Schristos       _initialize_interpreter,
2712dd29543Schristos       _initialize_jit,
2722dd29543Schristos       _initialize_language,
2732dd29543Schristos       _initialize_macrocmd,
2742dd29543Schristos       _initialize_macroscope,
2752dd29543Schristos       _initialize_maint_cmds,
2762dd29543Schristos       _initialize_maint_test_options,
2772dd29543Schristos       _initialize_maint_test_settings,
2782dd29543Schristos       _initialize_mdebugread,
2792dd29543Schristos       _initialize_mem,
2802dd29543Schristos       _initialize_mipsread,
2812dd29543Schristos       _initialize_objc_language,
2822dd29543Schristos       _initialize_observer,
2832dd29543Schristos       _initialize_gdb_osabi,
2842dd29543Schristos       _initialize_osdata,
2852dd29543Schristos       _initialize_pascal_valprint,
2862dd29543Schristos       _initialize_parse,
2872dd29543Schristos       _initialize_printcmd,
2882dd29543Schristos       _initialize_probe,
2892dd29543Schristos       _initialize_producer,
2902dd29543Schristos       _initialize_psymtab,
2912dd29543Schristos       _initialize_record,
2922dd29543Schristos       _initialize_record_btrace,
2932dd29543Schristos       _initialize_record_full,
2942dd29543Schristos       _initialize_regcache,
2952dd29543Schristos       _initialize_regcache_dump,
2962dd29543Schristos       _initialize_reggroup,
2972dd29543Schristos       _initialize_remote,
2982dd29543Schristos       _initialize_notif,
2992dd29543Schristos       _initialize_reverse,
3002dd29543Schristos       _initialize_run_on_main_thread,
3012dd29543Schristos       _initialize_rust_exp,
3022dd29543Schristos       _initialize_serial,
3032dd29543Schristos       _initialize_step_skip,
3042dd29543Schristos       _initialize_solib,
3052dd29543Schristos       _initialize_source,
3062dd29543Schristos       _initialize_source_cache,
3072dd29543Schristos       _initialize_stabsread,
3082dd29543Schristos       _initialize_stack,
3092dd29543Schristos       _initialize_frame_reg,
3102dd29543Schristos       _initialize_symfile,
3112dd29543Schristos       _initialize_symfile_debug,
3122dd29543Schristos       _initialize_symmisc,
3132dd29543Schristos       _initialize_symtab,
3142dd29543Schristos       _initialize_target,
3152dd29543Schristos       _initialize_target_connection,
3162dd29543Schristos       _initialize_target_dcache,
3172dd29543Schristos       _initialize_target_descriptions,
3182dd29543Schristos       _initialize_thread,
3192dd29543Schristos       _initialize_top,
3202dd29543Schristos       _initialize_ctf,
3212dd29543Schristos       _initialize_tracefile,
3222dd29543Schristos       _initialize_tracefile_tfile,
3232dd29543Schristos       _initialize_tracepoint,
3242dd29543Schristos       _initialize_typeprint,
325*22ebeae4Schristos       _initialize_ui,
3262dd29543Schristos       _initialize_ui_style,
3272dd29543Schristos       _initialize_user_regs,
3282dd29543Schristos       _initialize_utils,
3292dd29543Schristos       _initialize_valops,
3302dd29543Schristos       _initialize_valprint,
3312dd29543Schristos       _initialize_values,
3322dd29543Schristos       _initialize_varobj,
3332dd29543Schristos       _initialize_xml_support,
3342dd29543Schristos       _initialize_cli_cmds,
3352dd29543Schristos       _initialize_cli_dump,
3362dd29543Schristos       _initialize_cli_interp,
3372dd29543Schristos       _initialize_cli_logging,
3382dd29543Schristos       _initialize_cli_script,
3392dd29543Schristos       _initialize_cli_style,
340*22ebeae4Schristos       _initialize_mi_cmd_env,
341*22ebeae4Schristos       _initialize_mi_cmds,
342*22ebeae4Schristos       _initialize_mi_interp,
343*22ebeae4Schristos       _initialize_mi_main,
3442dd29543Schristos       _initialize_compile,
3452dd29543Schristos       _initialize_compile_cplus_types,
3462dd29543Schristos     };
3472dd29543Schristos 
3482dd29543Schristos   /* If GDB_REVERSE_INIT_FUNCTIONS is set (any value), reverse the
3492dd29543Schristos      order in which initialization functions are called.  This is
3502dd29543Schristos      used by the testsuite.  */
3512dd29543Schristos   if (getenv ("GDB_REVERSE_INIT_FUNCTIONS") != nullptr)
3522dd29543Schristos     std::reverse (functions.begin (), functions.end ());
3532dd29543Schristos 
3542dd29543Schristos   for (initialize_file_ftype *function : functions)
3552dd29543Schristos     function ();
35606dfa844Sskrll }
357