From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16471 invoked by alias); 30 Mar 2012 07:26:25 -0000 Received: (qmail 16447 invoked by uid 22791); 30 Mar 2012 07:26:23 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Mar 2012 07:26:07 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M1O00100SI1L100@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Fri, 30 Mar 2012 10:25:46 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.228.100.223]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M1O001LLSMTJJ40@a-mtaout23.012.net.il>; Fri, 30 Mar 2012 10:25:41 +0300 (IDT) Date: Fri, 30 Mar 2012 07:26:00 -0000 From: Eli Zaretskii Subject: Re: [patch#2 3/6] set auto-load local-gdbinit warn-and-* In-reply-to: <20120329091258.GD25449@host2.jankratochvil.net> To: Jan Kratochvil Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83hax61rey.fsf@gnu.org> References: <20120329091258.GD25449@host2.jankratochvil.net> 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-03/txt/msg01040.txt.bz2 > Date: Thu, 29 Mar 2012 11:12:58 +0200 > From: Jan Kratochvil > > it does not change any default behavior (that's done in [patch 6/6]) but it > gives an option to warn on .gdbinit files (which become deprecated). Thanks. > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -141,7 +141,7 @@ set auto-load python-scripts on|off > show auto-load python-scripts > Control auto-loading of Python script files. > > -set auto-load local-gdbinit on|off > +set auto-load local-gdbinit on|off|warn-and-on|warn-and-off > show auto-load local-gdbinit > Control loading of init file (.gdbinit) from current directory. OK. > If enabled, canned sequences of commands are loaded when debugger starts\n\ > from .gdbinit file in current directory. Such files are deprecated,\n\ > use script associated with inferior executable file instead.\n\ ^^^^^^^^^^ Either "use a script" or "use scripts", probably the former. > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -1287,13 +1287,16 @@ Processes command line options and operands. > @item > Reads and executes the commands from init file (if any) in the current > working directory as long as @samp{set auto-load local-gdbinit} is set to > -@samp{yes} (@pxref{Current Directory Init File}). > +@samp{yes} or @samp{warn-and-yes} (@pxref{Current Directory Init File}). > This is only done if the current directory is > different from your home directory. Thus, you can have more than one > init file, one generic in your home directory, and another, specific > to the program you are debugging, in the directory where you invoke > @value{GDBN}. > > +This feature is deprecated, please use @ref{objfile-gdb.rc file} instead; "objfile" should be in @var, and it should explain what is "objfile". > gdb-scripts: Canned sequences of commands auto-loading is on. > libthread-db: Inferior specific libthread_db auto-loading is on. > -local-gdbinit: Current directory .gdbinit script auto-loading is on. > +local-gdbinit: Current directory .gdbinit script auto-loading is yes. Why "yes"? > +as the @samp{local-gdbinit} feature is deprecated in the favor "in favor", without "the". > +of @xref{objfile-gdb.rc file}. Again, "objfile" should be in @var. OK with those changes. > + warning (_("Reading file .gdbinit in current directory but it " > + "has been deprecated and the reading will be " > + "removed. %s"), "reading will be removed" is very ambiguous. Suggest something like Reading of .gdbinit files in current directory has been deprecated and will be removed in a future version of GDB.