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

$ sed -i 's/^    return -1/    return/' *.exp*

and

$ sed -i 's/^    return 0/    return/' *.exp*

inside gdb/testsuite/gdb.dwarf2.

Approved-By: Tom Tromey <tom@tromey.com>
241 files changed:
gdb/testsuite/gdb.dwarf2/DW_OP_piece_with_DW_OP_GNU_uninit.exp
gdb/testsuite/gdb.dwarf2/ada-array-bound.exp
gdb/testsuite/gdb.dwarf2/ada-cold-name.exp
gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp
gdb/testsuite/gdb.dwarf2/ada-thick-pointer.exp
gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp
gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp
gdb/testsuite/gdb.dwarf2/arr-opt-out.exp
gdb/testsuite/gdb.dwarf2/arr-stride.exp
gdb/testsuite/gdb.dwarf2/arr-subrange.exp
gdb/testsuite/gdb.dwarf2/atomic-type.exp
gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp
gdb/testsuite/gdb.dwarf2/bad-regnum.exp
gdb/testsuite/gdb.dwarf2/bitfield-parent-optimized-out.exp
gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp
gdb/testsuite/gdb.dwarf2/callframecfa.exp
gdb/testsuite/gdb.dwarf2/calling-convention.exp
gdb/testsuite/gdb.dwarf2/clztest.exp
gdb/testsuite/gdb.dwarf2/corrupt.exp
gdb/testsuite/gdb.dwarf2/count.exp
gdb/testsuite/gdb.dwarf2/cpp-linkage-name.exp
gdb/testsuite/gdb.dwarf2/cu-empty-name.exp
gdb/testsuite/gdb.dwarf2/cu-no-addrs.exp
gdb/testsuite/gdb.dwarf2/data-loc.exp
gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp
gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp
gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp
gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
gdb/testsuite/gdb.dwarf2/debug-names.exp
gdb/testsuite/gdb.dwarf2/dup-psym.exp
gdb/testsuite/gdb.dwarf2/dw-form-ref-addr-with-type-units.exp
gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp
gdb/testsuite/gdb.dwarf2/dw2-align.exp
gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp
gdb/testsuite/gdb.dwarf2/dw2-aranges.exp
gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp
gdb/testsuite/gdb.dwarf2/dw2-bad-mips-linkage-name.exp
gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp
gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.exp
gdb/testsuite/gdb.dwarf2/dw2-basic.exp
gdb/testsuite/gdb.dwarf2/dw2-bfloat16.exp
gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp
gdb/testsuite/gdb.dwarf2/dw2-common-block.exp
gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.exp
gdb/testsuite/gdb.dwarf2/dw2-complex-parts.exp
gdb/testsuite/gdb.dwarf2/dw2-compressed.exp
gdb/testsuite/gdb.dwarf2/dw2-const.exp
gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp
gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp
gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp
gdb/testsuite/gdb.dwarf2/dw2-disasm-over-non-stmt.exp
gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp
gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.exp
gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
gdb/testsuite/gdb.dwarf2/dw2-empty-file-name.exp
gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp
gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.exp
gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp
gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp
gdb/testsuite/gdb.dwarf2/dw2-entry-value-2.exp
gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp
gdb/testsuite/gdb.dwarf2/dw2-epilogue-begin.exp.tcl
gdb/testsuite/gdb.dwarf2/dw2-error.exp
gdb/testsuite/gdb.dwarf2/dw2-filename.exp
gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp
gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp
gdb/testsuite/gdb.dwarf2/dw2-icycle.exp
gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter.exp
gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-header-3.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-many-frames.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-stepping.exp
gdb/testsuite/gdb.dwarf2/dw2-inline-with-lexical-scope.exp
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error-2.exp
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-forth-and-back.exp
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-symbol.exp
gdb/testsuite/gdb.dwarf2/dw2-intercu.exp
gdb/testsuite/gdb.dwarf2/dw2-intermix.exp
gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
gdb/testsuite/gdb.dwarf2/dw2-is-stmt.exp
gdb/testsuite/gdb.dwarf2/dw2-lexical-block-bare.exp
gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp
gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
gdb/testsuite/gdb.dwarf2/dw2-main-no-line-number.exp
gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
gdb/testsuite/gdb.dwarf2/dw2-missing-cu-tag.exp
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp
gdb/testsuite/gdb.dwarf2/dw2-multiple-debug-info.exp
gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.exp
gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.exp
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp
gdb/testsuite/gdb.dwarf2/dw2-op-call.exp
gdb/testsuite/gdb.dwarf2/dw2-op-out-param.exp
gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp
gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp
gdb/testsuite/gdb.dwarf2/dw2-param-error.exp
gdb/testsuite/gdb.dwarf2/dw2-producer.exp
gdb/testsuite/gdb.dwarf2/dw2-prologue-end-2.exp
gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges-overlap.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges-psym-warning.exp
gdb/testsuite/gdb.dwarf2/dw2-ranges-psym.exp
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp
gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp
gdb/testsuite/gdb.dwarf2/dw2-regno-invalid.exp
gdb/testsuite/gdb.dwarf2/dw2-restore.exp
gdb/testsuite/gdb.dwarf2/dw2-restrict.exp
gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp
gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.exp
gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp
gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp
gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp
gdb/testsuite/gdb.dwarf2/dw2-step-out-of-function-no-stmt.exp
gdb/testsuite/gdb.dwarf2/dw2-strp.exp
gdb/testsuite/gdb.dwarf2/dw2-symtab-includes-lookup.exp
gdb/testsuite/gdb.dwarf2/dw2-symtab-includes.exp
gdb/testsuite/gdb.dwarf2/dw2-tu-dwarf-4-5.exp
gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp
gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp
gdb/testsuite/gdb.dwarf2/dw2-unspecified-type.exp
gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp
gdb/testsuite/gdb.dwarf2/dw2-using-debug-str.exp
gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.exp
gdb/testsuite/gdb.dwarf2/dw2-vendor-extended-opcode.exp
gdb/testsuite/gdb.dwarf2/dw2-weird-type-len.exp
gdb/testsuite/gdb.dwarf2/dw2-wrong-mangled-name.exp
gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.exp
gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp
gdb/testsuite/gdb.dwarf2/dw4-toplevel-types.exp
gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.exp
gdb/testsuite/gdb.dwarf2/dwp-sepdebug.exp
gdb/testsuite/gdb.dwarf2/dwp-symlink.exp
gdb/testsuite/gdb.dwarf2/dwz-many.exp
gdb/testsuite/gdb.dwarf2/dwz-unused-pu.exp
gdb/testsuite/gdb.dwarf2/dwz.exp
gdb/testsuite/gdb.dwarf2/dwznolink.exp
gdb/testsuite/gdb.dwarf2/dyn-type-unallocated.exp
gdb/testsuite/gdb.dwarf2/dynamic-bit-offset.exp
gdb/testsuite/gdb.dwarf2/dynarr-ptr.exp
gdb/testsuite/gdb.dwarf2/enqueued-cu-base-addr.exp
gdb/testsuite/gdb.dwarf2/enum-type-c++.exp
gdb/testsuite/gdb.dwarf2/enum-type.exp
gdb/testsuite/gdb.dwarf2/fission-absolute-dwo.exp
gdb/testsuite/gdb.dwarf2/fission-base.exp
gdb/testsuite/gdb.dwarf2/fission-loclists-pie.exp
gdb/testsuite/gdb.dwarf2/fission-loclists.exp
gdb/testsuite/gdb.dwarf2/fission-mix.exp
gdb/testsuite/gdb.dwarf2/fission-multi-cu.exp
gdb/testsuite/gdb.dwarf2/fission-relative-dwo.exp
gdb/testsuite/gdb.dwarf2/fission-reread.exp
gdb/testsuite/gdb.dwarf2/fission-type-unit-locexpr.exp
gdb/testsuite/gdb.dwarf2/formdata16.exp
gdb/testsuite/gdb.dwarf2/fortran-var-string.exp
gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp
gdb/testsuite/gdb.dwarf2/forward-spec.exp
gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp
gdb/testsuite/gdb.dwarf2/gdb-add-index.exp
gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp
gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp
gdb/testsuite/gdb.dwarf2/gdb-index-tilde.exp
gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp
gdb/testsuite/gdb.dwarf2/gdb-index.exp
gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
gdb/testsuite/gdb.dwarf2/implptr.exp
gdb/testsuite/gdb.dwarf2/implptrconst.exp
gdb/testsuite/gdb.dwarf2/implptrpiece.exp
gdb/testsuite/gdb.dwarf2/implref-array.exp
gdb/testsuite/gdb.dwarf2/implref-const.exp
gdb/testsuite/gdb.dwarf2/implref-global.exp
gdb/testsuite/gdb.dwarf2/implref-struct.exp
gdb/testsuite/gdb.dwarf2/imported-unit-abstract-const-value.exp
gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
gdb/testsuite/gdb.dwarf2/imported-unit-c.exp
gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp
gdb/testsuite/gdb.dwarf2/imported-unit.exp
gdb/testsuite/gdb.dwarf2/info-locals-optimized-out.exp
gdb/testsuite/gdb.dwarf2/inline.exp
gdb/testsuite/gdb.dwarf2/inlined_subroutine-inheritance.exp
gdb/testsuite/gdb.dwarf2/intbits.exp
gdb/testsuite/gdb.dwarf2/local-var.exp
gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp
gdb/testsuite/gdb.dwarf2/mac-fileno.exp
gdb/testsuite/gdb.dwarf2/main-subprogram.exp
gdb/testsuite/gdb.dwarf2/malformed-line-header.exp
gdb/testsuite/gdb.dwarf2/mega-enum.exp
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp
gdb/testsuite/gdb.dwarf2/method-ptr.exp
gdb/testsuite/gdb.dwarf2/missing-line-table.exp
gdb/testsuite/gdb.dwarf2/missing-sig-type.exp
gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp
gdb/testsuite/gdb.dwarf2/missing-type-name.exp
gdb/testsuite/gdb.dwarf2/multidictionary.exp
gdb/testsuite/gdb.dwarf2/nameless-enum.exp
gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp
gdb/testsuite/gdb.dwarf2/nonvar-access.exp
gdb/testsuite/gdb.dwarf2/nostaticblock.exp
gdb/testsuite/gdb.dwarf2/nullptr_t.exp
gdb/testsuite/gdb.dwarf2/opaque-type-lookup.exp
gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp
gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
gdb/testsuite/gdb.dwarf2/pieces.exp
gdb/testsuite/gdb.dwarf2/pr10770.exp
gdb/testsuite/gdb.dwarf2/pr11465.exp
gdb/testsuite/gdb.dwarf2/pr13961.exp
gdb/testsuite/gdb.dwarf2/rust-enum.exp
gdb/testsuite/gdb.dwarf2/self-spec.exp
gdb/testsuite/gdb.dwarf2/shortpiece.exp
gdb/testsuite/gdb.dwarf2/static-optimized-out.exp
gdb/testsuite/gdb.dwarf2/staticvirtual.exp
gdb/testsuite/gdb.dwarf2/struct-decl.exp
gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp
gdb/testsuite/gdb.dwarf2/struct-with-sig.exp
gdb/testsuite/gdb.dwarf2/subrange-enum.exp
gdb/testsuite/gdb.dwarf2/subrange.exp
gdb/testsuite/gdb.dwarf2/symbol_needs_eval_fail.exp
gdb/testsuite/gdb.dwarf2/symbol_needs_eval_timeout.exp
gdb/testsuite/gdb.dwarf2/template-specification-full-name.exp
gdb/testsuite/gdb.dwarf2/trace-crash.exp
gdb/testsuite/gdb.dwarf2/typeddwarf.exp
gdb/testsuite/gdb.dwarf2/typedef-void-finish.exp
gdb/testsuite/gdb.dwarf2/utf-rust.exp
gdb/testsuite/gdb.dwarf2/valop.exp
gdb/testsuite/gdb.dwarf2/var-access.exp
gdb/testsuite/gdb.dwarf2/variant.exp
gdb/testsuite/gdb.dwarf2/varval.exp
gdb/testsuite/gdb.dwarf2/void-type.exp
gdb/testsuite/gdb.dwarf2/watch-notconst.exp

index eb5899661a6f0dcdf5de6585a24fce8210a744c4..52599ca3ced919914c172a2a7f8bfc30a583f010 100644 (file)
@@ -73,13 +73,13 @@ Dwarf::assemble $asm_file {
 
 if {[build_executable ${testfile}.exp ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set cmd "print i64_var"
index 90858e26e654608426737e281d35758c93972789..4a5e14e2c2edfe4358e2c2380471b9872e44d95a 100644 (file)
@@ -82,7 +82,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index f4dc9acf4b1fb2a171145cc382fd200c84d3fdc6..144bec7e53256a1765b24e01b112c550e329f3fb 100644 (file)
@@ -59,7 +59,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index e50763109c48ac894a47ab4c3a9aa6bb62feb710..01c0fbe5e4e2d12fe05c8766b79a505473455309 100644 (file)
@@ -63,7 +63,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 with_test_prefix "first first" {
index 526ebaffe68220397e346fb7e4bf210e789a278d..b53d8a35935527da3556011380f30b97d39acdc8 100644 (file)
@@ -86,7 +86,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index 00e737bcef2baba1305ee83aa95d9c3ec88cb200..171e0cbf3aab6f4369f5f0c87e20fe51aa02e09d 100644 (file)
@@ -28,7 +28,7 @@ standard_testfile .c -dw.S
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Make some DWARF for the test.
@@ -104,7 +104,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # Note: This test may fail with certain clang + linker combinations
index 0f47b7783ed64935298862120fd959b33ed98037..1d04ea176d0a4c12fd7665347327e3991d035e40 100644 (file)
@@ -18,7 +18,7 @@ require allow_cplus_tests
 standard_testfile .cc
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
-    return -1
+    return
 }
 
 set cmd "ptype main"
index bef0d63528e0368544bf58c2d2c7633a53ef3c89..8587897ccef19fbf663a3e12914d641af3b74458 100644 (file)
@@ -81,7 +81,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index f1ef47efd51e3c2e8b24ef3b893322cf528ae85c..cdec17eed07cadd0e00ed5afb95b70f486b6cd39 100644 (file)
@@ -111,7 +111,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index c466d1b8257a7402181f99727b297e937092f0eb..ec2640cdb7ac1fecbee4b422cf1234c087ddb8e4 100644 (file)
@@ -76,7 +76,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index c2f9bfcece415971f1c7b51bd983495a06e407a0..92865016ea3a888187b25fbbe5d21bc6a50972b1 100644 (file)
@@ -81,7 +81,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "ptype f" "int \\(const _Atomic char \\\* volatile _Atomic\\)"
index c59e0463e290da8aa4fd1d6bad37de9820c1c3fb..de76cc8aca2228064b97cb3466113d29058927f0 100644 (file)
@@ -75,7 +75,7 @@ Dwarf::assemble $asm_file {
 
 if {[build_executable "failed to build executable" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 set eol "\r\n"
index 84c1895e5d2f7ba07a2d710131f111b449578476..6c9d80b1e048e69332c26af0adacaf96a48cff05 100644 (file)
@@ -62,11 +62,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "info addr foo1" \
index 45e66a42f0fd859f2619fbb880f83b9566931417..0e7318bfd64476a3ff9ecd4e2a6185aa52a21658 100644 (file)
@@ -70,11 +70,11 @@ Dwarf::assemble $asm_file {
 }
 
 if {[prepare_for_testing "failed to prepare" $executable "${asm_file} ${srcfile}" {}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "p var" " = <optimized out>"
index 45213468abb228996e7621490795dfc88cfd81f5..3f03bf78df97ffe2f8f0d76606f703380def6a2a 100644 (file)
@@ -17,16 +17,16 @@ standard_testfile .c -2.c
 
 set sources [list $srcfile $srcfile2]
 if { [prepare_for_testing "failed to prepare" ${testfile} $sources] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 get_debug_format
 if { [skip_inline_frame_tests] } {
-    return -1
+    return
 }
 
 # Set a break-point in inline function bar, in a CU for which the partial
index 315ce0a12f6d01fc5ab21f605c6f8610de327ed1..91a1be56506d4869378ac4448a4d8cfc0aeef175 100644 (file)
@@ -24,11 +24,11 @@ standard_testfile .S
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         [list {additional_flags=-nostdlib}]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "break *func" "Breakpoint 2.*" "set breakpoint for call-frame-cfa"
index 294a250408c3b6f8b5467feae56cf27b2f32cf36..202371400ea76014b4496421da0faedf8e434aa2 100644 (file)
@@ -34,7 +34,7 @@ standard_testfile .c .S
 # First compile the .c file so we can ask GDB what is sizeof(int).
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Make some DWARF for the test.
@@ -69,11 +69,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "call foo ()" \
index 43f17889f5a6e8c0ddeb8f355f4b95c6da9e346f..c827ae6175c84b3ba113cd089790802c5d6e33cf 100644 (file)
@@ -26,11 +26,11 @@ require is_x86_64_m64_target
 
 if { [prepare_for_testing "failed to prepare" "${test}" ${test}.S \
       {nodebug nopie additional_flags=-nostdlib}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Initialize tests to be an empty array.
index aff4111321424944a748ecb1ba56765b0d3f45d8..b46f0cb1b43455f0ec4b10b99dfd8d601e91a929 100644 (file)
@@ -69,7 +69,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 gdb_test "print 1" "= 1" "recover from corrupt DWARF"
index a238c352d97f77093cac960253ff20d6bb8be584..8ed443fe734316a59758d4fa1e60c5f39af94819 100644 (file)
@@ -127,11 +127,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "ptype array" "type = char \\\[5\\\]"
index bbb3a3765ab46d7e00a5c2c80d6909385aef2d0d..6a3abaf83a4d62ba8b8dfbe0691d118728a3dc1f 100644 (file)
@@ -82,7 +82,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_assert [runto_main] "run to main"
index 32f4a4c007fdc38e82545fc251454a22a6447959..d4aa020380714fdae6e24b8452d3ec8a61243ba1 100644 (file)
@@ -38,11 +38,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 gdb_continue_to_end
index 8ff6765d170c96afaa8cc6d92c5b27aaa7474789..844b01d1b4a53ef447865844b85ff02936da8a7c 100644 (file)
@@ -53,7 +53,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 gdb_test "break *$main_start" ".*Breakpoint $decimal at $hex" \
index 3a2787e9f268edbd1216c819906c9cddf02d2ad1..b78afe257164372ba2539e27a1b8f3490b56e90e 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile .c -dw.S
 # specifically for this testcase, might as well use that.
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # Make some DWARF for the test.
@@ -121,11 +121,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index 00dacb78b817dc1387d32d0d83dcfc0509169149..10e649f06afe4fa6d5a2dcf4f55c06392e697f27 100644 (file)
@@ -82,7 +82,7 @@ Dwarf::assemble {
 
 if {[build_executable ${testfile}.exp $testfile "${asm_file} ${srcfile}" \
         [list ldflags=-nostartfiles]] == -1} {
-    return -1
+    return
 }
 
 clean_restart
index b9ad865a79d1b2f498b7d7dbb6857b8bcec876f4..11294ae5a1316583f104105da592dba583a3fbe8 100644 (file)
@@ -62,7 +62,7 @@ Dwarf::assemble {
 
 if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \
         [list ldflags=-nostartfiles]]} {
-    return -1
+    return
 }
 
 # Check for warning.
index 532482318dd1c36cf391db2b6feeae96bb4b25be..c5eca54b55cfac50bd09692af83fca3157d4e6d8 100644 (file)
@@ -69,7 +69,7 @@ Dwarf::assemble {
 
 if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \
         [list ldflags=-nostartfiles]]} {
-    return -1
+    return
 }
 
 # Verify that .debug_names section is not ignored.
index 4d588ab6cec6aa9524d52a7e309b9b4dca3e21e8..af3f263a2733746e540f7f0a086576b0315f481b 100644 (file)
@@ -90,7 +90,7 @@ Dwarf::assemble {
 
 if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \
         [list ldflags=-nostartfiles]]} {
-    return -1
+    return
 }
 
 # Verify that .debug_names section is not ignored.
index 23e8dad4577aa92a480a33f8c61eb7550ec79239..39bdd3d59e82b34b8e8dbaf7c83a8e7a917c0bf6 100644 (file)
@@ -65,7 +65,7 @@ Dwarf::assemble {
 
 if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \
         [list ldflags=-nostartfiles]]} {
-    return -1
+    return
 }
 
 # Verify that .debug_names section is not ignored.
index da3a8947c2fb80fd84901035df30dca79b523077..b020146e285b4e54c02ecfdf93b12485cb1a5a9c 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .S
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile {debug} main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 set test "info sources should contain only one reference to file1.txt"
index 9a8a396375b15db7e172b3065c09f2521601e3c4..6c3304352988493ccc9851e068d706719b098a42 100644 (file)
@@ -100,7 +100,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # Without the corresponding fix, we get an internal error:
index 04d8f91be5b84c57bbff8ababb79858d27fa6ece..367871e3094ebdabf1a9f06f6e47bceb5c747ff7 100644 (file)
@@ -50,7 +50,7 @@ lappend flags additional_flags=[quote_for_host -DWORLD_END=$world_start \
 
 set executable ${testfile}
 if {[build_executable ${testfile}.exp ${executable} $sources $flags] == -1} {
-    return -1
+    return
 }
 
 clean_restart $executable
index 06d4f6930240e8b22496b7a8c605e739d4ea88c8..1716741c0c14629dbe0f57a30b8adcddea5b548c 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile .S
 set executable ${testfile}
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $executable
index f4e6947f755e82a00dcf1a432f2e01a466693417..6671dd5a3fd3b98610f415ef49c6719238c97718 100644 (file)
@@ -68,11 +68,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set lang c++"
index 50b949345fcc6ae85a1cd767649ee974db2ef6cf..bbfdf23168b8d1b8d93325913cbc27a2082a7522 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile .S
 if {[gdb_compile [file join $srcdir $subdir $srcfile] $binfile \
         object {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 949464bd3c1812456341c888172384918e1550e7..a02d580bfd262fe088023e9765fd324bb9820d1e 100644 (file)
@@ -24,7 +24,7 @@ set dwarf_srcfile "file1.txt"
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
index d1d2a09c8830074e9fff61a5435c905fd7e4e1f1..beda49270c742e02be94ef8c335488741070a75f 100644 (file)
@@ -36,7 +36,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $asm_file $srcfile ]] } {
-    return -1
+    return
 }
 
 # Failed gdb_load would abort the testcase execution earlier.
index 134397cdfcbe4c138f5a9c36554516218e15e008..b148ae0e005cea04e482095ef3bde6662d8efe2c 100644 (file)
@@ -36,7 +36,7 @@ standard_testfile main.c -other.S -dwarf.S
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set int_size [get_sizeof "int" 4]
@@ -160,7 +160,7 @@ Dwarf::assemble $asm_file {
 
 if { [build_executable ${testfile}.exp ${testfile} \
          [list $srcfile $srcfile2 $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # Attempt to place a breakpoint on 'some_func', then check GDB is
index 5a8e902b0181d82d234958fd2fa1fd5999e4e8d2..aa7c12c12fabee6b27d80f3480e381b7cfd634c1 100644 (file)
@@ -55,7 +55,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # A successful run will have two PASSes.  A GDB that's lacking
index 9bba38c81025f42dbfa97118af2f9f8ef3fdcbbb..79cd67af65d9089350a0b6f60403a67616de6c44 100644 (file)
@@ -22,7 +22,7 @@ set executable ${testfile}
 
 # First try referencing DW_AT_frame_base which is not defined.
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $executable
index 307fcc1546d2a4bbcadeaf1bc8a0ba08645a0a48..6f6eb153c3a54b1c6774e8753ec0c0a211df0540 100644 (file)
@@ -52,7 +52,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "ptype var" "type = bool"
index 305fc7173ab061fb417e1d8beca173228958a757..f94bb8633ce3d68fc2591797fc874fb57c9a54e5 100644 (file)
@@ -24,7 +24,7 @@ set dwarf_srcfile "file1.txt"
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
index d7b76eaf6e72e59da48d7f610956aba3e5f6002f..6b71e1e055812c1c91a0eceae37e82d0b5dbb2e2 100644 (file)
@@ -68,11 +68,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Make sure we can print both types correctly.
index 4928bcb3e4c2bc182beb90960f43e820977e01c3..48206cdc23765d4d826492fe613491d1d9eb9383 100644 (file)
@@ -25,7 +25,7 @@ set executable ${testfile}
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         [list nodebug $additional_flags]]} {
-    return -1
+    return
 }
 
 # The correct new[] and delete[] syntax is probably unsupported by GDB.
index 7c470ff25a0dc6da9f93f7f06243b356faeda1c7..38d2652cd3bf09810f1c90a7f4c3f1baa65e31b8 100644 (file)
@@ -28,7 +28,7 @@ standard_testfile .S
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" $srcfile \
       {nodebug nopie f90}] } {
-    return -1
+    return
 }
 
 if {![runto MAIN__]} {
index b067f3b7f28b3e5cf22262ed2201acea9b3f4e4c..6e729f8c6ec040a5626915efafb74df7778533ee 100644 (file)
@@ -23,7 +23,7 @@ set additional_flags [gdb_target_symbol_prefix_flags_asm]
 standard_testfile .S
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
        $additional_flags]} {
-    return -1
+    return
 }
 
 # Here should be GDB-computed "Compilation directory is".
index f0a159e4aa4ebf2fe0b2c428f61fb29b72301383..f8da14c0a5aa70f6535fe0ca31eafca85985838d 100644 (file)
@@ -33,7 +33,7 @@ standard_testfile main.c -debug.S
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         "${srcfile}" {}]} {
-    return -1
+    return
 }
 
 set float_size [get_sizeof float 0]
@@ -159,11 +159,11 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         "${asm_file} ${srcfile}" {}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 proc do_test { type {clang 0}} {
index 5ac342506c9559ba98c0c0432bfe69931910c1ec..ff197a4d74fe6357bc8701fbe0917f9a6677ee87 100644 (file)
@@ -26,7 +26,7 @@ if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile \
              {debug additional_flags=-static additional_flags=-nostdlib} \
              main.c -g0 $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
index 41eea8063b1f84da4ece15427cc0a5dc992501b9..93ddfaa0f2ff20ed3727d57e3c54c95ebae0de3a 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile .S
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_test "print twelve" "= 12"
index 1ddf32aab5710b38887a2fbeea22e54e12ad6862..a659ae7171a9749d4c410e2a0304cc8797b38658 100644 (file)
@@ -27,11 +27,11 @@ standard_testfile .S -main.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile2 $srcfile] {}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # main is not provided by DWARF.
index db6ad49e9968201f61f553fde866083914cc378f..ea3842fe7c0a309236f2f1090cb561adc9a5947e 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile .S
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_test "ptype noloc" "type = const int"
index a21cc40284b7ba97d2f7de3adccef18470d93627..6b01e1d2880002124b08e2b45a0cbe917a09117e 100644 (file)
@@ -82,7 +82,7 @@ set srctmpfile tmp-${testfile}.c
 # $srcdir may be relative.
 if {[file pathtype $srcabsdir] != "absolute"} {
     untested "objdir pathtype is not absolute"
-    return -1
+    return
 }
 
 set f [open $asmsrcfile "w"]
@@ -414,7 +414,7 @@ if { [test_compiler_info clang*] } {
 
 if { [gdb_compile "${asmsrcfile} ${srcdir}/${subdir}/$srcfile" "${binfile}" executable $opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set dirs {}
@@ -450,7 +450,7 @@ remote_exec host "sh -c \"for d in $dircreatelist; do cp ${srcdir}/${subdir}/${s
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "cd ${srcabsdir}/rdir" "Working directory [string_to_regexp ${srcabsdir}]/rdir\\." "cd .../rdir"
index 1c0d3979ee933e633021ee92dc9a4fc1c83f09e5..76de1bc464993ca11d99b61944c0ee3206c02e11 100644 (file)
@@ -94,11 +94,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug} ] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Global lines array, maps lines numbers to the list of addresses
index f7ddd2280b93a2d703c1e539979e6ef8573c84ef..9ae132fae2f5a26ddccbeb51269432005757ea14 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile .S
 set executable ${testfile}
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $executable
index dc76285c1acc3f6ba7647b5a37ef83e43a45f43e..bd36d62a5d3267638734a49a88f4dc3e6341e7c3 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .S
 
 if  { [gdb_compile [file join $srcdir $subdir $srcfile] $binfile \
           object {nodebug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index 6bbc25319b9f56de08c1006fe2f02391b9e26eb7..2933de4123205a5575c7ceafe1ad24fa7d9a31b2 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile .S
 set executable ${testfile}
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $executable
index df925a6537467d5deaa7a63865b7a8ce7ede08a2..6f3c6a0092e424ff16fd029a1044b7fca525a3ed 100644 (file)
@@ -23,12 +23,12 @@ require is_x86_64_m64_target
 standard_testfile .S
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug nopie}] } {
-    return -1
+    return
 }
 
 if {![runto stop_frame]} {
     perror "Failed to stop in stop_frame"
-    return -1
+    return
 }
 
 gdb_test "bt" \
index 91ba571de6fffbeb3c798fe8d60a3146b5d687b6..15539bad856406b7e9fda04ad08c5eac72ae2dba 100644 (file)
@@ -52,7 +52,7 @@ Dwarf::assemble $asm_file {
 
 if { [build_executable "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 clean_restart
index 914b9d6f8130db60359997d7e8a00482204bc8e3..5c6ec7a2d4ec6ba71b764c7ea565ceae7d3f7a9d 100644 (file)
@@ -60,7 +60,7 @@ get_func_info main
 # can't be disabled.
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list ${srcfile}] {debug nopie}] } {
-    return -1
+    return
 }
 
 # Some addresses that we need when generating the DWARF.
index a00eea2a28ecd245411bb5ad14eaf24af974c549..7b7dd946c00952fea9f5193274aa822782eeade5 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .S
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \
           object {nodebug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index 9a8a88a747353a35a7e8eae8d751398d3cd8167d..f365866c0960c0b986985f12435a37b12197fb8d 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile .S
 set executable ${testfile}
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $executable
index f7cc7f7c0674ed3f35fe0f550ee5759e723d1013..9a1f5e101e7a4de60042e1dbb584043b252af2aa 100644 (file)
@@ -29,7 +29,7 @@ get_func_info foo
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list ${srcfile}] {debug nopie}]} {
-    return -1
+    return
 }
 
 # Address for the middle of foo.  This is used as our entry point when
index 33feb375b9d00fe5c6d96e2078b5d6d05a1ba30b..fa3bf5f4b3e0eeec6cb719d1ce75f84df601e1f5 100644 (file)
@@ -191,11 +191,11 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Try whether we can set and hit breakpoints at the entry_points.
@@ -220,7 +220,7 @@ gdb_test "bt" [multi_line \
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "*fooso"
index 710b9285cecbbd0b65a582a44c550e1d7df86916..3b48846fb718384b805b5f890e6fd0b435a73749 100644 (file)
@@ -94,7 +94,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if { ![runto *main] } {
index 3739dff18cf42aade967bf8c9db0a2f09c260ca4..fecb2e9296deeac828818679451ade821f0cba8f 100644 (file)
@@ -18,11 +18,11 @@ load_lib dwarf.exp
 require dwarf2_support
 
 if { [prepare_for_testing "failed to prepare" "dw2-entry-value" {dw2-entry-value-main.c dw2-entry-value.S} {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto f]} {
-    return -1
+    return
 }
 
 # FAIL was printing:
index 89519f577846969bc5316940eed2737a8861e1b5..d74a8db0a7bf001747226e5a9a1aa4a80c238221 100644 (file)
@@ -166,11 +166,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Moving to the scope with a local variable.
index 6da0949b3829da0c9d238b174b6923f9ed1aef3e..01d07a4e6ec07a3c77ab9a40e27a244a086832dd 100644 (file)
@@ -25,7 +25,7 @@ require is_x86_64_m64_target
 # We can't use prepare_for_testing here because we need to check the
 # 'file' command's output.
 if {[build_executable $testfile.exp $testfile $srcfile {nodebug quiet}]} {
-    return -1
+    return
 }
 
 clean_restart
index f5e9a4c5bd40fefb61e884c6be534f6fd886ff30..953ad7d8eb5d81d4c1acca518a099aa6c6f309cb 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .S
 set dwarf_srcfile "file1.txt"
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {nodebug}] != "" } {
-    return -1
+    return
 }
 
 gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
index b3009fa3f83e90cfebff690b0f099e43e02b4088..c52f7302ea60acb38aadb02d291fb291c7d9844e 100644 (file)
@@ -114,11 +114,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Do the testing in Ada mode, since this is the language for which
index 81048e4c2e2af0fda2a4ba285353f68cf9f612bf..a6e81e2407d34ee70d06308ea1c23d4fdee179a5 100644 (file)
@@ -90,7 +90,7 @@ proc create_dwarf_assembly {source_file one_diridx} {
 set asm_file [create_dwarf_assembly $srcfile2 false]
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set debug symtab-create 1"
@@ -108,7 +108,7 @@ gdb_test_multiple "ptype bar" "" {
 set asm_file [create_dwarf_assembly $srcfile3 true]
 if {[prepare_for_testing "failed to prepare" ${testfile}-one-diridx \
         [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "ptype bar" ".*" "do not crash with only one directory table entry"
index 79030d01f95a5bd8610b55c8c79dc8c1a3d37357..59a5ff6aaf928e223ff2b66de706be6f752cf469 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .S main.c
 
 if { [build_executable "failed to prepare" ${testfile} \
          [list $srcfile $srcfile2] {nodebug}] } {
-    return -1
+    return
 }
 
 # We are trying to verify that the partial symtab to symtab expansion
index 048ab99f20565eb5d2934647bc90028c05902d08..7efeec9b48912ed5b8b11668e2594d8bf8b10716 100644 (file)
@@ -59,11 +59,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto func]} {
-    return -1
+    return
 }
 
 gdb_test "p/x param" " = 0xdeadf00d"
index a0325cfb71d39cdec872cb97653f52cedee60ef4..a65a0e702bb939157e6a986557f3fb10e283c18a 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .S
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \
           object {nodebug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index 7e7223cfcaf35ec1573d4a3b0400cad750dc844f..114252335dea91c02cd6a644af0b2a5d9f74afaf 100644 (file)
@@ -29,7 +29,7 @@ set basename "inline-break"
 standard_testfile .S
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}] } {
-    return -1
+    return
 }
 
 #
index 3b712fb1ab3a92cf38550d5d631df1a33958ef14..d8e8c059147699da1ce7f61d5a082be3814c9a03 100644 (file)
@@ -142,11 +142,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] $build_options] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
index 831ed521fd5355df2e0e9d9225865c6133119d62..c1faccb883aa35b9c8e5db777e62a0da137ed747 100644 (file)
@@ -131,11 +131,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] $build_options] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
index 2854e866618441570ab6a65337a8c0094a3a83f6..7709fec14fc6ff6f5a2f031fd7a245ce35e6e275 100644 (file)
@@ -286,11 +286,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # First we step through all of the functions until we get the 'kkk'.
index 8e218a9f8d09323c20413720c735db139400e5b1..7f9f9464aaf5516c8665e8b17dad71bd4df7504a 100644 (file)
@@ -23,7 +23,7 @@ set binfile_stripped ${binfile}-stripped
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          [list $srcfile2 $srcfile] {nodebug nopie}] } {
-    return -1
+    return
 }
 
 set break_at ""
@@ -52,7 +52,7 @@ if {$result != 0} {
 gdb_load ${binfile_stripped}
 
 if {![runto "*${break_at}"]} {
-    return -1
+    return
 }
 
 set index [have_index $binfile_stripped]
index c6086e39d00158430af208a090ccd818409912fc..bf372fcd5637be7fd6c6a06f26a9fb2b0a0bd80a 100644 (file)
@@ -120,11 +120,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug optimize=-O1}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
index 320d7188fe2e81c7cd4bc0cdb386bc43bc9688af..07e9ef45be0d2ea60d73f6c708b7d7b1712a48f2 100644 (file)
@@ -123,11 +123,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set patterns [list "main call foo" \
index 8bdd6128eed4e90c5ebba7a0f548842a487b1bb2..1454b1e14c46bdaaa21701b19f32b5676fac102c 100644 (file)
@@ -132,7 +132,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 runto breakpoint_label
index 14bcda616e91bc3f68ee43bebfb130ea825e86da..b783bf7434e6d7aac385b90e00838cc15b42d472 100644 (file)
@@ -45,7 +45,7 @@ Dwarf::assemble $asm_file {
 
 if {[build_executable "failed to prepare" $testfile \
         [list $asm_file $srcfile] {nodebug}]} {
-    return -1
+    return
 }
 
 clean_restart
index 0919177f313b3983b32c078e99477ccd8da45376..2e892350db57e0e2facc59ceab68e2053a9f09b6 100644 (file)
@@ -47,7 +47,7 @@ Dwarf::assemble $asm_file {
 
 if {[build_executable "failed to prepare" $testfile \
         [list $asm_file $srcfile] {nodebug}]} {
-    return -1
+    return
 }
 
 clean_restart
index 577b387d12699f0deac9c0218765116fde62e33f..a1aee9b2f4739a4d9bb074e23d68fb6288a2779d 100644 (file)
@@ -57,7 +57,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $asm_file $srcfile] {nodebug}]} {
-    return -1
+    return
 }
 
 # Regression test for PR32081.
index 8f70def01a76146cbfa5943055f8541806299b8b..964868f8d3e1034df9055ecce81d6d1e1fd1fc9b 100644 (file)
@@ -74,11 +74,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto main]} {
-    return -1
+    return
 }
 
 gdb_test "p var1" " = 1"
