From: Nathaniel Flath <flat0103@gmail.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
tromey@redhat.com, gdb-patches@sourceware.org
Subject: Re: [PATCH] cd command defaults to ~
Date: Mon, 06 Aug 2012 09:15:00 -0000 [thread overview]
Message-ID: <CAPrg3HCsF=3Fv8YNZ5LrCdepNYX_J-+awv-ZAj_XNmhSGdFMbQ@mail.gmail.com> (raw)
In-Reply-To: <CAPrg3HDpFytQmCHe2GSzW=_ckAcNXN5UPJ5qPWDPHgwzY8RWzw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]
Thanks,
Nathaniel Flath
ChangeLog
gdb/
2012-07-21 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.
doc/
2012-07-21 Nathaniel Flath <flat0103@gmail.com>
* gdb.texinfo (Working Directory): Added information about new
default argument for 'cd' command.
On Mon, Aug 6, 2012 at 1:54 AM, Nathaniel Flath <flat0103@gmail.com> wrote:
>
> Here it is, with the patch attached.
>
>
> Thanks,
> Nathaniel Flath
>
>
>
> ChangeLog
> gdb/
> 2012-07-21 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.
>
> doc/
> 2012-07-21 Nathaniel Flath <flat0103@gmail.com>
>
> * gdb.texinfo (Working Directory): Added information about new
> default argument for 'cd' command.
>
>
> On Sat, Aug 4, 2012 at 11:27 AM, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
> > On Sat, 04 Aug 2012 20:16:32 +0200, Nathaniel Flath wrote:
> >> Is there anything else I need to do, anyone?
> >
> > The patch is not applicable:
> > patching file NEWS
> > patch: **** malformed patch at line 34: * GDB now supports x32 ABI. Visit <http://sites.google.com/site/x32abi/>
> >
> > Unaware why. Most probably the issue gets resolved if you attach the patch
> > (and not inline it). It would be better to reconfigure your MUA so that the
> > inserted patch info mail text is not corrupted.
> >
> >
> > Thanks,
> > Jan
>
[-- Attachment #2: cd.patch --]
[-- Type: application/octet-stream, Size: 1579 bytes --]
Index: NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.533
diff -u -r1.533 NEWS
--- NEWS 4 Jul 2012 20:49:56 -0000 1.533
+++ NEWS 6 Aug 2012 08:51:48 -0000
@@ -3,6 +3,9 @@
*** Changes since GDB 7.4
+* The 'cd' command now defaults to using '~' (the home directory) if not
+ given an argument.
+
* GDB now supports x32 ABI. Visit <http://sites.google.com/site/x32abi/>
for more x32 ABI info.
Index: cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.131
diff -u -r1.131 cli-cmds.c
--- cli/cli-cmds.c 13 Jun 2012 15:47:15 -0000 1.131
+++ cli/cli-cmds.c 6 Aug 2012 08:51:48 -0000
@@ -367,7 +367,7 @@
dont_repeat ();
if (dir == 0)
- error_no_arg (_("new working directory"));
+ dir = "~";
dir = tilde_expand (dir);
make_cleanup (xfree, dir);
Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.990
diff -u -r1.990 gdb.texinfo
--- doc/gdb.texinfo 5 Jul 2012 01:08:24 -0000 1.990
+++ doc/gdb.texinfo 6 Aug 2012 08:51:49 -0000
@@ -2274,8 +2274,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
next prev parent reply other threads:[~2012-08-06 9:15 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-05 2:31 Nathaniel Flath
2012-07-05 14:00 ` Jan Kratochvil
2012-07-05 17:34 ` Nathaniel Flath
2012-07-05 17:50 ` Eli Zaretskii
2012-07-05 18:09 ` Tom Tromey
2012-07-07 4:29 ` Nathaniel Flath
2012-07-07 6:17 ` Jan Kratochvil
[not found] ` <CAPrg3HBCBs5tmuM9qH=Q=_PgPVb8Rb-=fbPX_ZSy1dEWgKcY9g@mail.gmail.com>
[not found] ` <20120722163408.GA20790@host2.jankratochvil.net>
2012-07-22 16:37 ` Nathaniel Flath
2012-07-22 16:50 ` Jan Kratochvil
2012-07-23 7:42 ` Sergio Durigan Junior
2012-07-23 14:14 ` Tom Tromey
2012-08-04 5:55 ` Nathaniel Flath
2012-08-04 6:05 ` Sergio Durigan Junior
2012-08-04 7:11 ` Eli Zaretskii
2012-08-04 17:10 ` Nathaniel Flath
2012-08-04 17:16 ` Eli Zaretskii
2012-08-04 18:16 ` Nathaniel Flath
2012-08-04 18:28 ` Jan Kratochvil
[not found] ` <CAPrg3HDpFytQmCHe2GSzW=_ckAcNXN5UPJ5qPWDPHgwzY8RWzw@mail.gmail.com>
2012-08-06 9:15 ` Nathaniel Flath [this message]
2012-08-06 18:43 ` [commit] " Jan Kratochvil
2012-08-07 5:52 ` [obv] testsuite: default.exp: Fix cd regression [Re: [commit] [PATCH] cd command defaults to ~] Jan Kratochvil
2012-08-07 7:31 ` [commit] [PATCH] cd command defaults to ~ Nathaniel Flath
2012-08-07 7:53 ` Jan Kratochvil
2012-08-07 16:02 ` Nathaniel Flath
2012-07-22 17:13 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPrg3HCsF=3Fv8YNZ5LrCdepNYX_J-+awv-ZAj_XNmhSGdFMbQ@mail.gmail.com' \
--to=flat0103@gmail.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox