From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25814 invoked by alias); 13 Dec 2010 19:28:40 -0000 Received: (qmail 25805 invoked by uid 22791); 13 Dec 2010 19:28:39 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Dec 2010 19:28:34 +0000 Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id oBDJSVHj020202 for ; Mon, 13 Dec 2010 11:28:31 -0800 Received: from qwj9 (qwj9.prod.google.com [10.241.195.73]) by wpaz13.hot.corp.google.com with ESMTP id oBDJSM1b020422 for ; Mon, 13 Dec 2010 11:28:30 -0800 Received: by qwj9 with SMTP id 9so6508856qwj.13 for ; Mon, 13 Dec 2010 11:28:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.60.199 with SMTP id q7mr2958859qah.148.1292268509776; Mon, 13 Dec 2010 11:28:29 -0800 (PST) Received: by 10.220.210.12 with HTTP; Mon, 13 Dec 2010 11:28:29 -0800 (PST) In-Reply-To: <20101213185543.GB29492@host0.dyn.jankratochvil.net> References: <20101211004734.E48242461AD@ruffy.mtv.corp.google.com> <20101213185543.GB29492@host0.dyn.jankratochvil.net> Date: Mon, 13 Dec 2010 19:28:00 -0000 Message-ID: Subject: Re: [patch, doc RFA] New command-line option -na. From: Doug Evans To: Jan Kratochvil Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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: 2010-12/txt/msg00197.txt.bz2 On Mon, Dec 13, 2010 at 10:55 AM, Jan Kratochvil wrote: > On Sat, 11 Dec 2010 01:47:34 +0100, Doug Evans wrote: >> The capability exists today with "maint set python auto-load on|off", >> but that can't be used to disable scripts from a program provided on >> the command line. >> In order to use that, one has to start gdb without a program, >> disable auto-loading, and *then* use the "file" command. =A0Bleah. > > I use the "file" trick commonly for example for: > =A0 =A0 =A0 =A0gdb -ex 'set debug-file-directory /tmp/foo:/usr/lib/debug'= -ex 'file /bin/date' > > >> I'm renaming "maint set python auto-load on|off" to >> "set auto-load-scripts on|off". > > I would find this part as a sufficient one. =A0Otherwise we should introd= uce > a command-line option also for "debug-file-directory" and probably others. > Do you find a common need for `-na'? The high order bit is the change to the option name. I wonder if it'd be sufficiently useful to provide support for adding new command-line options in python. Then I could add -na in system.gdbinit.