From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21267 invoked by alias); 26 Sep 2005 14:45:23 -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 20858 invoked by uid 22791); 26 Sep 2005 14:44:49 -0000 Received: from nproxy.gmail.com (HELO nproxy.gmail.com) (64.233.182.200) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 26 Sep 2005 14:44:49 +0000 Received: by nproxy.gmail.com with SMTP id l37so316103nfc for ; Mon, 26 Sep 2005 07:44:47 -0700 (PDT) Received: by 10.48.3.4 with SMTP id 4mr477895nfc; Mon, 26 Sep 2005 07:44:47 -0700 (PDT) Received: by 10.48.157.14 with HTTP; Mon, 26 Sep 2005 07:44:47 -0700 (PDT) Message-ID: <6541ed4c05092607445929e846@mail.gmail.com> Date: Mon, 26 Sep 2005 14:45:00 -0000 From: David Lamy-Charrier Reply-To: David Lamy-Charrier To: gdb@sources.redhat.com Subject: How to access files (open/read/close) from gdb script ? In-Reply-To: <6541ed4c050926074274c08518@mail.gmail.com> 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> X-SW-Source: 2005-09/txt/msg00190.txt.bz2 Hello, Does anyone of you know how to perform file operations (open/read/close) from a GDB script ? Each time GDB stops on a breakpoint I read a value from memory and then I want to open a file on the host and search for the value in this file ? any hints ? Thanks, David