From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10728 invoked by alias); 26 Sep 2005 17:34:26 -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 10680 invoked by uid 22791); 26 Sep 2005 17:34:12 -0000 Received: from nproxy.gmail.com (HELO nproxy.gmail.com) (64.233.182.198) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 26 Sep 2005 17:34:12 +0000 Received: by nproxy.gmail.com with SMTP id l37so333543nfc for ; Mon, 26 Sep 2005 10:34:10 -0700 (PDT) Received: by 10.48.3.4 with SMTP id 4mr490057nfc; Mon, 26 Sep 2005 10:34:10 -0700 (PDT) Received: by 10.48.157.14 with HTTP; Mon, 26 Sep 2005 10:34:10 -0700 (PDT) Message-ID: <6541ed4c05092610342d7d63c1@mail.gmail.com> Date: Mon, 26 Sep 2005 17:34:00 -0000 From: David Lamy-Charrier Reply-To: David Lamy-Charrier To: gdb@sources.redhat.com Subject: Re: How to access files (open/read/close) from gdb script ? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6541ed4c050926074274c08518@mail.gmail.com> <6541ed4c05092607445929e846@mail.gmail.com> <1127746273.14120.60.camel@localhost.localdomain> <6541ed4c05092608534877c12@mail.gmail.com> <20050926170314.GP772@adacore.com> X-SW-Source: 2005-09/txt/msg00198.txt.bz2 > > 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... Thanks a lot for your help, but with an external script or program, I can not retrieve results of the external program from my gdb script (except maybe the exit_code) ? Is there anywhere a list of allowed functions from gdb script (I know that printf, strcmp... are allowed) ? Thanks, David