]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.base/crossload.exp: Don't use execute_anywhere, use
authorBob Manson <manson@cygnus>
Fri, 31 Jan 1997 21:21:31 +0000 (21:21 +0000)
committerBob Manson <manson@cygnus>
Fri, 31 Jan 1997 21:21:31 +0000 (21:21 +0000)
        remote_exec instead.
        * gdb.base/corefile.exp: Don't be ridiculous.
        * gdb.base/*.c: Add missing stub invocations.

Fixes failures on HP-UX.

gdb/testsuite/ChangeLog
gdb/testsuite/config/.Sanitize
gdb/testsuite/gdb.base/compiler.c
gdb/testsuite/gdb.base/corefile.exp
gdb/testsuite/gdb.base/crossload.exp
gdb/testsuite/lib/gdb.exp

index 5b9e68582f2360c58ed734a1c09c3736c48c9faa..a62e85f217756bc2fc3b63a6a014b1fcb6a2e679 100644 (file)
@@ -1,3 +1,10 @@
+Fri Jan 31 13:09:12 1997  Bob Manson  <manson@charmed.cygnus.com>
+
+       * gdb.base/crossload.exp: Don't use execute_anywhere, use
+       remote_exec instead.
+       * gdb.base/corefile.exp: Don't be ridiculous.
+       * gdb.base/*.c: Add missing stub invocations.
+
 Thu Jan 30 16:49:25 1997  Bob Manson  <manson@charmed.cygnus.com>
 
        * config/slite.exp: Miscellaneous fixes.
index 21b87a0b21329c537483482497c615e4f360127c..4c407cdfec67579d3ebb0f4256c2ea8f8ac37651 100644 (file)
@@ -17,7 +17,7 @@
 
 Do-first:
 
-m32r_files="m32r.exp"
+m32r_files="m32r.exp m32r-stub.exp"
 
 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
        keep_these_too="${m32r_files} ${keep_these_too}"
@@ -39,7 +39,8 @@ est.exp
 gdbserver.exp
 hmsirom.exp
 hppro.exp
-mips-gdb.exp
+mips.exp
+mips-idt.exp
 monitor.exp
 mt-a29k-udi
 mt-i386-aout
@@ -53,18 +54,21 @@ mt-sparc-aout
 mt-unix
 mt-vxworks
 netware.exp
-nind-gdb.exp
+nind.exp
 rom68k.exp
-sim-gdb.exp
-slite-gdb.exp
-udi-gdb.exp
-unix-gdb.exp
+sim.exp
+slite.exp
+udi.exp
+unix.exp
 unknown.exp
-vx-gdb.exp
+vx.exp
 vxworks29k.exp
 
 Things-to-lose:
 
+d10v.exp
+sparclet-old.exp
+sparclet.exp
 
 # The lines between the "Do-last:" line and the end of the file
 # are executed as a /bin/sh shell script after everything else is
index 6ce5805898fbee213090032a89a5402efdd51c4c..8eb0d47dd195f5362ab6f6e42a5a345a71662131 100644 (file)
@@ -13,8 +13,8 @@
    definition made with 'set" to see if one already exists, and if so
    warn about conflicts if it is being set to something else.  */
 
-/* This needs to be kept in sync with whatis.c.  If this proves to end up
-   being hairy, we could use a common header file.  */
+/* This needs to be kept in sync with whatis.c and gdb.exp(get_compiler_info).
+   If this ends up being hairy, we could use a common header file.  */
 
 #if defined (__STDC__) || defined (_AIX)
 set signed_keyword_not_used 0
index d2f78948d64b0914bffa92fd50aa5c5dadc5ffbe..b4a3b2c2c29c069a7e8129bb8ffd5642a46d8e09 100644 (file)
@@ -57,7 +57,7 @@ if [get_compiler_info ${binfile}] {
 # the name of the program to "core".
 set found 0
 catch "system \"(cd ${objdir}/${subdir}; ulimit -c unlimited; ${binfile}; true) >/dev/null 2>&1\""
-#      remote_exec "${binfile}"
+#      remote_exec host "${binfile}"
 foreach i "${objdir}/${subdir}/core ${objdir}/${subdir}/core.coremaker.c ${binfile}.core" {
     if [remote_file build exists $i] {
        remote_exec build "mv $i ${objdir}/${subdir}/corefile"
@@ -68,13 +68,12 @@ if { $found == 0 } {
     # The braindamaged HPUX shell quits after the ulimit -c above
     # without executing ${binfile}.  So we try again without the
     # ulimit here if we didn't find a core file above.
+    # Oh, I should mention that any "braindamaged" non-Unix system has
+    # the same problem. I like the cd bit too, it's really neat'n stuff.
     catch "system \"(cd ${objdir}/${subdir}; ${binfile}; true) >/dev/null 2>&1\""
     foreach i "${objdir}/${subdir}/core ${objdir}/${subdir}/core.coremaker.c ${binfile}.core" {
-       set exec_output [execute_anywhere "ls $i"]
-       if [ regexp "No such file or directory|not found" ${exec_output} ] {
-           continue
-       } else {
-           execute_anywhere "mv $i ${objdir}/${subdir}/corefile"
+       if [remote_file build exists $i] {
+           remote_exec build "mv $i ${objdir}/${subdir}/corefile"
            set found 1
        }
     }
index eed58b4d24016f0d8893d19d19fe8d230eeb702b..0683cf9cbfb3f025932b5cdef2796453acaf236a 100644 (file)
@@ -35,7 +35,7 @@ verbose "FIXME: all the crossload tests ignored"
 return
 
 foreach i "m68k-elf m68k-aout m68k-aout2 mips-ecoff i486-elf sparc-aout i860-elf sparc-elf" {
-    execute_anywhere "cd ${objdir}/${subdir} ; uudecode ${srcdir}/${subdir}/$i.u "
+    remote_exec build "cd ${objdir}/${subdir} ; uudecode ${srcdir}/${subdir}/$i.u "
 }
 
 # FIXME: These tests don't work for the i960, because
index 31b72ff838e94634379de2de3b3d0d33a06ead0a..828ef129940246cd7423464789d81d28e5faf3a7 100644 (file)
@@ -654,8 +654,7 @@ proc gdb_file_cmd { arg } {
                     return 0
                 }
                 timeout {
-                    perror "(timeout) Couldn't load $arg, other program already l
-oaded."
+                    perror "(timeout) Couldn't load $arg, other program already loaded."
                     return -1
                 }
             }