summaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
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/infcmd.c
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/infcmd.c')
-rw-r--r--gdb/infcmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 3c4aa329d69..704fb12fa35 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2123,10 +2123,11 @@ directory, or (if not found there) using the source file search path\n\
(see the \"directory\" command). You can also use the \"file\" command\n\
to specify the program, and to load its symbol table."));
- add_com ("detach", class_run, detach_command, _("\
+ add_prefix_cmd ("detach", class_run, detach_command, _("\
Detach a process or file previously attached.\n\
If a process, it is no longer traced, and it continues its execution. If\n\
-you were debugging a file, the file is closed and gdb no longer accesses it."));
+you were debugging a file, the file is closed and gdb no longer accesses it."),
+ &detachlist, "detach ", 0, &cmdlist);
add_com ("disconnect", class_run, disconnect_command, _("\
Disconnect from a target.\n\