This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: testsuite/gdb.base/maint.exp
- To: gdb-patches <gdb-patches at sources dot redhat dot com>
- Subject: [PATCH]: testsuite/gdb.base/maint.exp
- From: Corinna Vinschen <vinschen at redhat dot com>
- Date: Tue, 9 Oct 2001 11:38:48 +0200
- Reply-To: gdb-patches <gdb-patches at sources dot redhat dot com>
Hi,
As you might know, $EXEEXT is mainly a host related setting.
maint.exp wrongly assumes that $EXEEXT is a target setting
and demands the $EXEEXT suffix in two of it's test outputs
(maint info sections, maint print objfiles). As result these
two tests fail if the host is e.g. i686-pc-cygwin and the
target is some cross target which doesn't know about exe suffixes.
The following patch makes the $EXEEXT in the output optional.
2001-10-09 Corinna Vinschen <vinschen@redhat.com>
* gdb.base/maint.exp: Treat $EXEEXT as optional in output.
Index: maint.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/maint.exp,v
retrieving revision 1.6
diff -u -p -r1.6 maint.exp
--- maint.exp 2001/09/25 02:31:51 1.6
+++ maint.exp 2001/10/09 09:37:54
@@ -200,7 +200,7 @@ set keep_looking 1
while {$keep_looking} {
gdb_expect {
- -re ".*Object file.*break$EXEEXT: Objfile at $hex, bfd at $hex, \[0-9\]* minsyms\[\r\t \]+\n" { set header 1 }
+ -re ".*Object file.*break($EXEEXT)?: Objfile at $hex, bfd at $hex, \[0-9\]* minsyms\[\r\t \]+\n" { set header 1 }
-re ".*Psymtabs:\[\r\t \]+\n" { set psymtabs 1 }
-re ".*Symtabs:\[\r\t \]+\n" { set symtabs 1 }
@@ -379,7 +379,7 @@ set timeout [expr $timeout + 300]
#
send_gdb "maint info sections\n"
gdb_expect {
- -re "Exec file:\r\n.*break$EXEEXT., file type.*$gdb_prompt $"\
+ -re "Exec file:\r\n.*break($EXEEXT)?., file type.*$gdb_prompt $"\
{ pass "maint info sections" }
-re ".*$gdb_prompt $" { fail "maint info sections" }
timeout { fail "(timeout) maint info sections" }
Corinna
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com