void init (void) { /* Figure out the machine endianness. */ determine_endianness (); /* Must be first */ init_variables (); init_units (); set_fpu (); init_compile_options (); #ifdef DEBUG /* Check for special command lines. */ if (argc > 1 && strcmp (argv[1], "--help") == 0) show_variables (); /* if (argc > 1 && strcmp(argv[1], "--resume") == 0) resume(); */ #endif if (options.backtrace == 1) find_addr2line (); random_seed_i4 (NULL, NULL, NULL); }
/* Helper function for set_options because we need to access the global variable options which is not seen in set_options. */ static void maybe_find_addr2line (void) { if (options.backtrace == -1) find_addr2line (); }