From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: gdb --args does not work in emacs/src ... Date: Mon, 11 Feb 2008 09:09:46 -0800 Message-ID: <200802111709.m1BH9mrX004400@sallyv1.ics.uci.edu> References: <200802110632.m1B6WGrG017818@sallyv1.ics.uci.edu> <18351.65436.105859.262490@kahikatea.snap.net.nz> <200802111521.m1BFLcuE015301@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202750013 650 80.91.229.12 (11 Feb 2008 17:13:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 17:13:33 +0000 (UTC) Cc: Nick Roberts , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 18:13:46 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOcDT-0006fC-2e for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 18:13:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOcCz-00017T-14 for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 12:12:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOcCu-00016G-Qi for emacs-devel@gnu.org; Mon, 11 Feb 2008 12:12:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOcCu-00015c-7W for emacs-devel@gnu.org; Mon, 11 Feb 2008 12:12:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOcCu-00015U-4p for emacs-devel@gnu.org; Mon, 11 Feb 2008 12:12:40 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JOcCt-0008Sk-Rl for emacs-devel@gnu.org; Mon, 11 Feb 2008 12:12:40 -0500 X-ICS-MailScanner-Watermark: 1203354589.46374@lEdrSp6Ou6xh7mkVHUJ5NQ Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m1BH9mrX004400; Mon, 11 Feb 2008 09:09:49 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Mon, 11 Feb 2008 11:53:07 -0500") Original-Lines: 29 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88769 Archived-At: Stefan Monnier writes: > >> > ... because .gdbinit overwrites args: > >> > > >> > set args -geometry 80x40+0+0 > >> > > >> > this is annoying when one wants to start the debugger with specific > >> > arguments on the command line. > >> > >> I guess it guarantees that everyone is debugging Emacs under more similar > >> conditions. You can always comment that line out in your version. > > > Sure I've been doing that for a long time, but it would be even better > > if I didn't have to do it. > > > Is it possible to append to args? > > Or maybe only set it if it's not already set? > > I always specify the args directly to the "run" command, so the "set That's a habit that precedes the availability of gdb --args... > args" is only problematic when I want to run Emacs without any argument > which is rare when debugging. Not so rare when you use gdb --args, which is all the time for me nowadays. It's very convenient to just prepend gdb --args to the command you want to debug (which is probably already available in the shell command history) and not have to worry about passing arguments to "run"...