mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
gdb/testsuite: fix "continue outside of loop" TCL errors
Many test cases had a few lines in the beginning that look like: if { condition } { continue } Where conditions varied, but were mostly in the form of ![runto_main] or [skip_*_tests], making it quite clear that this code block was supposed to finish the test if it entered the code block. This generates TCL errors, as most of these tests are not inside loops. All cases on which this was an obvious mistake are changed in this patch.
This commit is contained in:
@ -59,7 +59,7 @@ set MIFLAGS "-i=mi"
|
|||||||
|
|
||||||
gdb_exit
|
gdb_exit
|
||||||
if [mi_gdb_start] {
|
if [mi_gdb_start] {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
mi_delete_breakpoints
|
mi_delete_breakpoints
|
||||||
|
@ -28,7 +28,7 @@ set MIFLAGS "-i=mi"
|
|||||||
|
|
||||||
gdb_exit
|
gdb_exit
|
||||||
if [mi_gdb_start] {
|
if [mi_gdb_start] {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
mi_delete_breakpoints
|
mi_delete_breakpoints
|
||||||
|
@ -28,7 +28,7 @@ set MIFLAGS "-i=mi"
|
|||||||
|
|
||||||
gdb_exit
|
gdb_exit
|
||||||
if [mi_gdb_start] {
|
if [mi_gdb_start] {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
mi_delete_breakpoints
|
mi_delete_breakpoints
|
||||||
|
@ -43,7 +43,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "next" "return 0;" "continuing after dummy()"
|
gdb_test "next" "return 0;" "continuing after dummy()"
|
||||||
|
@ -39,7 +39,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarning
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -28,7 +28,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# First, print the array without the indexes
|
# First, print the array without the indexes
|
||||||
|
@ -42,7 +42,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "next" "return 0;" "continuing after dummy()"
|
gdb_test "next" "return 0;" "continuing after dummy()"
|
||||||
|
@ -29,7 +29,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
|
|||||||
#
|
#
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "break baz" ".*" ""
|
gdb_test "break baz" ".*" ""
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# This test only works on GNU/Linux.
|
# This test only works on GNU/Linux.
|
||||||
if { ![isnative] || [is_remote host] || [use_gdb_stub]
|
if { ![isnative] || [is_remote host] || [use_gdb_stub]
|
||||||
|| ![istarget *-linux*] || [skip_shlib_tests]} {
|
|| ![istarget *-linux*] || [skip_shlib_tests]} {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
load_lib prelink-support.exp
|
load_lib prelink-support.exp
|
||||||
|
@ -27,7 +27,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run to the breakpoint at return.
|
# Run to the breakpoint at return.
|
||||||
|
@ -180,7 +180,7 @@ proc test_shifts {} {
|
|||||||
"unknown" "ada" "modula-2" "pascal" "fortran"
|
"unknown" "ada" "modula-2" "pascal" "fortran"
|
||||||
}
|
}
|
||||||
if {[lsearch -exact $skip_langs $lang] >= 0} {
|
if {[lsearch -exact $skip_langs $lang] >= 0} {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test_no_output "set language $lang"
|
gdb_test_no_output "set language $lang"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping because of nosignals."
|
verbose "Skipping because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# This test requires sending ^C to interrupt the running target.
|
# This test requires sending ^C to interrupt the running target.
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping branch-to-self.exp because of nosignals."
|
verbose "Skipping branch-to-self.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# This test only works on GNU/Linux.
|
# This test only works on GNU/Linux.
|
||||||
if { ![isnative] || [is_remote host] || [use_gdb_stub]
|
if { ![isnative] || [is_remote host] || [use_gdb_stub]
|
||||||
|| ![istarget *-linux*] || [skip_shlib_tests]} {
|
|| ![istarget *-linux*] || [skip_shlib_tests]} {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
load_lib prelink-support.exp
|
load_lib prelink-support.exp
|
||||||
|
@ -23,7 +23,7 @@ standard_testfile
|
|||||||
# test.
|
# test.
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create and source the file that provides information about the compiler
|
# Create and source the file that provides information about the compiler
|
||||||
@ -50,7 +50,7 @@ gdb_test_no_output "set width 0"
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
get_debug_format
|
get_debug_format
|
||||||
|
@ -41,7 +41,7 @@ if [get_compiler_info] {
|
|||||||
# test.
|
# test.
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set skip_float_test [gdb_skip_float_test]
|
set skip_float_test [gdb_skip_float_test]
|
||||||
@ -56,7 +56,7 @@ gdb_test_no_output "set width 0"
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile .c
|
standard_testfile .c
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping call-signal-resume.exp because of nosignals."
|
verbose "Skipping call-signal-resume.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
|||||||
# test.
|
# test.
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
proc get_dummy_frame_number { } {
|
proc get_dummy_frame_number { } {
|
||||||
|
@ -29,7 +29,7 @@ standard_testfile
|
|||||||
# test.
|
# test.
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ gdb_test_no_output "set width 0"
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set prev_timeout $timeout
|
set prev_timeout $timeout
|
||||||
|
@ -25,7 +25,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
|||||||
# test.
|
# test.
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Start with a fresh gdb.
|
# Start with a fresh gdb.
|
||||||
|
@ -27,7 +27,7 @@ if [support_complex_tests] {
|
|||||||
# test.
|
# test.
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set skip_float_test [gdb_skip_float_test]
|
set skip_float_test [gdb_skip_float_test]
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
if {[target_info exists gdb,cannot_call_functions]} {
|
if {[target_info exists gdb,cannot_call_functions]} {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile .c
|
standard_testfile .c
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
# Until "catch fork" is implemented on other targets...
|
# Until "catch fork" is implemented on other targets...
|
||||||
#
|
#
|
||||||
if { ![istarget "*-*-linux*"] && ![istarget "*-*-openbsd*"] } then {
|
if { ![istarget "*-*-linux*"] && ![istarget "*-*-openbsd*"] } then {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Reusing foll-fork.c since it's a simple forking program.
|
# Reusing foll-fork.c since it's a simple forking program.
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping catch-signal-fork.exp because of nosignals."
|
verbose "Skipping catch-signal-fork.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping catch-signal.exp because of nosignals."
|
verbose "Skipping catch-signal.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
# other targets...
|
# other targets...
|
||||||
#
|
#
|
||||||
if {![istarget "*-*-linux*"]} then {
|
if {![istarget "*-*-linux*"]} then {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Checkpoint support is currently implemented in the Linux native
|
# Checkpoint support is currently implemented in the Linux native
|
||||||
# target, so only works with "target native".
|
# target, so only works with "target native".
|
||||||
if { [target_info gdb_protocol] != "" } {
|
if { [target_info gdb_protocol] != "" } {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Must name the source file explicitly, otherwise when driven by
|
# Must name the source file explicitly, otherwise when driven by
|
||||||
|
@ -44,7 +44,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "print (2 ? 3 : 4)" "\[0-9\]* = 3" \
|
gdb_test "print (2 ? 3 : 4)" "\[0-9\]* = 3" \
|
||||||
|
@ -32,7 +32,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarning
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set is_stmt [is_stmt_addresses $srcfile]
|
set is_stmt [is_stmt_addresses $srcfile]
|
||||||
|
@ -48,7 +48,7 @@ clean_restart ${binfile}
|
|||||||
#
|
#
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
get_debug_format
|
get_debug_format
|
||||||
|
@ -43,7 +43,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
|
|||||||
#
|
#
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# test vars and pointers
|
# test vars and pointers
|
||||||
|
@ -281,7 +281,7 @@ if [runto_main] then {
|
|||||||
|
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# We need to up this because this can be really slow on some boards.
|
# We need to up this because this can be really slow on some boards.
|
||||||
|
@ -32,7 +32,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set sizeof_long [get_sizeof "long" 4]
|
set sizeof_long [get_sizeof "long" 4]
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# This test exercises disassemble /s with optimized and inlined code.
|
# This test exercises disassemble /s with optimized and inlined code.
|
||||||
|
|
||||||
if { ![is_amd64_regs_target] } {
|
if { ![is_amd64_regs_target] } {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile .S
|
standard_testfile .S
|
||||||
|
@ -29,7 +29,7 @@ clean_restart $testfile
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "could not run to main"
|
perror "could not run to main"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "break call_me if param.e == 1" \
|
gdb_test "break call_me if param.e == 1" \
|
||||||
|
@ -48,7 +48,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test_no_output "set variable x=14" "set variable x=14"
|
gdb_test_no_output "set variable x=14" "set variable x=14"
|
||||||
|
@ -39,7 +39,7 @@ if { ! [file exists $binfile] } {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_continue_to_end
|
gdb_continue_to_end
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
if { [target_info exists gdb,nosignals] } {
|
if { [target_info exists gdb,nosignals] } {
|
||||||
verbose "Skipping exitsignal.exp because of nosignals."
|
verbose "Skipping exitsignal.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile segv.c
|
standard_testfile segv.c
|
||||||
|
@ -38,7 +38,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
proc test_expr { args } {
|
proc test_expr { args } {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nofileio] {
|
if [target_info exists gdb,nofileio] {
|
||||||
verbose "Skipping fileio.exp because of no fileio capabilities."
|
verbose "Skipping fileio.exp because of no fileio capabilities."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ gdb_test_no_output "set width 0"
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "break stop" "Breakpoint .*$srcfile.*"
|
gdb_test "break stop" "Breakpoint .*$srcfile.*"
|
||||||
|
@ -31,7 +31,7 @@ if { [prepare_for_testing "failed to prepare" float float.c] } {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Test "info float".
|
# Test "info float".
|
||||||
|
@ -34,7 +34,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run to the breakpoint at return.
|
# Run to the breakpoint at return.
|
||||||
|
@ -34,7 +34,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run to the breakpoint at return.
|
# Run to the breakpoint at return.
|
||||||
|
@ -30,13 +30,13 @@
|
|||||||
# required for follow-exec-mode testing.
|
# required for follow-exec-mode testing.
|
||||||
if { [target_info exists gdb_protocol]
|
if { [target_info exists gdb_protocol]
|
||||||
&& [target_info gdb_protocol] == "remote" } {
|
&& [target_info gdb_protocol] == "remote" } {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Until "catch exec" is implemented on other targets...
|
# Until "catch exec" is implemented on other targets...
|
||||||
#
|
#
|
||||||
if {![istarget "*-linux*"]} then {
|
if {![istarget "*-linux*"]} then {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile foll-exec-mode.c
|
standard_testfile foll-exec-mode.c
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
# Until "catch exec" is implemented on other targets...
|
# Until "catch exec" is implemented on other targets...
|
||||||
#
|
#
|
||||||
if { ![istarget "*-linux*"] } then {
|
if { ![istarget "*-linux*"] } then {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile foll-exec.c
|
standard_testfile foll-exec.c
|
||||||
|
@ -32,7 +32,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
|||||||
clean_restart ${binfile}
|
clean_restart ${binfile}
|
||||||
|
|
||||||
if ![runto abort {allow-pending}] then {
|
if ![runto abort {allow-pending}] then {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# See http://sources.redhat.com/gdb/bugs/1250
|
# See http://sources.redhat.com/gdb/bugs/1250
|
||||||
|
@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
gdb_test "print /x bar" "{x__0 = 0x0, y__0 = 0x0, z__1 = 0x0}"
|
gdb_test "print /x bar" "{x__0 = 0x0, y__0 = 0x0, z__1 = 0x0}"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ standard_testfile
|
|||||||
|
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "can not call functions"
|
unsupported "can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
|
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#
|
#
|
||||||
if { ![istarget "*-*-linux*"] } then {
|
if { ![istarget "*-*-linux*"] } then {
|
||||||
unsupported "inferior-died.exp"
|
unsupported "inferior-died.exp"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if { ![support_displaced_stepping] } {
|
if { ![support_displaced_stepping] } {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping interrupt-daemon-attach.exp because of nosignals."
|
verbose "Skipping interrupt-daemon-attach.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# This test requires sending ^C to interrupt the running target.
|
# This test requires sending ^C to interrupt the running target.
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nointerrupts] {
|
if [target_info exists gdb,nointerrupts] {
|
||||||
verbose "Skipping interrupt.exp because of nointerrupts."
|
verbose "Skipping interrupt.exp because of nointerrupts."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if [target_info exists gdb,noinferiorio] {
|
if [target_info exists gdb,noinferiorio] {
|
||||||
|
@ -22,7 +22,7 @@ if { ![can_single_step_to_signal_handler] } {
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping kill-after-signal.exp because of nosignals."
|
verbose "Skipping kill-after-signal.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if [prepare_for_testing "failed to prepare" ${testfile}] {
|
if [prepare_for_testing "failed to prepare" ${testfile}] {
|
||||||
|
@ -45,7 +45,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
proc evaluate { vars ops } {
|
proc evaluate { vars ops } {
|
||||||
|
@ -56,7 +56,7 @@ clean_restart ${binfile}
|
|||||||
#
|
#
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "break marker1" ".*" ""
|
gdb_test "break marker1" ".*" ""
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# other targets...
|
# other targets...
|
||||||
#
|
#
|
||||||
if { ![istarget "*-*-linux*"] } then {
|
if { ![istarget "*-*-linux*"] } then {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
|
|||||||
clean_restart "${testcase}"
|
clean_restart "${testcase}"
|
||||||
if ![runto_main] {
|
if ![runto_main] {
|
||||||
perror "could not run to main"
|
perror "could not run to main"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
|
set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
|
||||||
|
@ -42,7 +42,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
|
|||||||
clean_restart "${testcase}"
|
clean_restart "${testcase}"
|
||||||
if ![runto_main] {
|
if ![runto_main] {
|
||||||
perror "could not run to main"
|
perror "could not run to main"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
|
set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
|
||||||
|
@ -42,7 +42,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
|
|||||||
clean_restart "${testcase}"
|
clean_restart "${testcase}"
|
||||||
if ![runto_main] {
|
if ![runto_main] {
|
||||||
perror "could not run to main"
|
perror "could not run to main"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
|
set bp_location [gdb_get_line_number "STOP" "${testcase}.c"]
|
||||||
|
@ -36,7 +36,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarning
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ gdb_load ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "print x = 45" "$decimal = 45" "set a global"
|
gdb_test "print x = 45" "$decimal = 45" "set a global"
|
||||||
|
@ -20,14 +20,14 @@ global inferior_spawn_id
|
|||||||
global gdb_spawn_id
|
global gdb_spawn_id
|
||||||
|
|
||||||
if ![istarget *-linux*] {
|
if ![istarget *-linux*] {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# In remote mode we cannot use the 'set args' command, and this
|
# In remote mode we cannot use the 'set args' command, and this
|
||||||
# test requires it.
|
# test requires it.
|
||||||
if { [target_info exists gdb_protocol] } then {
|
if { [target_info exists gdb_protocol] } then {
|
||||||
if { [target_info gdb_protocol] == "remote" } then {
|
if { [target_info gdb_protocol] == "remote" } then {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "next " "more_code.*;" "continuing after dummy()"
|
gdb_test "next " "more_code.*;" "continuing after dummy()"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if { [skip_cplus_tests] } { continue }
|
if { [skip_cplus_tests] } { return }
|
||||||
|
|
||||||
standard_testfile .c
|
standard_testfile .c
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ clean_restart ${binfile}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
proc find_breakpoint_pc { sym } {
|
proc find_breakpoint_pc { sym } {
|
||||||
|
@ -591,7 +591,7 @@ if [runto_main] then {
|
|||||||
|
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# We need to up this because this can be really slow on some boards.
|
# We need to up this because this can be really slow on some boards.
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping catch-signal.exp because of nosignals."
|
verbose "Skipping catch-signal.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# This test requires sending ^C to interrupt the running target.
|
# This test requires sending ^C to interrupt the running target.
|
||||||
|
@ -36,7 +36,7 @@ save_vars { GDBFLAGS } {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test "break fun_three" \
|
gdb_test "break fun_three" \
|
||||||
|
@ -39,7 +39,7 @@ if [get_compiler_info] {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping relativedebug.exp because of nosignals."
|
verbose "Skipping relativedebug.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile .c
|
standard_testfile .c
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping savedregs.exp because of nosignals."
|
verbose "Skipping savedregs.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ gdb_test_no_output "set print sevenbit-strings"
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Determine expected output for unsigned long variables,
|
# Determine expected output for unsigned long variables,
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping sigall.exp because of nosignals."
|
verbose "Skipping sigall.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping sigaltstack.exp because of nosignals."
|
verbose "Skipping sigaltstack.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping sigbpt.exp because of nosignals."
|
verbose "Skipping sigbpt.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping sigchld.exp because of nosignals."
|
verbose "Skipping sigchld.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile .c
|
standard_testfile .c
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping siginfo-addr.exp because of nosignals."
|
verbose "Skipping siginfo-addr.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping siginfo-infcall.exp because of nosignals."
|
verbose "Skipping siginfo-infcall.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile .c
|
standard_testfile .c
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping siginfo-obj.exp because of nosignals."
|
verbose "Skipping siginfo-obj.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if { ![supports_get_siginfo_type] } {
|
if { ![supports_get_siginfo_type] } {
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping siginfo-thread.exp because of nosignals."
|
verbose "Skipping siginfo-thread.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if { ![supports_get_siginfo_type] } {
|
if { ![supports_get_siginfo_type] } {
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping siginfo.exp because of nosignals."
|
verbose "Skipping siginfo.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping signals.exp because of nosignals."
|
verbose "Skipping signals.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping signull.exp because of nosignals."
|
verbose "Skipping signull.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping sigrepeat.exp because of nosignals."
|
verbose "Skipping sigrepeat.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping sigstep.exp because of nosignals."
|
verbose "Skipping sigstep.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,13 +19,13 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping $subdir/$gdb_test_file_name.exp because of nosignals."
|
verbose "Skipping $subdir/$gdb_test_file_name.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# The testfile relies on "run" from the command line, so only works
|
# The testfile relies on "run" from the command line, so only works
|
||||||
# with "target native".
|
# with "target native".
|
||||||
if { [target_info gdb_protocol] != "" } {
|
if { [target_info gdb_protocol] != "" } {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_exit
|
gdb_exit
|
||||||
|
@ -35,7 +35,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
# This only works on GNU/Linux.
|
# This only works on GNU/Linux.
|
||||||
if { ![isnative] || [is_remote host] || ![istarget *-linux*]
|
if { ![isnative] || [is_remote host] || ![istarget *-linux*]
|
||||||
|| [skip_shlib_tests]} {
|
|| [skip_shlib_tests]} {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set test "skip-solib"
|
set test "skip-solib"
|
||||||
|
@ -32,7 +32,7 @@ if [get_compiler_info] {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile .c
|
standard_testfile .c
|
||||||
|
@ -21,7 +21,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} [list $srcfile $srcfil
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Functions.
|
# Functions.
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
if [target_info exists gdb,nosignals] {
|
if [target_info exists gdb,nosignals] {
|
||||||
verbose "Skipping unwindonsignal.exp because of nosignals."
|
verbose "Skipping unwindonsignal.exp because of nosignals."
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ if [target_info exists gdb,nosignals] {
|
|||||||
# test.
|
# test.
|
||||||
if [target_info exists gdb,cannot_call_functions] {
|
if [target_info exists gdb,cannot_call_functions] {
|
||||||
unsupported "this target can not call functions"
|
unsupported "this target can not call functions"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
standard_testfile
|
standard_testfile
|
||||||
|
@ -64,7 +64,7 @@ if [gdb_skip_stdio_test "varargs.exp"] {
|
|||||||
|
|
||||||
if ![runto test] then {
|
if ![runto test] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_test_stdio "print find_max1(5,1,2,3,4,5)" \
|
gdb_test_stdio "print find_max1(5,1,2,3,4,5)" \
|
||||||
|
@ -50,7 +50,7 @@ if [get_compiler_info] {
|
|||||||
#
|
#
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
get_debug_format
|
get_debug_format
|
||||||
|
@ -39,7 +39,7 @@ if { [prepare_for_testing "failed to prepare" whatis-exp int-type.c {debug nowar
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
# about the field or baseclass being ambiguous is emitted at the right
|
# about the field or baseclass being ambiguous is emitted at the right
|
||||||
# times.
|
# times.
|
||||||
|
|
||||||
if { [skip_cplus_tests] } { continue }
|
if { [skip_cplus_tests] } { return }
|
||||||
|
|
||||||
standard_testfile .cc
|
standard_testfile .cc
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run to a breakpoint after the variables have been initialized so we
|
# Run to a breakpoint after the variables have been initialized so we
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
# This file is part of the gdb testsuite.
|
# This file is part of the gdb testsuite.
|
||||||
|
|
||||||
if {[skip_cplus_tests]} { continue }
|
if {[skip_cplus_tests]} { return }
|
||||||
|
|
||||||
standard_testfile .cc anon-ns2.cc
|
standard_testfile .cc anon-ns2.cc
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {c++
|
|||||||
|
|
||||||
if {![runto_main]} {
|
if {![runto_main]} {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
set ans {(anonymous namespace)}
|
set ans {(anonymous namespace)}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# This file was written by Sue Kimura (sue_kimura@hp.com)
|
# This file was written by Sue Kimura (sue_kimura@hp.com)
|
||||||
# Rewritten by Michael Chastain (mec.gnu@mindspring.com)
|
# Rewritten by Michael Chastain (mec.gnu@mindspring.com)
|
||||||
|
|
||||||
if { [skip_stl_tests] } { continue }
|
if { [skip_stl_tests] } { return }
|
||||||
|
|
||||||
standard_testfile .cc
|
standard_testfile .cc
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set breakpoint on template function
|
# Set breakpoint on template function
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
if { [skip_cplus_tests] } { continue }
|
if { [skip_cplus_tests] } { return }
|
||||||
|
|
||||||
standard_testfile .cc casts03.cc
|
standard_testfile .cc casts03.cc
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prevent symbol on address 0x0 being printed.
|
# Prevent symbol on address 0x0 being printed.
|
||||||
@ -187,7 +187,7 @@ if {[prepare_for_testing "failed to prepare" ${testfile}03 $srcfile2 \
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prevent symbol on address 0x0 being printed.
|
# Prevent symbol on address 0x0 being printed.
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if { [skip_cplus_tests] } { continue }
|
if { [skip_cplus_tests] } { return }
|
||||||
|
|
||||||
|
|
||||||
standard_testfile .cc
|
standard_testfile .cc
|
||||||
@ -35,7 +35,7 @@ gdb_test_no_output "set print symbol off"
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to main"
|
perror "couldn't run to main"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
get_debug_format
|
get_debug_format
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
# This file is part of the gdb testsuite.
|
# This file is part of the gdb testsuite.
|
||||||
|
|
||||||
if {[skip_cplus_tests]} { continue }
|
if {[skip_cplus_tests]} { return }
|
||||||
|
|
||||||
standard_testfile .cc
|
standard_testfile .cc
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
|
|||||||
|
|
||||||
if {![runto_main]} {
|
if {![runto_main]} {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# "x" sometimes isn't available due to
|
# "x" sometimes isn't available due to
|
||||||
|
@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}
|
|||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint main"
|
perror "couldn't run to breakpoint main"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_breakpoint [gdb_get_line_number "end of main"]
|
gdb_breakpoint [gdb_get_line_number "end of main"]
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
standard_testfile .cc
|
standard_testfile .cc
|
||||||
|
|
||||||
if {[skip_cplus_tests]} { continue }
|
if {[skip_cplus_tests]} { return }
|
||||||
|
|
||||||
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}] } {
|
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}] } {
|
||||||
return -1
|
return -1
|
||||||
@ -24,7 +24,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}] } {
|
|||||||
|
|
||||||
if {![runto_main]} {
|
if {![runto_main]} {
|
||||||
perror "could not run to main"
|
perror "could not run to main"
|
||||||
continue
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_breakpoint [gdb_get_line_number "break here"]
|
gdb_breakpoint [gdb_get_line_number "break here"]
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user