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] Fix watch_thread_num testcase for ppc32


On Tue, 2008-01-08 at 20:15 -0800, Joel Brobecker wrote:
> > The watch_thread_num.exp testcase was timing out on a number of
> > iterations for PPC32, while giving a full pass for PPC64. Removing the
> > usleep(1) call fixed the problem. It gives full passes for both PPC
> > 32/64.
> 
> Would you mind sending the log files when it times out? I don't
> understand why removing the usleep fixes the problem. I'm a bit
> concerned with removing this delay because the thread would then
> be free to eat up all the CPU, and the test is creating quite a
> number of them...
> 
> Thanks,

The test will create a max of five threads, that will keep updating a
shared variable.

The reason why it times out is not really clear, i'm still
investigating. When you hit continue in 32-bit, GDB seems to stand there
doing something. It occurs from time to time. Sometimes it will stop due
to the watchpoint, sometimes it will "lock". When you hit ctrl-C, it's
clear that GDB is still executing the "nanosleep" function. That's what
pointed me to usleep().

Regards,

-- 
Luis Machado
Software Engineer 
IBM Linux Technology Center


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