This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: testsuite/1463: structs.exp gives different results when run standalone
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: unasigned at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 22 Nov 2003 23:28:00 -0000
- Subject: Re: testsuite/1463: structs.exp gives different results when run standalone
- Reply-to: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
The following reply was made to PR testsuite/1463; it has been noted by GNATS.
From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
To: cagney@gnu.org
Cc: gdb-gnats@sources.redhat.com
Subject: Re: testsuite/1463: structs.exp gives different results when run standalone
Date: Sat, 22 Nov 2003 18:26:30 -0500 (EST)
> Missing call to gdb.exp:get_debug_format?
Ah, sure looks like it!
I tried the attached patch and it fixed the problem.
The results from a standalone run are identical to the results
from my last complete test run.
I'll run it by gdb-patches late tonight or early tomorrow
unless you beat me to it.
Michael C
Index: structs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/structs.exp,v
retrieving revision 1.9
diff -c -3 -p -r1.9 structs.exp
*** structs.exp 20 Nov 2003 18:03:48 -0000 1.9
--- structs.exp 22 Nov 2003 23:10:46 -0000
*************** proc start_structs_test { types } {
*** 98,103 ****
--- 98,106 ----
gdb_suppress_tests;
}
+ # Get the debug format
+ get_debug_format
+
# check that at the struct containing all the relevant types is correct
set foo_t "type = struct struct[llength ${types}] \{"
for {set n 0} {$n<[llength ${types}]} {incr n} {