2001-02-26 Orjan Friberg <orjanf@axis.com>

* gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
	* gdb.base/pointers.exp: Relax pattern match of decimals.
This commit is contained in:
Orjan Friberg 2001-03-07 17:21:43 +00:00
parent 39424bef91
commit 1b3c55407c
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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" }