index 7f927f11f6e025b721a3f364dee389fb91cab1bf..99c7cf8c11130159d0c4156c1d117c3f69f3875a 100644 (file)
@@ -24,7 +24,7 @@ set dwarf_srcfile "file1.txt"
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 set remote_dwarf_srcfile [gdb_remote_download host \
index 66dcdb8f9f912899c82acb3f85ee830924be3fbe..c94a49f466bfdb11d49d522ddb090962f9800f57 100644 (file)
@@ -24,7 +24,7 @@ set dwarf_srcfile "file1.txt"
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_remote_download host \
index 6791a46386cd84e62682af6231b6ff67aa3322a7..df29523bcaaedec6c79d7b50bf8718d6f5906223 100644 (file)
@@ -145,11 +145,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Check stepping through the out of order lines gives the experience
index e20949ffee37577fff06c202bf920da888f96207..6d0c3795ea34e48cff7c7ecc91b13fa3727a2829 100644 (file)
@@ -96,11 +96,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # First, break by address at a location we know is marked as not a
index feb6245c8c1785f4bc2b27098f1fdcb22bc4f793..eb119d062c0c5773f4a4133460fc3bdf64a0884c 100644 (file)
@@ -56,7 +56,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
                          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 runto_main
index 804bc07d640cf5f749adba8f5e232ad1005ee04a..edc479134b1e41e11d81d704262ffbe222e4f672 100644 (file)
@@ -110,11 +110,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "$srcfile:27"
@@ -130,7 +130,7 @@ gdb_test "n" "foo \\(2\\);" "bar2, 1st next"
 gdb_test "n" "foo \\(4\\);" "bar2, 2nd next"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "bar1_label_3"
index a243b6ad01a9085b0bdc0e28c2ac877f13620c0e..e45ca986c159c42f74e672258224fa45993316f2 100644 (file)
@@ -29,11 +29,11 @@ set executable ${testfile}
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile c++ $testfile-main.cc {c++ nodebug} \
              $srcfile {}]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # main is not provided by DWARF.
index aaef7478f41231e54a49790454fa5ad2ff8c40bf..b2f7a42c730271404fc4219233961e6ac5eb29c3 100644 (file)
@@ -46,11 +46,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set breakpoint_at_missing_lineno_set [gdb_breakpoint "1" no-message]
index fe700ccee8d5af32407d9873068c2a7ae63ebaca..8f582f6e752fbd0e030a56e17a9e5a151eb2082d 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile .S
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
         ${additional_flags}]} {
-    return -1
+    return
 }
 
 # The "info func" code tries to expand the corresponding symtab when a
index 2819895b55ad59244850606b12646ace802357c4..74a5ea90b130f93b550476bacdf84ccb9b7e8f07 100644 (file)
@@ -41,7 +41,7 @@ Dwarf::assemble $asm_file {
 # file command (so we can check its output).
 if {[build_executable "failed to build executable" $testfile \
         [list $srcfile $asm_file] {nodebug quiet}]} {
-    return -1
+    return
 }
 
 set host_binfile [gdb_remote_download host $binfile]
index 6624ce4cdfa7c7c08cea9a9335afb0533e57a06d..28d16d535a965108a32e4eb40a6408386cec84f4 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile .S
 
 # First try referencing DW_AT_frame_base which is not defined.
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index ada547a0440c2349c38bab171eb789d2695e33ce..d8892be95d0ed00f869db87da62f74ab1a855a5d 100644 (file)
@@ -28,7 +28,7 @@ lappend opts additional_flags=-fdebug-types-section
 
 if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" object \
          $opts] != "" } {
-    return -1
+    return
 }
 
 clean_restart $::testfile
index 8722be6bf09d4071504a9cef7c29f936a8461b0e..34f911eca126d0c4b94ee01af10c7ea7ffeb4a33 100644 (file)
@@ -55,7 +55,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} \
         [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "ptype '(anonymous namespace)::v'" "type = myint"
index 53ef496ea4abc1ca296c537d3f19469c13e69de7..b3b9ea034fe851ec1e7996fef31371144a3a9ab8 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile .c main.c
 
 if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2"]} {
-    return -1
+    return
 }
 
 set cmd "p var"
index 230d39a7ed51fa94b02136c6c2c6357531ac24ac..962e6ba2a51293f3cef696580c433baa4cc0f688 100644 (file)
@@ -211,7 +211,7 @@ Dwarf::assemble $asm_file {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # Symbols have the form: {file,main}_loc{addr,empty,no}_{,un}resolvable
@@ -273,7 +273,7 @@ proc file_symbols {type} {
 file_symbols no-run
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 file_symbols in-main
index 3cb4cb4107f9011f1dde98720dcfaf6074f0afa4..a7d32a63d8b95b187b6e4c2f0d9bd56a1d8caeb2 100644 (file)
@@ -29,7 +29,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile_outer}" "${binfile_outer}" \
       object {}] != ""
      || [gdb_compile "${srcdir}/${subdir}/${srcfile_inner}" "${binfile_inner}" \
       object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $executable_outer
index eb5b67222bb5cafc9cd93831c976057691b831c6..852eb5b5e04c969b1f3840fc4379870c532dccc2 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .S main.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $srcfile2] {nodebug}] } {
-    return -1
+    return
 }
 
 # Additional test to verify the referenced CU is not aged out.
@@ -35,7 +35,7 @@ gdb_test "p array3" " = 3" "array3 using DW_OP_call4"
 
 # Location lists need PC.
 if {![runto_main]} {
-    return -1
+    return
 }
 gdb_test "p arraynoloc" " = <optimized out>"
 gdb_test "p arraycallnoloc" {Asked for position 0 of stack, stack only has 0 elements on it\.}
index fa10f6b6c3cc5b14397e65f387c5d89795adc16d..92fd7f71fb99f72973008691f3d19085f14107dc 100644 (file)
@@ -24,11 +24,11 @@ require dwarf2_support
 require is_x86_64_m64_target
 
 if { [prepare_for_testing "failed to prepare" "${test}" ${test}.S {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "breakpt"
index 196dd822cc815a60b874f7fc2b4a2311d8f78428..0aa06852ac333a638fa34ac21bd1ec2ac5d1ea70 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .S
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \
           object {nodebug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index ef5e79dd68fd5e1700290b7fee236852a112e600..7951d2514445447cdc884c41055e30d718bbe624 100644 (file)
@@ -243,7 +243,7 @@ proc do_mi_test {} {
 }
 
 if { [build_test_program] == -1 } {
-    return -1
+    return
 }
 
 do_console_test
index 63fe8bfaba7252b142893e80bbad7fbec6ba73bd..3d790f1d4af877f3f30a7eec91b7542df83a1c2b 100644 (file)
@@ -76,11 +76,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set test "END with address 1 eliminated"
index 9e4ea48c2470e914222994d9b72e15b33e25b099..cdd3923cb2c1be7751fa0b7244e1fe6ca98f57e5 100644 (file)
@@ -21,11 +21,11 @@ standard_testfile .S -main.c
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          [list $srcfile2 $srcfile] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto f]} {
-    return -1
+    return
 }
 
 # FAIL was printing:
index 23d233331bfaa779acade279fe674a4b8ab8cb73..8f50ab7b9c2e64e1948fd80ef4d3be399cde4f2f 100644 (file)
@@ -22,7 +22,7 @@ set dwarf_srcfile "file1.txt"
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
index 0bd6c03986380cd070a424fe492c2e92ccb17861..acb9f3bb6006354404022920eef12ac66a9c1c76 100644 (file)
@@ -73,7 +73,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # Don't runto main here, otherwise the following doesn't
index 76cf6f3309f9d27d8e41c5f7a1f7b2a83fb73f17..294e7c8bf45f92fea31f8040739940f4c04bc991 100644 (file)
@@ -80,11 +80,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set prologue_end_line [gdb_get_line_number "main assign o"]
index f2271b54b494042f28c9ecee16b54025868c2840..0b792f8e4cf6cb5d160ad0142c2eb32ca692287a 100644 (file)
@@ -118,11 +118,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Make use of the line numbers we faked in the .debug_line table above.
index cbab1a8ede573f77efcf7e4fb5a92210cde044c7..924752ccd65e6b94bd4965bb47386ba56fd3544a 100644 (file)
@@ -67,11 +67,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto foo]} {
-    return -1
+    return
 }
 
 gdb_test "show language" \
index b6486247620e8f3138af8daae9e520e86468588c..ea5ef93c014b9a3efe705171731177b94ab8efcc 100644 (file)
@@ -31,7 +31,7 @@ standard_testfile -main.c .c -dw.S
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list ${srcfile} ${srcfile2}]] } {
-    return -1
+    return
 }
 
 set asm_file [standard_output_file $srcfile3]
@@ -102,7 +102,7 @@ Dwarf::assemble $asm_file {
 
 if { [build_executable "failed to prepare" ${testfile} \
          [list $srcfile $srcfile2 $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 clean_restart
@@ -110,7 +110,7 @@ clean_restart
 gdb_load_no_complaints $binfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Generate backtrace from baz, that visits the hole in the addrmap.  If
index fa8a0e7d421c575e306ddad9b5b410da92b51ee7..eb4187f151cf06c06a8d96e97aae622ecdb6b6eb 100644 (file)
@@ -33,7 +33,7 @@ standard_testfile main.c .c -dw.S
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list ${srcfile} ${srcfile2}]] } {
-    return -1
+    return
 }
 
 set asm_file [standard_output_file $srcfile3]
@@ -113,14 +113,14 @@ Dwarf::assemble $asm_file {
 
 if { [build_executable "failed to prepare" ${testfile} \
          [list $srcfile $srcfile2 $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 clean_restart
 gdb_load_no_complaints $binfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # "someothername" should be put into the partial symbol table, but
index 3ef8589f7bad45157321792ec114f504815171dd..0ff1865da71023edadbbf956fbb00555a829a6e5 100644 (file)
@@ -44,7 +44,7 @@ if { [prepare_for_testing_full "failed to prepare" \
               $srcfile [concat $flags {nodebug}]  \
               $srcfile2 {nodebug} \
               $srcfile3 {debug}]] == -1 } {
-    return -1
+    return
 }
 
 # First try referencing DW_AT_frame_base which is not defined.
index 10a801b2b631b1e74c1df73fcbda75cc99672662..b9a8cbbdb3113d89b93d3ac14395b06ab5e15dcd 100644 (file)
@@ -23,12 +23,12 @@ require is_x86_64_m64_target
 standard_testfile .S
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug nopie}] } {
-    return -1
+    return
 }
 
 if {![runto stop_frame]} {
     perror "Failed to stop in stop_frame"
-    return -1
+    return
 }
 
 gdb_test "bt" "#0  (${::hex} in )?stop_frame \[^\r\n\]*\r\n#1  \[^\r\n\]*first_frame \[^\r\n\]*\r\n#2  \[^\r\n\]*main\[^\r\n\]*" \
index 29693c0c0376c883355f6b4611f702c088119eaf..c4aac0b4818bdd35b10bc401ee50737ee82db291 100644 (file)
@@ -56,7 +56,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
                          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 runto_main
index 98d80e7d6376fc500062707032c6b44c96ae63c4..e0c334f80cc6046e4d4c744c9d83181f8879c0bb 100644 (file)
@@ -28,11 +28,11 @@ if { [test_compiler_info clang*] } {
 
 if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile] \
         $opts]} {
-    return -1
+    return
 }
 
 if {![runto foo]} {
-    return 0
+    return
 }
 gdb_test "continue" "$hex in foo \\(\\)"
 gdb_test "where" "#0 +$hex in foo \\(\\)\r\n#1 +$hex in _start \\(\\)"
index 15b53dc1a1d1e1eb39f9ccf12149073b3635435a..be138b8969381d4d4dbdcac0b7753c388cc1c4f6 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile .S
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {nodebug nopie}]} {
-    return -1
+    return
 }
 
 gdb_test "ptype f" "int \\(char \\\* restrict\\)"
index a2864b1b0ce0dee941acf856c23561d9ff472a98..541e087c23f2bb3f95f26797330cd3e9322ab014 100644 (file)
@@ -20,7 +20,7 @@ require dwarf2_support
 standard_testfile .S
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index c7ffd9224e9d92cee6a64b669eb10f55dc595f28..6812d5b06b8f40c3a2044adb559639280412f9a1 100644 (file)
@@ -28,7 +28,7 @@ standard_testfile .S
 set csrcfile ${testfile}.c
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" $srcfile {nodebug nopie}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 582c343ad832fa68e6c3ee88296ef09eddf148e3..276793325d6d1b3f8d33b9782d2f24620167e7dd 100644 (file)
@@ -47,7 +47,7 @@ if { [build_executable ${testfile}.exp ${executable} \
          "${testfile}.c ${testfile}.S" \
          [list additional_flags=-DINLINED \
                additional_flags=-DPTRBITS=$ptrbits]] == -1 } {
-    return -1
+    return
 }
 
 # We need those symbols global to access them from the .S file.
@@ -68,7 +68,7 @@ pass $test
 clean_restart $executable
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "func"
index 2ab89b132f39e55452b3e8940599e4a0d332fdb7..d3bafd4abf166ae137531d4f022c7580c2871e34 100644 (file)
@@ -152,11 +152,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # Check the END markers using 'maint info line-table'.
index d76dea6f0805acef75a28ad0e82bb13cf39538da..a3bde43c62be1063c81c50e4a41777ca25630c64 100644 (file)
@@ -20,7 +20,7 @@ require dwarf2_support
 standard_testfile .S
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart
index 76ca8ddc7f1731a9444469ffa2b9267f1556b196..9ab8e1c953a9817daa7933ec94d12ee6d3caec9e 100644 (file)
@@ -180,11 +180,11 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" "${::testfile}" \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint bar
index 506057df7322f5bc17a605e2a27e7fd12cc66261..33697ae9e4a31b4fec22bfe70f459e01ef67d76a 100644 (file)
@@ -163,11 +163,11 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" "${::testfile}" \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint bar
index c381229397be20aa81cec4ec942005d309cba86b..285cd00bfc53a9da0f6ddb92125dafce09784471 100644 (file)
@@ -99,11 +99,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Step into bar.
index 6f3a867aaf6055b8aa3a572f3face64a6ec54675..7dbc94f57ca66223c09ee7eafd0cb51f4f4f2470 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .S
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_test "p a_string" " = \"hello world!\\\\n\""
index 9b1ccea00f6680fdaae0690da626f217a3ee316c..0b2d7f64f75449043bf3d2ff7cead43313e28b15 100644 (file)
@@ -91,7 +91,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          "${asm_file} ${srcfile}" {}] } {
-    return -1
+    return
 }
 
 # Check that no symtabs are expanded.
index 7a1e4fb35b21ccd095dfbd42b282533b0d7ed5a7..7c7c2a20432c80a8d0d72e143b012cb48b61d676 100644 (file)
@@ -63,14 +63,14 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          "${asm_file} ${srcfile}" {}] } {
-    return -1
+    return
 }
 
 # Check that no symtabs are expanded.
 set test "no symtabs expanded"
 if { [readnow] } {
     unsupported $test
-    return -1
+    return
 }
 gdb_test_no_output "maint info symtabs" $test
 
index 7493b2cbc55420ed58ef6e5c654bd732eb655cb4..359c8e128339e2aa93bf144beeeb370242697dfb 100644 (file)
@@ -43,7 +43,7 @@ if { [prepare_for_testing_full "failed to prepare" \
         [list $testfile $lopts \
              $srcfile $opts \
              $srcfile2 $opts2]] } {
-    return -1
+    return
 }
 
 gdb_test_no_output \
index 88765d4f513a566c7173d601cb1f83c30ab640c0..8dac3949c5f69db18eb754887b847a6f926c42e4 100644 (file)
@@ -23,11 +23,11 @@ require dwarf2_support
 require is_x86_64_m64_target
 
 if {[prepare_for_testing "failed to prepare" "$testfile" $srcfile {nodebug nopie}]} {
-    return -1
+    return
 }
 
 if {![runto "stop_frame"]} {
-    return -1
+    return
 }
 
 # If test is compiled with clang, GDB would display absolute path.
index 06ce7a7647852853ff959abe9516ce858352ec40..1034ab5faf4207593fe33527da1212fa21387dcf 100644 (file)
@@ -23,11 +23,11 @@ set additional_flags [gdb_target_symbol_prefix_flags_asm]
 if { [prepare_for_testing "failed to prepare" "dw2-unresolved" \
        {dw2-unresolved-main.c dw2-unresolved.S} \
        [list nodebug $additional_flags]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # This testcase tests LOC_UNRESOLVED works right.
index 7acfb714f3dff8e4b410c4d056319663e5eecfbb..fe0974fd8f4f7c8028ba7216619a66c255a4a505 100644 (file)
@@ -93,11 +93,11 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         "${asm_file} ${srcfile} ${srcfile2}" {}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 foreach f {foo bar foo2} {
index 43cdfccb1aef661bc2137cb2cde21dc57406bb8b..b3bb1ed0f8c92cb64b3127d5d2ac59e5c7fc4fbd 100644 (file)
@@ -42,7 +42,7 @@ set asm_file [standard_output_file $srcfile2]
 # would do, but since we already have one specifically for this
 # testcase, might as well use that.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 set int_size [get_sizeof "int" -1]
 
index 04ea209ddd7ffdea1cb9b9eee49d262c1d61e101..68d25f70375ebe0d18fd8713f6ab42dae4135b5e 100644 (file)
@@ -25,7 +25,7 @@ require dwarf2_support
 standard_testfile .c -dw.S
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set asm_file [standard_output_file $srcfile2]
@@ -86,11 +86,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Print the type of global_var.  This type information is entirely
@@ -122,7 +122,7 @@ set result [remote_exec host "[gdb_find_objcopy] $args"]
 set status [lindex $result 0]
 set output [lindex $result 1]
 if { $status == 0 && ![string equal $output ""] } {
-    return -1
+    return
 }
 
 # Now copy the executable, and remove the .debug_str section.  This
@@ -133,7 +133,7 @@ set binfile_no_debug_str "${host_binfile}-no-debug-str"
 set args "--remove-section .debug_str $host_binfile ${binfile_no_debug_str}"
 if {[run_on_host "objcopy" [gdb_find_objcopy] "$args"]} {
     perror "failed to run objcopy"
-    return -1
+    return
 }
 
 # Restart GDB, but don't load an executable.  When we do load the
index bbe74955e44b46c11e8fe7ed7bf9e978fcd2db81..04a2aa06ea93ab76f3b2e3c1448591d88276b2ad 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile .S main.c
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $srcfile2] {nodebug}]} {
-    return -1
+    return
 }
 
 proc test { } {
index d12b68311071ade37263d16b5eb392d0a2fe36b5..f02d82c3f22076fb92a955f16563185e056bc32f 100644 (file)
@@ -64,11 +64,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "$srcfile:27" message
index acc5c115d8e4861ae5285d3a64aff6f29a42bc14..5d31a05b06be98e3b0a1704f8e5394b5f2c24fc1 100644 (file)
@@ -88,11 +88,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # At one point this would trigger a divide by zero inside GDB.  Now we
index 26e8ffaba75e086b5395bdc721a254cf52713b5d..bec85887e03dc12231f40dc59ea8e288a613b6f8 100644 (file)
@@ -54,11 +54,11 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "func_demangled_test"
index 15a01b616f32d89cb23e918e988b411e8db96882..b02f71422c0a5328cc8f1133b86c8c6d1cb6abac 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile .S
 set executable ${testfile}
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index cf731e3d1108bab21285eb74155e0057cc136ed8..bb0769050bcd8d35f6f6c77337f98e8cacffc2e9 100644 (file)
@@ -26,14 +26,14 @@ include_file dw4-sig-types.h
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          [list $srcfile $srcfile2] \
          {debug c++ additional_flags=-gdwarf-4 additional_flags=-fdebug-types-section}] } {
-    return -1
+    return
 }
 
 # Stress test gdb's handling of cached comp units, disable the cache.
 gdb_test_no_output "maint set dwarf max-cache-age 0"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Bring symtab for myset into gdb.
index 8429af8574d5bda34e13d9cd58c81b9c0d916da2..0f9b8385bed643294ca5d127ee7c7a0bc7d33c04 100644 (file)
@@ -24,11 +24,11 @@ standard_testfile .cc
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          $srcfile {debug c++ additional_flags=-gdwarf-4 \
                        additional_flags=-fdebug-types-section}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "ptype X" "type = struct X {.*"
index 9e47cdac5fc1520e5f71eb6c6052114af9a3d745..02f1777bdd58bfde319bc767e9e4defc8583f3b5 100644 (file)
@@ -25,11 +25,11 @@ standard_testfile .cc
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          $srcfile {debug c++ dwarf5 additional_flags=-O0}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here"]
index 4ca793059ba3ab5c8a37c508f6d0fdd7f2373bc5..9e203809e8448378b982372cf4dfa6fb25b662a1 100644 (file)
 standard_testfile
 
 if { [build_executable ${testfile}.exp ${testfile} ${srcfile}] == -1 } {
-    return -1
+    return
 }
 if {![remote_file host exists [standard_output_file ${testfile}.dwp]]} {
     unsupported "testsuite run does not produce dwp files"
-    return 0
+    return
 }
 
 # Note: the procedure gdb_gnu_strip_debug will produce an executable called
@@ -32,7 +32,7 @@ if {![remote_file host exists [standard_output_file ${testfile}.dwp]]} {
 if {[gdb_gnu_strip_debug $binfile$EXEEXT]} {
     # check that you have a recent version of strip and objcopy installed
     unsupported "cannot produce separate debug info files"
-    return -1
+    return
 }
 
 clean_restart "$testfile"
index fa1ed877d7e75d37afdfd1a7c2b9ab0dd05d7f9b..fb1202afae9f77229cd43f120a6b1d8d0d0776c8 100644 (file)
@@ -18,14 +18,14 @@ standard_testfile
 remote_file host delete [standard_output_file ${testfile}.dwp]
 if {[remote_file host exists [standard_output_file ${testfile}.dwp]]} {
     unsupported "dwp file cannot be deleted"
-    return 0
+    return
 }
 if { [build_executable ${testfile}.exp ${testfile} ${srcfile}] == -1 } {
-    return -1
+    return
 }
 if {![remote_file host exists [standard_output_file ${testfile}.dwp]]} {
     unsupported "testsuite run does not produce dwp files"
-    return 0
+    return
 }
 
 set thelink "${testfile}-thelink"
@@ -36,11 +36,11 @@ remote_file host delete [standard_output_file ${thelink}.dwp]
 remote_exec host "ln -sf ${testfile} [standard_output_file $thelink]"
 if {![remote_file host exists [standard_output_file $thelink]]} {
     unsupported "host does not support symbolic links (binary symlink is missing)"
-    return 0
+    return
 }
 if {[remote_file host exists [standard_output_file $thelink.dwp]]} {
     unsupported "host does not support symbolic links (we tried to delete a file and it is still there)"
-    return 0
+    return
 }
 
 clean_restart "$testfile"
@@ -57,11 +57,11 @@ gdb_exit
 remote_exec host "mv -f [standard_output_file ${testfile}.dwp] [standard_output_file ${thelink}.dwp]"
 if {[remote_file host exists [standard_output_file ${testfile}.dwp]]} {
     unsupported "host does not support symbolic links (binary symlink exists)"
-    return 0
+    return
 }
 if {![remote_file host exists [standard_output_file ${thelink}.dwp]]} {
     unsupported "host does not support symbolic links (dwp symlink is missing)"
-    return 0
+    return
 }
 
 clean_restart "$testfile"
@@ -126,7 +126,7 @@ remote_exec host "ln -sf ${dwp_dwp_dir}/${dwp_real_dwp} ${dwp_symlink_dir}/${dwp
 clean_restart "${dwp_symlink_dir}/${dwp_symlink_binary}"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test {print argv[0]} "/${dwp_symlink_binary}\"" \
index 551dd070958daee8f2d2dde936bc13c9d4e10fb9..f11fd54c59091249e2e47563b1bc3a1bdd48bc9c 100644 (file)
@@ -42,7 +42,7 @@ if {[prepare_for_testing_full "failed to prepare" \
              $srcfile {nodebug} \
              $asm_file {nodebug} \
              $srcfile3 {debug}]]} {
-    return -1
+    return
 }
 
 set linenr [gdb_get_line_number "return 0" $srcfile3]
index 4d074fb7464f08f71483a8896bf012ccc5d71de4..db497636d64ae3fdff86fb0305666296239d14a6 100644 (file)
@@ -56,7 +56,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $asm_file $srcfile] {nodebug}] } {
-    return -1
+    return
 }
 
 set cmd "p the_int"
index c907a64f53f87d6cd2daeae30738791ab4ae2220..96dab6cf93094e929d8884cc9e55d48b666b6190 100644 (file)
@@ -81,11 +81,11 @@ Dwarf::assemble $asm_file {
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" {}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "p other_int" " = 99"
index e6c6ce6005d41fa1dca4879b29d5b5492ce0bd96..898ae1637f505b8c1dd612259b6ce094ce587d45 100644 (file)
@@ -46,7 +46,7 @@ Dwarf::assemble $asm_file {
 # 'file' command's output.
 if {[build_executable $testfile.exp $testfile \
         [list $srcfile $asm_file] {nodebug quiet}]} {
-    return -1
+    return
 }
 
 clean_restart
index b4ebd7002fc09f58953d7875d49d2eae1245e9a9..75eb35ec9a57c246742e7dd6e8c1f61c4f28dfed 100644 (file)
@@ -43,7 +43,7 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/attributes.h
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $flags] } {
-    return -1
+    return
 }
 
 with_shared_gdb {
@@ -126,11 +126,11 @@ lappend_include_file flags $srcdir/lib/attributes.h
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          [list $srcfile $asm_file] $flags] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "marker_label"
index c87358ae947f16aaf4882addb37a9295e762d530..33ad0de8691f63313bd1a044efa038bbdf709af9 100644 (file)
@@ -88,7 +88,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index b7266db2affd75e894af58b23bf3fde2bae7d0e0..1f759c31dedbeb871e90ea0d5eb992c2e0fff748 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile .c -dw.S
 # specifically for this testcase, might as well use that.
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # Make some DWARF for the test.
@@ -121,11 +121,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language ada"
index 6cffbd377933e3e90ec4c9b3e404ae7aa287b57a..31eb5f6a8396f8dea2a9a1ccfe8d9172a0b8bafb 100644 (file)
@@ -72,7 +72,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # Expand cu1.  This will enqueue cu2.
index 392632545621466b0125624952ce5d525933eb1a..827fe67bc08b249d706c199a487ac1731c250db5 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile main.c .cc
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $srcfile $srcfile2] {debug c++}] } {
-    return -1
+    return
 }
 
 require {string equal [have_index $binfile] ""}
index 7a37608670ecf8add533a71f67c56d48dac941da..5af889a35441979d3110cf893afb54f33d5ebf51 100644 (file)
@@ -104,7 +104,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "print sizeof(enum E)" " = 4"
index 4b87c48ad4a379dc9452ee51c0a10d3720b9ea3a..e173e728a1097ece0fe74c92f51dc2eca4c376ea 100644 (file)
@@ -110,14 +110,14 @@ set object_file [standard_output_file ${testfile}.o]
 if { [build_executable_and_dwo_files "${testfile}.exp" ${binfile} {nodebug} \
          [list $asm_file {nodebug split-dwo} ${object_file}] \
          [list $srcfile {nodebug}]] } {
-    return -1
+    return
 }
 
 # Now we can start GDB.
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Print the type of global_var.  This type information is entirely
index d1abf6c9eb7b71ec29fd2252a70276980bc3bc45..28507eac9ba1db7e1299d6f6cd65dc2dcc4ee408 100644 (file)
@@ -32,13 +32,13 @@ if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" {nodebug} \
         [list $srcfile \
              [list nodebug split-dwo additional_flags=-DDWO=\"$dwo\"] \
              $obj]]} {
-    return -1
+    return
 }
 
 clean_restart $::testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Do a few basic things to verify we're finding the DWO debug info.
index 30e7d3913332c49bd7788fb335386988eb62e6cb..04072731754cac4a08f8634f891005d1ba6cdb55 100644 (file)
@@ -38,13 +38,13 @@ if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" \
         [list $srcfile \
              [list nodebug split-dwo additional_flags=-DDWO=\"$dwo\"] \
              $obj]]} {
-    return -1
+    return
 }
 
 clean_restart $::testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Verify gdb can find argc.
index f081ea007734a267cff518a42ff3f30531e841a4..6747192b1644adec55a16e9142bc5078ab3b7c1e 100644 (file)
@@ -32,13 +32,13 @@ if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" {nodebug} \
         [list $srcfile \
              [list nodebug split-dwo additional_flags=-DDWO=\"$dwo\"] \
              $obj]]} {
-    return -1
+    return
 }
 
 clean_restart $::testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Verify gdb can find argc.
index 7a4cfe5b22cc3361e102b1f5bdac12f54845540b..be7916c558a9baa728195a654abba141a2e8ddb9 100644 (file)
@@ -26,13 +26,13 @@ set objfile2 [standard_output_file ${testfile}2.o]
 
 # Compile fission-mix.c without Fission and fission-mix-2.c with Fission.
 if { [gdb_compile ${srcdir}/${subdir}/${srcfile} $objfile object {debug}] != "" } {
-    return -1
+    return
 }
 if { [gdb_compile ${srcdir}/${subdir}/${srcfile2} $objfile2 object {debug additional_flags=-gsplit-dwarf}] != "" } {
-    return -1
+    return
 }
 if {[gdb_compile "$objfile $objfile2" $binfile executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $::testfile
index f40e2f05946556ca26dfec0bce270405595ed19a..0621069174bc6d895c75842ff79fd39a523bfede 100644 (file)
@@ -200,13 +200,13 @@ if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" {nodebug} \
         [list $asm_file_1 [list nodebug split-dwo] $obj1] \
         [list $asm_file_2 [list nodebug split-dwo] $obj2] \
         [list $srcfile  [list nodebug]]]} {
-    return -1
+    return
 }
 
 clean_restart $::testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Do a few basic things to verify we're finding the DWO debug info.
index e246fac17b4c7bc2d57fd59208b1aa900dc452e0..6fe3e0b216b329bfa0c7da896cc470ba6a25d694 100644 (file)
@@ -107,14 +107,14 @@ set object_file [standard_output_file ${testfile}.o]
 if { [build_executable_and_dwo_files "${testfile}.exp" ${testfile} {nodebug} \
          [list $asm_file {nodebug split-dwo} ${object_file}] \
          [list $srcfile {nodebug}]] } {
-    return -1
+    return
 }
 
 # Now we can start GDB.
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Print the type of global_var.  This type information is entirely
index b7e6cf2de65c253b4bd3d5e040a73563042c4e15..7fa70bcafe92106420093d69231151f8b70a790b 100644 (file)
@@ -40,7 +40,7 @@ lappend dwo_options additional_flags=-DDWO=\"$dwo\"
 
 if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" $options \
         [list $srcfile $dwo_options $obj]]} {
-    return -1
+    return
 }
 
 # Load FILENAME, perform some basic tests to confirm that the debug
