* gdb.base/callfuncs.exp: Remove the compiler info file prior to
attempting to regenerate it. Eliminate use of a temporary file and just generate the info file directly. Source it immediately, for consistency of use. * gdb.base/corefile.exp: Ditto * gdb.base/exprs.exp: Ditto. * gdb.base/funcargs.exp: Ditto. * gdb.base/langs.exp: Ditto. * gdb.base/list.exp: Ditto. * gdb.base/mips_pro.exp: Ditto. * gdb.base/nodebug.exp: Ditto. * gdb.base/opaque.exp: Ditto. * gdb.base/ptype.exp: Ditto. * gdb.base/scope.exp: Ditto. * gdb.base/setvar.exp: Ditto. * gdb.base/signals.exp: Ditto. * gdb.base/whatis.exp: Ditto. * gdb.c++/templates.exp: Ditto. * gdb.c++/virtfunc.exp: Ditto. * gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide whether or not to add -lstdc++ to the compile command line args.
This commit is contained in:
parent
a5d0cd5037
commit
04d5f3d6ec
2 changed files with 49 additions and 11 deletions
|
@ -1,3 +1,34 @@
|
|||
Thu May 23 12:48:41 1996 Fred Fish <fnf@cygnus.com>
|
||||
|
||||
* gdb.base/callfuncs.exp: Remove the compiler info file prior to
|
||||
attempting to regenerate it. Eliminate use of a temporary file
|
||||
and just generate the info file directly. Source it immediately,
|
||||
for consistency of use.
|
||||
* gdb.base/corefile.exp: Ditto
|
||||
* gdb.base/exprs.exp: Ditto.
|
||||
* gdb.base/funcargs.exp: Ditto.
|
||||
* gdb.base/langs.exp: Ditto.
|
||||
* gdb.base/list.exp: Ditto.
|
||||
* gdb.base/mips_pro.exp: Ditto.
|
||||
* gdb.base/nodebug.exp: Ditto.
|
||||
* gdb.base/opaque.exp: Ditto.
|
||||
* gdb.base/ptype.exp: Ditto.
|
||||
* gdb.base/scope.exp: Ditto.
|
||||
* gdb.base/setvar.exp: Ditto.
|
||||
* gdb.base/signals.exp: Ditto.
|
||||
* gdb.base/whatis.exp: Ditto.
|
||||
* gdb.c++/templates.exp: Ditto.
|
||||
* gdb.c++/virtfunc.exp: Ditto.
|
||||
* gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide
|
||||
whether or not to add -lstdc++ to the compile command line args.
|
||||
|
||||
Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
|
||||
|
||||
* gdb.base/recurse.exp: Remove setup_xfail for "sparc*-*-sunos4*",
|
||||
it got fixed by the recent lookup_minimal_symbol_by_pc change.
|
||||
Increase timeout, a lot of single stepping might be needed if the
|
||||
target has no hardware watchpoints.
|
||||
|
||||
Wed May 15 08:47:42 1996 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gdb.base/break.exp: Ignore compiler warnings when compiling
|
||||
|
|
|
@ -28,29 +28,29 @@ set bug_id 0
|
|||
|
||||
set prototypes 0
|
||||
set testfile "callfuncs"
|
||||
set srcfile ${srcdir}/${subdir}/${testfile}.c
|
||||
set srcfile ${testfile}.c
|
||||
set binfile ${objdir}/${subdir}/${testfile}
|
||||
|
||||
# build the first test case
|
||||
execute_anywhere "echo set prototypes 1 > ${objdir}/${subdir}/callfuncs.tmp"
|
||||
if { [compile "-g ${srcfile} -o ${binfile} "] != "" } {
|
||||
if { [compile "-g ${srcdir}/${subdir}/${srcfile} -o ${binfile} "] != "" } {
|
||||
execute_anywhere "rm -f ${objdir}/${subdir}/callfuncs.tmp"
|
||||
# built the second test case since we can't use prototypes
|
||||
warning "Prototypes not supported, rebuilding with -DNO_PROTOTYPES"
|
||||
execute_anywhere "echo set prototypes 0 > ${objdir}/${subdir}/callfuncs.tmp"
|
||||
if { [compile "-g -DNO_PROTOTYPES ${srcfile} -o ${binfile} "] != "" } {
|
||||
if { [compile "-g -DNO_PROTOTYPES ${srcdir}/${subdir}/${srcfile} -o ${binfile} "] != "" } {
|
||||
perror "Couldn't compile ${testfile}.c"
|
||||
return -1
|
||||
}
|
||||
}
|
||||
|
||||
if { [compile "-E ${srcdir}/${subdir}/compiler.c >> ${objdir}/${subdir}/callfuncs.tmp"] != "" } {
|
||||
perror "Couldn't make ${testfile}.tmp"
|
||||
# Create and source the file that provides information about the compiler
|
||||
# used to compile the test case.
|
||||
execute_anywhere "rm -f ${binfile}.ci"
|
||||
if { [compile "-E ${srcdir}/${subdir}/compiler.c >> ${binfile}.ci"] != "" } {
|
||||
perror "Couldn't make ${binfile}.ci"
|
||||
return -1
|
||||
}
|
||||
|
||||
execute_anywhere "mv ${objdir}/${subdir}/callfuncs.tmp ${binfile}.ci"
|
||||
|
||||
source ${binfile}.ci
|
||||
|
||||
# The a29k can't call functions, so don't even bother with this test.
|
||||
|
@ -60,6 +60,12 @@ if [istarget "a29k-*-udi"] then {
|
|||
continue
|
||||
}
|
||||
|
||||
# The h8300 simulator can't call functions, so don't even bother with this test.
|
||||
if [istarget "h8300*-*-*"] then {
|
||||
setup_xfail "h8300*-*-*"
|
||||
fail "h8300*-*-* simulator can not call functions"
|
||||
continue
|
||||
}
|
||||
# Set the current language to C. This counts as a test. If it
|
||||
# fails, then we skip the other tests.
|
||||
|
||||
|
@ -136,9 +142,10 @@ proc do_function_calls {} {
|
|||
# Although PR 5318 mentions SunOS specifically, this seems
|
||||
# to be a generic problem on quite a few platforms.
|
||||
if $prototypes then {
|
||||
setup_xfail "*-*-*" 5318
|
||||
clear_xfail "rs6000-*-*"
|
||||
if {$gcc_compiled} then { clear_xfail "alpha-dec-osf2*" }
|
||||
setup_xfail "hppa*-*-*" "sparc-*-*" "mips*-*-*" 5318
|
||||
if {!$gcc_compiled} then {
|
||||
setup_xfail "alpha-dec-osf2*" "i*86-*-sysv4*" 5318
|
||||
}
|
||||
}
|
||||
gdb_test "p t_float_values2(3.14159,float_val2)" " = 1"
|
||||
gdb_test "p t_small_values(1,2,3,4,5,6,7,8,9,10)" " = 55"
|
||||
|
|
Loading…
Reference in a new issue