[patch] Watchpoints: support for thread <thread_num> parameters

Luis Machado luisgpm@linux.vnet.ibm.com
Mon Aug 20 15:23:00 GMT 2007


Hi,

> Consider: in the current status quo the watchpoint would be inserted
> in every thread, using up precious hardware debug resources and
> triggering unnecessarily.  We'll just resume in threads other than the
> indicated one, so we shouldn't set up the watchpoint anywhere else.

Makes sense. So instead of having GDB insert watchpoints in all the
threads, we would insert it just in the one we specified in the command.
That could make use of the changes to the watchpoint command, but then
we're discarding Jeff's patches, right?

We would also need to do that cleanup in each thread's debugging
registers due to the kernel cloning the debug registers' values from the
parent process.

Regards,

-- 
Luis Machado
Software Engineer 
IBM Linux Technology Center
e-mail: luisgpm@linux.vnet.ibm.com



More information about the Gdb-patches mailing list