From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29358 invoked from network); 6 Oct 2006 15:24:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Oct 2006 15:24:10 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 35777 invoked from network); 6 Oct 2006 15:24:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 15:24:03 -0000 Received: (qmail 7110 invoked by alias); 6 Oct 2006 15:23:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10794 Received: (qmail 7097 invoked from network); 6 Oct 2006 15:23:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Oct 2006 15:23:53 -0000 Received: (qmail 34501 invoked from network); 6 Oct 2006 15:23:53 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 15:23:48 -0000 Received: from 212.red-80-35-44.staticip.rima-tde.net ([80.35.44.212]:40607 helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.52) id 1GVrYL-0005Jr-IF; Fri, 06 Oct 2006 17:23:57 +0200 Date: Fri, 6 Oct 2006 17:23:43 +0200 From: DervishD To: Chris Johnson Cc: zsh-users@sunsite.dk Subject: Re: ZLE widget to run gdb on command line Message-ID: <20061006152343.GA30653@DervishD> Mail-Followup-To: Chris Johnson , zsh-users@sunsite.dk References: <20061006145222.GA32307@namib.cs.utk.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20061006145222.GA32307@namib.cs.utk.edu> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: Hi Chris :) * Chris Johnson dixit: > Hi. I just thought I'd share a widget that I find helpful. Invoking > gdb is something I need to do a lot lately, it seems, and I often think > I can pass the program's arguments as arguments to gdb: > > gdb myprog arg1 arg2 arg3 > > But gdb doesn't accept this because it expects other unnamed arguments. > Treating the whole command as a single argument to gdb also fails: > > gdb "myprog arg1 arg2 arg3" > > The single argument is treated as a single executable name. Obvious, gdb gets it as just ONE argument ;) Try this: gdb --args myprog arg1 arg2 arg3 (if you don't use a core argument, of course) BTW, the widget is quite useful, not only for gdb, but for other interactive programs too where you ALWAYS run certain command at startup. Thanks :)) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen!