This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: dynamic breakpoints/watchpoints
- From: Eli Zaretskii <eliz at gnu dot org>
- To: "Ed S. Peschko" <esp5 at pge dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 14 Mar 2007 06:20:51 +0200
- Subject: Re: dynamic breakpoints/watchpoints
- References: <20070314002242.GB17710@venus>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 13 Mar 2007 17:22:42 -0700
> From: "Ed S. Peschko" <esp5@pge.com>
>
> What I'm looking for is something akin to grep integrated with gdb. Commands
> like:
>
> bc /pattern_in_code/
>
> would stop at the first place where 'pattern_in_code' was seen after continuing
> execution
Is `rbreak' (q.v.) what you are looking for?
> bv /pattern_in_variable/
>
> would monitor the data that *any* variable is using, and stop as soon as an
> assignment of that pattern is made to that variable.
I think this one would be impractical, at least on x86, where the
number of watchpoints is severely limited by the available number of
debug registers.