require {istarget "powerpc*-*-aix*"}
if { [prepare_for_testing "failed to prepare" aix-sighandle aix-sighandle.c] } {
- return -1
+ return
}
set srcfile aix-sighandle.c
altivec_abi_tests "additional_flags=-qaltivec" "auto"
} else {
warning "unknown compiler"
- return -1
+ return
}
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
#
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "start here"]
#
if {![runto_main]} {
- return 0
+ return
}
gdb_test "b marker" "Breakpoint 2 at.*file.*e500-abi.c, line ${::decimal}." "break marker"
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart
#
if {![runto_main]} {
- return 0
+ return
}
# set all the registers integer portions to 1
clean_restart
gdb_load $binfile
if {![runto_main]} {
- return 0
+ return
}
gdb_test "break vector_fun" \
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
if {![runto_main]} {
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
}
if {[gdb_test "show arch" ".*powerpc:common.*" "checking for PPC arch"]} {
- return -1
+ return
}
gdb_test "next" ""
}
if {[build_executable "compile" $binfile $gen_src] == -1} {
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
# Check if our target has FPSCR
}
if { ![check_fpscr_access] } {
- return -1
+ return
}
set fpscr_size_process [get_integer_valueof "sizeof(\$fpscr)" -1 "process size"]
set core_generated [gdb_gcore_cmd "$core_filename" "generate core file"]
if { !$core_generated } {
- return -1
+ return
}
clean_restart
set core_loaded [gdb_core_cmd "$core_filename" "load core file"]
if { $core_loaded != 1 } {
- return -1
+ return
}
set fpscr_size_corefile [get_integer_valueof "sizeof(\$fpscr)" -2 "corefile size" ]
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
if {![runto_main]} {
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
gdb_test "set radix 0b10000"
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
[list ${srcdir}/${subdir}/$srcfile ${srcdir}/${subdir}/$srcfile2] \
"${binfile}" executable {}] != ""} {
untested "failed to build $binfile"
- return -1
+ return
}
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
untested "PowerPC prologue tests"
- return -1
+ return
}
#
if {![runto_main]} {
- return 0
+ return
}
# Testcase for PIC prologue.
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Run until SIGSEGV.
standard_testfile .c
if {[build_executable "compile" $binfile $srcfile {debug}] == -1} {
- return -1
+ return
}
proc check_register_access { regname } {
}
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto_main]} {
untested "could not run to main"
- return -1
+ return
}
set keep_going 1
}
if {[build_executable "compile" $binfile $gen_src] == -1} {
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
# Check if VSX register access through gdb is supported
}
if { ![check_vsx_access] } {
- return -1
+ return
}
for {set i 0} {$i < 64} {incr i 1} {
set core_generated [gdb_gcore_cmd "$core_filename" "generate core file"]
if { !$core_generated } {
- return -1
+ return
}
clean_restart
set core_loaded [gdb_core_cmd "$core_filename" "load core file"]
if { $core_loaded != 1 } {
- return -1
+ return
}
for {set i 0} {$i < 64} {incr i 1} {
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
untested "PowerPC prologue tests"
- return -1
+ return
}
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{}] } {
- return -1
+ return
}
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
# Testcase for PIC prologue.
if {![test_compiler_info gcc*]} {
# We use GCC's extended asm syntax
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
unsupported "this machine doesn't support Decimal Floating Point."
- return -1
+ return
}
clean_restart $::testfile
gdb_expect {
-re "$inferior_exited_re with code 01.\[\r\n\]+$gdb_prompt $" {
unsupported "this machine doesn't support Decimal Floating Point."
- return -1
+ return
}
-re ".*$gdb_prompt $" {}
if {![test_compiler_info gcc*]} {
# We use GCC's extended asm syntax
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
verbose "Skipping FPSCR tests."
- return -1
+ return
}
clean_restart $::testfile
standard_testfile .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug quiet}] } {
- return -1
+ return
}
# The test proper. DISPLACED is true if we should try with displaced
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $srcfile2] $flags] } {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "_exit"
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \
{debug quiet}] } {
- return -1
+ return
}
# The test proper. DISPLACED is true if we should try with displaced
set kofile [decompress_bz2 $kobz2file]
if { $kofile == "" } {
untested "failed bzip2 for [file tail $kobz2file]"
- return -1
+ return
}
set kodebugfile [decompress_bz2 $kodebugbz2file]
if { $kodebugfile == "" } {
untested "failed bzip2 for [file tail $kodebugbz2file]"
- return -1
+ return
}
# This test won't work properly if system debuginfo is installed.
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
set endianness [get_endianness]
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
set endianness [get_endianness]