Re: Add sh target to float.exp

Michael Snyder
2003-07-29T22:30:41Z

David Carlton wrote:

>On Tue, 29 Jul 2003 14:57:31 -0700, Michael Snyder <msnyder@redhat.com> said:
>
>
>>+ send_gdb "info float\n"
>>+ gdb_expect {
>>+ -re ".*fpul.*fr0.*dr0.*$gdb_prompt $" {
>>+ pass "info float (with FPU)"
>>+ }
>>+ -re "No floating.point info available for this processor.*$gdb_prompt $" {
>>+ pass "info float (without FPU)"
>>+ }
>>+ -re ".*$gdb_prompt $" {
>>+ fail "info float"
>>+ }
>>+ timeout {
>>+ fail "info float (timeout)"
>>+ }
>>+ }
>>
>>
>
>Does replacing the above with
>
> gdb_test_multiple "info float" "info float" {
> -re ".*fpul.*fr0.*dr0.*$gdb_prompt $" {
> pass "info float (with FPU)"
> }
> -re "No floating.point info available for this processor.*$gdb_prompt $" {
> pass "info float (without FPU)"
> }
>
>work?
>
Yep!

> Daniel's been trying to convince us to use gdb_test_multiple
>instead of gdb_expect, and it definitely saves typing once you get
>used to it.
>

I'm sold. If the patch is approved, I'll check it in in that form.