aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2006-10-27 22:23:21 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2006-10-27 22:23:21 +0000
commitf73adfeb8bae36885e6ea248d12223ab0d5eb9cb (patch)
tree6c7e46077a639c83fbfef0d0dff8f1ecebaca3e7 /gdb/infcmd.c
parent86157c207017c3d7df49efad2328697b278f50c2 (diff)
downloadfsf-binutils-gdb-f73adfeb8bae36885e6ea248d12223ab0d5eb9cb.zip
fsf-binutils-gdb-f73adfeb8bae36885e6ea248d12223ab0d5eb9cb.tar.gz
fsf-binutils-gdb-f73adfeb8bae36885e6ea248d12223ab0d5eb9cb.tar.bz2
* 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 3c4aa32..704fb12 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\