Re: Add sh target to float.exp

Michael Elizabeth Chastain
2003-07-29T22:07:56Z

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