On Tue, 2007-08-14 at 22:41 +0300, Eli Zaretskii wrote:
> > From: Luis Machado <luisgpm linux.vnet.ibm.com>
> > Date: Tue, 14 Aug 2007 13:20:58 -0300
> >
> > I'm looking forward to have the same functionality
for watchpoints. So
> > whenever GDB detects a watchpoint trigger, it
would verify the current
> > thread and would stop only if the thread matches
the ID we provided in a
> > command like "watch <address> thread
<id>". if no ID is provided, GDB
> > would stop at every thread as usual (assuming a
threaded watchpoint
> > support).
>
> Unless I misunderstand something fundamental, if the
current thread ID
> is in some variable, you could define a condition for a
watchpoint,
> no?
Using the "if" statement? But in which kind of
variable? A user defined
variable on GDB or a variable inside the inferior?
--
Luis Machado
Software Engineer
IBM Linux Technology Center
LoP Toolchain/Debuggers' team
Phone: +55 19-2132-2218
T/L: 839-2218
e-mail: luisgpm linux.vnet.ibm.com
|