OSDN Git Service

* gdb.base/maint.exp: Treat $EXEEXT as optional in output.
authorcorinna <corinna>
Sat, 13 Oct 2001 08:36:32 +0000 (08:36 +0000)
committercorinna <corinna>
Sat, 13 Oct 2001 08:36:32 +0000 (08:36 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/maint.exp

index 04182ea..69b13d2 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-09  Corinna Vinschen  <vinschen@redhat.com>
+
+       * gdb.base/maint.exp: Treat $EXEEXT as optional in output.
+
 2001-10-04  Frank Ch. Eigler  <fche@redhat.com>
 
        * lib/insight-support.exp (gdbtk_start): Don't exit dejagnu
index ecccb22..a4bafe5 100644 (file)
@@ -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" }