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:
parent
39424bef91
commit
1b3c55407c
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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" }
|
||||
|
|
Loading…
Reference in a new issue