defs.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. /* *INDENT-OFF* */ /* ATTRIBUTE_PRINTF confuses indent, avoid running it
  2. for now. */
  3. /* Basic, host-specific, and target-specific definitions for GDB.
  4. Copyright (C) 1986-2022 Free Software Foundation, Inc.
  5. This file is part of GDB.
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  16. #ifndef DEFS_H
  17. #define DEFS_H
  18. #ifdef GDBSERVER
  19. # error gdbserver should not include gdb/defs.h
  20. #endif
  21. #include "gdbsupport/common-defs.h"
  22. #undef PACKAGE
  23. #undef PACKAGE_NAME
  24. #undef PACKAGE_VERSION
  25. #undef PACKAGE_STRING
  26. #undef PACKAGE_TARNAME
  27. #include <config.h>
  28. #include "bfd.h"
  29. #include <sys/types.h>
  30. #include <limits.h>
  31. /* The libdecnumber library, on which GDB depends, includes a header file
  32. called gstdint.h instead of relying directly on stdint.h. GDB, on the
  33. other hand, includes stdint.h directly, relying on the fact that gnulib
  34. generates a copy if the system doesn't provide one or if it is missing
  35. some features. Unfortunately, gstdint.h and stdint.h cannot be included
  36. at the same time, which may happen when we include a file from
  37. libdecnumber.
  38. The following macro definition effectively prevents the inclusion of
  39. gstdint.h, as all the definitions it provides are guarded against
  40. the GCC_GENERATED_STDINT_H macro. We already have gnulib/stdint.h
  41. included, so it's ok to blank out gstdint.h. */
  42. #define GCC_GENERATED_STDINT_H 1
  43. #include <unistd.h>
  44. #include <fcntl.h>
  45. #include "gdb_wchar.h"
  46. #include "ui-file.h"
  47. #include "gdbsupport/host-defs.h"
  48. #include "gdbsupport/enum-flags.h"
  49. #include "gdbsupport/array-view.h"
  50. /* Scope types enumerator. List the types of scopes the compiler will
  51. accept. */
  52. enum compile_i_scope_types
  53. {
  54. COMPILE_I_INVALID_SCOPE,
  55. /* A simple scope. Wrap an expression into a simple scope that
  56. takes no arguments, returns no value, and uses the generic
  57. function name "_gdb_expr". */
  58. COMPILE_I_SIMPLE_SCOPE,
  59. /* Do not wrap the expression,
  60. it has to provide function "_gdb_expr" on its own. */
  61. COMPILE_I_RAW_SCOPE,
  62. /* A printable expression scope. Wrap an expression into a scope
  63. suitable for the "compile print" command. It uses the generic
  64. function name "_gdb_expr". COMPILE_I_PRINT_ADDRESS_SCOPE variant
  65. is the usual one, taking address of the object.
  66. COMPILE_I_PRINT_VALUE_SCOPE is needed for arrays where the array
  67. name already specifies its address. See get_out_value_type. */
  68. COMPILE_I_PRINT_ADDRESS_SCOPE,
  69. COMPILE_I_PRINT_VALUE_SCOPE,
  70. };
  71. template<typename T>
  72. using RequireLongest = gdb::Requires<gdb::Or<std::is_same<T, LONGEST>,
  73. std::is_same<T, ULONGEST>>>;
  74. /* Just in case they're not defined in stdio.h. */
  75. #ifndef SEEK_SET
  76. #define SEEK_SET 0
  77. #endif
  78. #ifndef SEEK_CUR
  79. #define SEEK_CUR 1
  80. #endif
  81. /* The O_BINARY flag is defined in fcntl.h on some non-Posix platforms.
  82. It is used as an access modifier in calls to open(), where it acts
  83. similarly to the "b" character in fopen()'s MODE argument. On Posix
  84. platforms it should be a no-op, so it is defined as 0 here. This
  85. ensures that the symbol may be used freely elsewhere in gdb. */
  86. #ifndef O_BINARY
  87. #define O_BINARY 0
  88. #endif
  89. #include "hashtab.h"
  90. /* * System root path, used to find libraries etc. */
  91. extern std::string gdb_sysroot;
  92. /* * GDB datadir, used to store data files. */
  93. extern std::string gdb_datadir;
  94. /* * If not empty, the possibly relocated path to python's "lib" directory
  95. specified with --with-python. */
  96. extern std::string python_libdir;
  97. /* * Search path for separate debug files. */
  98. extern std::string debug_file_directory;
  99. /* GDB's SIGINT handler basically sets a flag; code that might take a
  100. long time before it gets back to the event loop, and which ought to
  101. be interruptible, checks this flag using the QUIT macro, which, if
  102. GDB has the terminal, throws a quit exception.
  103. In addition to setting a flag, the SIGINT handler also marks a
  104. select/poll-able file descriptor as read-ready. That is used by
  105. interruptible_select in order to support interrupting blocking I/O
  106. in a race-free manner.
  107. These functions use the extension_language_ops API to allow extension
  108. language(s) and GDB SIGINT handling to coexist seamlessly. */
  109. /* * Evaluate to non-zero if the quit flag is set, zero otherwise. This
  110. will clear the quit flag as a side effect. */
  111. extern int check_quit_flag (void);
  112. /* * Set the quit flag. */
  113. extern void set_quit_flag (void);
  114. /* The current quit handler (and its type). This is called from the
  115. QUIT macro. See default_quit_handler below for default behavior.
  116. Parts of GDB temporarily override this to e.g., completely suppress
  117. Ctrl-C because it would not be safe to throw. E.g., normally, you
  118. wouldn't want to quit between a RSP command and its response, as
  119. that would break the communication with the target, but you may
  120. still want to intercept the Ctrl-C and offer to disconnect if the
  121. user presses Ctrl-C multiple times while the target is stuck
  122. waiting for the wedged remote stub. */
  123. typedef void (quit_handler_ftype) (void);
  124. extern quit_handler_ftype *quit_handler;
  125. /* The default quit handler. Checks whether Ctrl-C was pressed, and
  126. if so:
  127. - If GDB owns the terminal, throws a quit exception.
  128. - If GDB does not own the terminal, forwards the Ctrl-C to the
  129. target.
  130. */
  131. extern void default_quit_handler (void);
  132. /* Flag that function quit should call quit_force. */
  133. extern volatile int sync_quit_force_run;
  134. extern void quit (void);
  135. /* Helper for the QUIT macro. */
  136. extern void maybe_quit (void);
  137. /* Check whether a Ctrl-C was typed, and if so, call the current quit
  138. handler. */
  139. #define QUIT maybe_quit ()
  140. /* Set the serial event associated with the quit flag. */
  141. extern void quit_serial_event_set (void);
  142. /* Clear the serial event associated with the quit flag. */
  143. extern void quit_serial_event_clear (void);
  144. /* * Languages represented in the symbol table and elsewhere.
  145. This should probably be in language.h, but since enum's can't
  146. be forward declared to satisfy opaque references before their
  147. actual definition, needs to be here.
  148. The constants here are in priority order. In particular,
  149. demangling is attempted according to this order.
  150. Note that there's ambiguity between the mangling schemes of some of
  151. these languages, so some symbols could be successfully demangled by
  152. several languages. For that reason, the constants here are sorted
  153. in the order we'll attempt demangling them. For example: Rust uses
  154. C++ mangling, so must come after C++; Ada must come last (see
  155. ada_sniff_from_mangled_name). (Keep this order in sync with the
  156. 'languages' array in language.c.) */
  157. enum language
  158. {
  159. language_unknown, /* Language not known */
  160. language_auto, /* Placeholder for automatic setting */
  161. language_c, /* C */
  162. language_objc, /* Objective-C */
  163. language_cplus, /* C++ */
  164. language_d, /* D */
  165. language_go, /* Go */
  166. language_fortran, /* Fortran */
  167. language_m2, /* Modula-2 */
  168. language_asm, /* Assembly language */
  169. language_pascal, /* Pascal */
  170. language_opencl, /* OpenCL */
  171. language_rust, /* Rust */
  172. language_minimal, /* All other languages, minimal support only */
  173. language_ada, /* Ada */
  174. nr_languages
  175. };
  176. /* The number of bits needed to represent all languages, with enough
  177. padding to allow for reasonable growth. */
  178. #define LANGUAGE_BITS 5
  179. gdb_static_assert (nr_languages <= (1 << LANGUAGE_BITS));
  180. enum precision_type
  181. {
  182. single_precision,
  183. double_precision,
  184. unspecified_precision
  185. };
  186. /* * A generic, not quite boolean, enumeration. This is used for
  187. set/show commands in which the options are on/off/automatic. */
  188. enum auto_boolean
  189. {
  190. AUTO_BOOLEAN_TRUE,
  191. AUTO_BOOLEAN_FALSE,
  192. AUTO_BOOLEAN_AUTO
  193. };
  194. /* * Potential ways that a function can return a value of a given
  195. type. */
  196. enum return_value_convention
  197. {
  198. /* * Where the return value has been squeezed into one or more
  199. registers. */
  200. RETURN_VALUE_REGISTER_CONVENTION,
  201. /* * Commonly known as the "struct return convention". The caller
  202. passes an additional hidden first parameter to the caller. That
  203. parameter contains the address at which the value being returned
  204. should be stored. While typically, and historically, used for
  205. large structs, this is convention is applied to values of many
  206. different types. */
  207. RETURN_VALUE_STRUCT_CONVENTION,
  208. /* * Like the "struct return convention" above, but where the ABI
  209. guarantees that the called function stores the address at which
  210. the value being returned is stored in a well-defined location,
  211. such as a register or memory slot in the stack frame. Don't use
  212. this if the ABI doesn't explicitly guarantees this. */
  213. RETURN_VALUE_ABI_RETURNS_ADDRESS,
  214. /* * Like the "struct return convention" above, but where the ABI
  215. guarantees that the address at which the value being returned is
  216. stored will be available in a well-defined location, such as a
  217. register or memory slot in the stack frame. Don't use this if
  218. the ABI doesn't explicitly guarantees this. */
  219. RETURN_VALUE_ABI_PRESERVES_ADDRESS,
  220. };
  221. /* Needed for various prototypes */
  222. struct symtab;
  223. struct breakpoint;
  224. struct frame_info;
  225. struct gdbarch;
  226. struct value;
  227. /* From main.c. */
  228. /* This really belong in utils.c (path-utils.c?), but it references some
  229. globals that are currently only available to main.c. */
  230. extern std::string relocate_gdb_directory (const char *initial, bool relocatable);
  231. /* Annotation stuff. */
  232. extern int annotation_level; /* in stack.c */
  233. /* From regex.c or libc. BSD 4.4 declares this with the argument type as
  234. "const char *" in unistd.h, so we can't declare the argument
  235. as "char *". */
  236. EXTERN_C char *re_comp (const char *);
  237. /* From symfile.c */
  238. extern void symbol_file_command (const char *, int);
  239. /* From top.c */
  240. typedef void initialize_file_ftype (void);
  241. extern char *gdb_readline_wrapper (const char *);
  242. extern const char *command_line_input (const char *, const char *);
  243. extern void print_prompt (void);
  244. struct ui;
  245. extern int input_interactive_p (struct ui *);
  246. extern bool info_verbose;
  247. /* From printcmd.c */
  248. extern void set_next_address (struct gdbarch *, CORE_ADDR);
  249. extern int print_address_symbolic (struct gdbarch *, CORE_ADDR,
  250. struct ui_file *, int,
  251. const char *);
  252. extern void print_address (struct gdbarch *, CORE_ADDR, struct ui_file *);
  253. extern const char *pc_prefix (CORE_ADDR);
  254. /* From exec.c */
  255. /* * Process memory area starting at ADDR with length SIZE. Area is
  256. readable iff READ is non-zero, writable if WRITE is non-zero,
  257. executable if EXEC is non-zero. Area is possibly changed against
  258. its original file based copy if MODIFIED is non-zero. DATA is
  259. passed without changes from a caller. */
  260. typedef int (*find_memory_region_ftype) (CORE_ADDR addr, unsigned long size,
  261. int read, int write, int exec,
  262. int modified, void *data);
  263. /* * Possible lvalue types. Like enum language, this should be in
  264. value.h, but needs to be here for the same reason. */
  265. enum lval_type
  266. {
  267. /* * Not an lval. */
  268. not_lval,
  269. /* * In memory. */
  270. lval_memory,
  271. /* * In a register. Registers are relative to a frame. */
  272. lval_register,
  273. /* * In a gdb internal variable. */
  274. lval_internalvar,
  275. /* * Value encapsulates a callable defined in an extension language. */
  276. lval_xcallable,
  277. /* * Part of a gdb internal variable (structure field). */
  278. lval_internalvar_component,
  279. /* * Value's bits are fetched and stored using functions provided
  280. by its creator. */
  281. lval_computed
  282. };
  283. /* * Parameters of the "info proc" command. */
  284. enum info_proc_what
  285. {
  286. /* * Display the default cmdline, cwd and exe outputs. */
  287. IP_MINIMAL,
  288. /* * Display `info proc mappings'. */
  289. IP_MAPPINGS,
  290. /* * Display `info proc status'. */
  291. IP_STATUS,
  292. /* * Display `info proc stat'. */
  293. IP_STAT,
  294. /* * Display `info proc cmdline'. */
  295. IP_CMDLINE,
  296. /* * Display `info proc exe'. */
  297. IP_EXE,
  298. /* * Display `info proc cwd'. */
  299. IP_CWD,
  300. /* * Display `info proc files'. */
  301. IP_FILES,
  302. /* * Display all of the above. */
  303. IP_ALL
  304. };
  305. /* * Default radixes for input and output. Only some values supported. */
  306. extern unsigned input_radix;
  307. extern unsigned output_radix;
  308. /* * Possibilities for prettyformat parameters to routines which print
  309. things. Like enum language, this should be in value.h, but needs
  310. to be here for the same reason. FIXME: If we can eliminate this
  311. as an arg to LA_VAL_PRINT, then we can probably move it back to
  312. value.h. */
  313. enum val_prettyformat
  314. {
  315. Val_no_prettyformat = 0,
  316. Val_prettyformat,
  317. /* * Use the default setting which the user has specified. */
  318. Val_prettyformat_default
  319. };
  320. /* * Optional native machine support. Non-native (and possibly pure
  321. multi-arch) targets do not need a "nm.h" file. This will be a
  322. symlink to one of the nm-*.h files, built by the `configure'
  323. script. */
  324. #ifdef GDB_NM_FILE
  325. #include "nm.h"
  326. #endif
  327. /* Assume that fopen accepts the letter "b" in the mode string.
  328. It is demanded by ISO C9X, and should be supported on all
  329. platforms that claim to have a standard-conforming C library. On
  330. true POSIX systems it will be ignored and have no effect. There
  331. may still be systems without a standard-conforming C library where
  332. an ISO C9X compiler (GCC) is available. Known examples are SunOS
  333. 4.x and 4.3BSD. This assumption means these systems are no longer
  334. supported. */
  335. #ifndef FOPEN_RB
  336. # include "fopen-bin.h"
  337. #endif
  338. /* Defaults for system-wide constants (if not defined by xm.h, we fake it).
  339. FIXME: Assumes 2's complement arithmetic. */
  340. #if !defined (UINT_MAX)
  341. #define UINT_MAX ((unsigned int)(~0)) /* 0xFFFFFFFF for 32-bits */
  342. #endif
  343. #if !defined (INT_MAX)
  344. #define INT_MAX ((int)(UINT_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */
  345. #endif
  346. #if !defined (INT_MIN)
  347. #define INT_MIN ((int)((int) ~0 ^ INT_MAX)) /* 0x80000000 for 32-bits */
  348. #endif
  349. #if !defined (ULONG_MAX)
  350. #define ULONG_MAX ((unsigned long)(~0L)) /* 0xFFFFFFFF for 32-bits */
  351. #endif
  352. #if !defined (LONG_MAX)
  353. #define LONG_MAX ((long)(ULONG_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */
  354. #endif
  355. #if !defined (ULONGEST_MAX)
  356. #define ULONGEST_MAX (~(ULONGEST)0) /* 0xFFFFFFFFFFFFFFFF for 64-bits */
  357. #endif
  358. #if !defined (LONGEST_MAX) /* 0x7FFFFFFFFFFFFFFF for 64-bits */
  359. #define LONGEST_MAX ((LONGEST)(ULONGEST_MAX >> 1))
  360. #endif
  361. /* * Convert a LONGEST to an int. This is used in contexts (e.g. number of
  362. arguments to a function, number in a value history, register number, etc.)
  363. where the value must not be larger than can fit in an int. */
  364. extern int longest_to_int (LONGEST);
  365. /* Enumerate the requirements a symbol has in order to be evaluated.
  366. These are listed in order of "strength" -- a later entry subsumes
  367. earlier ones. This fine-grained distinction is important because
  368. it allows for the evaluation of a TLS symbol during unwinding --
  369. when unwinding one has access to registers, but not the frame
  370. itself, because that is being constructed. */
  371. enum symbol_needs_kind
  372. {
  373. /* No special requirements -- just memory. */
  374. SYMBOL_NEEDS_NONE,
  375. /* The symbol needs registers. */
  376. SYMBOL_NEEDS_REGISTERS,
  377. /* The symbol needs a frame. */
  378. SYMBOL_NEEDS_FRAME
  379. };
  380. /* In findvar.c. */
  381. template<typename T, typename = RequireLongest<T>>
  382. T extract_integer (gdb::array_view<const gdb_byte>, enum bfd_endian byte_order);
  383. static inline LONGEST
  384. extract_signed_integer (gdb::array_view<const gdb_byte> buf,
  385. enum bfd_endian byte_order)
  386. {
  387. return extract_integer<LONGEST> (buf, byte_order);
  388. }
  389. static inline LONGEST
  390. extract_signed_integer (const gdb_byte *addr, int len,
  391. enum bfd_endian byte_order)
  392. {
  393. return extract_signed_integer (gdb::array_view<const gdb_byte> (addr, len),
  394. byte_order);
  395. }
  396. static inline ULONGEST
  397. extract_unsigned_integer (gdb::array_view<const gdb_byte> buf,
  398. enum bfd_endian byte_order)
  399. {
  400. return extract_integer<ULONGEST> (buf, byte_order);
  401. }
  402. static inline ULONGEST
  403. extract_unsigned_integer (const gdb_byte *addr, int len,
  404. enum bfd_endian byte_order)
  405. {
  406. return extract_unsigned_integer (gdb::array_view<const gdb_byte> (addr, len),
  407. byte_order);
  408. }
  409. extern int extract_long_unsigned_integer (const gdb_byte *, int,
  410. enum bfd_endian, LONGEST *);
  411. extern CORE_ADDR extract_typed_address (const gdb_byte *buf,
  412. struct type *type);
  413. /* All 'store' functions accept a host-format integer and store a
  414. target-format integer at ADDR which is LEN bytes long. */
  415. template<typename T, typename = RequireLongest<T>>
  416. extern void store_integer (gdb_byte *addr, int len, enum bfd_endian byte_order,
  417. T val);
  418. static inline void
  419. store_signed_integer (gdb_byte *addr, int len,
  420. enum bfd_endian byte_order, LONGEST val)
  421. {
  422. return store_integer (addr, len, byte_order, val);
  423. }
  424. static inline void
  425. store_unsigned_integer (gdb_byte *addr, int len,
  426. enum bfd_endian byte_order, ULONGEST val)
  427. {
  428. return store_integer (addr, len, byte_order, val);
  429. }
  430. extern void store_typed_address (gdb_byte *buf, struct type *type,
  431. CORE_ADDR addr);
  432. extern void copy_integer_to_size (gdb_byte *dest, int dest_size,
  433. const gdb_byte *source, int source_size,
  434. bool is_signed, enum bfd_endian byte_order);
  435. /* Hooks for alternate command interfaces. */
  436. struct target_waitstatus;
  437. struct cmd_list_element;
  438. extern void (*deprecated_pre_add_symbol_hook) (const char *);
  439. extern void (*deprecated_post_add_symbol_hook) (void);
  440. extern void (*selected_frame_level_changed_hook) (int);
  441. extern int (*deprecated_ui_loop_hook) (int signo);
  442. extern void (*deprecated_show_load_progress) (const char *section,
  443. unsigned long section_sent,
  444. unsigned long section_size,
  445. unsigned long total_sent,
  446. unsigned long total_size);
  447. extern void (*deprecated_print_frame_info_listing_hook) (struct symtab * s,
  448. int line,
  449. int stopline,
  450. int noerror);
  451. extern int (*deprecated_query_hook) (const char *, va_list)
  452. ATTRIBUTE_FPTR_PRINTF(1,0);
  453. extern void (*deprecated_warning_hook) (const char *, va_list)
  454. ATTRIBUTE_FPTR_PRINTF(1,0);
  455. extern void (*deprecated_readline_begin_hook) (const char *, ...)
  456. ATTRIBUTE_FPTR_PRINTF_1;
  457. extern char *(*deprecated_readline_hook) (const char *);
  458. extern void (*deprecated_readline_end_hook) (void);
  459. extern void (*deprecated_context_hook) (int);
  460. extern ptid_t (*deprecated_target_wait_hook) (ptid_t ptid,
  461. struct target_waitstatus *status,
  462. int options);
  463. extern void (*deprecated_attach_hook) (void);
  464. extern void (*deprecated_detach_hook) (void);
  465. extern void (*deprecated_call_command_hook) (struct cmd_list_element * c,
  466. const char *cmd, int from_tty);
  467. extern int (*deprecated_ui_load_progress_hook) (const char *section,
  468. unsigned long num);
  469. /* If this definition isn't overridden by the header files, assume
  470. that isatty and fileno exist on this system. */
  471. #ifndef ISATTY
  472. #define ISATTY(FP) (isatty (fileno (FP)))
  473. #endif
  474. /* * A width that can achieve a better legibility for GDB MI mode. */
  475. #define GDB_MI_MSG_WIDTH 80
  476. /* From progspace.c */
  477. extern void initialize_progspace (void);
  478. extern void initialize_inferiors (void);
  479. /* * Special block numbers */
  480. enum block_enum
  481. {
  482. GLOBAL_BLOCK = 0,
  483. STATIC_BLOCK = 1,
  484. FIRST_LOCAL_BLOCK = 2
  485. };
  486. /* User selection used in observable.h and multiple print functions. */
  487. enum user_selected_what_flag
  488. {
  489. /* Inferior selected. */
  490. USER_SELECTED_INFERIOR = 1 << 1,
  491. /* Thread selected. */
  492. USER_SELECTED_THREAD = 1 << 2,
  493. /* Frame selected. */
  494. USER_SELECTED_FRAME = 1 << 3
  495. };
  496. DEF_ENUM_FLAGS_TYPE (enum user_selected_what_flag, user_selected_what);
  497. #include "utils.h"
  498. #endif /* #ifndef DEFS_H */