Re: Add sh target to float.exp

David Carlton
2003-07-29T22:03:23Z

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? 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.

David Carlton
carlton@kealia.com