From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6657 invoked by alias); 9 Jan 2007 21:53:43 -0000 Received: (qmail 6648 invoked by uid 22791); 9 Jan 2007 21:53:43 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 09 Jan 2007 21:53:39 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H4OuX-0001Gv-GW for gdb@sourceware.org; Tue, 09 Jan 2007 16:53:37 -0500 Date: Tue, 09 Jan 2007 21:53:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: GDB and scripting languages - which Message-ID: <20070109215337.GA4774@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: <20070108222005.GA27451@nevyn.them.org> <20070109202343.GD9844@cox.net> <17828.2852.359000.383405@gargle.gargle.HOWL> <17828.3474.603062.717814@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17828.3474.603062.717814@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00156.txt.bz2 On Wed, Jan 10, 2007 at 10:48:02AM +1300, Nick Roberts wrote: > > I would think it's good to stay away from TCL. I won't say more > > because I don't want to start a language war. Python can certainly be > > scripted, and it has good support for testsuite type things. > > TCL is what Totalview uses for it's CLI; it's quite adequate for basic > programming. How complex will these scripts be? Generally .gdbinit is > just a series of small functions. I am actually expecting something much more complicated: for instance, functions which know how to walk data structures and prettyprint them. Folks already do that in .gdbinit, but the functions they use can sometimes be mammoth. The worst one I'm aware of uses "shell awk" and "set logging" :-) -- Daniel Jacobowitz CodeSourcery