This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Tweak tests for target with 4-byte doubles
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: Michael Snyder <msnyder at cygnus dot com>,gdb-patches at sources dot redhat dot com, ezannoni at redhat dot com
- Date: Thu, 23 May 2002 13:24:54 -0400
- Subject: Re: [PATCH] Tweak tests for target with 4-byte doubles
- References: <200205231527.g4NFRSS31776@reddwarf.sfbay.redhat.com> <3CED13DB.3080304@cygnus.com>
> 2002-05-23 Michael Snyder <msnyder@redhat.com>
>
> * gdb.base/all-bin.exp: Allow for reduced floating point precision.
> * gdb.base/call-rt-st.exp: Ditto.
>
> Index: all-bin.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/all-bin.exp,v
> retrieving revision 1.2
> diff -p -r1.2 all-bin.exp
> *** all-bin.exp 6 Mar 2001 08:21:50 -0000 1.2
> --- all-bin.exp 23 May 2002 15:40:03 -0000
> *************** send_gdb "print v_int+v_double\n"
> *** 189,198 ****
> gdb_expect {
> -re ".*206.56565.*$gdb_prompt $" {
> pass "print value of v_int+v_double"
> ! }
> -re ".*$gdb_prompt $" { fail "print value of v_int+v_double" }
> ! timeout { fail "(timeout) print value of v_int+" } ! }
>
> Michael,
>
> Last time this was raised it was concluded that GDB shouldn't be testing the FPU here. Rather than adding d10v specific hacks, reduce the precision of the value being checked.
Hmm, to expand a little:
> -re ".*206.56565.*$gdb_prompt $" {
to
-re ".*206.56\[0-9\]*
so it isn't assuming a specific underlying floating-point representation.
enjoy,
Andrew