From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22567 invoked by alias); 6 Mar 2008 12:39:47 -0000 Received: (qmail 22538 invoked by uid 22791); 6 Mar 2008 12:39:40 -0000 X-Spam-Check-By: sourceware.org Received: from inet-tsb5.toshiba.co.jp (HELO imx2.toshiba.co.jp) (202.33.96.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Mar 2008 12:39:17 +0000 Received: from arc1.toshiba.co.jp ([133.199.194.235]) by imx2.toshiba.co.jp with ESMTP id m26CdEM1029922 for ; Thu, 6 Mar 2008 21:39:14 +0900 (JST) Received: (from root@localhost) by arc1.toshiba.co.jp id m26CdEZ2026974 for gdb-patches@sourceware.org; Thu, 6 Mar 2008 21:39:14 +0900 (JST) Received: from unknown [133.199.192.144] by arc1.toshiba.co.jp with ESMTP id XAA26973; Thu, 6 Mar 2008 21:39:14 +0900 Received: from mx.toshiba.co.jp (localhost [127.0.0.1]) by ovp2.toshiba.co.jp with ESMTP id m26CdE94022676 for ; Thu, 6 Mar 2008 21:39:14 +0900 (JST) Received: from mx.tjsys.co.jp by toshiba.co.jp id m26CdDC0018140; Thu, 6 Mar 2008 21:39:13 +0900 (JST) Received: from voltage-out.tjsys.co.jp (voltage-out.tjsys.co.jp [157.79.3.51]) by mx.tjsys.co.jp (8.12.11/8.12.11) with ESMTP id m26CdD8J003905 for ; Thu, 6 Mar 2008 21:39:13 +0900 (JST) Received: from is-com10 ([157.79.3.71]) by voltage-out.tjsys.co.jp (8.13.1/8.13.1) with SMTP id m26Cd877024229 for ; Thu, 6 Mar 2008 21:39:08 +0900 Received: from MOSTPCMSS20377 ([157.79.30.246]) by ims.tjsys.co.jp (iPlanet Messaging Server 5.2 HotFix 2.10 (built Dec 26 2005)) with ESMTP id <0JXB00L8P756LN@ims.tjsys.co.jp> for gdb-patches@sourceware.org; Thu, 06 Mar 2008 21:39:07 +0900 (JST) Date: Thu, 06 Mar 2008 12:39:00 -0000 From: Hidetaka Takano Subject: [patch] Fix "directory" command problem under "set confirm off" To: gdb-patches@sourceware.org Message-id: <002901c87f87$12218bc0$f61e4f9d@MOSTPCMSS20377> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 11 Content-type: multipart/mixed; boundary="----=_NextPart_000_002A_01C87FD2.820933C0" X-WAuditID: 0803062139070000022711 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: 2008-03/txt/msg00039.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_002A_01C87FD2.820933C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-length: 456 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". ChangeLog: 2008-03-06 Hidetaka Takano * source.c (directory_command): modify the determination of condition of terminal "from_tty". Best regard. --- Hidetaka Takano / Toshiba ------=_NextPart_000_002A_01C87FD2.820933C0 Content-Type: application/octet-stream; name="fix-directory-confirm-off2.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="fix-directory-confirm-off2.diff" Content-length: 556 diff -urpN src-org/gdb/source.c src/gdb/source.c=0A= --- src-org/gdb/source.c 2008-02-09 07:20:48.000000000 +0900=0A= +++ src/gdb/source.c 2008-03-04 13:33:58.000000000 +0900=0A= @@ -369,7 +369,7 @@ directory_command (char *dirname, int fr=0A= /* FIXME, this goes to "delete dir"... */=0A= if (dirname =3D=3D 0)=0A= {=0A= - if (from_tty && query (_("Reinitialize source path to empty? ")))=0A= + if (!from_tty || query (_("Reinitialize source path to empty? ")))= =0A= {=0A= xfree (source_path);=0A= init_source_path ();=0A= ------=_NextPart_000_002A_01C87FD2.820933C0--