]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
GDB: testsuite: x86, amd64, i386, ia64: Don't return value from top-level (sed)
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 29 Apr 2026 23:03:54 +0000 (20:03 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 8 May 2026 21:49:23 +0000 (21:49 +0000)
This patch is purely the result of running:

$ sed -i 's/^    return -1/    return/' \
      amd64-*.exp* i386-*.exp* x86*.exp* ia64*.exp* core-file-pid0.exp

and

$ sed -i 's/^    return 0/    return/' \
      amd64-*.exp* i386-*.exp* x86*.exp* ia64*.exp* core-file-pid0.exp

inside gdb/testsuite/gdb.arch.

Approved-By: Tom Tromey <tom@tromey.com>
60 files changed:
gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
gdb/testsuite/gdb.arch/amd64-byte.exp
gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
gdb/testsuite/gdb.arch/amd64-disp-step.exp
gdb/testsuite/gdb.arch/amd64-dword.exp
gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
gdb/testsuite/gdb.arch/amd64-entry-value.exp
gdb/testsuite/gdb.arch/amd64-eval.exp
gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
gdb/testsuite/gdb.arch/amd64-gs_base.exp
gdb/testsuite/gdb.arch/amd64-i386-address.exp
gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
gdb/testsuite/gdb.arch/amd64-lam.exp
gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
gdb/testsuite/gdb.arch/amd64-word.exp
gdb/testsuite/gdb.arch/core-file-pid0.exp
gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
gdb/testsuite/gdb.arch/i386-avx.exp
gdb/testsuite/gdb.arch/i386-avx512.exp
gdb/testsuite/gdb.arch/i386-biarch-core.exp
gdb/testsuite/gdb.arch/i386-bp_permanent.exp
gdb/testsuite/gdb.arch/i386-byte.exp
gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
gdb/testsuite/gdb.arch/i386-disp-step.exp
gdb/testsuite/gdb.arch/i386-dr3-watch.exp
gdb/testsuite/gdb.arch/i386-float.exp
gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
gdb/testsuite/gdb.arch/i386-permbkpt.exp
gdb/testsuite/gdb.arch/i386-pkru.exp
gdb/testsuite/gdb.arch/i386-prologue.exp
gdb/testsuite/gdb.arch/i386-signal.exp
gdb/testsuite/gdb.arch/i386-size-overlap.exp
gdb/testsuite/gdb.arch/i386-size.exp
gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
gdb/testsuite/gdb.arch/i386-sse.exp
gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
gdb/testsuite/gdb.arch/i386-unwind.exp
gdb/testsuite/gdb.arch/i386-word.exp
gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
gdb/testsuite/gdb.arch/x86-avx512bf16.exp
gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
gdb/testsuite/gdb.arch/x86-avx512fp16.exp

index 93e1ed36652b57a1dd99fd9d0440ac80e98c58b4..bd05a4d4ae3a36df273a17c08175beae8c84ce8a 100644 (file)
@@ -20,11 +20,11 @@ standard_testfile .S
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
          { debug }] } {
     untested "could not compile"
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break here"]
index 90668056a13e2e95d1f73b3facad78768bc419e7..0c908d2d8663a9b994182154cac5e14d7c04aaab 100644 (file)
@@ -30,7 +30,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
 clean_restart ${::testfile}
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 set byte_regs(1) al
index 3a16bfb3824f03add7b0d910dc140e46ca045854..f2c3fb1845c29420ea774554245fafeda1432cc9 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile .S
 
 set options [list debug nopie]
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $options] } {
-    return -1
+    return
 }
 
 # Get things started.
@@ -34,7 +34,7 @@ gdb_test "set displaced-stepping on" ""
 gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*"
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 # GDB picks a spare register from this list to hold the RIP-relative
index ce0283d462e7db365ddf82f6143755f20aeccbad..603077adcd46ff1d9d3d69902f4ba9e6cb5ee074 100644 (file)
@@ -25,14 +25,14 @@ set opts {debug nopie}
 standard_testfile .S -alarm.c
 
 if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts] } {
-    return -1
+    return
 }
 
 gdb_test "set displaced-stepping on" ""
 gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*"
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 # Proceed to the test function.
index d05b6760e585d0f80734fea89e3b8ec632370f59..9b33c77c9a8a0028e3161c890af69ee2735287e0 100644 (file)
@@ -25,14 +25,14 @@ set opts {debug nopie}
 standard_testfile .S -signal.c
 
 if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts] } {
-    return -1
+    return
 }
 
 gdb_test "set displaced-stepping on" ""
 gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*"
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 ##########################################
index d7305f140011ecc061fe9c393cc8e890e6404486..01fb477867650d2ccf8d8bf5b4f7661dd4a2c736 100644 (file)
@@ -30,7 +30,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
 clean_restart ${::testfile}
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 set nr_regs 14
index 257a7c8cf6049773d2eb91faf1fd732d9cd42de7..b67f676b7163ef85c7afa3600fd7bc27eb3d8dcd 100644 (file)
@@ -30,11 +30,11 @@ if {[is_remote host]} {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
index e5697c9c9ab56f4b5f8a952a3348915ef87f6f87..8043235eec8e8e3477f37cbee584801c61e22bb5 100644 (file)
@@ -30,11 +30,11 @@ if {[is_remote host]} {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
index 5b2b65e86365c5671aeaa1b28c6bf5707dbdcc94..4c1d63ab5a3c7ee5b0ceec5c199e9456b9b8a0ef 100644 (file)
@@ -30,11 +30,11 @@ if {[is_remote host]} {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
index 146d92eb2670a37e77f868fe49b375de428b39e1..cb789b541bc20577ad9f4c1784d15226b9969943 100644 (file)
@@ -24,11 +24,11 @@ if {[is_remote host]} {
 
 if { [prepare_for_testing_full "failed to prepare" \
          [list $testfile "c++" $srcfile {}]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
index 65c4ab142c3e4be89bab77c917331a53db3a6094..997312ee437585fc3f35dab56884870ea4c52364 100644 (file)
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "breakhere"
index 34fb21e0678f6832f6c8d101d7bb6aaeb247e46a..2b145375595bc1f174c61e655a386735582cbc06 100644 (file)
@@ -23,11 +23,11 @@ standard_testfile .cc
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          { debug c++ additional_flags=-std=c++11 }] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here"]
index e1ca703881dd5c2787053c285c84e839712a5099..9e358c016427661f133f549cab5b02afae9fa320 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
        "${srcfile}" {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index db64c52d89fd5c3cb65f541882acb56bbd18380b..c879cd9d2bf603f09956e5ca0a3f3dfb60a03047 100644 (file)
@@ -19,11 +19,11 @@ require is_amd64_regs_target
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
      [list debug nowarnings]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "print /x \$fs_base" "= $hex" "print fs_base"
index 710e9c0cdb46317f62d8f9d5052b502edd8a7210..c9e7592723554b7e171b76cc8b8951412d72a059 100644 (file)
@@ -22,7 +22,7 @@ require {is_any_target "x86_64-*-*" "i?86-*-*"} is_lp64_target
 require {!istarget "*-*-openbsd*"}
 
 if {[prepare_for_testing "failed to prepare" amd64-i386-address amd64-i386-address.S [list debug "additional_flags=-m32 -nostdlib"]]} {
-    return -1
+    return
 }
 
 gdb_run_cmd
index 91c198e43a31ab764e5dcb59dba24c5329d7f69c..4c7664676d632c98b1d235a1a67ff6ef8e2eb990 100644 (file)
@@ -26,7 +26,7 @@ set options [list debug \
                 additional_flags=-static \
                 ldflags=-nostartfiles]
 if { [build_executable "failed to prepare" ${testfile} ${srcfile} $options] } {
-    return -1
+    return
 }
 
 # Start the test file, and check the x87 control registers (and
index 713bef8ba47332d55562285e6d010e15165307e7..a48896d60a6cd3de6390d1882675d83ab22e99c8 100644 (file)
@@ -32,11 +32,11 @@ standard_testfile .S
 require is_x86_64_m64_target
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {nopie}] } {
-    return -1
+    return
 }
 
 if {![runto breakpt]} {
-    return -1
+    return
 }
 
 gdb_test "bt" "^#0 +breakpt *\\(\\) \[^\r\n\]*\r\n#1 +${::hex} in func5\[^\r\n\]*\r\n#2 +${::hex} in func4\[^\r\n\]*\r\n#3 +${::hex} in func3\[^\r\n\]*\r\nBacktrace stopped: Cannot access memory at address ${::hex}" \
@@ -48,7 +48,7 @@ gdb_test "bt" "^#0 +breakpt *\\(\\) \[^\r\n\]*\r\n#1 +${::hex} in func5\[^\r\n\]
 clean_restart ${::testfile}
 
 if {![runto breakpt]} {
-    return -1
+    return
 }
 
 gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
@@ -62,7 +62,7 @@ gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
 clean_restart ${::testfile}
 
 if {![runto breakpt]} {
-    return -1
+    return
 }
 
 gdb_test "interpreter-exec mi \"-stack-list-frames\"" \
index 9a4f2e2663e21139facafef01f0c3688c18009b0..d3ad91ed64fd88db056bcfd56e55cbed4fb7cf06 100644 (file)
@@ -33,11 +33,11 @@ standard_testfile .c
 require is_x86_64_m64_target
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto breakpt]} {
-    return -1
+    return
 }
 
 # Use 'bt no-filters' here as the python filters will raise their own
@@ -52,7 +52,7 @@ gdb_test "bt no-filters" "^#0 +$hex in func2 \\(\\)\r\nBacktrace stopped: Cannot
 clean_restart ${::testfile}
 
 if {![runto breakpt]} {
-    return -1
+    return
 }
 
 gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
@@ -66,7 +66,7 @@ gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
 clean_restart ${::testfile}
 
 if {![runto breakpt]} {
-    return -1
+    return
 }
 
 gdb_test "interpreter-exec mi \"-stack-list-frames\"" \
index 746ab313871b755af1ecf0e74dddbba2e6e116b5..3abdb3116d883c3acf6d59aa379233205bd2213b 100644 (file)
@@ -21,11 +21,11 @@ standard_testfile amd64-lam.c
 
 # Test LAM 57.
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Breakpoint here"]
index 209aa240e623a6f6393286c51cb967b5c34a70a4..a2651898b0c65fb4b8795ea27ecbcdae397b1e6f 100644 (file)
@@ -25,11 +25,11 @@ if {[info exists COMPILE]} {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "print v" { = {i = 0, xxx = {<optimized out> <repeats 256 times>}}}
index bae24da9cf764e6a40b80d4fc7aeb29da77db8df..f402350acdeec0065c6d3c1b93c62aee81bb78a7 100644 (file)
@@ -29,11 +29,11 @@ if {[info exists COMPILE]} {
 }
 
 if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "func"
index a50978d439eba916df49e2657838560bc23b9bbd..44ef137d87582bc9dffb4b7751a110cc3a89af90 100644 (file)
@@ -29,7 +29,7 @@ standard_testfile amd64-pseudo-unwind.c amd64-pseudo-unwind-asm.S
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
        "${srcfile} ${srcfile2}" {debug}] } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 4f2c6c26dab4ff45509f22daaf556e6c92ee3023..1d6d0cf786c5e2bbd38d0c0390a86570d14f316e 100644 (file)
@@ -18,7 +18,7 @@ standard_testfile ".S"
 require is_x86_64_m64_target
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 # Helper procedure to go to probe NAME
@@ -38,7 +38,7 @@ proc test_probe_value { value } {
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # Name and expected value for each probe.
index 4b4d0543f64d4541fa2293c3778e0bb898990031..9cd7dec166c1ba49d4e84df53c28b652aeef5571 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile ".S"
 require is_x86_64_m64_target
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 # Helper procedure to go to probe NAME
@@ -46,7 +46,7 @@ proc test_probe_value_without_reg { value } {
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 foreach probe_name [list "foo" "bar" "foo_prefix" "bar_prefix"] \
index 9c819e490acdf3231b11eed0ac9be58160c901ff..3fbdae9197de7c95ed308cd68d38809d5ead0fae 100644 (file)
@@ -29,7 +29,7 @@ proc test_probe { probe_name } {
 standard_testfile amd64-stap-triplet.S
 
 if { [prepare_for_testing "failed to prepare" $testfile-triplet $srcfile] } {
-    return -1
+    return
 }
 
 test_probe "triplet"
@@ -38,7 +38,7 @@ standard_testfile amd64-stap-three-arg-disp.S
 
 if { [prepare_for_testing "failed to prepare" $testfile-three-arg-displ \
          $srcfile] } {
-    return -1
+    return
 }
 
 test_probe "three_arg"
index 2f55fbdf82c8142d4d764647f691fd0330b6fae0..e7089c20f4897e4ac7da0ae5e5a802fe9c6c76e1 100644 (file)
@@ -18,7 +18,7 @@ require is_x86_64_m64_target
 standard_testfile amd64-stap-wrong-subexp.S
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 proc goto_probe { probe_name } {
index 5d6ae1776c66b29ab119b482be1a993a543429c9..c2cffe0793b2962e4207ed14c6e29fe5a6a9bb12 100644 (file)
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} "${srcfile} ${srcfile2}" $opts] } {
-    return -1
+    return
 }
 
 if {![runto g]} {
-    return -1
+    return
 }
 
 gdb_test "bt" "\r\n#0 +g \\(x=x@entry=2\\) at \[^\r\n\]*\r\n#1 +${::hex} in f \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +${::hex} in main .*"
index 8a58dda00b1d88088815fbc84ab5ebb51559b122..767602805b97cb6a6191dad9ef224f8dfe9e51ca 100644 (file)
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
 lappend opts nopie
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto noret]} {
-    return -1
+    return
 }
 
 gdb_test "bt" "#0 +noret \\(x=1\\) at \[^\r\n\]*\r\n#1 +${::hex} in mayret \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +${::hex} in tailcall \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#3 +${::hex} in main \\(\\) at .*"
