summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2006-10-27 22:23:21 +0000
committerAndreas Schwab <schwab@suse.de>2006-10-27 22:23:21 +0000
commitbb4c9dddbdf61697478065b0c92682064560dfcb (patch)
treec13f9a4b0fb84f23ff5a0fd0079a174213559d97 /gdb/cli
parent79d722243676ef636a300383aae0b1b952c2298f (diff)
downloadgdb-bb4c9dddbdf61697478065b0c92682064560dfcb.tar.gz
* gdbcmd.h (detachlist): Declare.
* infcmd.c (_initialize_infcmd): Define "detach" as prefix command. * linux-fork.c (_initialize_linux_fork): Rename "detach-checkpoint" to "detach checkpoint" and "detach-fork" to "detach fork". * cli/cli-cmds.c (detachlist): Define. (init_cmd_lists): Initialize it. * cli/cli-cmds.h (detachlist): Declare. doc/: * gdb.texinfo (Processes): Rename "detach-fork" to "detach fork". testsuite/: * gdb.base/multi-forks.exp: Use "detach fork" instead of "detach-fork".
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c5
-rw-r--r--gdb/cli/cli-cmds.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index fdff3942cfc..5359ed47264 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -122,6 +122,10 @@ struct cmd_list_element *stoplist;
struct cmd_list_element *deletelist;
+/* Chain containing all defined detach subcommands. */
+
+struct cmd_list_element *detachlist;
+
/* Chain containing all defined "enable breakpoint" subcommands. */
struct cmd_list_element *enablebreaklist;
@@ -1089,6 +1093,7 @@ init_cmd_lists (void)
togglelist = NULL;
stoplist = NULL;
deletelist = NULL;
+ detachlist = NULL;
enablebreaklist = NULL;
setlist = NULL;
unsetlist = NULL;
diff --git a/gdb/cli/cli-cmds.h b/gdb/cli/cli-cmds.h
index 228e6aaf163..6d97b19725d 100644
--- a/gdb/cli/cli-cmds.h
+++ b/gdb/cli/cli-cmds.h
@@ -1,5 +1,5 @@
/* Header file for GDB CLI command implementation library.
- Copyright (c) 2000 Free Software Foundation, Inc.
+ Copyright (c) 2000,2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -39,6 +39,10 @@ extern struct cmd_list_element *disablelist;
extern struct cmd_list_element *deletelist;
+/* Chain containing all defined detach subcommands. */
+
+extern struct cmd_list_element *detachlist;
+
/* Chain containing all defined toggle subcommands. */
extern struct cmd_list_element *togglelist;