This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Watchpoints with condition
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: Michael Snyder <msnyder at specifix dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 4 Dec 2007 10:25:15 +0300
- Subject: Re: Watchpoints with condition
- References: <200711301925.20196.vladimir@codesourcery.com> <1196733050.2501.200.camel@localhost.localdomain>
On Tuesday 04 December 2007 04:50:50 Michael Snyder wrote:
> On Fri, 2007-11-30 at 19:25 +0300, Vladimir Prus wrote:
> > GDB presently allow a watchpoint to have a condition, and I wonder
> > what are the use-cases for that.
> >
> > If anybody has used watchpoint in condition in practice when debugging
> > real problem (as opposed to just playing with gdb, or making up
> > possible uses), can he share why it was needed?
>
>
> May I ask, what prompts the question?
> Were you thinking of getting rid of it?
I'm merely trying to understand the use cases. One of the specific
concern is what happens if a watchpoint's condition refers to a global
variable in a library that is unloaded and if that scenario is of
interest to anybody.
- Volodya