This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]