index 5d94473c5ad6e39c918ed23adc5a757b7f1a5234..47fc2fbd1dee0bdbd437148798ca91b46a52a317 100644 (file)
@@ -147,7 +147,7 @@ set object_file [standard_output_file ${testfile}.o]
 if { [build_executable_and_dwo_files "${testfile}.exp" ${binfile} {nodebug} \
          [list $asm_file {nodebug split-dwo} ${object_file}] \
          [list $srcfile {nodebug}]] } {
-    return -1
+    return
 }
 
 proc run_test { testfile } {
index 8169fa5e2c6b0b56437f9f1c7d199342f36f556e..ee35fdf0f058d9baf57fa37bf0ead8d0be2fc333 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile main.c -dw.S
 # We need to know the endianess in order
 # to write some of the debugging info we'd like to generate.
 if {[prepare_for_testing "failed to prepare for endianness test" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 set endianness [get_endianness]
@@ -84,7 +84,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
                          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "p/x xxx" " = 0x123456789abcdef00fedcba987654321"
index b96740384fd9818298a86f3874fedf0e292df653..925872bc2c8939a68121dff842255534416dba8b 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile .c -dw.S
 # specifically for this testcase, might as well use that.
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # Make some DWARF for the test.
@@ -138,11 +138,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language fortran"
index ebcf375c5413d418fd71672d1a58bc79d57a716e..eb1d8a2df58fab044e44b951e8fed04d3bbd4199 100644 (file)
@@ -75,7 +75,7 @@ Dwarf::assemble $asm_file {
 
 if {[build_executable "failed to build executable" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 set eol "\r\n"
index af55d7e2eb773260105335c2dc3ed0c662beb426..fd7d008adb34cea6e50e0a47238d10b5f39d66b8 100644 (file)
@@ -71,7 +71,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 require {string equal [have_index $binfile] ""}
index 6245fbe66bd6c20cc726b7d06cef766a0a9ca174..6d3bf29c1b101a62c1bc73663d83ba087120d4c9 100644 (file)
@@ -39,7 +39,7 @@ with_test_prefix non-symlink {
 # Regenerate exec without index.
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          [list ${srcfile}]] } {
-    return -1
+    return
 }
 
 set symlink [file dirname $binfile]/symlink
@@ -50,7 +50,7 @@ if { ![file exists $symlink] } {
 
 if { [ensure_gdb_index $symlink] == -1 } {
     fail "Unable to call gdb-add-index with a symlink to a symfile"
-    return -1
+    return
 }
 
 # Ok, we have a copy of $binfile with an index.
index faf1aa7c5a02f698a46313e379715ca9e8bae8bc..4d91987bbb83774f1d21980386856abc9b7bad2b 100644 (file)
@@ -22,12 +22,12 @@ standard_testfile main.c
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          [list ${srcfile}]] } {
-    return -1
+    return
 }
 
 if { [ensure_gdb_index $binfile] == -1 } {
     untested "error adding gdb index"
-    return -1
+    return
 }
 
 # Ok, we have a copy of $binfile with an index.
index c964988bc88d7886148dd3e625a410fe820aea45..351abc225d75c412d81d71a5721dbb38a7493f2d 100644 (file)
@@ -24,7 +24,7 @@ lappend opts additional_flags=-std=c++11
 
 if {[prepare_for_testing "failed to prepare" "${testfile}" \
         [list ${srcfile}] $opts]} {
-    return -1
+    return
 }
 
 # The bug was that gdb would crash when saving.
index f0d37362bacf8403cd33b444effcd600d5e00d82..50f08b59e281a4b736f02884e2adc46ca30f3149 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile main.c
 
 if {[prepare_for_testing "failed to prepare" "${testfile}" \
         [list ${srcfile}] {nodebug}]} {
-    return -1
+    return
 }
 
 set have_index [have_index $binfile]
index e22fc606ca6f6fcbecb481966d7beb13d84280e1..0930e101043258e4476026c32cb02d94fbf4159d 100644 (file)
@@ -35,7 +35,7 @@ set home $::env(HOME)
 # that's fine, but we can't test tilde expansion in this case.
 if { [string compare -length [string length $home] $full_dir $home] != 0 } {
     unsupported "test not run within home directory"
-    return -1
+    return
 }
 
 # Convert the $HOME prefix in to ~.
@@ -43,7 +43,7 @@ set dir "~[string range $full_dir [string length $home] end]"
 
 # Build the test executable.
 if { [prepare_for_testing "failed to prepare" "${testfile}" ${srcfile}] } {
-    return -1
+    return
 }
 
 # Start GDB and load in the executable.
@@ -73,12 +73,12 @@ gdb_test_multiple "maint print objfile $binfile" "check we can generate an index
 
 if { $has_index } {
     unsupported "already have an index"
-    return -1
+    return
 }
 
 if { !$can_dump_index } {
     unsupported "lacks debug information needed to dump index"
-    return -1
+    return
 }
 
 # Generate an index file.
index 94fc0ade3f1852b4e223849e2ee66ac1ddfcf421..cf1eff88bffebb97a8a0976c4583f092d2462a4c 100644 (file)
@@ -25,12 +25,12 @@ lappend flags {dwarf5}
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          $srcfile $flags] } {
-    return -1
+    return
 }
 
 if { [ensure_gdb_index $binfile] != 1 } {
     untested "error adding gdb index"
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 91e7ef5a5e14ff69398d719b3833bc04f2d4ea1b..456d7266c5994a2b17058e109d23a137216387b7 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile main.c
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" \
          [list ${srcfile}]] } {
-    return -1
+    return
 }
 
 # Add a .gdb_index section to PROGRAM.
@@ -141,11 +141,11 @@ gdb_test "mt print objfiles ${testfile}" \
 # First make sure enough time has passed, file mtime resolution is seconds.
 gdb_test_no_output "shell sleep 1"
 if {[run_on_host "touch binary" touch $host_binfile_with_index]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 gdb_test "mt print objfiles ${testfile}" \
     "(gdb_index|debug_names).*" \
index 09fefaed496dc45544a55dcddf65671b2a32bff3..ac4f0491198da653889365164ba51411f9f6ea5a 100644 (file)
@@ -77,12 +77,12 @@ Dwarf::assemble $asm_file {
 }
 
 if {[prepare_for_testing "failed to prepare" $executable "${asm_file} ${srcfile}" {}]} {
-    return -1
+    return
 }
 
 # DW_OP_GNU_implicit_pointer implementation requires a valid frame.
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "p p->f" " = <optimized out>"
index 495c0de0297a87559f3b9f803e8542f1b29fb80d..d30951c083de4086039434e4340f7853956625d8 100644 (file)
@@ -35,14 +35,14 @@ if {[info exists COMPILE]} {
 }
 
 if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {
-    return -1
+    return
 }
 
 # Additional test to verify the referenced CU is not aged out.
 gdb_test_no_output "maintenance set dwarf max-cache-age 0"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Test various pointer depths in bar.
index 7e1daf02d73c56748052182a0b5830fc6dfb88de..49684e3ec0cb3c0e4001a9d79d736fc176991de7 100644 (file)
@@ -85,11 +85,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "print *c" " = 114 'r'"
index d262f78485f6b334231587bb77e5cc08e78fcc64..9211cf6d24a058f099bb1e377cbc56d7982b5af3 100644 (file)
@@ -103,11 +103,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Determine byte order.
index a3f5b98768dc6f70aa9fc23c504e8aa26f62055c..dfa676de6933f273214081de95c395470db893ee 100644 (file)
@@ -37,7 +37,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # Any program would do, but since we already have implref-array
 # specifically for this testcase, might as well use that.
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set array_length [get_valueof "/u" "sizeof(array) / sizeof(array\[0\])" -1]
@@ -114,12 +114,12 @@ Dwarf::assemble ${asm_file} {
 }
 
 if {[prepare_for_testing "failed to prepare" ${executable} [list ${asm_file} ${srcfile}] {}]} {
-    return -1
+    return
 }
 
 # DW_OP_GNU_implicit_pointer implementation requires a valid frame.
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # This matches e.g. '(int (&)[5])'
index 9c30633af036e773b33175eee5643b22edef4bed..0d79e05f8ef04812d494eaa7da9e8972fad05678 100644 (file)
@@ -37,7 +37,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # Any program would do, but since we already have implref-const
 # specifically for this testcase, might as well use that.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 # Create the DWARF.  We need a regular variable and a reference to it that'll
@@ -93,12 +93,12 @@ Dwarf::assemble ${asm_file} {
 }
 
 if {[prepare_for_testing "failed to prepare" ${executable} [list ${asm_file} ${srcfile}] {}]} {
-    return -1
+    return
 }
 
 # DW_OP_GNU_implicit_pointer implementation requires a valid frame.
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Doing 'print ref' should show us e.g. '(int &) <synthetic pointer>: 42'.
index d861c76ec3fc85bd0f858727ea90476300884e0d..4c2466756e3cf1fba6fa3a8ef4053e8337b11cb9 100644 (file)
@@ -37,7 +37,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # Any program would do, but since we already have implref-global
 # specifically for this testcase, might as well use that.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 # Create the DWARF.  We need a regular variable and a reference to it that'll
@@ -93,12 +93,12 @@ Dwarf::assemble ${asm_file} {
 }
 
 if {[prepare_for_testing "failed to prepare" ${executable} [list ${asm_file} ${srcfile}] {}]} {
-    return -1
+    return
 }
 
 # DW_OP_GNU_implicit_pointer implementation requires a valid frame.
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Address of the referenced value.
index ce2dea7db3a4cf4f6b2f4a1930df9cf561733d2b..d62f426ed7360beb599388c776a64dd2ed32b68b 100644 (file)
@@ -37,7 +37,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # Any program would do, but since we already have implref-struct
 # specifically for this testcase, might as well use that.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}]} {
-    return -1
+    return
 }
 
 # Create the DWARF.  We need a regular variable for the struct and a reference
@@ -130,12 +130,12 @@ Dwarf::assemble ${asm_file} {
 }
 
 if {[prepare_for_testing "failed to prepare" ${executable} [list ${asm_file} ${srcfile}] {}]} {
-    return -1
+    return
 }
 
 # DW_OP_GNU_implicit_pointer implementation requires a valid frame.
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Returns the struct members, e.g. '{a = 0, b = 1, c = 2}'.
index 115cb63db9ffc026c775c189b25f58c0e04046ab..1bd00fc97139bbac62ad026d41fd81161b8b06c4 100644 (file)
@@ -29,7 +29,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # We need to know the size of integer type in order
 # to write some of the debugging info we'd like to generate.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 # Create the DWARF.
@@ -81,7 +81,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "p aaa" "= 1"
index 0bd1e0d2f91b9356f83f34af9211449f81ce4b9d..f9cc72c717257b9780470d4d9607c9cf00e22b15 100644 (file)
@@ -114,7 +114,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file $srcfile3] $build_options] } {
-    return -1
+    return
 }
 
 gdb_reinitialize_dir /tmp
index 1210fff84712097a00a1c1f2abd271819e09e1a6..82f4baf5bdcb47f24ce71a7025bd1b96e5b6f9a6 100644 (file)
@@ -12,7 +12,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # We need to know the size of integer and address types in order
 # to write some of the debugging info we'd like to generate.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 # Create the DWARF.
@@ -134,7 +134,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # If Python testing is enabled then try printing the global and static
@@ -153,7 +153,7 @@ proc test_python_block_printing { func } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "ptype inty" "type = int" "ptype in main"
index 26366d73e3bf08761f17dc7ea3fcd008fdd4c052..51f26dd6d41d169284060ecc000547b6cf4676f4 100644 (file)
@@ -26,7 +26,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # We need to know the size of integer types in order to write some of the
 # debugging info we'd like to generate.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 # Create the DWARF.
@@ -69,12 +69,12 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if { [ensure_gdb_index $binfile] == -1 } {
     untested "error adding gdb index"
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
index 1be9f30a7d997eaf2324acdd372225b6eacc242b..bd8694a872d6eaf3ba2a58d874d9c321139a11c2 100644 (file)
@@ -38,7 +38,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # We need to know the size of integer and address types in order
 # to write some of the debugging info we'd like to generate.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}]} {
-    return -1
+    return
 }
 
 # Create the DWARF.
@@ -125,7 +125,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language c++"
index 4f783d9bca0df38c3cda9c1a3e15d94fab5254d8..8932cbf51099d39eb272df356ce44102cf655013 100644 (file)
@@ -65,11 +65,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set lines [gdb_get_lines "info locals"]
index 11109f297ccfaf4be81f82c244df4eed76e2c790..138d471acfb42bead3757be5a22820bc72f8b1b0 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile .c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug nowarnings}]} {
-    return -1
+    return
 }
 
 set cmd "ptype main"
index 6a982acbdf6ea2ec15b0f503f0557fac672038f9..607e72bdf83ae82bbadba4d2efed479fee73ce55 100644 (file)
@@ -202,7 +202,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         "${asm_file} ${srcfile}" {}]} {
-    return -1
+    return
 }
 
 # All we need to do is set a breakpoint, which causes the DWARF
index 2cf96e63eaa4e5b16148b3314d54be332e9f3442..46e45aeb861e38f00e8c7a143cbf1ac90099cb89 100644 (file)
@@ -26,7 +26,7 @@ set executable ${testfile}
 set asm_file [standard_output_file ${srcfile2}]
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 # Create the DWARF.
@@ -196,11 +196,11 @@ Dwarf::assemble ${asm_file} {
 
 if {[prepare_for_testing "failed to prepare" ${executable} \
         [list ${asm_file} ${srcfile}] {}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "print v_i16_m1" "= -1"
index 77561a06d5a5e55ea6339dfbd69f4a490a36dbeb..b3401a002531b5505335d8e9646422eb93faa6b9 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile .f90
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile {debug f90}] } {
-    return -1
+    return
 }
 
 # Regression test for PR32276.
index 4305026089bf7985d7274d4b788b000b94fbf05c..9c0c5a700c2f624fdc4476c71b9148fef372d5e0 100644 (file)
@@ -91,7 +91,7 @@ if {[gdb_compile_shlib $libsrc $lib_so \
 set exec_options [list debug shlib=$lib_so]
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         ${::srcfile} $exec_options]} {
-    return -1
+    return
 }
 
 ### First GDB session.
index eae6600213ec08485cff8e6498877458a7b358a4..0e9a4988059ded76639c32bdd6a90fd7c74fd12c 100644 (file)
@@ -25,7 +25,7 @@ set dwarf_srcfile "file1.txt"
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug main.c debug $srcfile nodebug]]} {
-    return -1
+    return
 }
 
 gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
index cb01fca6bdf54cd3a2f6f9d2c58e326f0a241ba3..bb2219412d6c2c6cd181486cbf4d70812fda815c 100644 (file)
@@ -55,7 +55,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 set have_index [exec_has_index_section $binfile]
@@ -66,7 +66,7 @@ set have_index [exec_has_index_section $binfile]
 
 if {[gdb_start_cmd] < 0} {
     fail "could not start ${testfile}"
-    return -1
+    return
 }
 
 gdb_test_multiple "" "stopped at mymain" {
index 04494dc3889b28d36e034f4973ec9e64fd37b87c..8b549b2d44716080342f522e5f0298dbe8b6d7b1 100644 (file)
@@ -48,7 +48,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "info line 1" \
index 3d01db7b6907d33013206c5f827f828682f0db60..d550a2b464a44626199b679ce2e8b97a5f88d1b0 100644 (file)
@@ -59,7 +59,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 # The largest known Fermat prime.
index eae8723563a21b73cca772abd96cdfe9dd6f38ae..b08e6c39825d3c92b2a2a0736d844f8df3954d41 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .S
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" ${binfile} object {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 459302a7994cc13b942d1f09bb928527daf9abfe..42cb93330a55c4ebeb077dce26a8e12eb6533972 100644 (file)
@@ -79,7 +79,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug c++}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language c++"
index 9f32a36634585da6963f0117ba6c960a86fb7d3d..40e527b4844851e7a4d8354090fe7a5217b64a56 100644 (file)
@@ -80,7 +80,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # Place a breakpoint on FUNC.  Check that the address at which the
index f69ecbb71da4b8ff59b2ca9b85659a19f037cd35..aa47a704cc3232aadfb2620ca97038f474385f7e 100644 (file)
@@ -49,7 +49,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "ptype foo" "type = <unknown type .*>"
index 12852a4b33b8b4a027d1d3e0940a13fd448eef13..bf9e9258c0a20a0376d152f0836865c104e97bf8 100644 (file)
@@ -154,11 +154,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
        [list $srcfile $asm_file] $nodebug_flags] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "ptype var1" [multi_line \
index 770dff4d7f2a4933d1e9b224b730423e567dc007..530e0c79b0f314303e0c5eb64c215b45de4ec539 100644 (file)
@@ -97,11 +97,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Use 'ptype' on two variables that are using DW_TAG_base_type types
index 52975d08a5ceee798191f6202c3bee902d64bdcc..525967dbd89727725f19525c90991d9db7836c93 100644 (file)
@@ -141,7 +141,7 @@ Dwarf::assemble $asm_file {
 # Build the test executable.
 if {[build_executable $testfile.exp $testfile [list $asm_file $srcfile] {}] \
        == -1} {
-    return -1
+    return
 }
 
 # We force the DIEs above to be read in via "-readnow".
index 4dbe29b8e03bde4c41e21a162d1ef1efa60867c2..b523ae6d6ae2e30210d2054def01af3ef8778fce 100644 (file)
@@ -54,7 +54,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 # The bug was a crash, so just do anything here to verify gdb is still
index ae912aa4ace2459e946f793763746a56eed3502f..817d015a7d50fe23907e21e8f8cb0505e27d53be 100644 (file)
@@ -32,7 +32,7 @@ Dwarf::assemble $asm_file {
 }
 
 if { [build_executable $testfile.exp $testfile [list $srcfile $asm_file]] } {
-    return -1
+    return
 }
 
 clean_restart
index c0813ebf5eed7f3de2e956d8caf9dfe725e4ee77..8e673bbade5224a95bb1054f73c8cd963806bbd2 100644 (file)
@@ -198,11 +198,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Determine byte order.
index 88a2f69689dcdcb9e968ff891d077214faba3a30..e9be5b8b55587b82e03757a0bc8ec01d5ac22799 100644 (file)
@@ -35,7 +35,7 @@ Dwarf::assemble $asm_file {
 
 if { [build_executable ${testfile}.exp ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 4ce5751147a5d25957b3132bcab60f4bb476de51..f25988fb3015fd930580c4b1962f5483ef5e9047 100644 (file)
@@ -23,7 +23,7 @@ lappend opts c++
 lappend opts additional_flags=-std=c++11
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 set cmd "info types -q std::nullptr_t"
index bcf833ca2130f0c8223b1de390973b04f0d7ee8f..119203308a7521f23ed49a1eaeecdcc12dfe0049 100644 (file)
@@ -184,11 +184,11 @@ Dwarf::assemble $asm_file {
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile} ${srcfile3}" {nodebug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "p variable_a" " = {xyz = 97 'a'}"
index 5bfd0099b114229f628b4b2480f2c5f0cfeaf675..64a3a1e393ba502ef9226f182849d02719de0e5f 100644 (file)
@@ -88,13 +88,13 @@ Dwarf::assemble $asm_file {
 
 if {[build_executable ${testfile}.exp ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set cmd "print i64_noptr"
index c9fb5764c28dc5eb1c46352c7126f1fbbfeb554b..94ede63f31a5202b70c8a43077fb01ee0cfef7af 100644 (file)
@@ -27,11 +27,11 @@ lappend opts debug
 lappend opts nopie
 
 if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {
-    return -1
+    return
 }
 
 if {![runto foo]} {
-    return -1
+    return
 }
 
 # Move back up to main.
index 10d2f8b965ca776a3a3b1e620f1e58736ef6d8d2..bcae3cfe859dedd09189c389a0763acef2b6fe0a 100644 (file)
@@ -23,11 +23,11 @@ standard_testfile .S
 set csrcfile ${testfile}.c
 
 if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Function f1 tests a particular gdb bug involving DW_OP_piece.
index 6ff1639177eb6b6d7c5b1adfa64cdf85665ba93e..ec4e076cb8ff1e5eceee3a4962e01c08f43200af 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return 0
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # This test also requires DWARF.
 get_debug_format
 if {![test_debug_format "DWARF \[0-9\]"]} {
-    return -1
+    return
 }
 
 gdb_test "break force_unwind" "Breakpoint .*" "set breakpoint for pr10770"
index 2ca6985fd6f0000b81954ece3625f1e0ec4c8293..3cf6bdb70e18d913ee18630f5e55cf325d45aa9d 100644 (file)
@@ -27,7 +27,7 @@ if {[is_ilp32_target]} {
 
 if  { [gdb_compile [file join $srcdir $subdir $srcfile] \
           $binfile object [list additional_flags=-DPTRBITS=$ptrbits]] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index 66441e862404e01f91a2a94a88197858d7748303..46bcdd70b0e19c5ac8405ec80b599862012933d1 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile .S
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
        ${additional_flags}] == -1 } {
-    return -1
+    return
 }
 
 gdb_test "break -q main" "Breakpoint.*at.*"
index 141ec90d927e6e54a1a2ff8354bca65fc2c76100..19c9bcacff5d86f423e0547354b376a62d4adaf7 100644 (file)
@@ -111,7 +111,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language rust"
index 398cdc1e8d2b17c527ac1ac4a97a749597b62d57..b51c7e41a8b04befcb47a3f90f6f15ea10a38915 100644 (file)
@@ -53,7 +53,7 @@ Dwarf::assemble $asm_file {
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" {}]} {
-    return -1
+    return
 }
 
 set index [have_index $binfile]
index 118f7f1a97cbec11e9ed738e7abc55001cf6e2f2..bb37541ff072be10a0f20833b24fe6ac3a31740f 100644 (file)
@@ -121,7 +121,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
                          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "p s1" " = {a = 1, b = 0}"
index 29ec6b43fcc08a2739c8d3a31d192e5947a0e342..1ac48f5b31cdb05152ec7c704f4dbe1f2fe03ac9 100644 (file)
@@ -48,7 +48,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "print var" " = <optimized out>"
index 91a61b7f84316ce1f8c915425b51a2d67c03af29..90ae120b79c3c423148fd62f53401ff6884b3a23 100644 (file)
@@ -49,7 +49,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # gdb/18021: The test below would cause GDB to crash.
index 789ecb36f9befebcc0f603145b45b0f44bcd4bc2..aefa2609a8ace4bcfecfb5b7443ab324e9b61a12 100644 (file)
@@ -66,7 +66,7 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] {nodebug}]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "the_type::method" message
index 1a2e696d5b692f9d2fcd150cef5f5e20100e1cdb..4218dd1194705884e36a7565c9e35334e5a1192a 100644 (file)
@@ -76,7 +76,7 @@ Dwarf::assemble $asm_file {
 # from modifying it.  It also means we can set the build-id, rather than
 # having to extract it.
 if { [gdb_compile $asm_file $binfile.dwz object {nodebug}] != "" } {
-    return -1
+    return
 }
 
 set host_dwz_file [gdb_remote_download host $binfile.dwz]
index a85f615f37ee9c68ce9ccdd2ef4725722e34d966..5a3e5a77dcae922a9e9ffc25d979e9118545ca85 100644 (file)
@@ -99,7 +99,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 set struct_s_i_re \
@@ -114,7 +114,7 @@ set struct_s_j_re \
         "}"]
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "ptype struct s" $struct_s_i_re \
index 172f4bd42fc4b2df23698e2decfa99e9fdd23e74..a4cfab746db0f61d897acfb9e9a087ba41c92c91 100644 (file)
@@ -72,7 +72,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 gdb_test "print rangeval" " = TWO"
index cd3a4b85b69310fd8813798bfc5a0589f44dd7c5..71e88f433538c70936dc41b81cc06b0801125103 100644 (file)
@@ -105,7 +105,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug c++}] } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language pascal"
index a05fa14b7cd7500d860e2eaae4ff5b0094abb903..27763beee3a86b5b523ff7f27ab537db4a9dea07 100644 (file)
@@ -100,7 +100,7 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} \
      [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # The variable's location expression requires a frame,
@@ -108,7 +108,7 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} \
 gdb_test "print/d a" "No frame selected." "variable a can't be printed"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set var \$$regname = 2" "init reg to 2"
index 8b98e73d421cd8dbcad4488056a8825d420fa3d0..a72cdc8f55f6644a00ecc049c0e47f3b63f1e6cc 100644 (file)
@@ -122,11 +122,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set var \$$regname = 2" "init reg to 2"
index eea7106d70110935aeef0d4def678da5eed3d703..f5a919cb747f77410ed23a82b30f6d28aad2812d 100644 (file)
@@ -73,11 +73,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Just a sanity check to make sure GDB slurped the symbols correctly.
index aacb56a8d3e22b06ad8c0fe0686b15c635a99671..2df9bfa861bb73e5b210db49749ee12839089d58 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile .S
 
 if {[prepare_for_testing "failed to prepare" "${testfile}" ${testfile}.S \
         nodebug]} {
-    return -1
+    return
 }
 
 gdb_test "trace ${testfile}.c:3" "Tracepoint $decimal .*" \
index afc600e2b7257f467f158d0addacb7ea1d72dfe3..00c8bd13009614aa27623de3b1b7244e2c8483c1 100644 (file)
@@ -26,7 +26,7 @@ if { [is_x86_like_target] } {
 } elseif { [is_x86_64_m64_target] } {
     set sfile ${test}-amd64.S
 } else {
-    return 0
+    return
 }
 
 set opts {}
@@ -34,11 +34,11 @@ lappend opts nodebug
 lappend opts nopie
 
 if { [prepare_for_testing "failed to prepare" "${test}" ${sfile} $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Initialize tests to be an empty array.
index 96b621ac6e09e3450baebb5ac88e012c51de5403..507e698916af2ecad8fec54633ce30e5bd6e2ab8 100644 (file)
@@ -61,11 +61,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "break func" "Breakpoint .*" \
index 6eb8a7a171d606a08c485aa5642dfa99f80696d4..0aedd6530aadc7645dbf2619d6feedad8af4205a 100644 (file)
@@ -54,11 +54,11 @@ Dwarf::assemble $asm_file {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $asm_file] debug]} {
-    return -1
+    return
 }
 
 if {![runto main]} {
-    return -1
+    return
 }
 
 gdb_test "set language rust" \
index dd5f01d4a324014653a1f60505236a1fcdbd235a..18f51c117f8d60a267ba3b39e48c379376d9ec36 100644 (file)
@@ -24,11 +24,11 @@ standard_testfile .S
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile] [list {additional_flags=-nostdlib}]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "break valop.c:19" "Breakpoint 2.*" "set breakpoint for valop"
index 5e240aeb74087dcf447908f4a5a62a40b7c2ef1b..6719784f23027afcd4f79b191c0b8f258b3cac58 100644 (file)
@@ -250,11 +250,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Determine byte order.
index 2dab87211acfe38beee05a68ecb67f3a1a368de8..7f015e9e3ae157bd939f5a5eae3615741b720b52 100644 (file)
@@ -202,11 +202,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] debug] } {
-    return -1
+    return
 }
 
 if {![runto func]} {
-    return -1
+    return
 }
 
 # Get the values into history so we can use it from Rust.
index b0735bee94aebef09e318ceb2180c5f811e208b2..032e3d11c0e70d1c372de11ef2965f7f3328a721 100644 (file)
@@ -34,7 +34,7 @@ set asm_file [standard_output_file ${srcfile2}]
 # Any program would do, but since we already have varval
 # specifically for this testcase, might as well use that.
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 set int_size [get_sizeof "int" -1]
 # gdb always assumes references are implemented as pointers.
@@ -320,7 +320,7 @@ proc setup_exec { arg_bad } {
 }
 
 if { [setup_exec 0] == -1 } {
-    return -1
+    return
 }
 
 with_test_prefix "pre-main" {
@@ -329,7 +329,7 @@ with_test_prefix "pre-main" {
 
 # DW_OP_GNU_variable_value implementation requires a valid frame.
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "print varval" "= 8"
@@ -353,12 +353,12 @@ gdb_test "print untypedval" \
         "Type of DW_OP_GNU_variable_value DIE must be an integer or pointer\\."
 
 if { [setup_exec 1] == -1 } {
-    return -1
+    return
 }
 
 # DW_OP_GNU_variable_value implementation requires a valid frame.
 if {![runto_main]} {
-    return -1
+    return
 }
 gdb_test "print badval" "value has been optimized out"
 gdb_test "print bad_die_val1" \
index c3d37da56dc01e32f3a994ee347b4c442340e7bb..ee5d16e1ea07573eb227ee0a9ac779c252c08903 100644 (file)
@@ -93,11 +93,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Place a breakpoint in 'func' and continue to there.
index 7dd7afcb8a0d29363426e757b0bd34bac180ceb2..c8fb0a955f816a42a48f10fc9fbe483bb85a5f17 100644 (file)
@@ -22,7 +22,7 @@ require dwarf2_support is_x86_like_target
 
 if { [prepare_for_testing "failed to prepare" "${test}" \
       {watch-notconst.c watch-notconst2.S} {nodebug}] } {
-    return -1
+    return
 }
 
 if { ![runto f] } {