aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-cmds.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-08-06 17:13:27 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-08-06 17:13:27 +0000
commitf3c8a52aceef30de05174ef7232578535a9cb32a (patch)
treef5562d01451c6f6b0b238902a637fb7ab6aa4a29 /gdb/cli/cli-cmds.c
parent77a9102503a69f208ab08de7ef467701fc3d5268 (diff)
downloadgdb-f3c8a52aceef30de05174ef7232578535a9cb32a.zip
gdb-f3c8a52aceef30de05174ef7232578535a9cb32a.tar.gz
gdb-f3c8a52aceef30de05174ef7232578535a9cb32a.tar.bz2
gdb/
2012-08-06 Nathaniel Flath <flat0103@gmail.com> * NEWS: New entry for 'cd' default parameters. * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment. gdb/doc/ 2012-08-06 Nathaniel Flath <flat0103@gmail.com> * gdb.texinfo (Working Directory): Added information about new default argument for 'cd' command.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r--gdb/cli/cli-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index f2328e8..d9849ca 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -365,7 +365,7 @@ cd_command (char *dir, int from_tty)
dont_repeat ();
if (dir == 0)
- error_no_arg (_("new working directory"));
+ dir = "~";
dir = tilde_expand (dir);
make_cleanup (xfree, dir);