aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-06-19 14:59:32 -0600
committerTom Tromey <tom@tromey.com>2022-08-19 08:23:20 -0600
commit37163dcf1a1b32115a49a51410e352366cc02fbc (patch)
tree1dc2314d4c10b1a77d90431786f45f01c7ab5a0a /gdb/cli
parentd7c83303890edf9b59a93fb0ed4942f80b734af7 (diff)
downloadgdb-37163dcf1a1b32115a49a51410e352366cc02fbc.zip
gdb-37163dcf1a1b32115a49a51410e352366cc02fbc.tar.gz
gdb-37163dcf1a1b32115a49a51410e352366cc02fbc.tar.bz2
Remove two initialization functions
I noticed a couple of initialization functions that aren't really needed, and that currently require explicit calls in gdb_init. This patch removes these functions, simplifying gdb a little. Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c8
-rw-r--r--gdb/cli/cli-cmds.h2
2 files changed, 1 insertions, 9 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 18fb6e6..d570719 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -76,7 +76,7 @@ static void filter_sals (std::vector<symtab_and_line> &);
/* See cli-cmds.h. */
-unsigned int max_user_call_depth;
+unsigned int max_user_call_depth = 1024;
/* Define all cmd_list_elements. */
@@ -2105,12 +2105,6 @@ filter_sals (std::vector<symtab_and_line> &sals)
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,
diff --git a/gdb/cli/cli-cmds.h b/gdb/cli/cli-cmds.h
index 770abec..89ad0d1 100644
--- a/gdb/cli/cli-cmds.h
+++ b/gdb/cli/cli-cmds.h
@@ -151,8 +151,6 @@ extern unsigned int max_user_call_depth;
/* Exported to gdb/top.c */
-void init_cmd_lists (void);
-
int is_complete_command (struct cmd_list_element *cmd);
/* Exported to gdb/main.c */