This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Add sh target to float.exp
- From: David Carlton <carlton at kealia dot com>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 29 Jul 2003 15:03:22 -0700
- Subject: Re: Add sh target to float.exp
- References: <3F26EDCB.1090106@redhat.com>
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