xref: /netbsd-src/external/gpl3/gdb.old/lib/libgdb/arch/riscv64/init.c (revision 6881a4007f077b54e5f51159c52b9b25f57deb0d)
1be560990Sskrll /* This file is automatically generated.  DO NOT EDIT! */
2*6881a400Schristos /* Generated from: NetBSD: mknative-gdb,v 1.16 2023/07/31 17:09:59 christos Exp  */
3be560990Sskrll /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
4be560990Sskrll 
5be560990Sskrll /* Do not modify this file.  */
6be560990Sskrll /* It is created automatically by the Makefile.  */
7be560990Sskrll #include "defs.h"      /* For initialize_file_ftype.  */
8*6881a400Schristos #include <algorithm>
9*6881a400Schristos 
10be560990Sskrll extern initialize_file_ftype _initialize_riscv_tdep;
11*6881a400Schristos extern initialize_file_ftype _initialize_riscv_none_tdep;
12be560990Sskrll extern initialize_file_ftype _initialize_ravenscar;
13be560990Sskrll extern initialize_file_ftype _initialize_svr4_solib;
14be560990Sskrll extern initialize_file_ftype _initialize_riscv_nbsd_tdep;
15be560990Sskrll extern initialize_file_ftype _initialize_ser_hardwire;
16be560990Sskrll extern initialize_file_ftype _initialize_ser_pipe;
17be560990Sskrll extern initialize_file_ftype _initialize_ser_tcp;
18be560990Sskrll extern initialize_file_ftype _initialize_ser_socket;
19be560990Sskrll extern initialize_file_ftype _initialize_fork_child;
20be560990Sskrll extern initialize_file_ftype _initialize_riscv_nbsd_nat;
21be560990Sskrll extern initialize_file_ftype _initialize_mi_cmd_env;
22be560990Sskrll extern initialize_file_ftype _initialize_mi_cmds;
23be560990Sskrll extern initialize_file_ftype _initialize_mi_interp;
24be560990Sskrll extern initialize_file_ftype _initialize_mi_main;
25be560990Sskrll extern initialize_file_ftype _initialize_tui;
26be560990Sskrll extern initialize_file_ftype _initialize_tui_hooks;
27be560990Sskrll extern initialize_file_ftype _initialize_tui_interp;
28be560990Sskrll extern initialize_file_ftype _initialize_tui_layout;
29be560990Sskrll extern initialize_file_ftype _initialize_tui_regs;
30be560990Sskrll extern initialize_file_ftype _initialize_tui_stack;
31be560990Sskrll extern initialize_file_ftype _initialize_tui_win;
32be560990Sskrll extern initialize_file_ftype _initialize_python;
33be560990Sskrll extern initialize_file_ftype _initialize_guile;
34be560990Sskrll extern initialize_file_ftype _initialize_elfread;
35be560990Sskrll extern initialize_file_ftype _initialize_stap_probe;
36be560990Sskrll extern initialize_file_ftype _initialize_dtrace_probe;
37be560990Sskrll extern initialize_file_ftype _initialize_ada_exp;
38be560990Sskrll extern initialize_file_ftype _initialize_ada_language;
39be560990Sskrll extern initialize_file_ftype _initialize_tasks;
40*6881a400Schristos extern initialize_file_ftype _initialize_addrmap;
41be560990Sskrll extern initialize_file_ftype _initialize_agent;
42be560990Sskrll extern initialize_file_ftype _initialize_annotate;
43be560990Sskrll extern initialize_file_ftype _initialize_gdbarch_utils;
44be560990Sskrll extern initialize_file_ftype _initialize_auto_load;
45be560990Sskrll extern initialize_file_ftype _initialize_auxv;
46be560990Sskrll extern initialize_file_ftype _initialize_ax_gdb;
47*6881a400Schristos extern initialize_file_ftype _initialize_break_catch_exec;
48*6881a400Schristos extern initialize_file_ftype _initialize_break_catch_fork;
49*6881a400Schristos extern initialize_file_ftype _initialize_break_catch_load;
50be560990Sskrll extern initialize_file_ftype _initialize_break_catch_sig;
51be560990Sskrll extern initialize_file_ftype _initialize_break_catch_syscall;
52be560990Sskrll extern initialize_file_ftype _initialize_break_catch_throw;
53be560990Sskrll extern initialize_file_ftype _initialize_breakpoint;
54be560990Sskrll extern initialize_file_ftype _initialize_btrace;
55be560990Sskrll extern initialize_file_ftype _initialize_charset;
56be560990Sskrll extern initialize_file_ftype _initialize_coff_pe_read;
57be560990Sskrll extern initialize_file_ftype _initialize_coffread;
58be560990Sskrll extern initialize_file_ftype _initialize_complaints;
59be560990Sskrll extern initialize_file_ftype _initialize_completer;
60be560990Sskrll extern initialize_file_ftype _initialize_copying;
61be560990Sskrll extern initialize_file_ftype _initialize_core;
62be560990Sskrll extern initialize_file_ftype _initialize_corelow;
63be560990Sskrll extern initialize_file_ftype _initialize_cp_abi;
64be560990Sskrll extern initialize_file_ftype _initialize_cp_namespace;
65be560990Sskrll extern initialize_file_ftype _initialize_cp_support;
66be560990Sskrll extern initialize_file_ftype _initialize_cp_valprint;
67be560990Sskrll extern initialize_file_ftype _initialize_dbxread;
68be560990Sskrll extern initialize_file_ftype _initialize_dcache;
69*6881a400Schristos extern initialize_file_ftype _initialize_debuginfod;
70be560990Sskrll extern initialize_file_ftype _initialize_disasm;
71*6881a400Schristos extern initialize_file_ftype _initialize_displaced_stepping;
72be560990Sskrll extern initialize_file_ftype _initialize_dummy_frame;
73*6881a400Schristos extern initialize_file_ftype _initialize_cooked_index;
74be560990Sskrll extern initialize_file_ftype _initialize_tailcall_frame;
75be560990Sskrll extern initialize_file_ftype _initialize_dwarf2_frame;
76be560990Sskrll extern initialize_file_ftype _initialize_index_cache;
77be560990Sskrll extern initialize_file_ftype _initialize_dwarf_index_write;
78be560990Sskrll extern initialize_file_ftype _initialize_dwarf2loc;
79be560990Sskrll extern initialize_file_ftype _initialize_dwarf2_read;
80*6881a400Schristos extern initialize_file_ftype _initialize_event_top;
81be560990Sskrll extern initialize_file_ftype _initialize_exec;
82be560990Sskrll extern initialize_file_ftype _initialize_extension;
83be560990Sskrll extern initialize_file_ftype _initialize_f_language;
84be560990Sskrll extern initialize_file_ftype _initialize_f_valprint;
85be560990Sskrll extern initialize_file_ftype _initialize_filesystem;
86be560990Sskrll extern initialize_file_ftype _initialize_mem_search;
87be560990Sskrll extern initialize_file_ftype _initialize_findvar;
88be560990Sskrll extern initialize_file_ftype _initialize_frame;
89be560990Sskrll extern initialize_file_ftype _initialize_gcore;
90be560990Sskrll extern initialize_file_ftype _initialize_gdb_demangle;
91be560990Sskrll extern initialize_file_ftype _initialize_gdb_bfd;
92be560990Sskrll extern initialize_file_ftype _initialize_gdbtypes;
93*6881a400Schristos extern initialize_file_ftype _initialize_gmp_utils;
94be560990Sskrll extern initialize_file_ftype _initialize_gnu_v2_abi;
95be560990Sskrll extern initialize_file_ftype _initialize_gnu_v3_abi;
96be560990Sskrll extern initialize_file_ftype _initialize_infcall;
97be560990Sskrll extern initialize_file_ftype _initialize_infcmd;
98be560990Sskrll extern initialize_file_ftype _initialize_inflow;
99be560990Sskrll extern initialize_file_ftype _initialize_infrun;
100be560990Sskrll extern initialize_file_ftype _initialize_interpreter;
101be560990Sskrll extern initialize_file_ftype _initialize_jit;
102be560990Sskrll extern initialize_file_ftype _initialize_language;
103be560990Sskrll extern initialize_file_ftype _initialize_macrocmd;
104be560990Sskrll extern initialize_file_ftype _initialize_macroscope;
105be560990Sskrll extern initialize_file_ftype _initialize_maint_cmds;
106be560990Sskrll extern initialize_file_ftype _initialize_maint_test_options;
107be560990Sskrll extern initialize_file_ftype _initialize_maint_test_settings;
108be560990Sskrll extern initialize_file_ftype _initialize_mdebugread;
109be560990Sskrll extern initialize_file_ftype _initialize_mem;
110be560990Sskrll extern initialize_file_ftype _initialize_mipsread;
111be560990Sskrll extern initialize_file_ftype _initialize_objc_language;
112be560990Sskrll extern initialize_file_ftype _initialize_observer;
113be560990Sskrll extern initialize_file_ftype _initialize_gdb_osabi;
114be560990Sskrll extern initialize_file_ftype _initialize_osdata;
115be560990Sskrll extern initialize_file_ftype _initialize_pascal_valprint;
116be560990Sskrll extern initialize_file_ftype _initialize_parse;
117be560990Sskrll extern initialize_file_ftype _initialize_printcmd;
118be560990Sskrll extern initialize_file_ftype _initialize_probe;
119be560990Sskrll extern initialize_file_ftype _initialize_producer;
120be560990Sskrll extern initialize_file_ftype _initialize_psymtab;
121be560990Sskrll extern initialize_file_ftype _initialize_record;
122be560990Sskrll extern initialize_file_ftype _initialize_record_btrace;
123be560990Sskrll extern initialize_file_ftype _initialize_record_full;
124be560990Sskrll extern initialize_file_ftype _initialize_regcache;
125be560990Sskrll extern initialize_file_ftype _initialize_regcache_dump;
126be560990Sskrll extern initialize_file_ftype _initialize_reggroup;
127be560990Sskrll extern initialize_file_ftype _initialize_remote;
128be560990Sskrll extern initialize_file_ftype _initialize_notif;
129be560990Sskrll extern initialize_file_ftype _initialize_reverse;
130be560990Sskrll extern initialize_file_ftype _initialize_run_on_main_thread;
131*6881a400Schristos extern initialize_file_ftype _initialize_rust_exp;
132be560990Sskrll extern initialize_file_ftype _initialize_serial;
133be560990Sskrll extern initialize_file_ftype _initialize_step_skip;
134be560990Sskrll extern initialize_file_ftype _initialize_solib;
135be560990Sskrll extern initialize_file_ftype _initialize_source;
136be560990Sskrll extern initialize_file_ftype _initialize_source_cache;
137be560990Sskrll extern initialize_file_ftype _initialize_stabsread;
138be560990Sskrll extern initialize_file_ftype _initialize_stack;
139be560990Sskrll extern initialize_file_ftype _initialize_frame_reg;
140be560990Sskrll extern initialize_file_ftype _initialize_symfile;
141be560990Sskrll extern initialize_file_ftype _initialize_symfile_debug;
142be560990Sskrll extern initialize_file_ftype _initialize_symmisc;
143be560990Sskrll extern initialize_file_ftype _initialize_symtab;
144be560990Sskrll extern initialize_file_ftype _initialize_target;
145be560990Sskrll extern initialize_file_ftype _initialize_target_connection;
146be560990Sskrll extern initialize_file_ftype _initialize_target_dcache;
147be560990Sskrll extern initialize_file_ftype _initialize_target_descriptions;
148be560990Sskrll extern initialize_file_ftype _initialize_thread;
149*6881a400Schristos extern initialize_file_ftype _initialize_top;
150be560990Sskrll extern initialize_file_ftype _initialize_ctf;
151be560990Sskrll extern initialize_file_ftype _initialize_tracefile;
152be560990Sskrll extern initialize_file_ftype _initialize_tracefile_tfile;
153be560990Sskrll extern initialize_file_ftype _initialize_tracepoint;
154be560990Sskrll extern initialize_file_ftype _initialize_typeprint;
155be560990Sskrll extern initialize_file_ftype _initialize_ui_style;
156be560990Sskrll extern initialize_file_ftype _initialize_user_regs;
157be560990Sskrll extern initialize_file_ftype _initialize_utils;
158be560990Sskrll extern initialize_file_ftype _initialize_valops;
159be560990Sskrll extern initialize_file_ftype _initialize_valprint;
160be560990Sskrll extern initialize_file_ftype _initialize_values;
161be560990Sskrll extern initialize_file_ftype _initialize_varobj;
162be560990Sskrll extern initialize_file_ftype _initialize_xml_support;
163be560990Sskrll extern initialize_file_ftype _initialize_cli_cmds;
164be560990Sskrll extern initialize_file_ftype _initialize_cli_dump;
165be560990Sskrll extern initialize_file_ftype _initialize_cli_interp;
166be560990Sskrll extern initialize_file_ftype _initialize_cli_logging;
167be560990Sskrll extern initialize_file_ftype _initialize_cli_script;
168be560990Sskrll extern initialize_file_ftype _initialize_cli_style;
169be560990Sskrll extern initialize_file_ftype _initialize_compile;
170be560990Sskrll extern initialize_file_ftype _initialize_compile_cplus_types;
171*6881a400Schristos 
172*6881a400Schristos void initialize_all_files ();
173be560990Sskrll void
174*6881a400Schristos initialize_all_files ()
175be560990Sskrll {
176*6881a400Schristos   std::vector<initialize_file_ftype *> functions =
177*6881a400Schristos     {
178*6881a400Schristos       _initialize_riscv_tdep,
179*6881a400Schristos       _initialize_riscv_none_tdep,
180*6881a400Schristos       _initialize_ravenscar,
181*6881a400Schristos       _initialize_svr4_solib,
182*6881a400Schristos       _initialize_riscv_nbsd_tdep,
183*6881a400Schristos       _initialize_ser_hardwire,
184*6881a400Schristos       _initialize_ser_pipe,
185*6881a400Schristos       _initialize_ser_tcp,
186*6881a400Schristos       _initialize_ser_socket,
187*6881a400Schristos       _initialize_fork_child,
188*6881a400Schristos       _initialize_riscv_nbsd_nat,
189*6881a400Schristos       _initialize_mi_cmd_env,
190*6881a400Schristos       _initialize_mi_cmds,
191*6881a400Schristos       _initialize_mi_interp,
192*6881a400Schristos       _initialize_mi_main,
193*6881a400Schristos       _initialize_tui,
194*6881a400Schristos       _initialize_tui_hooks,
195*6881a400Schristos       _initialize_tui_interp,
196*6881a400Schristos       _initialize_tui_layout,
197*6881a400Schristos       _initialize_tui_regs,
198*6881a400Schristos       _initialize_tui_stack,
199*6881a400Schristos       _initialize_tui_win,
200*6881a400Schristos       _initialize_python,
201*6881a400Schristos       _initialize_guile,
202*6881a400Schristos       _initialize_elfread,
203*6881a400Schristos       _initialize_stap_probe,
204*6881a400Schristos       _initialize_dtrace_probe,
205*6881a400Schristos       _initialize_ada_exp,
206*6881a400Schristos       _initialize_ada_language,
207*6881a400Schristos       _initialize_tasks,
208*6881a400Schristos       _initialize_addrmap,
209*6881a400Schristos       _initialize_agent,
210*6881a400Schristos       _initialize_annotate,
211*6881a400Schristos       _initialize_gdbarch_utils,
212*6881a400Schristos       _initialize_auto_load,
213*6881a400Schristos       _initialize_auxv,
214*6881a400Schristos       _initialize_ax_gdb,
215*6881a400Schristos       _initialize_break_catch_exec,
216*6881a400Schristos       _initialize_break_catch_fork,
217*6881a400Schristos       _initialize_break_catch_load,
218*6881a400Schristos       _initialize_break_catch_sig,
219*6881a400Schristos       _initialize_break_catch_syscall,
220*6881a400Schristos       _initialize_break_catch_throw,
221*6881a400Schristos       _initialize_breakpoint,
222*6881a400Schristos       _initialize_btrace,
223*6881a400Schristos       _initialize_charset,
224*6881a400Schristos       _initialize_coff_pe_read,
225*6881a400Schristos       _initialize_coffread,
226*6881a400Schristos       _initialize_complaints,
227*6881a400Schristos       _initialize_completer,
228*6881a400Schristos       _initialize_copying,
229*6881a400Schristos       _initialize_core,
230*6881a400Schristos       _initialize_corelow,
231*6881a400Schristos       _initialize_cp_abi,
232*6881a400Schristos       _initialize_cp_namespace,
233*6881a400Schristos       _initialize_cp_support,
234*6881a400Schristos       _initialize_cp_valprint,
235*6881a400Schristos       _initialize_dbxread,
236*6881a400Schristos       _initialize_dcache,
237*6881a400Schristos       _initialize_debuginfod,
238*6881a400Schristos       _initialize_disasm,
239*6881a400Schristos       _initialize_displaced_stepping,
240*6881a400Schristos       _initialize_dummy_frame,
241*6881a400Schristos       _initialize_cooked_index,
242*6881a400Schristos       _initialize_tailcall_frame,
243*6881a400Schristos       _initialize_dwarf2_frame,
244*6881a400Schristos       _initialize_index_cache,
245*6881a400Schristos       _initialize_dwarf_index_write,
246*6881a400Schristos       _initialize_dwarf2loc,
247*6881a400Schristos       _initialize_dwarf2_read,
248*6881a400Schristos       _initialize_event_top,
249*6881a400Schristos       _initialize_exec,
250*6881a400Schristos       _initialize_extension,
251*6881a400Schristos       _initialize_f_language,
252*6881a400Schristos       _initialize_f_valprint,
253*6881a400Schristos       _initialize_filesystem,
254*6881a400Schristos       _initialize_mem_search,
255*6881a400Schristos       _initialize_findvar,
256*6881a400Schristos       _initialize_frame,
257*6881a400Schristos       _initialize_gcore,
258*6881a400Schristos       _initialize_gdb_demangle,
259*6881a400Schristos       _initialize_gdb_bfd,
260*6881a400Schristos       _initialize_gdbtypes,
261*6881a400Schristos       _initialize_gmp_utils,
262*6881a400Schristos       _initialize_gnu_v2_abi,
263*6881a400Schristos       _initialize_gnu_v3_abi,
264*6881a400Schristos       _initialize_infcall,
265*6881a400Schristos       _initialize_infcmd,
266*6881a400Schristos       _initialize_inflow,
267*6881a400Schristos       _initialize_infrun,
268*6881a400Schristos       _initialize_interpreter,
269*6881a400Schristos       _initialize_jit,
270*6881a400Schristos       _initialize_language,
271*6881a400Schristos       _initialize_macrocmd,
272*6881a400Schristos       _initialize_macroscope,
273*6881a400Schristos       _initialize_maint_cmds,
274*6881a400Schristos       _initialize_maint_test_options,
275*6881a400Schristos       _initialize_maint_test_settings,
276*6881a400Schristos       _initialize_mdebugread,
277*6881a400Schristos       _initialize_mem,
278*6881a400Schristos       _initialize_mipsread,
279*6881a400Schristos       _initialize_objc_language,
280*6881a400Schristos       _initialize_observer,
281*6881a400Schristos       _initialize_gdb_osabi,
282*6881a400Schristos       _initialize_osdata,
283*6881a400Schristos       _initialize_pascal_valprint,
284*6881a400Schristos       _initialize_parse,
285*6881a400Schristos       _initialize_printcmd,
286*6881a400Schristos       _initialize_probe,
287*6881a400Schristos       _initialize_producer,
288*6881a400Schristos       _initialize_psymtab,
289*6881a400Schristos       _initialize_record,
290*6881a400Schristos       _initialize_record_btrace,
291*6881a400Schristos       _initialize_record_full,
292*6881a400Schristos       _initialize_regcache,
293*6881a400Schristos       _initialize_regcache_dump,
294*6881a400Schristos       _initialize_reggroup,
295*6881a400Schristos       _initialize_remote,
296*6881a400Schristos       _initialize_notif,
297*6881a400Schristos       _initialize_reverse,
298*6881a400Schristos       _initialize_run_on_main_thread,
299*6881a400Schristos       _initialize_rust_exp,
300*6881a400Schristos       _initialize_serial,
301*6881a400Schristos       _initialize_step_skip,
302*6881a400Schristos       _initialize_solib,
303*6881a400Schristos       _initialize_source,
304*6881a400Schristos       _initialize_source_cache,
305*6881a400Schristos       _initialize_stabsread,
306*6881a400Schristos       _initialize_stack,
307*6881a400Schristos       _initialize_frame_reg,
308*6881a400Schristos       _initialize_symfile,
309*6881a400Schristos       _initialize_symfile_debug,
310*6881a400Schristos       _initialize_symmisc,
311*6881a400Schristos       _initialize_symtab,
312*6881a400Schristos       _initialize_target,
313*6881a400Schristos       _initialize_target_connection,
314*6881a400Schristos       _initialize_target_dcache,
315*6881a400Schristos       _initialize_target_descriptions,
316*6881a400Schristos       _initialize_thread,
317*6881a400Schristos       _initialize_top,
318*6881a400Schristos       _initialize_ctf,
319*6881a400Schristos       _initialize_tracefile,
320*6881a400Schristos       _initialize_tracefile_tfile,
321*6881a400Schristos       _initialize_tracepoint,
322*6881a400Schristos       _initialize_typeprint,
323*6881a400Schristos       _initialize_ui_style,
324*6881a400Schristos       _initialize_user_regs,
325*6881a400Schristos       _initialize_utils,
326*6881a400Schristos       _initialize_valops,
327*6881a400Schristos       _initialize_valprint,
328*6881a400Schristos       _initialize_values,
329*6881a400Schristos       _initialize_varobj,
330*6881a400Schristos       _initialize_xml_support,
331*6881a400Schristos       _initialize_cli_cmds,
332*6881a400Schristos       _initialize_cli_dump,
333*6881a400Schristos       _initialize_cli_interp,
334*6881a400Schristos       _initialize_cli_logging,
335*6881a400Schristos       _initialize_cli_script,
336*6881a400Schristos       _initialize_cli_style,
337*6881a400Schristos       _initialize_compile,
338*6881a400Schristos       _initialize_compile_cplus_types,
339*6881a400Schristos     };
340*6881a400Schristos 
341*6881a400Schristos   /* If GDB_REVERSE_INIT_FUNCTIONS is set (any value), reverse the
342*6881a400Schristos      order in which initialization functions are called.  This is
343*6881a400Schristos      used by the testsuite.  */
344*6881a400Schristos   if (getenv ("GDB_REVERSE_INIT_FUNCTIONS") != nullptr)
345*6881a400Schristos     std::reverse (functions.begin (), functions.end ());
346*6881a400Schristos 
347*6881a400Schristos   for (initialize_file_ftype *function : functions)
348*6881a400Schristos     function ();
349be560990Sskrll }
350