From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11215 invoked by alias); 5 Apr 2012 21:20:29 -0000 Received: (qmail 11205 invoked by uid 22791); 5 Apr 2012 21:20:29 -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,SPF_SOFTFAIL,TW_BJ X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Apr 2012 21:20:16 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M2000G00Z5YVE00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Fri, 06 Apr 2012 00:20:15 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.252.114]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M2000GDIZ9NKE80@a-mtaout22.012.net.il>; Fri, 06 Apr 2012 00:20:13 +0300 (IDT) Date: Thu, 05 Apr 2012 21:20:00 -0000 From: Eli Zaretskii Subject: Re: [patch#2 2/6] set auto-load * main part In-reply-to: <20120405182504.GA13165@host2.jankratochvil.net> To: Jan Kratochvil Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83mx6pc1up.fsf@gnu.org> References: <20120329091121.GC25449@host2.jankratochvil.net> <83iphm1rq1.fsf@gnu.org> <20120403183301.GA13483@host2.jankratochvil.net> <83vcleb1lb.fsf@gnu.org> <20120405182504.GA13165@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-04/txt/msg00094.txt.bz2 > Date: Thu, 5 Apr 2012 20:25:04 +0200 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org > > > > # Be aware that system init file (@pxref{System-wide configuration}) > > > # and init files from your home directory (@pxref{Home Directory Init File}) > > > # still get read still get read (as they come from generally trusted > > > # directories). You could use also the @ref{-nx} option to prevent @value{GDBN} > > > # from reading any auto-loaded files instead. > > > > > > IMO says that -nx will disable even objfile-gdb.py, libthread_db.so.1 etc. > > > auto-loading. Or at least it is ambiguous in such way. > > > > Point taken, but then what _did_ you mean by "very every"? > > I wanted to say that if you want to prevent loading any kind of file then you > have to use both -nx and "set auto-load no". Ah, I see I missed the other interpretation of "also". So here's a revised suggestion: Be aware that system init file (@pxref{System-wide configuration}) and init files from your home directory (@pxref{Home Directory Init File}) still get read (as they come from generally trusted (as they come from generally trusted directories). To prevent @value{GDBN} from auto-loading even those init files, use the @option{-nx} option (@pxref{Mode Options}), in addition to @code{set auto-load no}. OK?