From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24386 invoked by alias); 8 Apr 2002 18:47:48 -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 24376 invoked from network); 8 Apr 2002 18:47:47 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 8 Apr 2002 18:47:47 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16ueB7-0000CU-00; Mon, 08 Apr 2002 14:47:45 -0400 Date: Mon, 08 Apr 2002 11:47:00 -0000 From: Daniel Jacobowitz To: James Nordby Cc: gdb@sources.redhat.com Subject: Re: Searching for pattern in memory from GDB? Message-ID: <20020408144745.A687@nevyn.them.org> Mail-Followup-To: James Nordby , gdb@sources.redhat.com References: <3CB1E451.CFCA2BE2@caspiannetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CB1E451.CFCA2BE2@caspiannetworks.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-04/txt/msg00101.txt.bz2 On Mon, Apr 08, 2002 at 01:41:22PM -0500, James Nordby wrote: > > Hi, > > I'm trying to put together a fast, internal-circular-buffer-type tracing > package. I want to get able to extract the traces from either a running > program or a core file, but our binaries are normally sent out stripped. > I thought if I put a word or two with a particular pattern at the > beginning > of the trace buffer, I could look for that with gdb and use gdb to > format > the rest of the buffer. > > Do you know of any way to say 'search for pattern in space' > in gdb? > > If not, can you think of any other way to find a buffer in a stripped > binary? Nope. There's no command like this at the moment. I'd appreciate it if you filed an enhancement request in the GDB GNATS system about this: http://sources.redhat.com/gdb/bugs/ -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer