* 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.

Fixes failures on HP-UX.
This commit is contained in:
Bob Manson 1997-01-31 21:21:31 +00:00
parent 2b063e6d64
commit 05a2139023
6 changed files with 28 additions and 19 deletions

View 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.

View 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

View 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

View 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
}
}

View 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

View 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
}
}