Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Ed S. Peschko" <esp5@pge.com>
To: gdb@sourceware.org
Subject: dynamic breakpoints/watchpoints
Date: Wed, 14 Mar 2007 00:22:00 -0000	[thread overview]
Message-ID: <20070314002242.GB17710@venus> (raw)

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


             reply	other threads:[~2007-03-14  0:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14  0:22 Ed S. Peschko [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070314002242.GB17710@venus \
    --to=esp5@pge.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox