This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dynamic breakpoints/watchpoints


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]