This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix "directory" command problem under "set confirm off"
- From: Michael Snyder <msnyder at specifix dot com>
- To: Hidetaka Takano <hidetaka dot takano at glb dot toshiba dot co dot jp>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 06 Mar 2008 12:47:05 -0800
- Subject: Re: [patch] Fix "directory" command problem under "set confirm off"
- References: <002901c87f87$12218bc0$f61e4f9d@MOSTPCMSS20377>
On Thu, 2008-03-06 at 21:39 +0900, Hidetaka Takano wrote:
> Hi maintainer,
>
> I'll send the patch to fix the "directory" command problem.
>
> When the directory command is issued without any parameters,
> the source search path is supposed to be initialized.
> But it doesn't work under "set confirm off".
Hey, you're right! And it doesn't work for batch files, either.
Your patch fixes both.
Do you have a copyright assignment on file?
Since this is a one-line fix, I can check it in for you
(if you wish), but if you're going to be submitting more
patches, you might want to do the paperwork.
>
>
> ChangeLog:
>
> 2008-03-06 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
>
> * source.c (directory_command): modify the determination of
> condition of terminal "from_tty".
>
> Best regard.
> ---
> Hidetaka Takano / Toshiba