\f
/* See cli-cmds.h. */
-unsigned int max_user_call_depth;
+unsigned int max_user_call_depth = 1024;
/* Define all cmd_list_elements. */
sals.erase (from, sals.end ());
}
-void
-init_cmd_lists (void)
-{
- max_user_call_depth = 1024;
-}
-
static void
show_info_verbose (struct ui_file *file, int from_tty,
struct cmd_list_element *c,
value);
}
-static void
-init_gdb_version_vars (void)
-{
- struct internalvar *major_version_var = create_internalvar ("_gdb_major");
- struct internalvar *minor_version_var = create_internalvar ("_gdb_minor");
- int vmajor = 0, vminor = 0, vrevision = 0;
- sscanf (version, "%d.%d.%d", &vmajor, &vminor, &vrevision);
- set_internalvar_integer (major_version_var, vmajor);
- set_internalvar_integer (minor_version_var, vminor + (vrevision > 0));
-}
-
static void
init_main (void)
{
The first argument is the name of the interpreter to run.\n\
The second argument is the terminal the UI runs on."), &cmdlist);
set_cmd_completer (c, interpreter_completer);
+
+ struct internalvar *major_version_var = create_internalvar ("_gdb_major");
+ struct internalvar *minor_version_var = create_internalvar ("_gdb_minor");
+ int vmajor = 0, vminor = 0, vrevision = 0;
+ sscanf (version, "%d.%d.%d", &vmajor, &vminor, &vrevision);
+ set_internalvar_integer (major_version_var, vmajor);
+ set_internalvar_integer (minor_version_var, vminor + (vrevision > 0));
}
/* See top.h. */
make_final_cleanup (do_chdir_cleanup, xstrdup (current_directory));
#endif
- init_cmd_lists (); /* This needs to be done first. */
-
init_page_info ();
/* Here is where we call all the _initialize_foo routines. */
during startup. */
set_language (language_c);
expected_language = current_language; /* Don't warn about the change. */
-
- /* Create $_gdb_major and $_gdb_minor convenience variables. */
- init_gdb_version_vars ();
}
void _initialize_top ();