index 00ed2323a620768964d7c432e65c526b1d666b7a..7ae151c690f3e8305f16e52be765c277af3b1aac 100644 (file)
@@ -30,11 +30,11 @@ if {[is_remote host]} {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "g"
index 63a3e00411a9d6e12510c0703ffbdcafd1e76fb5..f1c6396d51085bb992d9b087bef2a64b5a3bb7ea 100644 (file)
@@ -18,11 +18,11 @@ standard_testfile .S
 require is_x86_64_m64_target
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } {
-    return -1
+    return
 }
 
 if {![runto b]} {
-    return -1
+    return
 }
 
 gdb_test "bt" "#0 +b \\(\\) at \[^\r\n\]*\r\n#1 +${::hex} in a \\(q=<optimized out>\\) at \[^\r\n\]*\r\n#2 +${::hex} in main \\(\[^\r\n\]*\\) at .*"
index e26d6efb201c0adbeac3876677ce661b660f3448..459330563f8775fcf9183c837e09382b0dd38b8d 100644 (file)
@@ -31,14 +31,14 @@ require target_can_use_run_cmd is_x86_64_m64_target
 if {[target_info gdb_protocol] == "remote"
     || [target_info gdb_protocol] == "extended-remote"} {
     unsupported "using [target_info gdb_protocol] protocol"
-    return -1
+    return
 }
 
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
          { debug }] } {
-    return -1
+    return
 }
 
 # Insert the watchpoint, it should default to a h/w watchpoint.
index 8b06288f1a584f6ec7cf6b34652a5ac262c44cd2..616f52cfdbb8de400415117fa540d0f4014c4cba 100644 (file)
@@ -30,7 +30,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
 clean_restart ${::testfile}
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 set nr_regs 14
index 8f4f88bcdb6ad68b146745fe0487c367e8566aa9..3f389a705480cd71b77f066e1d343b7e8d1128ce 100644 (file)
@@ -28,7 +28,7 @@ if {[istarget "x86_64-*-linux*"]} {
     set cf_size 8757248
 } else {
     unsupported "no pre-generated core file for this target"
-    return -1
+    return
 }
 
 # Decompress the core file.
@@ -36,14 +36,14 @@ set corebz2file ${srcdir}/${subdir}/${cf_name}
 set corefile [decompress_bz2 $corebz2file]
 if { $corefile eq "" } {
     untested "failed to bunzip2 the core file"
-    return -1
+    return
 }
 
 # Check the size of the decompressed core file.  Just for sanity.
 file stat ${corefile} corestat
 if { $corestat(size) != ${cf_size} } {
     untested "uncompressed core file is the wrong size"
-    return -1
+    return
 }
 
 # Copy over the corefile if we are remote testing.
index 46f81f28c2d49d91fe6007d32c098e23d5c227f0..a53e14bf33d0d588d4adce7b94fcea294c36bb71 100644 (file)
@@ -28,7 +28,7 @@ if {![istarget "i386-*-*"]} {
 
 # The kernel VDSO is used for the syscalls returns only on i386 (not x86_64).
 if { [build_executable "failed to prepare" $testfile $srcfile $options] } {
-    return -1
+    return
 }
 
 # Don't tell GDB which executable we're debugging.
index 9d65bfcc3294acbc7d848d8491e07e248ba5939a..1a786ee8a514a3f035554d6a1e0349336f3c147e 100644 (file)
@@ -45,7 +45,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
 clean_restart ${::testfile}
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 gdb_test "break [gdb_get_line_number "first breakpoint here"]" \
index f1a0d59ccd89e75468a0e3bb868eda0f2f09499d..c79563366dc8fee4720147297715ea18e4844018 100644 (file)
@@ -28,11 +28,11 @@ set comp_flags "-mavx512f -I${srcdir}/../nat"
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
      [list debug nowarnings additional_flags=${comp_flags}]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set supports_avx512 0
index 95b1a3e29cb0af5b65b798a132c3e9ddb6eb49f4..a9102559e5b52916e6851b97421bdcf0fd323b99 100644 (file)
@@ -40,13 +40,13 @@ set address 0x400078
 set corefile [decompress_bz2 $corebz2file]
 if { $corefile == "" } {
     untested "failed bzip2"
-    return -1
+    return
 }
 
 file stat ${corefile} corestat
 if {$corestat(size) != 102400} {
     untested "bzip2 produces invalid result"
-    return -1
+    return
 }
 
 set corefile [gdb_remote_download host $corefile]
index d2fcf0a311f9567981aafc67afbfbdb20e4918e1..ef4d0370de89ce13fbbe5807a9ea7204a0000892 100644 (file)
@@ -29,7 +29,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
 # fragments.
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list $additional_flags]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 
index 9082638dcaa6cd08f090c028cf62a318edc54006..9a4e28585ef5184f0d868bf8fc13d03ae664497d 100644 (file)
@@ -31,7 +31,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
 clean_restart ${::testfile}
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 set byte_regs(1) al
index 11a9f033192820b22febdffcae8a5af3c70061b0..a340182c1d88ad5c3a21e526129368263e0f075d 100644 (file)
@@ -22,11 +22,11 @@ set testfile "i386-cfi-notcurrent"
 set srcfile ${testfile}.S
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {nodebug}]} {
-    return -1
+    return
 }
 
 if {![runto f]} {
-    return -1
+    return
 }
 
 gdb_test "backtrace" "#0 \[^\r\n\]* f \[^\r\n\]*\r\n#1 \[^\r\n\]* g \[^\r\n\]*\r\n#2 \[^\r\n\]* main \[^\r\n\]*"
index 8c7061ecd78e61d5e8d0dde48bef664b07c9ce6f..6a9290fe609af5f34ee07af9d345236f1cbcfb8e 100644 (file)
@@ -25,14 +25,14 @@ set opts {debug nopie}
 standard_testfile .S -alarm.c
 
 if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts] } {
-    return -1
+    return
 }
 
 gdb_test "set displaced-stepping on" ""
 gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*"
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 # Proceed to the test function.
index b593651ad45c6cce7a316934edc1bbedb5fc8dc3..f265d3fe3d032feb0820ac181a5dd77eea7a05ca 100644 (file)
@@ -27,14 +27,14 @@ lappend opts debug
 lappend opts nopie
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
-    return -1
+    return
 }
 
 gdb_test "set displaced-stepping on" ""
 gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*"
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 ##########################################
index 058eefdb0051079d815cf1b9e8897ad5052c0568..d0c9209f62c3c3edc50ced709d50f4aa71c1fe39 100644 (file)
@@ -24,11 +24,11 @@ require {is_any_target "i?86-*-*" "x86_64-*-*"}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug $additional_flags}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set breakpoint always-inserted on"
index 23db5f843c2c3167f7704c9e1469d1208ba53017..a121093728a146cec73322a7d0051c54c6c920d5 100644 (file)
@@ -26,11 +26,11 @@ standard_testfile .S
 set additional_flags [gdb_target_symbol_prefix_flags_asm]
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile [list debug nopie $additional_flags]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 with_test_prefix "zero" {
index c7e019829e75f8cb743a5e3cdf4dd6f0235a1e33..458a902fb974b95b71638f211c3d9c998fff1f07 100644 (file)
@@ -35,7 +35,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfilec} ${srcdir}/${subdir}/${srcfileasm}" "${binfile}" executable [list debug $additional_flags]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Get things started.
@@ -67,7 +67,7 @@ gdb_test_multiple "backtrace" "" {
     }
 }
 if { $gate_n == "" } {
-    return -1
+    return
 }
 
 # Check we see the inserted `DW_CFA_GNU_negative_offset_extended' CFI.
index f365597e052ee84eb0fc6b0185b5a6c1b479c809..58ab263688a193c9c431ccb64dc171187fd90c82 100644 (file)
@@ -27,7 +27,7 @@ set additional_flags [gdb_target_symbol_prefix_flags_asm]
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 94cf2101e18b61e2b97814fa75232e19c2979190..b9b0b99b0de378e04516e99d76b25ed53bba6019 100644 (file)
@@ -31,11 +31,11 @@ set comp_flags "-I${srcdir}/../nat/"
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
      [list debug additional_flags=${comp_flags}]] } {
     untested "failed to compile x86 PKEYS test."
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set supports_pkru 0
index 03a32ba9c3f94e5792d9d7af1544004683b3c7f4..bb2cbdbcc6d1eafd0a9d5be583c32b43f98826d3 100644 (file)
@@ -34,7 +34,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
 # fragments.
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list $additional_flags]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 
@@ -60,7 +60,7 @@ clean_restart $::testfile
 #
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 # Testcase for standard prologue.
index 9e7976b5a275e5ad35c688baff767ffb7682899b..35096076d6f4f156909bdb6c0a12ca6b7bb3f15e 100644 (file)
@@ -27,7 +27,7 @@ lappend opts additional_flags=-DIS_AMD64_REGS_TARGET=[is_amd64_regs_target]
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
          executable $opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $::testfile
index ccc1d56e6dbc16ed233dd639c020a4762d8fdb86..7991dc9cfc8a09feab44d21f62c9cb569502add7 100644 (file)
@@ -27,7 +27,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
          executable [list debug $additional_flags]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $::testfile
index 0b2b2a3c3bda79ec3b4bddf539446ee5a5c28d5f..723a96a3673f128e396db6919e04e7f699de948d 100644 (file)
@@ -32,7 +32,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
          executable [list debug $additional_flags]] != "" } {
     untested "i386-size"
-    return -1
+    return
 }
 
 clean_restart $::testfile
index 60b83b525fd5aa49971c970030178ae2d7d71173..8732279fc28a95db15e4b74892fbfb9bb84d0cbb 100644 (file)
@@ -29,13 +29,13 @@ if {[info exists COMPILE]} {
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
     unsupported "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $executable
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set args ""
index 8722a059ef17ce62e0bb549eb3b793d24c58a93e..54a66880a9f8a615502c7ca5f3d4621fd56c83d1 100644 (file)
@@ -43,7 +43,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
 clean_restart ${::testfile}
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 send_gdb "print have_sse ()\r"
index 21beeb400054c13d76e2d149c2f83989144736d5..63b3ef17adb2d7b5b45de7d34e37379a8e477263 100644 (file)
@@ -19,13 +19,13 @@ standard_testfile ".S"
 require is_x86_like_target
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
 
 if { ![runto "-pstap bar"] } {
-    return -1
+    return
 }
 
 gdb_test "print \$_probe_arg0" " = 40" \
index 8f522308fe4606cb07e20fd826449927bbd4366d..7d816aa2ec5c2a4434f764771bb73ed5d2788dc6 100644 (file)
@@ -30,7 +30,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $::testfile
index 312daf81aed070d415302b75d47c3cbc83f9d75c..21e601223b0bec4158498ccffc6e50d477e886cf 100644 (file)
@@ -31,7 +31,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
 clean_restart ${::testfile}
 
 if {![runto_main]} {
-    return 0
+    return
 }
 
 set word_regs(1) ax
index e206c07cefefa00f75eefd6a9ae13f3a25d0f4a0..7c746c12e2945eb9ce0aa1e905824588dd42f7b7 100644 (file)
@@ -20,7 +20,7 @@ set srcfile ${testfile}.S
 set binfile ${objdir}/${subdir}/${testfile}
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
@@ -28,7 +28,7 @@ gdb_load $binfile
 
 # We need to start the inferior to place the breakpoints in the memory at all.
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # The default "auto" mode removes all the breakpoints when we stop (and not
@@ -55,7 +55,7 @@ gdb_test_multiple "b bundle" $test {
 }
 
 if {![info exists bpt2address]} {
-    return -1
+    return
 }
 
 gdb_test "b *($bpt2address + 1)" "Breakpoint \[0-9\] at .*" "slot 1 breakpoint placed"
index cebea7c3b6207b3576dbaed211ae5bcb9c262e8e..08d4849bae208c3d6258449f9885442aa3fb4ad2 100644 (file)
@@ -23,11 +23,11 @@ require allow_avx512bf16_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # Test xmm
index 4b2e3e547e888f2435e72e231dcf0cf6279958eb..6adff21553134cffe2e2164a11e43884aed9f0da 100644 (file)
@@ -21,11 +21,11 @@ standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
      {debug additional_flags="-mavx512fp16"}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 gdb_test "p square(2.2)" "= 4\\.8359"
index 2d3ab6814c350bd98947db40c0c19d9acf920fd2..e99ec13f7d0e53035c70756514bf4b02303a0530 100644 (file)
@@ -20,11 +20,11 @@ require allow_avx512fp16_tests
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # Test xmm.