From 1b3c55407c44561fb1755808b2a14a76416ba6a0 Mon Sep 17 00:00:00 2001 From: Orjan Friberg Date: Wed, 7 Mar 2001 17:21:43 +0000 Subject: [PATCH] 2001-02-26 Orjan Friberg * gdb.base/pointers.c: Don't assume doubles are >= 8 bytes. * gdb.base/pointers.exp: Relax pattern match of decimals. --- gdb/testsuite/gdb.base/pointers.c | 2 +- gdb/testsuite/gdb.base/pointers.exp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.base/pointers.c b/gdb/testsuite/gdb.base/pointers.c index 7a41552fc50..85bfdc98917 100644 --- a/gdb/testsuite/gdb.base/pointers.c +++ b/gdb/testsuite/gdb.base/pointers.c @@ -194,7 +194,7 @@ int more_code() L = -234; UL = 234; F = 1.25E10; - D = -1.375E-123; + D = -1.25E-37; pC = &C; ppC = &pC; pppC = &ppC; diff --git a/gdb/testsuite/gdb.base/pointers.exp b/gdb/testsuite/gdb.base/pointers.exp index b68242dde9a..5f406ad1533 100644 --- a/gdb/testsuite/gdb.base/pointers.exp +++ b/gdb/testsuite/gdb.base/pointers.exp @@ -527,7 +527,7 @@ gdb_expect { send_gdb "print *pD\n" gdb_expect { - -re ".\[0-9\]* = -1.375e-123.*$gdb_prompt $" { + -re ".\[0-9\]* = -1.2\[0-9\]*e\\-37.*$gdb_prompt $" { pass "print value of *pD" } -re ".*$gdb_prompt $" { fail "print value of *pD" } -- 2.30.2