From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22368 invoked by alias); 8 Apr 2002 18:41:25 -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 22360 invoked from network); 8 Apr 2002 18:41:24 -0000 Received: from unknown (HELO cmail.packetcom.com) (63.108.173.139) by sources.redhat.com with SMTP; 8 Apr 2002 18:41:24 -0000 Received: from caspiannetworks.com (expedition.packetcom.com [192.168.9.78]) by cmail.packetcom.com (Mirapoint) with ESMTP id ABW27196; Mon, 8 Apr 2002 11:41:23 -0700 (PDT) Message-ID: <3CB1E451.CFCA2BE2@caspiannetworks.com> Date: Mon, 08 Apr 2002 11:41:00 -0000 From: James Nordby X-Accept-Language: en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: Searching for pattern in memory from GDB? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00100.txt.bz2 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? Thanks, Jim P.S. - Please respond to my e-mail addr as well as the list...