This is the mail archive of the
mailing list for the GDB project.
Re: Searching for pattern in memory from GDB?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: James Nordby <jnordby at caspiannetworks dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 8 Apr 2002 14:47:45 -0400
- Subject: Re: Searching for pattern in memory from GDB?
- References: <3CB1E451.CFCA2BE2@caspiannetworks.com>
On Mon, Apr 08, 2002 at 01:41:22PM -0500, James Nordby wrote:
> 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
> of the trace buffer, I could look for that with gdb and use gdb to
> the rest of the buffer.
> Do you know of any way to say 'search for pattern in <BSS,heap> space'
> in gdb?
> If not, can you think of any other way to find a buffer in a stripped
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:
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer