This is the mail archive of the
mailing list for the GDB project.
Re: [rfc] Fix info spu mailbox command
On Wed, Mar 19, 2008 at 11:28:03AM +0100, Markus Deuling wrote:
> Hi Joel,
> Joel Brobecker schrieb:
>> Any reason for not using gdb_test_multiple in this case (instead of
>> send_gdb/gdb_expext)? gdb_test_multiple has been designed to handle
>> this type of test, and as a bonus, you won't have to handle the timeout
> as far as I see gdb_expect is much more often used compared to
> gdb_test_multiple. What is the advantage of gdb_test_multiple compared to
> just send/expect?
gdb_test_multiple is newer and most of the testsuite is very old,
that's why gdb_expect is used. gdb_test_multiple is much better
because it handles standard cases, like an unexpected prompt, without
having to wait for a timeout.