From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6958 invoked by alias); 6 Aug 2012 18:43:53 -0000 Received: (qmail 6945 invoked by uid 22791); 6 Aug 2012 18:43:51 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,TW_BM,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Aug 2012 18:43:38 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q76IhZRM020395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Aug 2012 14:43:36 -0400 Received: from host2.jankratochvil.net (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q76HEc5m014281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 6 Aug 2012 13:14:40 -0400 Date: Mon, 06 Aug 2012 18:43:00 -0000 From: Jan Kratochvil To: Nathaniel Flath Cc: Eli Zaretskii , tromey@redhat.com, gdb-patches@sourceware.org Subject: [commit] [PATCH] cd command defaults to ~ Message-ID: <20120806171437.GA10148@host2.jankratochvil.net> References: <20120722164948.GA20982@host2.jankratochvil.net> <87sjcisgyj.fsf@fleche.redhat.com> <83d337b0a0.fsf@gnu.org> <83628ybmsl.fsf@gnu.org> <20120804182756.GA25594@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00191.txt.bz2 On Mon, 06 Aug 2012 11:14:57 +0200, Nathaniel Flath wrote: > gdb/ > 2012-07-21 Nathaniel Flath > > * NEWS: New entry for 'cd' default parameters. > * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment. > > doc/ gdb/doc/ > 2012-07-21 Nathaniel Flath > > * gdb.texinfo (Working Directory): Added information about new > default argument for 'cd' command. ^^ Here the indentation should be two spaces left, ignoring '* ' above. The NEWS entry was against too old tree, adjusted its position (to be post-7.5). Thanks, Jan http://sourceware.org/ml/gdb-cvs/2012-08/msg00048.html --- src/gdb/ChangeLog 2012/08/03 20:52:46 1.14559 +++ src/gdb/ChangeLog 2012/08/06 17:13:23 1.14560 @@ -1,3 +1,8 @@ +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. + 2012-08-03 Tom Tromey * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before --- src/gdb/NEWS 2012/07/26 15:28:21 1.537 +++ src/gdb/NEWS 2012/08/06 17:13:26 1.538 @@ -3,6 +3,9 @@ *** 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 --- src/gdb/cli/cli-cmds.c 2012/07/26 16:57:22 1.132 +++ src/gdb/cli/cli-cmds.c 2012/08/06 17:13:26 1.133 @@ -365,7 +365,7 @@ dont_repeat (); if (dir == 0) - error_no_arg (_("new working directory")); + dir = "~"; dir = tilde_expand (dir); make_cleanup (xfree, dir); --- src/gdb/doc/ChangeLog 2012/08/06 14:28:45 1.1352 +++ src/gdb/doc/ChangeLog 2012/08/06 17:13:27 1.1353 @@ -1,3 +1,8 @@ +2012-08-06 Nathaniel Flath + + * gdb.texinfo (Working Directory): Added information about new + default argument for 'cd' command. + 2012-08-06 Yao Qi * gdb.texinfo (Remote Configuration): Add kindex for 'set --- src/gdb/doc/gdb.texinfo 2012/08/06 14:28:45 1.996 +++ src/gdb/doc/gdb.texinfo 2012/08/06 17:13:27 1.997 @@ -2267,8 +2267,9 @@ @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