List Info

Thread: Re: Watchpoints stopping GDB on specific threads




Re: Watchpoints stopping GDB on specific threads
country flaguser name
United States
2007-08-14 15:18:49
On Tue, 2007-08-14 at 22:41 +0300, Eli Zaretskii wrote:
> > From: Luis Machado <luisgpmlinux.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: luisgpmlinux.vnet.ibm.com


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )