+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.
+
2012-08-03 Tom Tromey <tromey@redhat.com>
* dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
*** Changes since GDB 7.5
+* The 'cd' command now defaults to using '~' (the home directory) if not
+ given an argument.
+
* New configure options
--enable-libmcheck/--disable-libmcheck
dont_repeat ();
if (dir == 0)
- error_no_arg (_("new working directory"));
+ dir = "~";
dir = tilde_expand (dir);
make_cleanup (xfree, dir);
+2012-08-06 Nathaniel Flath <flat0103@gmail.com>
+
+ * gdb.texinfo (Working Directory): Added information about new
+ default argument for 'cd' command.
+
2012-08-06 Yao Qi <yao@codesourcery.com>
* gdb.texinfo (Remote Configuration): Add kindex for 'set
@table @code
@kindex cd
@cindex change working directory
-@item cd @var{directory}
-Set the @value{GDBN} working directory to @var{directory}.
+@item cd @r{[}@var{directory}@r{]}
+Set the @value{GDBN} working directory to @var{directory}. If not
+given, @var{directory} uses @file{'~'}.
@kindex pwd
@item pwd