Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* RDI code busy-waiting on running target?
@ 2002-07-11 15:55 Grant Edwards
  2002-07-11 16:40 ` Grant Edwards
  0 siblings, 1 reply; 7+ messages in thread
From: Grant Edwards @ 2002-07-11 15:55 UTC (permalink / raw)
  To: gdb


[gdb 5.1.1, rdi target]

I've noticed that gdb uses all the CPU it can get while the
target is running (e.g. busy-waiting 'till target stops).

I'm building 5.2 to see if it still does that, but the build is
taking forever since I'm also testing some ARM code and gdb
5.1.1 is using 50% of the CPU waiting for the target to stop.  :)

Anybody else seen this?

-- 
Grant Edwards
grante@visi.com


^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: RDI code busy-waiting on running target?
@ 2002-07-11 17:44 Dan Kegel
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Kegel @ 2002-07-11 17:44 UTC (permalink / raw)
  To: 'Grant Edwards ', 'gdb@sources.redhat.com '
  Cc: 'gdb-patches@sources.redhat.com '

Grant Edwards wrote:

> Is usleep() portable?

http://sarien.sourceforge.net/hackersguide/intro-portability.html
claims no.

It uses a timer on some platforms, too, so I'd avoid it anyway.

You might consider using select() with no fds to sleep briefly.  That's
tradition.

- Dan


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-07-12 18:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-11 15:55 RDI code busy-waiting on running target? Grant Edwards
2002-07-11 16:40 ` Grant Edwards
2002-07-11 16:53   ` Keith Seitz
2002-07-11 17:28     ` Grant Edwards
2002-07-12  8:23   ` Grant Edwards
2002-07-12 11:03     ` Grant Edwards
2002-07-11 17:44 Dan Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox