From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32384 invoked by alias); 8 Nov 2012 21:56:27 -0000 Received: (qmail 32376 invoked by uid 22791); 8 Nov 2012 21:56:26 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Nov 2012 21:56:23 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7D5E71C77A0; Thu, 8 Nov 2012 16:56:22 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZTrY3pDiDPXx; Thu, 8 Nov 2012 16:56:22 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 4B62A1C6CA3; Thu, 8 Nov 2012 16:56:22 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 86C74C691E; Thu, 8 Nov 2012 13:56:12 -0800 (PST) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Joel Brobecker Subject: [RFA/doco] document gdb.init check only performed in home directory Date: Thu, 08 Nov 2012 21:56:00 -0000 Message-Id: <1352411767-10263-1-git-send-email-brobecker@adacore.com> 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-11/txt/msg00216.txt.bz2 Hello, One of my coworkers working on Windows pointed out that GDB wasn't warning him if a gdb.ini file existed in the current directory. The documentation is a little ambiguous and might be suggesting that GDB checks all locations where a gdbinit might be located for gdb.ini files. As far as I can tell, the use of gdb.ini for Windows was discontinued around the end of 2001. I really don't see the point of adding even more code to try to warn users about a file that we haven't used in over 10 years. For now, I suggest the attached patch, which just clarifies the current situation regarding this warning. gdb/doc/ChangeLog: * gdb.texinfo (Startup): Clarify scope of gdb.ini warning for Windows ports. Tested on x86_64-linux. OK to apply? Thanks, -- Joel --- gdb/doc/gdb.texinfo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index c2c7745..19c329b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1367,8 +1367,8 @@ The @value{GDBN} init files are normally called @file{.gdbinit}. The DJGPP port of @value{GDBN} uses the name @file{gdb.ini}, due to the limitations of file names imposed by DOS filesystems. The Windows ports of @value{GDBN} use the standard name, but if they find a -@file{gdb.ini} file, they warn you about that and suggest to rename -the file to the standard name. +@file{gdb.ini} file in your home directory, they warn you about that +and suggest to rename the file to the standard name. @node Quitting GDB -- 1.7.9.5