Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* dynamic breakpoints/watchpoints
@ 2007-03-14  0:22 Ed S. Peschko
  2007-03-14  4:20 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Ed S. Peschko @ 2007-03-14  0:22 UTC (permalink / raw)
  To: gdb

All,

I'm not sure how feasible this is for gdb, but I've written something like 
this for perl and it does wonders for your productivity, especially in 
dealing with unfamiliar code.

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, and

	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.


Of course, it might be difficult to do this with c, with differences between 
floats && ints && ascii data, but it's not impossible. Maybe, 'bs' for break string,
or bi for break integer would do the trick..


Thoughts? I'd think that 'bc' would be easier to implement but I'm not sure...

Ed


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-03-15 21:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-14  0:22 dynamic breakpoints/watchpoints Ed S. Peschko
2007-03-14  4:20 ` Eli Zaretskii
2007-03-14  8:34   ` Ed S. Peschko
2007-03-14  9:20     ` Michael Veksler
2007-03-14 18:03       ` Ed S. Peschko
2007-03-14 18:49         ` Eli Zaretskii
     [not found]         ` <45F87DAC.8030404@tx.technion.ac.il>
2007-03-15 21:36           ` Ed S. Peschko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox