This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] New gdb_usleep function?
- From: Tom Tromey <tromey at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 17 Mar 2009 14:52:54 -0600
- Subject: Re: [RFA] New gdb_usleep function?
- References: <20090317161240.GB31959@adacore.com>
- Reply-to: tromey at redhat dot com
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> I'm working on a patch for AIX where I need to do a timed-delay.
Joel> I could do what I always do, which is call gdb_select, but I thought
Joel> that this something we do occasionally, so I think it'd be nice to
Joel> have a function that does everything for us. This is why I came up
Joel> with gdb_usleep.
Joel> Tested in amd64-linux. Any objection?
This is not an objection, but I was wondering whether you looked at
using the gnulib usleep replacement function. I think using gnulib
functions, when applicable, is probably preferable to writing our own,
because we can share some of the work with others.
Tom