dynamic breakpoints/watchpoints

Eli Zaretskii eliz@gnu.org
Wed Mar 14 04:20:00 GMT 2007


> 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.



More information about the Gdb mailing list