From f3c8a52aceef30de05174ef7232578535a9cb32a Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 6 Aug 2012 17:13:27 +0000 Subject: gdb/ 2012-08-06 Nathaniel Flath * 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 * gdb.texinfo (Working Directory): Added information about new default argument for 'cd' command. --- gdb/cli/cli-cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/cli/cli-cmds.c') 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); -- cgit v1.1