From: Luis Machado <luisgpm@linux.vnet.ibm.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Fix watch_thread_num testcase for ppc32
Date: Wed, 09 Jan 2008 09:39:00 -0000 [thread overview]
Message-ID: <1199871500.22083.29.camel@gargoyle> (raw)
In-Reply-To: <20080109041508.GA21281@adacore.com>
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
next prev parent reply other threads:[~2008-01-09 9:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-09 3:34 Luis Machado
2008-01-09 4:15 ` Joel Brobecker
2008-01-09 9:39 ` Luis Machado [this message]
2008-01-09 12:48 ` Daniel Jacobowitz
2008-01-09 12:55 ` Luis Machado
2008-01-09 10:05 ` Andreas Schwab
2008-01-09 11:07 ` Luis Machado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1199871500.22083.29.camel@gargoyle \
--to=luisgpm@linux.vnet.ibm.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox