From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13920 invoked by alias); 26 Sep 2005 17:42:11 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 13907 invoked by uid 22791); 26 Sep 2005 17:42:04 -0000 Received: from mail-out4.apple.com (HELO mail-out4.apple.com) (17.254.13.23) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 26 Sep 2005 17:42:04 +0000 Received: from relay6.apple.com (a17-128-113-36.apple.com [17.128.113.36]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id j8QHfTZE020012; Mon, 26 Sep 2005 10:41:29 -0700 (PDT) Received: from [17.201.22.240] (inghji.apple.com [17.201.22.240]) by relay6.apple.com (Apple SCV relay) with ESMTP id 7E3AD4CD; Mon, 26 Sep 2005 10:41:29 -0700 (PDT) In-Reply-To: <20050926173532.GB8277@nevyn.them.org> References: <6541ed4c050926074274c08518@mail.gmail.com> <6541ed4c05092607445929e846@mail.gmail.com> <1127746273.14120.60.camel@localhost.localdomain> <6541ed4c05092608534877c12@mail.gmail.com> <20050926170314.GP772@adacore.com> <20050926173532.GB8277@nevyn.them.org> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <025FCA6A-15C8-4BA9-9555-CEE4B1CE4F1D@apple.com> Cc: Joel Brobecker , gdb@sources.redhat.com Content-Transfer-Encoding: 7bit From: Jim Ingham Subject: Re: How to access files (open/read/close) from gdb script ? Date: Mon, 26 Sep 2005 17:42:00 -0000 To: Daniel Jacobowitz X-SW-Source: 2005-09/txt/msg00201.txt.bz2 I totally disagree with this. The reason why so much of the gdb testsuite is horrible is that it was written by people who never bothered to learn Tcl, and instead programmed it wishing it was "sh" - which is a pretty perverse thing to wish anyway. If you take the trouble to actually learn how it works, rather than just cutting & pasting examples you don't fully understand, it is a perfectly fine language. Any language will work poorly for you if you have decided up front that it's going to do so. Jim On Sep 26, 2005, at 10:35 AM, Daniel Jacobowitz wrote: > On Mon, Sep 26, 2005 at 10:23:10AM -0700, Jim Ingham wrote: > >> Since ALL the gdb testsuites are written in Tcl (that's what Expect >> uses, and that is consequently what dejagnu uses) this seems a >> particularly unfortunate place to be airing your prejudices. >> > > In fact I find it excessively appropriate; they are some of the worst > testsuite codes I've ever had the misfortune to work with and TCL is a > big part of the reason why. As the currently most active TCL > programmer in the GDB project, I think I've earned the right to agree > with Joel. > > If I had the luxury to redo it I'd do it in Anything But TCL, probably > by improving QMTest's support for interactive testing. > > -- > Daniel Jacobowitz > CodeSourcery, LLC >