From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1551 invoked by alias); 26 Sep 2005 17:22:33 -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 1425 invoked by uid 22791); 26 Sep 2005 17:22:09 -0000 Received: from mail-out3.apple.com (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 26 Sep 2005 17:22:09 +0000 Received: from relay5.apple.com (a17-128-113-35.apple.com [17.128.113.35]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id j8QHM4nr013883; Mon, 26 Sep 2005 10:22:04 -0700 (PDT) Received: from [17.201.22.240] (inghji.apple.com [17.201.22.240]) by relay5.apple.com (Apple SCV relay) with ESMTP id 717B632401F; Mon, 26 Sep 2005 10:22:04 -0700 (PDT) In-Reply-To: <20050926170314.GP772@adacore.com> References: <6541ed4c050926074274c08518@mail.gmail.com> <6541ed4c05092607445929e846@mail.gmail.com> <1127746273.14120.60.camel@localhost.localdomain> <6541ed4c05092608534877c12@mail.gmail.com> <20050926170314.GP772@adacore.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: 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:22:00 -0000 To: Joel Brobecker X-SW-Source: 2005-09/txt/msg00195.txt.bz2 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. Jim On Sep 26, 2005, at 10:03 AM, Joel Brobecker wrote: >> I am not sure to understand correclty: >> you mean that I can write a tcl script to do that, but how can I then >> launch the tcl script ? >> > > You can launch any command from GDB using the "shell" command. > > Just as a comment regarding TCL, I would personally use anything but > TCL. It's your choice: You can use bourne scripts, or even write a > program in C or Ada... > > -- > Joel >