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: [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
>> explicitly.
>>
>
> 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.

-- 
Daniel Jacobowitz
CodeSourcery


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