From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20716 invoked by alias); 26 Sep 2005 17:03:20 -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 20707 invoked by uid 22791); 26 Sep 2005 17:03:17 -0000 Received: from s142-179-108-108.bc.hsia.telus.net (HELO takamaka.act-europe.fr) (142.179.108.108) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 26 Sep 2005 17:03:17 +0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 5EB6747E74; Mon, 26 Sep 2005 10:03:14 -0700 (PDT) Date: Mon, 26 Sep 2005 17:03:00 -0000 From: Joel Brobecker To: David Lamy-Charrier Cc: gdb@sources.redhat.com Subject: Re: How to access files (open/read/close) from gdb script ? Message-ID: <20050926170314.GP772@adacore.com> References: <6541ed4c050926074274c08518@mail.gmail.com> <6541ed4c05092607445929e846@mail.gmail.com> <1127746273.14120.60.camel@localhost.localdomain> <6541ed4c05092608534877c12@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6541ed4c05092608534877c12@mail.gmail.com> User-Agent: Mutt/1.4i X-SW-Source: 2005-09/txt/msg00193.txt.bz2 > 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