+2010-05-05 Joel Brobecker <brobecker@adacore.com>
+
+ Remove the use of prms_id and bug_id throughout the testsuite.
+
2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
PR exp/11349.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "alpha*-*-*"] then {
verbose "Skipping alpha step tests."
# This file uses altivec-regs.c for input.
#
-set prms_id 0
-set bug_id 0
if {![istarget "powerpc*"] || [skip_altivec_tests]} then {
verbose "Skipping altivec register tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { ![istarget x86_64-*-* ] } {
verbose "Skipping amd64 byte register tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "x86_64-*-linux*"] then {
verbose "Skipping x86_64 displaced stepping tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { ![istarget x86_64-*-* ] } {
verbose "Skipping amd64 dword register tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { ![istarget x86_64-*-* ] } {
verbose "Skipping amd64 word register tests."
# This file uses e500-abi.c for input.
#
-set prms_id 0
-set bug_id 0
if ![istarget "powerpc-*eabispe"] then {
verbose "Skipping e500 abi tests."
# Test PowerPC E500 prologue analyzer.
-set prms_id 0
-set bug_id 0
if ![istarget "powerpc-*"] then {
verbose "Skipping powerpc E500 prologue tests."
# This file uses e500-regs.c for input.
#
-set prms_id 0
-set bug_id 0
if ![istarget "powerpc-*eabispe"] then {
verbose "Skipping e500 register tests."
# Test SH backtraces with >256 byte frame stack. (PR:1291)
-set prms_id 0
-set bug_id 0
if ![istarget "sh-*-*"] then {
verbose "Skipping SH backtrace tests."
# Observe that the until command doesn't go all the way to sub2.
-set prms_id 0
-set bug_id 0
if ![istarget "sh-*-*"] then {
verbose "Skipping SH backtrace tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "sh-*-*"] then {
verbose "Skipping SH breakpoint test."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { ![istarget i?86-*-*] && ![istarget x86_64-*-* ] } {
verbose "Skipping x86 AVX tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { ![istarget i?86-*-*] } {
verbose "Skipping i386 byte register tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "i?86-*-linux*"] then {
verbose "Skipping x86 displaced stepping tests."
# Test i386 unwinder.
-set prms_id 0
-set bug_id 0
if ![istarget "i?86-*-*"] then {
verbose "Skipping i386 unwinder tests."
# Test i386 prologue analyzer.
-set prms_id 0
-set bug_id 0
if ![istarget "i?86-*-*"] then {
verbose "Skipping i386 prologue tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { ![istarget i?86-*-*] && ![istarget x86_64-*-* ] } {
verbose "Skipping x86 SSE tests."
# Test i386 unwinder.
-set prms_id 0
-set bug_id 0
if ![istarget "i?86-*-*"] then {
verbose "Skipping i386 unwinder tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { ![istarget i?86-*-*] } {
verbose "Skipping i386 word register tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Test handling of nullified instructions for the pa target.
# Test rs6000 prologue analyzer.
-set prms_id 0
-set bug_id 0
if ![istarget "powerpc-*-aix*"] then {
verbose "Skipping powerpc-aix prologue tests."
# a lwarx/ldarx instruction and ending with a stwcx/stdcx
# instruction.
-set prms_id 0
-set bug_id 0
if ![istarget "powerpc64-*"] then {
verbose "Skipping testing of powerpc64 single stepping over atomic sequences."
# Contributed by Markus Deuling <deuling@de.ibm.com>.
# Tests for 'info spu' commands.
-set prms_id 0
-set bug_id 0
if { ![istarget "spu-*-elf"] } then {
verbose "Skipping SPU-only testcase"
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { ![istarget i?86-*-linux*] && ![istarget x86_64-*-linux* ] } {
verbose "Skipping system register gcore tests."
# Test the use of VSX registers, for Powerpc.
#
-set prms_id 0
-set bug_id 0
if {![istarget "powerpc*"] || [skip_vsx_tests]} then {
verbose "Skipping vsx register tests."
# This file uses asmsrc[12].s for input.
#
-set prms_id 0
-set bug_id 0
set asm-arch ""
set asm-note "empty"
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile a2-run
if { [prepare_for_testing ${testfile}.exp $testfile run.c] } {
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "all-types"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "annota1"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "annota3"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "int-type"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "all-types"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "async"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# On HP-UX 11.0, this test is causing a process running the program
# "attach" to be left around spinning. Until we figure out why, I am
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "auxv"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Are we on a target board? As of 2004-02-12, GDB didn't have a
# mechanism that would let it efficiently access a remote corefile.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "bitfields"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "bitfields2"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
gdb_exit
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "call-ar-st"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "call-rt-st"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Some targets can't call functions, so don't even bother with this
# test.
continue
}
-set prms_id 0
-set bug_id 0
set testfile "call-signals"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "call-strs"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "callexit"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "callfuncs"
set srcfile ${testfile}.c
continue
}
-set prms_id 0
-set bug_id 0
global srcfile
set testfile "catch-syscall"
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "charset"
set srcfile ${testfile}.c
continue
}
-set prms_id 0
-set bug_id 0
set testfile "checkpoint"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# IDT/SIM apparently doesn't have enough file descriptors to allow the
# problem checked by this test to occur.
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "cvexpr"
set srcfile ${testfile}.c
#
# test special commands (if, while, etc)
#
-set prms_id 0
-set bug_id 0
if { [prepare_for_testing commands.exp commands run.c {debug additional_flags=-DFAKEARGV}] } {
return -1
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "break"
set srcfile ${testfile}.c
strace $tracelevel
}
-set bug_id 0
set testfile complex
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "break"
set srcfile ${testfile}.c
# Test breakpoints at consecutive instruction addresses.
#
-set prms_id 0
-set bug_id 0
set testfile "consecutive"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "constvars"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# are we on a target board
if ![isnative] then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "cursal"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "cvexpr"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "break"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile del
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Only GNU/Linux is known to support this.
if { ! [istarget "*-*-linux*"] } {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "dump"
# test the echo command
#
-# this sets the prms id number. This is the number that will appear
-# on all the output logs.
-# ex: set prms_id 643
-set prms_id 0
-
-# this sets the bug id id. This is the number that will appear
-# on all the output logs. This is optional and if it is not set
-# it will appear on all output logs as a 0.
-# ex: set bug_id 12
-set bug_id 0
-
gdb_test "echo Hello world!\\n" "Hello world!" "Echo test"
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "break"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
# This test exists solely to exercise the "environment" commands for
# code-coverage on HP-UX.
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "exprs"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "fileio"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# re-use the program from the "return2" test.
if { [prepare_for_testing finish.exp finish return2.c] } {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if {[skip_shlib_tests]} {
return 0
# Test floating-point related functionality.
#
-set prms_id 0
-set bug_id 0
if { [prepare_for_testing float.exp float run.c] } {
return -1
continue
}
-set prms_id 0
-set bug_id 0
set testfile "foll-exec"
set testfile2 "execd-prog"
continue
}
-set prms_id 0
-set bug_id 0
global srcfile
set testfile "foll-fork"
continue
}
-set prms_id 0
-set bug_id 0
# NOTE drow/2002-12-06: I don't know what the referenced kernel problem
# is, but it appears to be fixed in recent HP/UX versions.
# reproduction recipe is more delicate than I would like. I welcome
# suggestions for improving this.
-set prms_id 0
-set bug_id 0
set testfile "freebpcmd"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "funcargs"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "gcore-buffer-overflow"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "gcore"
set srcfile ${testfile}.c
# test SIGFPE (such as division by 0) inside gdb itself
-set prms_id 0
-set bug_id 0
gdb_start
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "gdb1090"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "gdb11531"
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "gdb1250"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "gdbvars"
set srcfile ${testfile}.c
# This file is part of the gdb testsuite.
-# Test loading of line number information with absolute path in #line, bug 2360.
+# Test loading of line number information with absolute path in #line,
+# PR symtab/9465.
if $tracelevel then {
strace $tracelevel
}
-set prms_id 2360
-set bug_id 0
-
# srcfile is in objdir because we need to machine generate it in order
# to get the correct path in the #line directive.
# This file is part of the gdb testsuite.
# Test loading of line number information with an absolute path with extra
-# /'s in #line, bug 2360.
+# /'s in #line, PR symtab/9465.
if $tracelevel then {
strace $tracelevel
}
-set prms_id 2360
-set bug_id 0
-
# srcfile is in objdir because we need to machine generate it in order
# to get the correct path in the #line directive.
# This file is part of the gdb testsuite.
-# Test loading of line number information with relative path in #line, bug 2360.
+# Test loading of line number information with relative path in #line,
+# PR symtab/9465.
if $tracelevel then {
strace $tracelevel
}
-set prms_id 2360
-set bug_id 0
-
# srcfile is in objdir because we need to machine generate it in order
# to get the correct path in the #line directive.
# test gdb help commands
#
-set prms_id 0
-set bug_id 0
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Define if you want to skip this test
# (could be very time-consuming on remote targets with slow connection).
continue
}
-set prms_id 0
-set bug_id 0
set ws "\[ \t\]+"
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile info-target
if { [prepare_for_testing ${testfile}.exp $testfile start.c] } {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile interrupt
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
clear_xfail "*-*-*"
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile langs
set binfile ${objdir}/${subdir}/${testfile}
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "lineinc"
set binfile ${objdir}/${subdir}/${testfile}
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "list"
set binfile ${objdir}/${subdir}/${testfile}
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "int-type"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "longjmp"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set srcfile macscp1.c
set testfile "macscp"
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "break"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile mips_pro
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "miscexprs"
set srcfile ${testfile}.c
continue
}
-set prms_id 0
-set bug_id 0
set testfile "multi-forks"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile nodebug
set srcfile $srcdir/$subdir/$testfile.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "opaque"
set binfile ${objdir}/${subdir}/opaque
# test running programs
#
-set prms_id 0
-set bug_id 0
set data_overlays 1
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "pc-fp"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if {[skip_shlib_tests]} {
return 0
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "pointers"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# are we on a target board
if ![isnative] then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "printcmds"
set srcfile ${testfile}.c
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "ptype"
set srcfile0 ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Start with a fresh gdb.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "recurse"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [prepare_for_testing relational.exp relational int-type.c {debug nowarnings}] } {
return -1
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# test only on a remote target board
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
-
set prototypes 1
# build the first test case
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
-set prms_id 13484
-set bug_id 0
-
# Load the first executable.
gdb_test "shell mv ${binfile1} ${binfile}" "" ""
# and reset the breakpoints correctly.
# Should see "Breakpoint 1, foo () at reread2.c:9"
-set prms_id 0
-
if [is_remote target] {
unsupported "run to foo() second time ";
} else {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "restore"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "return2"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile savedregs
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "scope"
set binfile ${objdir}/${subdir}/${testfile}
#
# test running programs
#
-set prms_id 0
-set bug_id 0
# This test exists solely to exercise the "section" command for
# code-coverage on HP-UX. (So far as I can tell, the "section"
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "sepdebug"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile start
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "setshow"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "setvar"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if {[skip_shlib_tests]} {
return 0
# This file uses shreloc.c, shreloc1.c and shreloc2.c
#
-set prms_id 0
-set bug_id 0
set workdir ${objdir}/${subdir}
set testfile "shreloc"
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile sigaltstack
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "sigbpt"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile siginfo-addr
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile siginfo-obj
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile siginfo
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile signals
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "signull"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile sigrepeat
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile sigstep
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "sizeof"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if {[skip_shlib_tests]} {
return 0
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# are we on a target board
if ![isnative] then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# are we on a target board
if ![isnative] then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "structs"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "stack-checking"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile start
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile step-bt
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "store"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Some targets can't call functions, so don't even bother with this
# test.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
-
set prototypes 1
set testfile "structs2"
set srcfile ${testfile}.c
# Ok, we're finally ready to actually do our tests.
-set prms_id 13536
-set bug_id 0
-
gdb_test "f" \
".*bkpt = 0.*" \
"structs2 sanity check"
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [prepare_for_testing term.exp term run.c] } {
return -1
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile twice-tmp
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if {[skip_shlib_tests]} {
return 0
continue
}
-set prms_id 0
-set bug_id 0
set testfile "unwindonsignal"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set prototypes 0
set testfile "varargs"
#
# test running programs
#
-set prms_id 0
-set bug_id 0
# Use the same test program constvars.c.
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if {[skip_shlib_tests]} {
return 0
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "watchpoint"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "watchpoints"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [prepare_for_testing whatis-exp.exp whatis-exp int-type.c {debug nowarnings}] } {
return -1
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if [target_info exists no_long_long] {
set exec_opts [list debug additional_flags=-DNO_LONG_LONG]
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
if { [skip_cplus_tests] } { continue }
-set prms_id 0
-set bug_id 0
set testfile "arg-reference"
set srcfile ${testfile}.cc
if { [skip_cplus_tests] } { continue }
-set prms_id 0
-set bug_id 0
set testfile "bool"
set srcfile ${testfile}.cc
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "breakpoint"
set srcfile ${testfile}.cc
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
if { [skip_cplus_tests] } { continue }
-set prms_id 0
-set bug_id 0
set testfile "class2"
set srcfile ${testfile}.cc
}
proc do_tests {} {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global gdb_prompt
global nl
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "cpexprs"
set srcfile "${testfile}.cc"
}
proc do_tests {} {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global gdb_prompt
global dm_type_int_star
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
# internal demangler with synthesized strings and tests the results.
proc do_tests {} {
- global prms_id
- global bug_id
global subdir
global gdb_prompt
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
# Start program.
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
# Start with a fresh gdb
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "gdb1355"
set srcfile ${testfile}.cc
# from objfile gdb2384-base.so. When the program is rerun the type
# information for base-in-so-base.so is discarded leaving
# TYPE_VPTR_BASETYPE dangling.
+#
+# PR c++/9489.
if $tracelevel then {
strace $tracelevel
if { [skip_cplus_tests] } { continue }
if { [skip_shlib_tests] } { continue }
-set prms_id 2384
-set bug_id 0
-
set testfile "gdb2384"
set srcfile ${testfile}.cc
set binfile $objdir/$subdir/$testfile
# inferior function call. These tests test the functionality around
# unwinding that sequence and also tests the flag behaviour gating this
# functionality.
+#
+# PR c++/9600.
# This test is largely based of gdb.base/callfuncs.exp.
return 0
}
-set prms_id 2495
-set bug_id 0
-
set testfile "gdb2495"
set srcfile ${testfile}.cc
set binfile $objdir/$subdir/$testfile
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
}
proc do_tests { } {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global binfile
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "m-data"
set srcfile ${testfile}.cc
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "m-static"
set srcfile "${testfile}.cc"
if { [skip_cplus_tests] } { continue }
-set prms_id 0
-set bug_id 0
set testfile "mb-ctor"
set srcfile ${testfile}.cc
if { [skip_cplus_tests] } { continue }
-set prms_id 0
-set bug_id 0
set testfile "mb-inline"
set hdrfile "${testfile}.h"
return 0
}
-set prms_id 0
-set bug_id 0
set testfile "mb-templates"
set srcfile ${testfile}.cc
if { [skip_cplus_tests] } { continue }
-set prms_id 0
-set bug_id 0
set testfile "member-ptr"
set srcfile ${testfile}.cc
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
}
proc do_tests {} {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global binfile
global gdb_prompt
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile namespace-nested-import
set srcfile ${testfile}.cc
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile nsdecl
set srcfile ${testfile}.cc
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile nsimport
set srcfile ${testfile}.cc
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile nsrecurs
set srcfile ${testfile}.cc
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile nsstress
set srcfile ${testfile}.cc
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile nsusing
set srcfile ${testfile}.cc
set ws "\[\r\n\t \]+"
set nl "\[\r\n\]+"
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "pr-1023"
set srcfile ${testfile}.cc
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "pr-1210"
set srcfile ${testfile}.cc
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "pr-574"
set srcfile ${testfile}.cc
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "printmethod"
set srcfile ${testfile}.cc
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_cplus_tests] } { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "rtti"
set srcfile1 "${testfile}1.cc"
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile shadow
set srcfile ${testfile}.cc
}
proc do_tests {} {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global binfile
global gdb_prompt
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "try_catch"
set srcfile ${testfile}.cc
}
proc do_tests {} {
- global prms_id
- global bug_id
global srcdir subdir binfile
global gdb_prompt
- set prms_id 0
- set bug_id 0
gdb_exit
gdb_start
}
global exec_output
-set prms_id 0
-set bug_id 0
set testfile "am33"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "h8300s"
set srcfile ${srcdir}/${subdir}/${testfile}.s
}
-set prms_id 0
-set bug_id 0
set testfile "hppa"
set srcfile ${srcdir}/${subdir}/${testfile}.s
}
global exec_output
-set prms_id 0
-set bug_id 0
set testfile "mn10300"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "sh3"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t01_mov"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t02_mova"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t03_add"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t04_sub"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t05_cmp"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t06_ari2"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t07_ari3"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t08_or"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t09_xor"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t10_and"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t11_logs"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t12_bit"
set srcfile ${srcdir}/${subdir}/${testfile}.s
return
}
-set prms_id 0
-set bug_id 0
set testfile "t13_otr"
set srcfile ${srcdir}/${subdir}/${testfile}.s
if { [skip_fortran_tests] } { continue }
-set prms_id 0
-set bug_id 0
# Set the current language to fortran. This counts as a test. If it
# fails, then we skip the other tests.
if { [skip_fortran_tests] } { continue }
-set prms_id 0
-set bug_id 0
# Set the current language to fortran. This counts as a test. If it
# fails, then we skip the other tests.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# are we on a target board
if { [is_remote target] || ![isnative] } then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# are we on a target board
if { [is_remote target] || ![isnative] } then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# are we on a target board
if { [is_remote target] || ![isnative] } then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# are we on a target board
if { [is_remote target] || ![isnative] } then {
#
# test special commands
#
-set prms_id 0
-set bug_id 0
if { [skip_hp_tests] } then { continue }
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { [skip_hp_tests] } then { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_hp_tests] } { continue }
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { [skip_hp_tests] } then { continue }
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { [skip_hp_tests] } then { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if { [skip_hp_tests] } then { continue }
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if { [skip_hp_tests] } then { continue }
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "xdb"
set srcfile ${testfile}.c
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile "xdb"
set binfile ${objdir}/${subdir}/${testfile}
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile bs14602
if { [skip_hp_tests] } { continue }
-set prms_id 0
-set bug_id 0
# are we on a target board
if ![isnative] {
continue
}
-set prms_id 0
-set bug_id 0
# Start with a fresh gdb.
"set language to \"java\""]
}
-set prms_id 0
-set bug_id 0
# Start with a fresh gdb.
"set language to \"java\""]
}
-set prms_id 0
-set bug_id 0
# Start with a fresh gdb.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Set the current language to Java. This counts as a test. If it
# fails, then we skip the other tests.
if { [skip_java_tests] } { continue }
-set prms_id 0
-set bug_id 0
# Set the current language to Java. This counts as a test. If it
# fails, then we skip the other tests.
#
# test running programs
#
-set prms_id 0
-set bug_id 0
if {[skip_shlib_tests]} {
return 0
}
proc do_objc_tests {} {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global binfile
global gdb_prompt
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
}
proc do_objc_tests {} {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global binfile
global gdb_prompt
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
}
proc do_objc_tests {} {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global binfile
global gdb_prompt
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Set the current language to pascal. This counts as a test. If it
# fails, then we skip the other tests.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "i?86-*linux*"] then {
verbose "Skipping i386 reverse tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "i?86-*linux*"] then {
verbose "Skipping i386 reverse tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "*86*-*linux*"] then {
verbose "Skipping i386 reverse tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "i?86-*linux*"] then {
verbose "Skipping i387 reverse float tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
if ![istarget "i?86-*linux*"] then {
verbose "Skipping i387 reverse float tests."
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
#
# test running programs
#
-set prms_id 0
-set bug_id 0
set testfile exclfwd
set binfile ${objdir}/${subdir}/${testfile}
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "gdb11479"
return 0
}
-set prms_id 0
-set bug_id 0
set testfile weird
set srcfile ${objdir}/${subdir}/weird.s
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# Single-threaded test case
set testfile "pthreads"
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "killed"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# This only works with Linux configurations.
if ![istarget *-*-linux-gnu*] then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "manythreads"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "print-threads"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# This only works with native configurations
if ![isnative] then {
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "schedlock"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "staticthreads"
set srcfile ${testfile}.c
}
proc do_tests {} {
- global prms_id
- global bug_id
global subdir
global objdir
global srcdir
global binfile
global gdb_prompt
- set prms_id 0
- set bug_id 0
# Start with a fresh gdb.
return
}
-set prms_id 0
-set bug_id 0
# Start with a fresh gdb.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "thread-specific"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "thread_check"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "thread_events"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# This test verifies that a macro using backtrace can be applied to all threads
# and will continue for each thread even though an error may occur in
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# This test verifies that a watchpoint is detected in the proper thread
# so the test is only meaningful on a system with hardware watchpoints.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
# This test verifies that a watchpoint is detected in the proper thread
# so the test is only meaningful on a system with hardware watchpoints.
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "circ"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "collection"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
set testfile "limits"
set srcfile ${testfile}.c
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start
strace $tracelevel
}
-set prms_id 0
-set bug_id 0
gdb_exit
gdb_start