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: Michael Elizabeth Chastain <mec at shout dot net>
- To: gdb-patches at sources dot redhat dot com, msnyder at redhat dot com
- Date: Tue, 29 Jul 2003 18:07:53 -0400
- Subject: Re: Add sh target to float.exp
Proofread but not tested, looks okay to me.
You might want to start using gdb_test_multiple.
gdb.base/gdb1250.exp is a short example.
gdb_test_multiple "info float" "info float" {
-re ".*fpul.*fr0.*dr0.*$gdb_prompt $" {
# SH may or may not have an FPU
pass "info float (with FPU)"
}
-re "No floating.point info available for this processor.*$gdb_prompt $" {
pass "info float (without FPU)"
}
}
Or leave gdb_test_multiple for another day, whatever.
Michael C