mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
From Rob Savoye (rob@poseidon.cygnus.com)
* Makefile.in, configure.in, gdb.base/{Makefile.in, configure.in}, gdb.c++/{Makefile.in, configure.in}, gdb.chill/{Makefile.in, configure.in}, gdb.disasm/{Makefile.in, configure.in}, gdb.stabs/{Makefile.in, configure.in}, gdb.threads/{Makefile.in, configure.in}: Major reworking for autoconfig. * aclocal.m4, configure, gdb.base/configure, gdb.c++/configure, gdb.disasm/configure, gdb.stabs/configure, gdb.stabs/default.mt : New files. * config/unix-gdb.exp: Make GDB global. * gdb.base/{a1-selftest.exp, a2-run.exp,bitfields.exp, break.exp, callfuncs.exp, commands.exp, corefile.exp, crossload.exp, exprs.exp, funcargs.exp, interrupt.exp, langs.exp, list.exp, mips_pro.exp, nodebug.exp, opaque.exp, printcmds.exp, ptype.exp, recurse.exp, regs.exp, return.exp, scope.exp, setvar.exp, sigall.exp, signals.exp, term.exp, twice.exp, watchpoint.exp, whatis.exp}, gdb.c++/{classes.exp, callfuncs.exp, inherit.exp, misc.exp, templates.exp, virtfunc.exp}, gdb.chill/{callch.exp, chillvars.exp, misc.exp, pr-4975.exp, pr-5016.exp, pr-5020.exp, pr-5022.exp, pr-5646.exp, pr-5984.exp, pr-6292.exp, pr-6632.exp, pr-8134.exp, pr-8136.exp, result.exp, string.exp, tuples.exp}, gdb.disasm/{hppa.exp, sh3.exp}, gdb.stabs/weird.exp: Change continues to returns as necessary, arrange for test to compile own testcase executable. * lib/gdb.exp: Changes for testsuite to compile own test cases. From Fred Fish (fnf@cygnus.com) * gdb.c++/classes.exp (test_pointers_to_class_members): Add clear_xfail at end of test which might not call either pass or fail. * gdb.base/a1-selftest.exp: Add i*86-*-linuxaout xfail for "backtrace through signal handler".
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 1988, 1990, 1991, 1992 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1988, 1990, 1991, 1992, 1994 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -12,7 +12,7 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
# Please email any bugs, comments, and/or additions to this file to:
|
||||
# bug-gdb@prep.ai.mit.edu
|
||||
@ -29,23 +29,32 @@ if $tracelevel then {
|
||||
set prms_id 0
|
||||
set bug_id 0
|
||||
|
||||
set binfile "exprs"
|
||||
set testfile "exprs"
|
||||
set srcfile ${srcdir}/$subdir/${testfile}.c
|
||||
set binfile ${objdir}/${subdir}/${testfile}
|
||||
if { [compile "${srcfile} -g -o ${binfile}"] != "" } {
|
||||
perror "Couldn't compile ${srcfile}"
|
||||
return -1
|
||||
}
|
||||
|
||||
if ![file exists $objdir/$subdir/$binfile] then {
|
||||
perror "$objdir/$subdir/$binfile does not exist."
|
||||
return 0
|
||||
execute_anywhere "rm -f ${binfile}.ci"
|
||||
if { [compile "-E ${srcdir}/${subdir}/compiler.c > ${binfile}.ci"] != "" } {
|
||||
perror "Couldn't make ${testfile}.ci file"
|
||||
return -1
|
||||
}
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
gdb_load $objdir/$subdir/$binfile
|
||||
gdb_load ${binfile}
|
||||
|
||||
source ${binfile}.ci
|
||||
|
||||
#
|
||||
# set it up at a breakpoint so we can play with the variable values
|
||||
#
|
||||
|
||||
if ![runto main] then {
|
||||
if ![runto_main] then {
|
||||
perror "couldn't run to breakpoint"
|
||||
continue
|
||||
}
|
||||
@ -233,6 +242,7 @@ expect {
|
||||
|
||||
|
||||
# make char a minus
|
||||
if {!$gcc_compiled} then { setup_xfail "mips-sgi-irix4*" }
|
||||
send "set variable v_signed_char=-1\n"
|
||||
expect {
|
||||
-re "set.*$prompt $" {
|
||||
@ -255,6 +265,7 @@ expect {
|
||||
}
|
||||
|
||||
|
||||
if {!$gcc_compiled} then { setup_xfail "mips-sgi-irix4*" }
|
||||
send "set variable v_signed_char=-1\n"
|
||||
expect {
|
||||
-re "set.*$prompt $" {
|
||||
@ -277,6 +288,7 @@ expect {
|
||||
}
|
||||
|
||||
|
||||
if {!$gcc_compiled} then { setup_xfail "mips-sgi-irix4*" }
|
||||
send "set variable v_signed_char=-1\n"
|
||||
expect {
|
||||
-re "set.*$prompt $" {
|
||||
@ -298,7 +310,7 @@ expect {
|
||||
timeout { fail "(timeout) print signed char < (minus)" }
|
||||
}
|
||||
|
||||
|
||||
if {!$gcc_compiled} then { setup_xfail "mips-sgi-irix4*" }
|
||||
send "set variable v_signed_char=-1\n"
|
||||
expect {
|
||||
-re "set.*$prompt $" {
|
||||
@ -1530,9 +1542,6 @@ expect {
|
||||
}
|
||||
}
|
||||
-re "print.*.\[0-9\]* = 0.*$prompt $" {
|
||||
# gdb currently compares all values as long, so this failure probably
|
||||
# applies to any configuration where LONGEST is bigger than a target int.
|
||||
setup_xfail "alpha-*-*"
|
||||
fail "print unsigned int == (~0)"
|
||||
send "print v_unsigned_int == (unsigned int)~0\n"
|
||||
expect {
|
||||
@ -2165,8 +2174,3 @@ expect {
|
||||
-re "$prompt $" { fail "print unsigned long > (~0)" }
|
||||
timeout { fail "(timeout) print unsigned long > (~0)" }
|
||||
}
|
||||
|
||||
if [istarget "a29k-*-udi"] then {
|
||||
# FIXME: If PR 2415 is fixed, this is not needed.
|
||||
gdb_target_udi
|
||||
}
|
||||
|
Reference in New Issue
Block a user