From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2970 invoked from network); 6 Oct 2006 15:50:37 -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:50:37 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 71892 invoked from network); 6 Oct 2006 15:50:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 15:50:30 -0000 Received: (qmail 12891 invoked by alias); 6 Oct 2006 15:50:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10798 Received: (qmail 12881 invoked from network); 6 Oct 2006 15:50:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Oct 2006 15:50:18 -0000 Received: (qmail 70359 invoked from network); 6 Oct 2006 15:50:18 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 6 Oct 2006 15:50:13 -0000 Received: from 212.red-80-35-44.staticip.rima-tde.net ([80.35.44.212]:40609 helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.52) id 1GVrxv-0007Jb-PL; Fri, 06 Oct 2006 17:50:23 +0200 Date: Fri, 6 Oct 2006 17:50:09 +0200 From: DervishD To: Chris Johnson Cc: zsh-users@sunsite.dk Subject: Re: ZLE widget to run gdb on command line Message-ID: <20061006155009.GA30867@DervishD> Mail-Followup-To: Chris Johnson , zsh-users@sunsite.dk References: <20061006145222.GA32307@namib.cs.utk.edu> <20061006152343.GA30653@DervishD> <20061006153637.GA1901@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: <20061006153637.GA1901@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: > DervishD sent me the following 1.0K: This is the most funny attribution line I've ever seen XDDDD > > > 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: > > > > Try this: > > > > gdb --args myprog arg1 arg2 arg3 > > You think they'd document these things in the man pages. Or maybe my > man pages are out of date. With GNU things, don't rely on manpages, rely on the info documentation (yes, I hate that format too, but...). In the --help output the "--args" option is slightly documented (being "slightly" the keyword here...). Unfortunately, not all software is as well documented as zsh, specially GNU software. > > (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 :)) > > Yep, you still need to type "run" with --args. Thanks for the heads-up. I'm using your widget right now with a friend's ftp server that forces me to do "epsv4 off" in my ftpclient each time I connect. As I said, this is quite useful :)) 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!