]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Don't return -1 from top-level master
authorTom de Vries <tdevries@suse.de>
Mon, 3 Aug 2026 12:13:56 +0000 (14:13 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 3 Aug 2026 12:13:56 +0000 (14:13 +0200)
Replace:
...
if {<cond>} {
   return -1
}
...
with:
...
if {<cond>} {
   return
}
...

See also commit 51f8decb2fc ("GDB: testsuite: TUI: Don't return -1 from
top-level (sed)").

Generated by a script written by Claude Code.

Tested on x86_64-linux and aarch64-linux.

Approved-By: Andrew Burgess <aburgess@redhat.com>
278 files changed:
gdb/testsuite/gdb.asm/asm-source.exp
gdb/testsuite/gdb.base/rbreak.exp
gdb/testsuite/gdb.base/stap-probe.exp
gdb/testsuite/gdb.btrace/buffer-size.exp
gdb/testsuite/gdb.btrace/data.exp
gdb/testsuite/gdb.btrace/delta.exp
gdb/testsuite/gdb.btrace/dlopen.exp
gdb/testsuite/gdb.btrace/enable-new-thread.exp
gdb/testsuite/gdb.btrace/enable-running.exp
gdb/testsuite/gdb.btrace/enable.exp
gdb/testsuite/gdb.btrace/event-tracing-gap.exp
gdb/testsuite/gdb.btrace/event-tracing.exp
gdb/testsuite/gdb.btrace/exception.exp
gdb/testsuite/gdb.btrace/function_call_history.exp
gdb/testsuite/gdb.btrace/gcore.exp
gdb/testsuite/gdb.btrace/instruction_history.exp
gdb/testsuite/gdb.btrace/multi-inferior.exp
gdb/testsuite/gdb.btrace/multi-thread-step.exp
gdb/testsuite/gdb.btrace/nohist.exp
gdb/testsuite/gdb.btrace/non-stop.exp
gdb/testsuite/gdb.btrace/ptwrite.exp
gdb/testsuite/gdb.btrace/reconnect.exp
gdb/testsuite/gdb.btrace/record_goto-step.exp
gdb/testsuite/gdb.btrace/record_goto.exp
gdb/testsuite/gdb.btrace/rn-dl-bind.exp
gdb/testsuite/gdb.btrace/segv.exp
gdb/testsuite/gdb.btrace/step.exp
gdb/testsuite/gdb.btrace/stepi.exp
gdb/testsuite/gdb.btrace/tailcall-only.exp
gdb/testsuite/gdb.btrace/tailcall.exp
gdb/testsuite/gdb.btrace/tsx.exp
gdb/testsuite/gdb.btrace/unknown_functions.exp
gdb/testsuite/gdb.btrace/vdso.exp
gdb/testsuite/gdb.compile/compile-cplus-anonymous.exp
gdb/testsuite/gdb.compile/compile-cplus-array-decay.exp
gdb/testsuite/gdb.compile/compile-cplus-inherit.exp
gdb/testsuite/gdb.compile/compile-cplus-member.exp
gdb/testsuite/gdb.compile/compile-cplus-method.exp
gdb/testsuite/gdb.compile/compile-cplus-namespace.exp
gdb/testsuite/gdb.compile/compile-cplus-nested.exp
gdb/testsuite/gdb.compile/compile-cplus-print.exp
gdb/testsuite/gdb.compile/compile-cplus-virtual.exp
gdb/testsuite/gdb.compile/compile-cplus.exp
gdb/testsuite/gdb.compile/compile-ifunc.exp
gdb/testsuite/gdb.compile/compile-ops.exp
gdb/testsuite/gdb.compile/compile-print.exp
gdb/testsuite/gdb.compile/compile-setjmp.exp
gdb/testsuite/gdb.compile/compile-tls.exp
gdb/testsuite/gdb.compile/compile.exp
gdb/testsuite/gdb.ctf/dwarf2-and-ctf.exp
gdb/testsuite/gdb.dap/catch-unhandled.exp
gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp
gdb/testsuite/gdb.debuginfod/crc_mismatch.exp
gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp
gdb/testsuite/gdb.disasm/am33.exp
gdb/testsuite/gdb.disasm/basics.exp
gdb/testsuite/gdb.disasm/h8300s.exp
gdb/testsuite/gdb.disasm/hppa.exp
gdb/testsuite/gdb.disasm/mn10300.exp
gdb/testsuite/gdb.disasm/sh3.exp
gdb/testsuite/gdb.disasm/t01_mov.exp
gdb/testsuite/gdb.disasm/t02_mova.exp
gdb/testsuite/gdb.disasm/t03_add.exp
gdb/testsuite/gdb.disasm/t04_sub.exp
gdb/testsuite/gdb.disasm/t05_cmp.exp
gdb/testsuite/gdb.disasm/t06_ari2.exp
gdb/testsuite/gdb.disasm/t07_ari3.exp
gdb/testsuite/gdb.disasm/t08_or.exp
gdb/testsuite/gdb.disasm/t09_xor.exp
gdb/testsuite/gdb.disasm/t10_and.exp
gdb/testsuite/gdb.disasm/t11_logs.exp
gdb/testsuite/gdb.disasm/t12_bit.exp
gdb/testsuite/gdb.disasm/t13_otr.exp
gdb/testsuite/gdb.dlang/circular.exp
gdb/testsuite/gdb.dlang/dlang-start-2.exp
gdb/testsuite/gdb.dlang/dlang-start.exp
gdb/testsuite/gdb.dlang/watch-loc.exp
gdb/testsuite/gdb.dwarf2/fission-dw-form-strx.exp
gdb/testsuite/gdb.fortran/allocated.exp
gdb/testsuite/gdb.fortran/array-bounds-high.exp
gdb/testsuite/gdb.fortran/array-bounds.exp
gdb/testsuite/gdb.fortran/array-element.exp
gdb/testsuite/gdb.fortran/array-no-bounds.exp
gdb/testsuite/gdb.fortran/array-slices-bad.exp
gdb/testsuite/gdb.fortran/array-slices-sub-slices.exp
gdb/testsuite/gdb.fortran/array-slices.exp
gdb/testsuite/gdb.fortran/associated.exp
gdb/testsuite/gdb.fortran/assumedrank.exp
gdb/testsuite/gdb.fortran/backtrace.exp
gdb/testsuite/gdb.fortran/block-data.exp
gdb/testsuite/gdb.fortran/call-no-debug.exp
gdb/testsuite/gdb.fortran/charset.exp
gdb/testsuite/gdb.fortran/class-allocatable-array.exp
gdb/testsuite/gdb.fortran/common-block.exp
gdb/testsuite/gdb.fortran/completion.exp
gdb/testsuite/gdb.fortran/complex.exp
gdb/testsuite/gdb.fortran/debug-expr.exp
gdb/testsuite/gdb.fortran/derived-type-function.exp
gdb/testsuite/gdb.fortran/derived-type-striding.exp
gdb/testsuite/gdb.fortran/derived-type.exp
gdb/testsuite/gdb.fortran/dynamic-ptype-whatis.exp
gdb/testsuite/gdb.fortran/empty-string.exp
gdb/testsuite/gdb.fortran/entry-point.exp
gdb/testsuite/gdb.fortran/function-calls.exp
gdb/testsuite/gdb.fortran/huge.exp
gdb/testsuite/gdb.fortran/info-main.exp
gdb/testsuite/gdb.fortran/info-modules.exp
gdb/testsuite/gdb.fortran/info-types.exp
gdb/testsuite/gdb.fortran/intrinsic-precedence.exp
gdb/testsuite/gdb.fortran/intrinsics.exp
gdb/testsuite/gdb.fortran/intvar-array.exp
gdb/testsuite/gdb.fortran/intvar-dynamic-types.exp
gdb/testsuite/gdb.fortran/lbound-ubound.exp
gdb/testsuite/gdb.fortran/library-module.exp
gdb/testsuite/gdb.fortran/limited-length.exp
gdb/testsuite/gdb.fortran/logical.exp
gdb/testsuite/gdb.fortran/max-depth.exp
gdb/testsuite/gdb.fortran/mixed-lang-stack.exp
gdb/testsuite/gdb.fortran/module.exp
gdb/testsuite/gdb.fortran/multi-dim.exp
gdb/testsuite/gdb.fortran/namelist.exp
gdb/testsuite/gdb.fortran/nested-funcs-2.exp
gdb/testsuite/gdb.fortran/nested-funcs.exp
gdb/testsuite/gdb.fortran/oop_extend_type.exp
gdb/testsuite/gdb.fortran/pointer-to-pointer.exp
gdb/testsuite/gdb.fortran/pointers.exp
gdb/testsuite/gdb.fortran/print-formatted.exp
gdb/testsuite/gdb.fortran/print_type.exp
gdb/testsuite/gdb.fortran/printing-types.exp
gdb/testsuite/gdb.fortran/ptr-indentation.exp
gdb/testsuite/gdb.fortran/ptype-on-functions.exp
gdb/testsuite/gdb.fortran/rank.exp
gdb/testsuite/gdb.fortran/shape.exp
gdb/testsuite/gdb.fortran/short-circuit-argument-list.exp
gdb/testsuite/gdb.fortran/size.exp
gdb/testsuite/gdb.fortran/sizeof.exp
gdb/testsuite/gdb.fortran/string-types.exp
gdb/testsuite/gdb.fortran/subarray.exp
gdb/testsuite/gdb.fortran/vla-alloc-assoc.exp
gdb/testsuite/gdb.fortran/vla-array.exp
gdb/testsuite/gdb.fortran/vla-datatypes.exp
gdb/testsuite/gdb.fortran/vla-history.exp
gdb/testsuite/gdb.fortran/vla-ptr-info.exp
gdb/testsuite/gdb.fortran/vla-ptype-sub.exp
gdb/testsuite/gdb.fortran/vla-ptype.exp
gdb/testsuite/gdb.fortran/vla-sizeof.exp
gdb/testsuite/gdb.fortran/vla-type.exp
gdb/testsuite/gdb.fortran/vla-value-sub-arbitrary.exp
gdb/testsuite/gdb.fortran/vla-value-sub-finish.exp
gdb/testsuite/gdb.fortran/vla-value-sub.exp
gdb/testsuite/gdb.fortran/vla-value.exp
gdb/testsuite/gdb.fortran/whatis_type.exp
gdb/testsuite/gdb.go/chan.exp
gdb/testsuite/gdb.go/global-local-var-shadow.exp
gdb/testsuite/gdb.go/handcall.exp
gdb/testsuite/gdb.go/hello.exp
gdb/testsuite/gdb.go/integers.exp
gdb/testsuite/gdb.go/max-depth.exp
gdb/testsuite/gdb.go/methods.exp
gdb/testsuite/gdb.go/no-package.exp
gdb/testsuite/gdb.go/package.exp
gdb/testsuite/gdb.go/strings.exp
gdb/testsuite/gdb.go/types.exp
gdb/testsuite/gdb.go/unsafe.exp
gdb/testsuite/gdb.modula2/builtin-procedure-adr.exp
gdb/testsuite/gdb.modula2/max-depth.exp
gdb/testsuite/gdb.modula2/multidim.exp
gdb/testsuite/gdb.modula2/unbounded-array.exp
gdb/testsuite/gdb.multi/address-space-reset.exp
gdb/testsuite/gdb.multi/attach-no-multi-process.exp
gdb/testsuite/gdb.multi/base.exp
gdb/testsuite/gdb.multi/bkpt-multi-exec.exp
gdb/testsuite/gdb.multi/bp-thread-specific.exp
gdb/testsuite/gdb.multi/checkpoint-multi.exp
gdb/testsuite/gdb.multi/detach-stepi.exp
gdb/testsuite/gdb.multi/dummy-frame-restore.exp
gdb/testsuite/gdb.multi/gdb-settings.exp
gdb/testsuite/gdb.multi/inferior-specific-bp.exp
gdb/testsuite/gdb.multi/info-threads.exp
gdb/testsuite/gdb.multi/multi-arch.exp
gdb/testsuite/gdb.multi/multi-attach.exp
gdb/testsuite/gdb.multi/multi-exit.exp
gdb/testsuite/gdb.multi/multi-kill.exp
gdb/testsuite/gdb.multi/multi-re-run.exp
gdb/testsuite/gdb.multi/multi-term-settings.exp
gdb/testsuite/gdb.multi/pending-bp-del-inferior.exp
gdb/testsuite/gdb.multi/pending-bp.exp
gdb/testsuite/gdb.multi/remove-inferiors.exp
gdb/testsuite/gdb.multi/run-only-second-inf.exp
gdb/testsuite/gdb.multi/start-inferior-specific.exp
gdb/testsuite/gdb.multi/stop-all-on-exit.exp
gdb/testsuite/gdb.multi/tids-gid-reset.exp
gdb/testsuite/gdb.multi/tids.exp
gdb/testsuite/gdb.multi/watchpoint-multi-exit.exp
gdb/testsuite/gdb.multi/watchpoint-multi.exp
gdb/testsuite/gdb.opencl/callfuncs.exp
gdb/testsuite/gdb.opencl/convs_casts.exp
gdb/testsuite/gdb.opencl/datatypes.exp
gdb/testsuite/gdb.opencl/operators.exp
gdb/testsuite/gdb.opencl/vec_comps.exp
gdb/testsuite/gdb.opt/break-on-_exit.exp
gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
gdb/testsuite/gdb.opt/fortran-string.exp
gdb/testsuite/gdb.opt/inline-break.exp
gdb/testsuite/gdb.opt/inline-cmds.exp
gdb/testsuite/gdb.opt/inline-locals.exp
gdb/testsuite/gdb.opt/inline-small-func.exp
gdb/testsuite/gdb.opt/solib-intra-step.exp
gdb/testsuite/gdb.opt/static-optimized-out.exp
gdb/testsuite/gdb.pascal/case-insensitive-symbols.exp
gdb/testsuite/gdb.pascal/floats.exp
gdb/testsuite/gdb.pascal/gdb11492.exp
gdb/testsuite/gdb.pascal/hello.exp
gdb/testsuite/gdb.pascal/integers.exp
gdb/testsuite/gdb.pascal/str-chars.exp
gdb/testsuite/gdb.pascal/stub-method.exp
gdb/testsuite/gdb.perf/backtrace.exp
gdb/testsuite/gdb.perf/disassemble.exp
gdb/testsuite/gdb.perf/single-step.exp
gdb/testsuite/gdb.perf/skip-command.exp
gdb/testsuite/gdb.perf/skip-prologue.exp
gdb/testsuite/gdb.perf/solib.exp
gdb/testsuite/gdb.perf/template-breakpoints.exp
gdb/testsuite/gdb.replay/connect.exp
gdb/testsuite/gdb.replay/missing-thread.exp
gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp
gdb/testsuite/gdb.threads/leader-exit-schedlock.exp
gdb/testsuite/gdb.threads/step-over-process-exit.exp
gdb/testsuite/gdb.trace/actions-changed.exp
gdb/testsuite/gdb.trace/actions.exp
gdb/testsuite/gdb.trace/ax.exp
gdb/testsuite/gdb.trace/backtrace.exp
gdb/testsuite/gdb.trace/basic-libipa.exp
gdb/testsuite/gdb.trace/change-loc.exp
gdb/testsuite/gdb.trace/circ.exp
gdb/testsuite/gdb.trace/collection.exp
gdb/testsuite/gdb.trace/deltrace.exp
gdb/testsuite/gdb.trace/disconnected-tracing.exp
gdb/testsuite/gdb.trace/entry-values.exp
gdb/testsuite/gdb.trace/ftrace-lock.exp
gdb/testsuite/gdb.trace/ftrace.exp
gdb/testsuite/gdb.trace/infotrace.exp
gdb/testsuite/gdb.trace/mi-trace-frame-collected.exp
gdb/testsuite/gdb.trace/mi-trace-unavailable.exp
gdb/testsuite/gdb.trace/mi-traceframe-changed.exp
gdb/testsuite/gdb.trace/mi-tracepoint-changed.exp
gdb/testsuite/gdb.trace/mi-tsv-changed.exp
gdb/testsuite/gdb.trace/no-attach-trace.exp
gdb/testsuite/gdb.trace/packetlen.exp
gdb/testsuite/gdb.trace/passc-dyn.exp
gdb/testsuite/gdb.trace/passcount.exp
gdb/testsuite/gdb.trace/pending.exp
gdb/testsuite/gdb.trace/pr16508.exp
gdb/testsuite/gdb.trace/qtro.exp
gdb/testsuite/gdb.trace/range-stepping.exp
gdb/testsuite/gdb.trace/read-memory.exp
gdb/testsuite/gdb.trace/report.exp
gdb/testsuite/gdb.trace/save-trace.exp
gdb/testsuite/gdb.trace/signal.exp
gdb/testsuite/gdb.trace/stap-trace.exp
gdb/testsuite/gdb.trace/status-stop.exp
gdb/testsuite/gdb.trace/strace.exp
gdb/testsuite/gdb.trace/tfile.exp
gdb/testsuite/gdb.trace/tfind.exp
gdb/testsuite/gdb.trace/trace-break.exp
gdb/testsuite/gdb.trace/trace-buffer-size.exp
gdb/testsuite/gdb.trace/trace-condition.exp
gdb/testsuite/gdb.trace/trace-enable-disable.exp
gdb/testsuite/gdb.trace/trace-mt.exp
gdb/testsuite/gdb.trace/tracecmd.exp
gdb/testsuite/gdb.trace/tracefile-pseudo-reg.exp
gdb/testsuite/gdb.trace/tspeed.exp
gdb/testsuite/gdb.trace/tstatus.exp
gdb/testsuite/gdb.trace/tsv.exp
gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
gdb/testsuite/gdb.trace/unavailable.exp
gdb/testsuite/gdb.trace/while-dyn.exp
gdb/testsuite/gdb.trace/while-stepping.exp

index f550f95573e959913deaf80f7365c655bf06451a..e32a2c6c5cc672aca4d9440ce96fc98bc823c032 100644 (file)
@@ -162,7 +162,7 @@ switch -glob -- [istarget] {
 
 if { "${asm-arch}" == "" } {
     untested "skipping tests due to no asm architecture"
-    return -1
+    return
 }
 
 # On NetBSD/ELF we need a special NetBSD-identifying note section.
@@ -188,7 +188,7 @@ if {[board_info $dest exists multilib_flags]} {
        set multilib_flags [board_info $dest multilib_flags]
        if { "${multilib_flags}" != "" } {
           untested "failed to compile"
-          return -1
+          return
           return
         }
 }
@@ -245,11 +245,11 @@ set asm2obj [standard_output_file asmrc2.o]
 
 if {[target_assemble ${srcdir}/${subdir}/${srcfile} $asm1obj "${asm-flags} ${debug-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 if {[target_assemble ${srcdir}/${subdir}/${srcfile2} $asm2obj "${asm-flags} ${debug-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 # We deliberately don't use gdb_compile here to link together the
@@ -260,7 +260,7 @@ if {[target_assemble ${srcdir}/${subdir}/${srcfile2} $asm2obj "${asm-flags} ${de
 # *-*-*bsd* and *-*-solaris2*.
 if {[target_link [list $asm1obj $asm2obj] "${binfile}" ${link-flags}] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 # Restore the target board linker script for HC11/HC12.
index 16c7e83cd494a8f894e6be9a31acfd9f6072767d..16d191b2417b837b4cb9947ca865390c4013e9fd 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile .c -2.c
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $srcfile $srcfile2]] } {
-    return -1
+    return
 }
 
 # Regression test for PR34112.  Check that "rbreak $srcfile:foo" doesn't set
index 00f91a5723a76fbf3cc27aefc34d6977dafdca8d..ce4f9a2d8cde7cd5582858dd2a29bbe6ee2a1f41 100644 (file)
@@ -331,7 +331,7 @@ proc stap_test_no_debuginfo {exec_name {args ""}} {
 with_test_prefix "without semaphore, not optimized" {
     if {[stap_test "stap-probe-nosem-noopt"] == -1} {
        untested "stap probe test failed"
-         return -1
+         return
     }
 
     foreach_with_prefix pie { "nopie" "pie" } {
index 1684cafa61f683ad4b28d0ac69a56e59e8c632a1..63bc44dde3934c4da6e3b5ea34cd96ea10bc2f1a 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile record_goto.c
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set record btrace bts buffer-size 1"
index 2aa02687611bf8522917d9604c82305335db73fe..2af688b95f04926926bf3413137b53384b22ea4f 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # trace the test code
index eef6f2debc68701dda4ef8852629331c5be8a8fb..cfcad1d5b042b1d681adaeb112b60795622148ce 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile record_goto.c
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # proceed to some sequential code
index cc91c0d3c467857229fcb92e65f7ecf31efd1ce6..e197438f213b7b23da77d185db6d6a016ffe07db 100644 (file)
@@ -25,16 +25,16 @@ set binfile_lib [standard_output_file $basename_lib.so]
 
 if { [gdb_compile_shlib $srcfile_lib $binfile_lib {}] != "" } {
     untested "failed to prepare shlib"
-    return -1
+    return
 }
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          [list additional_flags=-DDSO_NAME=\"$binfile_lib\" libs=-ldl]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Trace the test function
index 6e93c59e1d7b7469479051c2fccb015802f72bc6..72d8be5d47c9d1eff8681d886d85cc991acc60ca 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Record the main thread.  Recording will automatically be enabled for the
index 591e42be7db2fbf37a066ea9be5dbb230e6eab87..2a42b6ab62e9819fbe9497d4e6c2ef42d3f8652c 100644 (file)
@@ -20,7 +20,7 @@ require allow_btrace_tests
 standard_testfile
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } {
     untested "failed to prepare"
-    return -1
+    return
 }
 
 # We need to enable non-stop mode for the remote case.
@@ -30,7 +30,7 @@ save_vars { GDBFLAGS } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set bp_1 [gdb_get_line_number "bp.1" $srcfile]
index dd7b6753eff6ef9377f2263db61e066567da6dc5..33ddd6fc9315fcab142950759612ee65d8541751 100644 (file)
@@ -36,11 +36,11 @@ gdb_test "info record" "No recording is currently active\\." "info record withou
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile {} {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # enable btrace
@@ -79,19 +79,19 @@ load_lib gdbserver-support.exp
 require allow_gdbserver_tests
 clean_restart $testfile
 if {![runto_main]} {
-    return -1
+    return
 }
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # make sure record-btrace can be enabled after re-run
 clean_restart $testfile
 if {![runto_main]} {
-    return -1
+    return
 }
 gdb_test_no_output "record btrace" "enable after restart"
 if {![runto_main]} {
-    return -1
+    return
 }
 gdb_test_no_output "record btrace" "enable after re-run"
index b21ab93033a431f55e52929b8bf8129b936f951b..b821126bda27ffe77fe71b86b30878ec5e008d1e 100644 (file)
@@ -22,11 +22,11 @@ require allow_btrace_pt_event_trace_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set record btrace pt event-tracing on"
index f41ebdb116e49a7a658c9f324cf54757b1847c0e..df4086e0724869eb8689ff4ba1141c89216072e6 100644 (file)
@@ -22,11 +22,11 @@ require allow_btrace_pt_event_trace_tests
 standard_testfile null-deref.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set record btrace pt event-tracing on"
index 2ad6bbcdbe7522c75c31079280355959b91bde57..cf92dfa4a3e426d4256f4965b77b17e5fec6bac7 100644 (file)
@@ -24,11 +24,11 @@ require allow_btrace_tests
 standard_testfile exception.cc
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {nopie c++ debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # we want to see the full trace for this test
index a8706a9e6084b86908fd3352fedbf0a86edf0d51..15098e32016a8aec6828a467466fe9325e029ca9 100644 (file)
@@ -23,11 +23,11 @@ require allow_btrace_tests
 # PIE on 32-bit.
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile {} {nopie debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # start btrace
@@ -227,7 +227,7 @@ gdb_test "record function-call-history /c 21, +11" [multi_line \
 
 # make sure we can handle incomplete trace with respect to indentation
 if {![runto_main]} {
-    return -1
+    return
 }
 # navigate to the fib in line 24 above
 gdb_breakpoint fib
index 6a8730c53a781b5a235fb104239cf6a7b0379af8..d1766f5a5b92cc20fa0f10f02393cd445f0ec225 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile record_goto.c
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # trace the call to the test function
index f61f5786cb2f7345a61b98b5d60cb18d13e114e4..fc8bf8f0f4bfd841794333941e8706dd8f751294 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile .c .S
 if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # set bp before loop and continue
index 50a3df416d44603b79fb462c5151f1758b94c041..ff338c21a35ab524280acf9ff5e653e7daa6c6ec 100644 (file)
@@ -31,14 +31,14 @@ require !use_gdb_stub
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile {} {debug}]} {
-    return -1
+    return
 }
 
 set host_binfile [gdb_remote_download host $binfile]
 
 with_test_prefix "inferior 1" {
     if {![runto_main]} {
-       return -1
+       return
     }
 }
 
@@ -48,7 +48,7 @@ with_test_prefix "inferior 2" {
     gdb_test "inferior 2" "Switching to inferior 2.*"
 
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_no_output "record btrace"
index 2b851c415f8515fccd4df6a2675dcd6cf8e48e59..ee43cfcf2099621a791c941135d946c236bb7461 100644 (file)
@@ -22,12 +22,12 @@ require allow_btrace_tests
 standard_testfile
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } {
     untested "failed to prepare"
-    return -1
+    return
 }
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # set up breakpoints
index b2c53caa164702c5b2a4d6b16f7bfcf394fd2c33..50587954165bc8a0cf57a388b315aadebfc3aea4 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile record_goto.c
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 proc check_not_replaying {} {
index 7f9050753cc0fe8121176eefe55a5ea0f6c139dd..c27eab814505fa6e5bf2469aeaf81fa00864e362 100644 (file)
@@ -20,7 +20,7 @@ require allow_btrace_tests
 standard_testfile
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug}] != "" } {
     untested "failed to prepare"
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
@@ -29,7 +29,7 @@ save_vars { GDBFLAGS } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # set up breakpoints
index b440bd12e7c4c9fdf29bdf513c7d4eece515f474..344683ca0b892026de34e035b1a6796a1e77abc2 100644 (file)
@@ -33,16 +33,16 @@ if {[info exists COMPILE]} {
     }
 } else {
     unsupported "target architecture not supported"
-    return -1
+    return
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
     untested "failed to run to main"
-    return -1
+    return
 }
 
 ### 1. Default testrun
index 0acb0a794ed52a4df1aa62e99356342a618e2bad..0a00c6aff4014c1f1906c2dfbc906aa1da82db3b 100644 (file)
@@ -24,7 +24,7 @@ require allow_gdbserver_tests
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 set target_binfile [gdb_remote_download target $binfile]
index 155d0dfc3e7c362f18d9fa40af44e09a6a28456a..f699fd9c8236d208b2cc009f4b0c920bbe57cd93 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile record_goto.c
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set bp [gdb_get_line_number "fun4.3" $srcfile]
index 1c8898bdf688ba93c571b411f20f386fc722dfff..f66d0789439d6b9f547528ae43bfaa581bb69b0d 100644 (file)
@@ -40,15 +40,15 @@ if {[info exists COMPILE]} {
        }
 } else {
     unsupported "target architecture not supported"
-    return -1
+    return
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # When GDB prints the file for a stop location, it may print the full path
index e72107df4c33dffa81de670a41f8b0e2ef1a7c16..95454353298a9e750862310ac6ef4b27a79e1578 100644 (file)
@@ -26,11 +26,11 @@ require allow_btrace_tests
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug ldflags=-Wl,-z,lazy}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # trace the code for the call to test
index 499d641c7e567008ec92b8c27475fd5fb32b1821..e21aecea9d898ee1a674d9780edfcb35143d77fe 100644 (file)
@@ -21,10 +21,10 @@ require allow_btrace_tests
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # trace the test code
index ba7aefd81127088f777c06286fb83488a107f986..4ba763db018dd0c7e1b174f74d8240415b230576 100644 (file)
@@ -21,11 +21,11 @@ require allow_btrace_tests
 
 standard_testfile record_goto.c
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Trace the call to the test function.
index 86035f9cdc57b4f88ac067314bc0d4fdf7fdb005..2f0162d6aa43e84c56166e25d166911a18db3b83 100644 (file)
@@ -38,15 +38,15 @@ if {[info exists COMPILE]} {
        }
 } else {
     unsupported "target architecture not supported"
-    return -1
+    return
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 
index f26055fb2fd01893cb79d7a4197bf9f88c8cca1c..5e69f111109ad0e685f3d4b2917231f08918c21b 100644 (file)
@@ -42,15 +42,15 @@ if {[info exists COMPILE]} {
        }
 } else {
     unsupported "target architecture not supported"
-    return -1
+    return
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # we want to see the full trace for this test
index 4a940c1d9e7ce824beec8be308ec356e41e0f7ad..b52024c3f824a3fc6170b060d330a89f3fd9a505 100644 (file)
@@ -39,14 +39,14 @@ if {[info exists COMPILE]} {
        }
 } else {
     unsupported "target architecture not supported"
-    return -1
+    return
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # When GDB prints the file for a stop location, it may print the full path
index 4aaf23019943796d8aded95058aa68df96dd4d2f..84980bafb81d9cfa0b8b465dbf7cfab2d021a159 100644 (file)
@@ -19,11 +19,11 @@ require allow_btrace_pt_tests allow_tsx_tests
 
 standard_testfile .c x86-tsx.S
 if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # record the test
index c6037c153aec6ce325f851182a1060cdac917c5b..a3c891d1a35dc7ab3729e49f9ed64cf926be7075 100644 (file)
@@ -27,11 +27,11 @@ standard_testfile
 # Also discard local symbols.
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {ldflags=-Wl,-x nopie}]} {
-    return -1
+    return
 }
 
 if {![runto test]} {
-    return -1
+    return
 }
 
 # we want to see the full trace for this test
index cd5d4aad8f9381cfbca62369d2ad1100626385d1..d21290b38a9089f5d59abbcd94941f068bcfc368 100644 (file)
@@ -24,11 +24,11 @@ require allow_btrace_tests
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # capture the disassembly of gettimeofday while live debugging
index 06c66ff2603a10ac6daa9b990492e1dfaa32a450..29646000e515e9f12c0565b6f10025a02695e681 100644 (file)
@@ -27,18 +27,18 @@ require allow_compile_tests
 
 if {[prepare_for_testing $testfile $testfile $srcfile \
         {debug nowarnings c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here" $srcfile]
 gdb_continue_to_breakpoint "testing location"
 
 if {[skip_compile_feature_untested "var = 0"]} {
-    return -1
+    return
 }
 
 # Reminder, "var" is an integer; all these types get converted to `int'.
index c38819e29321762643c6b4a1395461ff3047c789..23b03b4d7f66b9028b0cbd5eb53ead9b9a170e62 100644 (file)
@@ -27,15 +27,15 @@ require allow_compile_tests
 
 if {[prepare_for_testing $testfile $testfile $srcfile \
         {debug nowarnings c++ additional_flags=-std=c++11}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {[skip_compile_feature_untested]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here" $srcfile]
index 9ae68235a7c2e448dad448217baf7cab41e29a54..2bf0a5dec68d3304d6f7543de3f7eba1f18a1f80 100644 (file)
@@ -27,18 +27,18 @@ require allow_compile_tests
 
 if {[prepare_for_testing $testfile $testfile $srcfile \
         {debug nowarnings c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here" $srcfile]
 gdb_continue_to_breakpoint "testing location"
 
 if {[skip_compile_feature_untested "var = 0"]} {
-    return -1
+    return
 }
 
 CompileExpression::new "var"
index 649ac46e24faa8ed7c88de5ae3d899534f0e4ecc..a499fcb2ba645b51f08ec62fdaeac13ec46373d0 100644 (file)
@@ -27,18 +27,18 @@ require allow_compile_tests
 
 if {[prepare_for_testing $testfile $testfile $srcfile \
         {debug nowarnings c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here" $srcfile]
 gdb_continue_to_breakpoint "testing location"
 
 if {[skip_compile_feature_untested "var = 0"]} {
-    return -1
+    return
 }
 
 CompileExpression::new "var"
index 8760aab0e6b00fb9ccc5be08a12177f0b7d8597e..a14e71b4ba3d0669a83e9638777ac39f4ccbdc9b 100644 (file)
@@ -27,18 +27,18 @@ require allow_compile_tests
 
 if {[prepare_for_testing $testfile $testfile $srcfile \
         {debug nowarnings c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here" $srcfile]
 gdb_continue_to_breakpoint "testing location"
 
 if {[skip_compile_feature_untested "var = 0"]} {
-    return -1
+    return
 }
 
 CompileExpression::new "var"
index ac5913718a1e9230237dfb6aea243a805c045fa8..bc3d71a24789914178fbece2e023938f4ed35c14 100644 (file)
@@ -27,18 +27,18 @@ require allow_compile_tests
 
 if {[prepare_for_testing $testfile $testfile $srcfile \
         {debug nowarnings c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here" $srcfile]
 gdb_continue_to_breakpoint "testing location"
 
 if {[skip_compile_feature_untested "var = 0"]} {
-    return -1
+    return
 }
 
 CompileExpression::new "var"
index 941a17a36887b2e22d879765336b6596ad1c1cec..c63f008ac0cd57f380e337acec1caac482f42003 100644 (file)
@@ -27,18 +27,18 @@ require allow_compile_tests
 
 if {[prepare_for_testing $testfile $testfile $srcfile \
         {debug nowarnings c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here" $srcfile]
 gdb_continue_to_breakpoint "testing location"
 
 if {[skip_compile_feature_untested "var = 0"]} {
-    return -1
+    return
 }
 
 CompileExpression::new "var"
index 9e809aa957a0301a42c2b36736788c8608ceab9f..9ad611846917e6bd8f89dcbb3d001def5031b327 100644 (file)
@@ -32,17 +32,17 @@ set srcfilesoptions [list ${srcfile} ${options}]
 
 if { [build_executable_from_specs $testfile.exp $testfile $options \
          {*}$srcfilesoptions] } {
-    return -1
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {[skip_compile_feature_untested]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set language c++" \
index 117b353a87df51d38564c9f61881df4f0b4ed6d4..2f19abcf9e790e8039972e56cf05e5d202492eb5 100644 (file)
@@ -27,18 +27,18 @@ require allow_compile_tests
 
 if {[prepare_for_testing $testfile $testfile $srcfile \
         {debug nowarnings c++}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break here" $srcfile]
 gdb_continue_to_breakpoint "testing location"
 
 if {[skip_compile_feature_untested "var = 0"]} {
-    return -1
+    return
 }
 
 CompileExpression::new "var"
index 443a2e89a92a94f28fbf1e5e4cd953fead1c24db..80967915301cf07545223f9207a4cc07f2474128 100644 (file)
@@ -42,7 +42,7 @@ lappend srcfilesoptions $srcfile4 $srcfile4options
 
 if { [build_executable_from_specs $testfile.exp $testfile $options \
          {*}$srcfilesoptions] } {
-    return -1
+    return
 }
 
 clean_restart ${testfile}
@@ -55,14 +55,14 @@ gdb_test_no_output "set language c++" \
     "Set language to C++"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here"]
 gdb_continue_to_breakpoint "break-here" ".* break-here .*"
 
 if {[skip_compile_feature_untested "var = 0"]} {
-    return -1
+    return
 }
 
 #
index 024c37e42a2aae3843e098dc105d41b0ad93d6ff..e1cc7aee21135ce7c009202e05002930a01a5318 100644 (file)
@@ -32,11 +32,11 @@ with_test_prefix "nodebug" {
 
     if { [prepare_for_testing "failed to prepare" "$testfile-nodebug" \
              $srcfile $flags] } {
-       return -1
+       return
     }
 
     if {![runto_main]} {
-       return -1
+       return
     }
 
     # This binary has no debug information, so force the language to C in case
@@ -46,7 +46,7 @@ with_test_prefix "nodebug" {
     gdb_test_no_output "set language c" ""
 
     if {[skip_compile_feature_untested]} {
-       return -1
+       return
     }
 
     gdb_test "compile code resultvar = gnu_ifunc (10);" \
@@ -62,11 +62,11 @@ with_test_prefix "debug" {
 
     if { [prepare_for_testing "failed to prepare" "$testfile-debug" \
              $srcfile "debug $flags"] } {
-       return -1
+       return
     }
 
     if {![runto_main]} {
-       return -1
+       return
     }
     # gnu_ifunc (10): error: too many arguments to function 'gnu_ifunc'
     gdb_test "compile code resultvar = gnu_ifunc_alias (10);" \
index 7ea2bb17f6a37a84f915b359fe10af66aadce2c7..c5c921f8b0479bcc55fb9f1709152b0a306f65cc 100644 (file)
@@ -358,7 +358,7 @@ set program [subst_vars {
 }]
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # Make some DWARF for the test.
@@ -413,15 +413,15 @@ 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
 }
 
 if {[skip_compile_feature_untested]} {
-    return -1
+    return
 }
 
 # If we have a bug, this will hang.
index 77bf7d894d25b07215382e50196d56f2e5192e74..a65096a663e17f65b5d44c5e356d5592c0e0b5b7 100644 (file)
@@ -22,15 +22,15 @@ require is_c_compiler_gcc
 require allow_compile_tests
 
 if { [prepare_for_testing "failed to prepare" "$testfile"] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {[skip_compile_feature_untested]} {
-    return -1
+    return
 }
 
 gdb_test "compile print varint" " = 10"
index d4b17bfc9969ef65be0b708c6d6f2298d2f646f6..9d2c47f7bc833cc805bb146352fd4cab9e404560 100644 (file)
@@ -22,15 +22,15 @@ require is_c_compiler_gcc
 require allow_compile_tests
 
 if { [prepare_for_testing "failed to prepare" $testfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {[skip_compile_feature_untested]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "compile file -r ${srcdir}/${subdir}/$srcfile2" \
index 7685d97a1188e4b40056968611e18d5ab45f6b7d..d18ef837996b66941515e20b5f8e3d8d09bf4c52 100644 (file)
@@ -23,7 +23,7 @@ require allow_compile_tests
 
 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
         executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${::testfile}
@@ -32,7 +32,7 @@ if {![runto_main]} {
 }
 
 if {[skip_compile_feature_untested]} {
-    return -1
+    return
 }
 
 gdb_test "compile code local_scope = 1" \
index 0522c3c37704bf5cfa8710c09aac6d775ffcdb34..4429f653a63bf2ee64f79497971e373b410c87e1 100644 (file)
@@ -34,7 +34,7 @@ if { $srcfile3 != "" } {
 lappend srcfilesoptions $srcfile4 "nodebug"
 if { [build_executable_from_specs $testfile.exp $testfile $options \
          {*}$srcfilesoptions] } {
-    return -1
+    return
 }
 
 clean_restart ${testfile}
@@ -55,11 +55,11 @@ gdb_test "compile file -r ${srcdir}/${subdir}/${testfile}-mod.c" \
     "test compile file command without running inferior"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {[skip_compile_feature_untested]} {
-    return -1
+    return
 }
 
 #
@@ -386,14 +386,14 @@ set binfile [standard_output_file $testfile]
 if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile2} $libbin {debug}] != ""
      || [gdb_compile ${srcdir}/${subdir}/${srcfile} $binfile executable \
             [list debug shlib=$libbin]] == -1 } {
-    return -1
+    return
 }
 
 clean_restart $testfile
 gdb_load_shlib $libbin
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "compile code shlib_func ();" "call shared library function"
index 020d17425292e94f5f8c84321551a09ddd67cf97..b3d2b3583d71e464c14aeaf2951fa94291cb11eb 100644 (file)
@@ -27,21 +27,21 @@ set opts {}
 lappend opts debug
 if { [gdb_compile $s1 ${objfile} object $opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set opts {}
 lappend opts "additional_flags=-gctf"
 if { [gdb_compile $s2 ${objfile2} object $opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set opts {}
 lappend opts "additional_flags=-Wl,-ctf-variables"
 if { [gdb_compile [list ${objfile} ${objfile2}] $binfile executable $opts] != "" } {
     unsupported "failed to link"
-    return -1
+    return
 }
 
 clean_restart
index fae071a11ac6d8974e79798b48eb93a97acadfe3..399d73c914a0ee1b9bc8422e77a04233539e2532 100644 (file)
@@ -21,7 +21,7 @@ require allow_ada_tests allow_dap_tests gnat_runtime_has_debug_info
 standard_ada_testfile prog
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != ""} {
-    return -1
+    return
 }
 
 if {[dap_initialize] == ""} {
index 4fabc9931b4b4159d2e0eb21bdaec6f93c6eabf0..eae6090132945c544fea6e1aa6ab510949c8863d 100644 (file)
@@ -27,7 +27,7 @@ require allow_debuginfod_tests
 
 if {[build_executable "build executable" ${testfile} ${srcfile} \
         {debug build-id}] == -1} {
-    return -1
+    return
 }
 
 # Split debug information from BINFILE into BINFILE.debug.
@@ -37,7 +37,7 @@ if {[build_executable "build executable" ${testfile} ${srcfile} \
 # information by GDB will need to be done based on the build-id.
 if {[gdb_gnu_strip_debug $binfile no-debuglink]} {
     unsupported "cannot produce separate debug info files"
-    return -1
+    return
 }
 
 # Get the .build-id/PREFIX/SUFFIX.debug file name, and convert it to
index ce154044a38481d18ab3ba58fdbdac9995ffef17..35f91bff261e2432fdb53b3d9f2399c9aefb938c 100644 (file)
@@ -28,7 +28,7 @@ require allow_debuginfod_tests
 
 if {[build_executable "build executable" $testfile $srcfile debug] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # The procedure gdb_gnu_strip_debug will produce an executable called
@@ -38,7 +38,7 @@ if {[build_executable "build executable" $testfile $srcfile debug] == -1} {
 if {[gdb_gnu_strip_debug $binfile]} {
     # Check that you have a recent version of strip and objcopy installed.
     unsupported "cannot produce separate debug info files"
-    return -1
+    return
 }
 
 set debugfile [standard_output_file ${testfile}.debug]
index 6a79ceaa606ffc98546a1e4dcded5bf03dac9a72..e7c2f524abee83ef79ace782060501537b4f3070 100644 (file)
@@ -29,17 +29,17 @@ set outputdir [standard_output_file {}]
 if { [catch {file copy -force ${srcdir}/${subdir}/${srcfile} \
             [standard_output_file ${sourcetmp}]}] != 0 } {
     error "create temporary file"
-    return -1
+    return
 }
 
 if { [gdb_compile "$sourcetmp" "$binfile" executable {debug build-id}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if { [gdb_compile "$sourcetmp" "${binfile}2" executable {debug build-id}] != "" } {
     fail "compile"
-    return -1
+    return
 }
 
 # Write some assembly that just has a .gnu_debugaltlink section.
index 878b462754afa91e6dbb475c7bdfdcb8229959f1..32a61a2c1e75dcfe63eb0767d00e3da0e77cb06e 100644 (file)
@@ -24,7 +24,7 @@ set srcfile ${srcdir}/${subdir}/${testfile}.s
 set binfile ${objdir}/${subdir}/${testfile}
 if  { [gdb_compile "${srcfile}" "${binfile}" object ""] != "" } {
      untested "failed to compile"
-     return -1
+     return
 }
 
 proc call_tests { } {
index cca864bbbd25d6d7d3505e7a003fac75c76aa939..e2596dc5e2c010629c29602313af414b816df882 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile ${srcfile}] == -1 } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Check the '/s' and '/m' flags can't be used together.
index b9852454aa48ef480b3a5317475ed17031e983f1..78e1704b1ca6ff4ac1011cb2b48cfc02541b3e02 100644 (file)
@@ -23,7 +23,7 @@ set srcfile ${srcdir}/${subdir}/${testfile}.s
 set binfile ${objdir}/${subdir}/${testfile}
 if  { [gdb_compile "${srcfile}" "${binfile}" executable {debug additional_flags=-ms}] != "" } {
      untested "failed to compile"
-     return -1
+     return
 }
 
 proc all_set_machine_h8300s { } {
index c8e27614cee6c63fd8ced15ba025bb9fbac05623..957ccb3b1bdf74d2e5803b1ea362a4a8929af84a 100644 (file)
@@ -28,7 +28,7 @@ if  { $comp_output != "" } {
        return
     } else {
        perror "Couldn't compile ${srcfile}"
-       return -1
+       return
     }
 }
 
index 699905ec3b1c06c89c992b9165aa99ee0cd7faf8..75d3df78938aa35e6cc4f496fd18f5c29708abed 100644 (file)
@@ -24,7 +24,7 @@ set srcfile ${srcdir}/${subdir}/${testfile}.s
 set binfile ${objdir}/${subdir}/${testfile}
 if  { [gdb_compile "${srcfile}" "${binfile}" executable ""] != "" } {
      untested "failed to compile"
-     return -1
+     return
 }
 
 proc add_tests { } {
index 9873abce9dc14a16810663be0ddb3b07ac56e841..f85594b8ff28a63fa7ec2f27f554ab1d40a99f3d 100644 (file)
@@ -23,7 +23,7 @@ set srcfile ${srcdir}/${subdir}/${testfile}.s
 set binfile ${objdir}/${subdir}/${testfile}
 if  { [gdb_compile "${srcfile}" "${binfile}" executable ""] != "" } {
      untested "failed to compile"
-     return -1
+     return
 }
 
 proc all_fp_move_and_load_tests { } {
index 18455eb124c3cf2e9063545ea997badfc980222e..c344d826a35d9834ba1eacf0458dd3d09d03acf3 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 2015c9698512407459c7439f37f2f0bc2e554b5d..24ae8422c6a8287276ce6912b8d49c64791e57e2 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 34171a0f277d528eebd2818bb17d05cb4540d27d..ac3d96dd9b1983b9919f29168de6e3610d3a00e5 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index a291220bfd8e71dbfa92608394f761238a2c3fbb..917c5c714b7bfccec2c227a7d48f7eee05747841 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 08a722d0e948f6327873fd4b001c1166a4235432..3887e69154803407af473e2d499051aa3cb7ad2c 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index be9bbf8c9b52047204a79708a9968b74de42b9c8..e12db1e908af882b8b21b4c898651d5a9e4f3fa5 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 9b175be2fa98d87330540e2482bcbf67ebbf4f7a..fb55055f7fc4150f8e501452992bbbf476f16cbc 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 3d46ab37fe7056487e4c83a866122264e130bac3..fa083f92a50cc1902e3ec5d78c071417d759fcc9 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 57622deec962dbb54a981269faf2175ab7825012..430ab662ab65afd0f43d686df5383b79d348a9c0 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 2d4dc4376acd0c533994e4b5a62795ebaa5e152e..e702ef0c4d37133916b7d81375fa401a682874db 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 9bdc363e476727409ef0a95fd6ffca15d9e57c5b..fc28e2c4fb76792c3db24df2961705a6441c28f3 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index f1df5a0bd2ed7f5b285c07d7222b8b497c778f31..e335f7b30aec55cfe3bd00cfa3fdaf99212935c9 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 8ee990ed07470a85c927ba3ee0db0a00d774e43e..e36b7b492cbef65910cf578dcdc7929a7d23e462 100644 (file)
@@ -29,12 +29,12 @@ set link-flags "-m h8300sxelf"
 
 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
      untested "failed to assemble"
-     return -1
+     return
 }
 
 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
      untested "failed to link"
-     return -1
+     return
 }
 
 gdb_start
index 87148e2e0c60c58b7448895560a28c86d4ce16f3..c6c4dcb3af94a8d94745363423271ab5c54f1452 100644 (file)
@@ -127,13 +127,13 @@ 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 d"
 
 if {![runto "circular1.found"]} {
-    return -1
+    return
 }
 
 # This last test shouldn't timeout.
index 95764e68f357082d943d319f28851721eea08548..368db31a015060c4249698af5d314e104f257386 100644 (file)
@@ -70,13 +70,13 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile $asm_file] {nodebug}] } {
-    return -1
+    return
 }
 
 # Verify that "start" lands inside the right procedure.
 if {[gdb_start_cmd] < 0} {
     unsupported "start failed"
-    return -1
+    return
 }
 
 gdb_test "" \
index c0eca57cddf36df7f54d1472d0c2f4dc892c01fa..b3271c850b26ffced140c29d1da2118b86309724 100644 (file)
@@ -25,13 +25,13 @@ require !use_gdb_stub
 
 standard_testfile simple.d
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug d}]} {
-    return -1
+    return
 }
 
 # Verify that "start" lands inside the right procedure.
 if {[gdb_start_cmd] < 0} {
     unsupported "start failed"
-    return -1
+    return
 }
 
 gdb_test "" \
index 139fe8f0579eaf64b919c6978ce2dd7f01e61478..b61a444d54fc925de5c62c24b732c47fef4dc29e 100644 (file)
@@ -69,13 +69,13 @@ 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 d"
 
 if {![runto "_Dmain"]} {
-    return -1
+    return
 }
 
 # watch -l will rewrite the expression to "*(watch.tstruct *) 0x12345",
index c2ca03a669312ac619e1f466b4751579cc07156d..38c77084e5826d5163afea3c44208863041707e1 100644 (file)
@@ -78,7 +78,7 @@ set obj [standard_output_file "${testfile}-dw.o"]
 if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" {nodebug} \
         [list $asm_file [list nodebug split-dwo] $obj] \
         [list $srcfile  [list nodebug]]]} {
-    return -1
+    return
 }
 
 clean_restart $::testfile
index 4d3687afeeabc7cce3b57556a9d4365cb006a3f5..bffe33a92890daac7c5330aaa5ee0341f4d53304 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Avoid libc symbols, in particular the 'array' type.
index 11de8791627e641260f2c1ad16d93e6452bcd778..dfa2c88af0b25a085efd85e98827d5630cb5c7d5 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .f90
 load_lib fortran.exp
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile {f90 debug}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 7a5de350430eda13046e965e07c5c64180af8dae..ef762a9ae14e5bcaf292e3a3099d608b74b7a205 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .f90
 load_lib fortran.exp
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile {f90 debug}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index f2ac7c5ce5903045e1561f9fd35565d30aad1dbe..78425bde8d58037e86fc93a9c256e25e07a34fd2 100644 (file)
@@ -23,7 +23,7 @@ require allow_fortran_tests
 standard_testfile .f
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![runto sub_]} {
index b62fde311724d69ba448d64c7833288d41697403..a69a6e4988c07e48d6a4dce4f83be695b038d151 100644 (file)
@@ -23,7 +23,7 @@ load_lib fortran.exp
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
         {f90 debug}] } {
-    return -1
+    return
 }
 
 if { ![fortran_runto_main] } {
index c4aa0ec01b44b8405a8a438c815a20fd6322c570..6547b75c94a04721823e63c8ea036bd558248664 100644 (file)
@@ -22,12 +22,12 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![runto [gdb_get_line_number "First Breakpoint"]]} {
     perror "couldn't run to breakpoint First Breakpoint"
-    return -1
+    return
 }
 
 # Avoid libc symbols, in particular the 'array' type.
index e56b777bad3ce0c0fac75083d7183cb0e1df303d..53744b5c84872712380a210af74ad2c518dceb64 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Avoid libc symbols, in particular the 'array' type.
index 84ef464f809710395a1a2a2b381ee7fa081cc7f6..df96c6f46cb7eb853f3b6e30becf174263701fc5 100644 (file)
@@ -43,7 +43,7 @@ load_lib fortran.exp
 
 if {[build_executable ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 # Takes the name of an array slice as used in the test source, and extracts
index 47ad222198ecb8242ac113c64ed9e15bdc6754c6..95e215acb1eade26dbb0ab78606c9d4391ff470f 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Test Breakpoint"]
index d8574ebdff94af511f0ac3585d3a5b1b6ad71270..05091b6b6089dffc5d79025a55f146229620f5d9 100644 (file)
@@ -24,17 +24,17 @@ load_lib fortran.exp
 if { [test_compiler_info {gfortran-*} f90] &&
      ![test_compiler_info {gfortran-1[1-9]-*} f90] } {
     untested "compiler does not support assumed rank"
-    return -1
+    return
 }
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90 dwarf5}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
     untested "could not run to main"
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Test Breakpoint"]
index 32adad8dd1be5843e8646ad083b6eb805b885570..9bc4cb991aaa2c68046e2dfa76af8ccf2018efe4 100644 (file)
@@ -20,7 +20,7 @@ load_lib fortran.exp
 standard_testfile .f90
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 32bd4f3c46c32a364218c33daf5a10e3a1c6b4ac..f15d6ada5e22ca0adc766412ad3f40f486a903f6 100644 (file)
@@ -27,11 +27,11 @@ standard_testfile .f
 load_lib "fortran.exp"
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 with_test_prefix "default values" {
index e3161635536eff627d269a50a4be310c31f559bb..6ddcf10e411763753e37a976c69646a37069cb2d 100644 (file)
@@ -25,7 +25,7 @@ if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile [list debug f90] \
              $srcfile [list debug f90] \
              $srcfile2 [list nodebug f90]]]} {
-    return -1
+    return
 }
 
 # Find a possibly mangled version of NAME, a function we want to call
@@ -68,7 +68,7 @@ set some_func [find_mangled_name "some_func"]
 set string_func [find_mangled_name "string_func"]
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Call the function SOME_FUNC, that takes a single integer and returns
index c73960dd9a6ffd599de079b52ad762211f959b55..3dd00fea9561853855751c50f3d8e9e5ee19e4d9 100644 (file)
@@ -23,11 +23,11 @@ load_lib fortran.exp
 
 # Ifx, and ifort do not support kind=4 for CHARACTER.
 if { [test_compiler_info {ifx-*} f90] || [test_compiler_info {ifort-*} f90] } {
-    return -1
+    return
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug additional_flags=-fbackslash f90}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index ba221cc503857c1fd1ba51b404cea98f6f484159..c6a9e96c63e429a6245d706bae91ae066562db98 100644 (file)
@@ -23,11 +23,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break Here"]
index d0d03b395be9f9fe654188ff5d59bde3fd687d38..07a66b03837da85db2fed44327ece670860d0a51 100644 (file)
@@ -22,7 +22,7 @@ load_lib "fortran.exp"
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         $srcfile {debug f90 quiet}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 17640a9479d2489b9c2f4699eedf53c342b6c145..159d92e3a67fb1ffeb05e3aa3bd3cd5c677709b0 100644 (file)
@@ -23,11 +23,11 @@ load_lib completion-support.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 test_gdb_complete_none "p var%x"
index 39aff4268c9767be40b3b3fd40e2c6a7b24f36e6..f0fdc556601dcd34b84e2f877dd368faacd1a10f 100644 (file)
@@ -19,7 +19,7 @@ load_lib fortran.exp
 require allow_fortran_tests
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90 quiet}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 4cd78c7d478a0b0ba77b2e762ce2b37ca5237b0b..85fc54770437f8843d87574161820068ae7eeab2 100644 (file)
@@ -25,11 +25,11 @@ standard_testfile .f90
 load_lib fortran.exp
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break Here"]
index 4551f71a3b8ce3cdea3df74bf6a189d075da468c..05eaf6b976134242ab3d700c4a672dd4f30cd2d0 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .f90
 load_lib fortran.exp
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 322001fc8a393cb76c6d0a5c4d2400b2d0ebd041..c17ff9468315523ce0818178934e0e778178a984 100644 (file)
@@ -26,7 +26,7 @@ set gcc_with_broken_stride [test_compiler_info {gfortran-[89]-*} f90]
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![runto [gdb_get_line_number "post_init"]]} {
index c55ebb338e2d0a003b36006987bd4e76b546d917..04cab4b1196e445ba2fee0c5ee64f97121ae7d0d 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .f90
 load_lib "fortran.exp"
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index fc508434f07ba270ddc29e6e37b8a2cf15824845..70d0ccbfe89efe691ad2d9b4f8e3e3f0616d4527 100644 (file)
@@ -23,7 +23,7 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index f191893c1a8e919a6ea2249b561cbbddc094a3c9..4a6a9de8194b61f1fec3fb56f6893d2f195e6ade 100644 (file)
@@ -21,11 +21,11 @@ standard_testfile ".f90"
 load_lib fortran.exp
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break here"]
index cbdfbf629cf06b46f4eff8f29fb1bd1a846279a6..43b0492cdd3d40c998a0a0a4c07b2b556f6aed11 100644 (file)
@@ -21,12 +21,12 @@ standard_testfile .f90
 load_lib "fortran.exp"
 
 if { [prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}] } {
-    return -1
+    return
 }
 
 if { ![fortran_runto_main] } {
     untested "could not run to main"
-    return -1
+    return
 }
 
 # Test if we can set a breakpoint via the entry-point name.
index 2b92a79376374da2b564c9d304e3babbc1c1e2bd..2edc4fccbba76295e3664b2c5c5ea10d41805d5d 100644 (file)
@@ -21,7 +21,7 @@ require allow_fortran_tests
 standard_testfile ".f90"
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90}]} {
-    return -1
+    return
 }
 
 with_complaints 5 {
index f854600d44628cce217a9bc57fba81b68aa015a7..07f1fac6ff87e0da24e8e64fcc1995d3dd58af17 100644 (file)
@@ -53,7 +53,7 @@ clean_restart ${::testfile}
 
 with_timeout_factor 3 {
     if {![fortran_runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_no_output "set max-value-size unlimited"
index e21fb4456a615dc60b44840cb5dc69d6c7df8f7a..11a97a9ded1983b779c6df2cb9bb4ed37c6c03f5 100644 (file)
@@ -23,7 +23,7 @@ save_vars { GDBFLAGS } {
     set GDBFLAGS [string map {"-readnow" ""} "$GDBFLAGS"]
 
     if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90}]} {
-       return -1
+       return
     }
 }
 
@@ -31,7 +31,7 @@ gdb_test "info main" "simple" "info main prior to start"
 
 if {![fortran_runto_main]} {
     untested "could not run to main"
-    return -1
+    return
 }
 
 gdb_test "info main" "simple" "info main post start"
index 06158f9c674e8556396086d47a9f55dd2f09916e..a187390091089ac3404938f50ded845bb41b4f64 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile info-types.f90 info-types-2.f90
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $srcfile2 $srcfile] {debug f90}] } {
-    return -1
+    return
 }
 
 if { ![fortran_runto_main] } {
index 63058ad2852a2ad2eff4a4911175c1640d7ac192..2a6e6a159886fdf133661cca217ba8bbab45a18c 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile info-types.f90 info-types-2.f90
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $srcfile2 $srcfile] {debug f90}] } {
-    return -1
+    return
 }
 
 # Don't run to main to avoid increasing the search scope to include
index f47a377551022dbab9fa495d38149afdcd759b6e..a93d70c2beb5aaab8efd8357c27419478fd17672 100644 (file)
@@ -25,16 +25,16 @@ set lib_flags [list debug]
 set bin_flags [list f90 debug shlib=${binfile_lib}]
 
 if {[gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != "" } {
-    return -1
+    return
 }
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
      ${bin_flags}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "all-assigned"]
index 898cab86f8f934d8f4eb53dd6ca0dcb90d0e23c5..a5278700a2b954dcfb1b3e4e359b8b687f9688c8 100644 (file)
@@ -22,7 +22,7 @@ require allow_fortran_tests
 standard_testfile .f90
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}] } {
-    return -1
+    return
 }
 
 if { ![fortran_runto_main] } {
index b454b013991c9b941c5185af72c7f255250c5c5a..4d05a6c6bb24a4d00050af959e1a567e605ce764 100644 (file)
@@ -22,11 +22,11 @@ load_lib "fortran.exp"
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break here"]
index ba98fec77774f428698c72bb7210af8f16ffde93..3f47072e11a9c8e0188c0349500e3dcfcd65027a 100644 (file)
@@ -21,11 +21,11 @@ load_lib "fortran.exp"
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break here"]
index 6d3c4b9877912c8a4f0934c9c66b96f0964babaa..c11956ef3c8b888370ff51cc97b77fbfc38e8955 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Avoid libc symbols, in particular the 'array' type.
index d2eb95ff3def27579f958e961afaf1da082bdfd2..b340e401c6f5fc78ed4238a94b8fb01c144ed8f2 100644 (file)
@@ -23,7 +23,7 @@ set libfile [standard_output_file ${testfile}-lib.so]
 
 if  { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $libfile {debug f90}] != "" } {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 # prepare_for_testing cannot be used as linking with $libfile cannot be passed
@@ -32,7 +32,7 @@ if  { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" $libfile {debug f90
 
 if  { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug f90 shlib=$libfile]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index dbaa7d7afe1384dc931550c5f1c5ea550ab1e982..09d14418c2cf94196c8e25279c381cbbabe8e8d9 100644 (file)
@@ -22,7 +22,7 @@ require allow_fortran_tests
 standard_testfile .f90
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 185d63d1b87a4e106f61ed73ee8d8244ff8902ab..8b6e266746e9905e15a327e2c63ab371ae472896 100644 (file)
@@ -21,7 +21,7 @@ load_lib fortran.exp
 require allow_fortran_tests
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90 quiet}]} {
-    return -1
+    return
 }
 
 if { ![fortran_runto_main] } {
index 5a2abcc5ea56f462041aa136718b4914ba021074..34623d3060680a90f50c414a638e8d144a2235b6 100644 (file)
@@ -23,7 +23,7 @@ require allow_fortran_tests
 standard_testfile .f90
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}] } {
-    return -1
+    return
 }
 
 if { ![fortran_runto_main] } {
index 43f77d3eb66801bac109d15e0ef286222e4aaa6e..3a8ee17da0651df4395727a8596ebff99fd621e8 100644 (file)
@@ -32,7 +32,7 @@ if {[prepare_for_testing_full "failed to prepare" \
              $srcfile {debug} \
              $srcfile2 {debug c++ additional_flags=-std=c++11} \
              $srcfile3 {debug f90}]]} {
-    return -1
+    return
 }
 
 set have_index [exec_has_index_section $binfile]
index e3b0c95b76f899534a4dd1f526e6c14708497c04..653d75366cf47275780ada038e782c46c9c4fecc 100644 (file)
@@ -20,7 +20,7 @@ require allow_fortran_tests
 standard_testfile .f90
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}] } {
-    return -1
+    return
 }
 
 # Test automatic language detection before the inferior starts.  It tests the
index d7df19e98aea34c1338411e0901a000a2630c203..efb0399f454261721c4301b2724ccffbb8ad4367 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile .f90
 load_lib "fortran.exp"
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug f90}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 25c9ae920a68cd926ef82760a42d9ff12fc276a0..9f1aad15429e244a78dc42b124429a4ec06b9239 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile .f90
 load_lib "fortran.exp"
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 84f1d3394f31525f25ee9d3c58b4249d2e3fbe12..a17e48ee57add299cb86f8a5f4eea50ec068de86 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile ".f90"
 
 if {[build_executable ${testfile}.exp ${testfile} \
         ${srcfile} {debug f90}]} {
-    return -1
+    return
 }
 
 set int4 [fortran_int4]
index 03f3013ea9c694161759cf3a6c06bbe431fb8789..b9f7785e9f157a18279feda437fdf1068f867a91 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile .f90
 load_lib "fortran.exp"
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 070a72a9211f32ce131015e965ec08705142911d..4804228c28018b122f67d6d49e3c88de74be0052 100644 (file)
@@ -20,12 +20,12 @@ require allow_fortran_tests
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
      {debug f90 quiet}] } {
-        return -1
+        return
 }
 
 if {![fortran_runto_main]} {
     perror "could not run to main"
-    return -1
+    return
 }
 
 # Depending on the compiler being used, the type names can be printed differently.
index 801738b9acc2fd91b81b40753ed12d70311f58b3..c987789c09db59e46365b889d620628c09099e61 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Depending on the compiler being used, the type names can be printed
index c5e191af74dd0902f43f9af18b6758f603469103..2ef955d9b3ec7b6bab448ec53f04123039e73ea0 100644 (file)
@@ -18,12 +18,12 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     {debug f90 quiet}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
     untested "could not run to main"
-    return -1
+    return
 }
 
 # Depending on the compiler being used, the type names can be printed
index 78f3b1745da4406201c603f2c8e80f9cde02cf28..f674d26ed2ae520dfc16d13ab31bc030c979b964 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 standard_testfile .f90
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}] } {
-    return -1
+    return
 }
 
 if { ![fortran_runto_main] } {
-    return -1
+    return
 }
 
 gdb_test "next" ".*" "go to the end of the program"
index a41cc03b4c22814dbc6a14822c09df431b100e13..a7df15f3905988dfba0a094894eab080027089ca 100644 (file)
@@ -23,11 +23,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Depending on the compiler being used, the type names can be printed
index 7e0219ecee7b37aff8a92762b36d51dc00afdbf1..862101b0d9d54109029ec02224d433b728fcd2f3 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile .f90
 load_lib fortran.exp
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "write"]
index 5325fb4214e5260941537a0824c68c6f64d68bc7..0748be70ce527427f89d9df7df34f63ea12e5052 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile .f90
 load_lib fortran.exp
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 set int [fortran_int4]
index 313805926417fd5de814f34950a0231fb2e9844e..35eb900fbab247166f14fb4f605b76325cbbab40 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile .f90
 load_lib "fortran.exp"
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 61831e91e7209a66688590cb8e0df910a7c1bca9..58b1b0d322855687dda82734f431cf72da6aa5c7 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Test Breakpoint"]
index d52325b5b4213e1abaa865db14e73b36ac7e8daa..224f97715934da80e0fedad3b778e41c388ab7fa 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Test Breakpoint"]
index f81a1c507d6c63d50dae71433d70eef5e8f85340..243e777b13ddf96399dd1827813c2fd8cc7e0b63 100644 (file)
@@ -22,7 +22,7 @@ require allow_fortran_tests
 standard_testfile ".f90"
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug f90}]} {
-    return -1
+    return
 }
 
 if {![runto [gdb_get_line_number "post_truth_table_init"]]} {
index c6368d1fdaef6f366feb6f8770aa21ea21cc7954..1c4dbc2bfd3cad86d0156acaf9533a1b62d0b6b9 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
         {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Test Breakpoint 1"]
index 2d0bf2e732f305251039f89bb135c0114be98502..2cc5a27ff1ee18d67f71998377232de2993856bc 100644 (file)
@@ -22,11 +22,11 @@ load_lib fortran.exp
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
     {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Test breakpoint"]
index d8a54c66dc9d51fa2554b6b61655429c58394270..aa8a0f14a89daf32ff387e1526e4625b6f486c2c 100644 (file)
@@ -23,7 +23,7 @@ require allow_fortran_tests
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug f90 quiet}]} {
-    return -1
+    return
 }
 
 if { ![fortran_runto_main] } {
index f8677168b33257f96d1afea504dcae0d576e3267..20a60953370bc88bf6093ef8e89aff981bccde2f 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .f
 load_lib fortran.exp
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug f90}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 91582272356e8b3b2004f0ea0a71e77568a2e0f3..6ba20822d01942c73d4ecc7fe57ae46b13516562 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Check the association status of various types of VLA's
index 9487f1de24ecbb7b0f5d460250b5f63bcef310cc..f36521c447378c931e5b10ef1b038deab03a9610 100644 (file)
@@ -20,12 +20,12 @@ require allow_fortran_tests
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}]} {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
     untested "could not run to main"
-    return -1
+    return
 }
 
 # Try to access vla string / vla string array / string array values.
index 1e68fcebd9e643c112768afa3c261a1a2b05750c..39849d4b5fc9bae94c01992b86b0c99c4dcb968b 100644 (file)
@@ -20,14 +20,14 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 # check that all fortran standard datatypes will be
 # handled correctly when using as VLA's
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Depending on the compiler being used, the type names can be printed differently.
index 84e769b61125d9d45d26a7ba01f4a09106166ec2..83a17480b4bbb65cdf74f9b728fd82a6c3973957 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Set some breakpoints and print complete vla.
index 493c1cf6578a0494488d5ee75b03dae8fa723486..1c0db4a69c9cba06bc74462d324c1d1d8e476a2c 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 set real4 [fortran_real4]
index c4dc7c2b1435cfba8ee288ec7c4cb1013b79acea..c4828ebe77c725b9397969c14f98368de8c3e989 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Depending on the compiler being used, the type names can be printed differently.
index 5fc84f8c279de86a34918535cb7f999bb9dd8d2a..1e9e408529fb2f5a1bcf4245997d4f73778eee98 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Depending on the compiler being used, the type names can be printed differently.
index 559c37b1ad28b6449b24b09fb8ddc64fa5b6b9e0..8deffbf8b0eccdba55f42bb318b85397e641f3ea 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Try to access values in non allocated VLA
index c5807a3d3a693190d237dc75cee4d4a06cdd6831..f72f927fc1a6de06cad6c5e362058e7f8825cbf5 100644 (file)
@@ -20,7 +20,7 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
      {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 # Depending on the compiler being used, the type names can be printed differently.
@@ -30,7 +30,7 @@ set int [fortran_int4]
 # the debugger when accessing it.
 if {![runto [gdb_get_line_number "before-allocated"]]} {
     perror "couldn't run to breakpoint before-allocated"
-    return -1
+    return
 }
 
 gdb_test "print twov" " = \\\( ivla1 = <not allocated>, ivla2 = <not allocated> \\\)" \
index 26f422f35882a4a01d7bd1fc7a410b2340dd2dad..51c88e6cc8f2741ae8cbb835c82b50c515d989c1 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Check VLA with arbitrary length and check that elements outside of
index 3bc64612be78e218b7dfb645a4d396368a36ceff..3d0b5ef55bf6670a04998b2be2bd9fae7645b7da 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # "up" works with GCC but other Fortran compilers may copy the values into the
index c9e5ac9b817d678c33de68e3e3e8c81c8e7cb2fe..fe99d5bb0fb3ff3d7470ba3de1c22503d89f1270 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
     {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Check the values of VLA's in subroutine can be evaluated correctly
index ef309f146fe7327dc0f67144d3b4e905989f85dc..ac960cd3c92ccecfe337f45828b411237f56b23c 100644 (file)
@@ -20,11 +20,11 @@ require allow_fortran_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
      {debug f90 quiet}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
-    return -1
+    return
 }
 
 # Depending on the compiler being used,
index 9e3dfb7b9fcb66fa9d5cbc27532e5d3fe25e9357..9f15e8e29b2e90b5556bb1e58cf08b4ce75f6132 100644 (file)
@@ -20,7 +20,7 @@ load_lib "fortran.exp"
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
                          ${srcfile} {debug f90}] } {
-    return -1
+    return
 }
 
 if {![fortran_runto_main]} {
index 4bef3232e916b7fe5fd1eae852b49e6a410a6f17..f797c2e09bbdb5e1669c61074cbfaa400e3c1495 100644 (file)
@@ -25,14 +25,14 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 set bp_location2 [gdb_get_line_number "set breakpoint 2 here"]
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
index c79aa389516ff757bccb3339b9a572983552e816..7fd9152872e2dc0a67f01d5ae563e4ba6b9ea7a4 100644 (file)
@@ -24,13 +24,13 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 gdb_test_multiple "print st" "print global var st" {
index 6d69ac31d6a0aee9bb251973bef26b8e8678b6ff..9e1fd8ca2f2dec97ccb75d9c83cc244011780384 100644 (file)
@@ -24,11 +24,11 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 gdb_test "print add (1, 2)" " = 3"
index 7e911b7da998de702ade72a00b52494033b9c3d4..97e28712ec35f49dab5ecb0c2bde1265337d02d8 100644 (file)
@@ -24,13 +24,13 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
index 02cb932dfd9bdf223b27e2d9f283b6648f8394ca..c6d483a1f4d3574d6777bb6e0bf7ddf720637a0c 100644 (file)
@@ -24,14 +24,14 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 set bp_location2 [gdb_get_line_number "set breakpoint 2 here"]
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
index c0bc9acdd2a1b9d7a085c5e24f28e035adeb2aab..dd4548d2232cdab03241b9db0bb20cb13faf4be3 100644 (file)
@@ -24,11 +24,11 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break here"]
index 13db8d5773f49852d01136e70861fae432c87dd7..b622a9bece4e11585b49a2edf731ebebd821d87f 100644 (file)
@@ -24,14 +24,14 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 set bp_location1 {main.T.Foo}
 set bp_location2 {main.T.Bar}
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 set found_wrong_foo 0
index 28b9bab93b709ff6395652ab4f152fbec5055f82..f42a50243ff15c123e85e7ba227248e7798c9c47 100644 (file)
@@ -24,7 +24,7 @@ require allow_go_tests support_go_compile !use_gdb_stub
 standard_testfile integers.go
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}]} {
-    return -1
+    return
 }
 
 # The bug was that stopping in _start would crash.
index a1125cbc2d62c7ac02c286910e18190304e20380..75624217f5a9e5f15b2b7da3e6a41f02b75d000b 100644 (file)
@@ -25,18 +25,18 @@ standard_testfile package1.go package2.go
 
 if  { [gdb_compile "${srcdir}/${subdir}/${testfile}2.go" "${binfile}2.o" object {debug go}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if  { [gdb_compile "${srcdir}/${subdir}/${testfile}1.go ${binfile}2.o" "${binfile}" executable "debug go libdir=[standard_output_file {}]"] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 set bp_location1 {package2.Foo}
index 60db052357fd681fa894015b117b96477f45f65b..009b4a0f5b1e618b50011a588f061a1b3273615f 100644 (file)
@@ -22,11 +22,11 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 gdb_test {print "abc" + "def"} {.* = "abcdef"}
index c5c94f3220f46f6531f91fd79ae9e4b4fd95d798..9478b4bef7cb7f7acdba26c9aef1bdf50e8f357e 100644 (file)
@@ -24,11 +24,11 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 # It's not clear yet what GCC will emit.
index e1f4ca5295c6395994906e937f75b09f65b0ef09..7519d6fb6da717d69e052b4cb2d3641987ade839 100644 (file)
@@ -24,11 +24,11 @@ require allow_go_tests support_go_compile
 standard_testfile .go
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug go}] } {
-    return -1
+    return
 }
 
 if { [go_runto_main] < 0 } {
-    return -1
+    return
 }
 
 gdb_test "print unsafe.Sizeof(42)" ".* = 4"
index c9e43b27333224637d24d875341dafad929383a4..721f458866ffa97206ab887fc8094f402fe25cb1 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile unbounded1.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug quiet}]} {
-    return -1
+    return
 }
 
 if {![runto main]} {
index 68d9ff19d548826568d3c0f2cb51869ef5e733ec..f034acb769d2b97992ecdd47058ad974abefa9f9 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug quiet}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "Break here"]
index 362821ce9c8366b35cff2f505e41ecbdd8def42c..4d5a0779986906374fba7d202096797cf630872d 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile multidim.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug quiet}]} {
-    return -1
+    return
 }
 
 if {![runto here]} {
index 545bc9b08ecf5409feea0f95fa5fcb0dd9ffe482..251f2f8efea71502c5a93664ccfe40b0fb08d26b 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile unbounded1.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug quiet}]} {
-    return -1
+    return
 }
 
 if {![runto foo]} {
index 659889719bbd21522f8b761ddfcfad77f5dec356..32d9bffff5fd4e151fd1c9462e42c744dffefe6e 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug pthreads}]} {
-    return -1
+    return
 }
 
 # Problematic scenario is seen in non-stop mode.
@@ -36,7 +36,7 @@ save_vars {GDBFLAGS} {
 }
 
 if {![runto "breakpoint_1"]} {
-    return -1
+    return
 }
 
 # Start an empty gdbserver in a new inferior.
@@ -46,7 +46,7 @@ gdb_test "inferior 2" "Switching to inferior 2.*"
 set res [gdbserver_start "--multi" ""]
 set gdbserver_gdbport [lindex $res 1]
 if {[gdb_target_cmd "extended-remote" $gdbserver_gdbport]} {
-    return -1
+    return
 }
 
 # Go back to inferior 1.  Continuing should hit the next breakpoint.
index c735a641c0357ee735f3c9efe89c06d2ca546d05..355dbd0fa3d1be1bccedd8cfad2fc6922782fc57 100644 (file)
@@ -27,7 +27,7 @@ require allow_gdbserver_tests
 require can_spawn_for_attach
 
 if {[build_executable "build" $testfile $srcfile {debug}] == -1} {
-    return -1
+    return
 }
 
 proc test {target_non_stop} {
index c2403765986466b4fe0af26f283c0f6d4ab6f253..1f1fca0ad76d3491f55943c58b30d36237784966 100644 (file)
@@ -31,15 +31,15 @@ set srcfile3 ${exec3}.c
 set binfile3 [standard_output_file ${exec3}]
 
 if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" {debug}] == -1 } {
-    return -1
+    return
 }
 
 if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" {debug}] == -1} {
-    return -1
+    return
 }
 
 if { [build_executable ${testfile}.exp ${exec3} "${srcfile3}" {debug}] == -1 } {
-    return -1
+    return
 }
 
 clean_restart ${exec1}
@@ -155,7 +155,7 @@ gdb_test "list commonfun" "from goodbye.*" "list commonfun in goodbye"
 gdb_test "inferior 1" ".*" "switch to inferior 1 to run it"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "break hello" ".*"
index 5c491e2607d6f625c443bee787b08687c4732888..277cd329c44c71180e635c761f4eb3c9cb98b8ba 100644 (file)
@@ -34,11 +34,11 @@ set binfile2 [standard_output_file ${exec2}]
 set compile_options {debug}
 
 if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" $compile_options] == -1 } {
-    return -1
+    return
 }
 
 if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" $compile_options] == -1 } {
-    return -1
+    return
 }
 
 # Start with a fresh gdb
index 74461ca51e4549b435dc093f4a46cc21c131c6e8..e55ac4919f43bbc970d0c162f9de70eb67b6114d 100644 (file)
@@ -27,11 +27,11 @@ require !use_gdb_stub
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 delete_breakpoints
@@ -62,7 +62,7 @@ gdb_test "info breakpoints" \
     "check thread b/p on main still has updated correctly"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "info threads" \
index 532c5fda11b729b46005724d7449f70ff85a8008..b847d06b5e00a303fecd3b6b124d7f7992d1c8c9 100644 (file)
@@ -45,15 +45,15 @@ set srcfile3 ${exec3}.c
 set binfile3 [standard_output_file ${exec3}]
 
 if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" {debug}] == -1 } {
-    return -1
+    return
 }
 
 if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" {debug}] == -1 } {
-    return -1
+    return
 }
 
 if { [build_executable ${testfile}.exp ${exec3} "${srcfile3}" {debug}] == -1 } {
-    return -1
+    return
 }
 
 # Start two inferiors, place a checkpoint on inferior 2, but switch
index 74beb022bfd0e51e6d9aba85e5d2ded7b6af9383..44c10ddebed58fb740caf5f9d151c24b13d09955 100644 (file)
@@ -24,11 +24,11 @@ standard_testfile
 require allow_multi_inferior_tests
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 delete_breakpoints
@@ -41,7 +41,7 @@ gdb_test "inferior 2" "Switching to inferior .*" \
 
 gdb_load $binfile
 if {![runto "a_function"]} {
-    return -1
+    return
 }
 
 gdb_test "info inferiors" ".*" "info inferiors for logging"
index 161437d0d0f34da57d8aa5ba74a61ef83c4b6ff6..d964c89bdbcf4a3fdb41c6d1cf1b5c9e55855002 100644 (file)
@@ -22,7 +22,7 @@ require !use_gdb_stub
 require allow_multi_inferior_tests
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 # Inferior 1 stops at f1.
index 75670a6ad1127653d5cd51e33afc8321c19e1caa..d5eb2f7b5fa0b3a0a80a4d6628e8b9f9ccd1c181 100644 (file)
@@ -24,7 +24,7 @@ load_lib gdb-guile.exp
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 # Cache whether we can run Python and/or Guile tests.
@@ -53,7 +53,7 @@ foreach_with_prefix inf $inferiors {
 
     if { $run } {
        if { ![runto_main] } {
-           return -1
+           return
        }
     }
 }
index fc756a8325220e7f17ddef92b34651b4779a4c86..f974797a69321d9ed100d1cd2f7f7bdfb7e907da 100644 (file)
@@ -28,11 +28,11 @@ set binfile1 [standard_output_file $testfile1]
 set binfile2 [standard_output_file $testfile2]
 
 if {[build_executable ${testfile}.exp ${binfile1} "${srcfile1}"] != 0} {
-    return -1
+    return
 }
 
 if {[build_executable ${testfile}.exp ${binfile2} "${srcfile2}"] != 0} {
-    return -1
+    return
 }
 
 # Start the first inferior.
index cd2fd03f0ee7bb47e57720e095685584fad8d024..fe5611ca94f3fe0ff0c1c14a229bac895cb3e424 100644 (file)
 standard_testfile hello.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {pthreads debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Add another inferior.
index 39da75507e9b31f1799e2927661d746dddaf371e..b498da7ff71b7ea96dc96a3aeeda2552538254b2 100644 (file)
@@ -62,7 +62,7 @@ if { $march2 != "" } {
 
 if { [build_executable "failed to prepare" ${exec1} "${srcfile1}" \
          [list debug additional_flags=${march1}]] } {
-    return -1
+    return
 }
 
 set options [list debug]
@@ -72,7 +72,7 @@ if {[istarget "aarch64*-*-*"]} {
        lappend options "compiler=[arm_cc_for_target]"
     } else {
        unsupported "ARM compiler is not known"
-       return -1
+       return
     }
 } else {
     lappend options "additional_flags=${march2}"
@@ -80,7 +80,7 @@ if {[istarget "aarch64*-*-*"]} {
 
 if { [build_executable "failed to prepare" ${exec2} "${srcfile2}" \
         $options]} {
-    return -1
+    return
 }
 
 # Start inferior 1
index 453c9fe7cc3d152f767161572a914b6331823e5d..03a30446129e377bfb85d2475d2b5dc585ed372a 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 require can_spawn_for_attach
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 # Start the programs running and then wait for a bit, to be sure that
index 1ebf4b32208a710dd6cb7e051a813923973d4af9..c2492c6d090af9eb21eb1d42401d9850ce67251b 100644 (file)
@@ -29,7 +29,7 @@ require allow_multi_inferior_tests
 require !use_gdb_stub
 
 if {[build_executable "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 # We are testing GDB's ability to stop all threads.
@@ -70,7 +70,7 @@ set NUM_INFS 10
 
 for {set i 1} {$i <= $NUM_INFS} {incr i} {
     if {[start_inferior $i] < 0} {
-       return -1
+       return
     }
 }
 
@@ -92,7 +92,7 @@ for {set i 1} {$i <= $NUM_INFS} {incr i} {
        }
 
        if {$live_inferior == ""} {
-           return -1
+           return
        }
 
        gdb_test "inferior $live_inferior" \
@@ -111,7 +111,7 @@ for {set i 1} {$i <= $NUM_INFS} {incr i} {
        }
 
        if {$exited_inferior == ""} {
-           return -1
+           return
        }
     }
 }
index 6ed0230010d30fee5fae0bbb3a659ab7efa60f3b..3ede21fe7e9af8504e1714f00fe699cf99488653 100644 (file)
@@ -29,7 +29,7 @@ require allow_multi_inferior_tests
 require !use_gdb_stub
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 # We are testing GDB's ability to stop all threads.
@@ -83,7 +83,7 @@ array set testpid {}
 
 for {set i 1} {$i <= $NUM_INFS} {incr i} {
     if {[start_inferior $i] < 0} {
-       return -1
+       return
     }
 }
 
@@ -123,7 +123,7 @@ for {set i 2} {$i <= $NUM_INFS} {incr i} {
        }
 
        if {$live_inferior == ""} {
-           return -1
+           return
        }
 
        gdb_test "inferior $live_inferior" \
index 8dbde3acfff9b97443008d59fffced89d58e4911..067dab890099a5e2e3970f0270f2744b3b44108b 100644 (file)
@@ -35,14 +35,14 @@ set binfile2 [standard_output_file $testfile2]
 with_test_prefix "exec1" {
     if { [build_executable "failed to prepare" $testfile1 $srcfile1 \
              [list pthreads debug]] } {
-       return -1
+       return
     }
 }
 
 with_test_prefix "exec2" {
     if { [build_executable "failed to prepare" $testfile2 $srcfile2 \
              [list pthreads debug]] } {
-       return -1
+       return
     }
 }
 
index 44ad86eb9075dbebac29f5742dadc8f8c02e004e..127e95db8b7c50411a7fd1e2a1225679136fff99 100644 (file)
@@ -30,7 +30,7 @@ require allow_multi_inferior_tests
 require can_spawn_for_attach
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 # Start the programs running and then wait for a bit, to be sure that
index ff2bcc87ca700728f8f4665f46933e9968f85d9f..26b1bc14830bb0146ff72bdee95fc036e85bd963 100644 (file)
@@ -28,7 +28,7 @@ require !use_gdb_stub
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 # Setup for the tests.  Create two inferiors, both running the global
index 808bd4c5d83988f5189dbfce8bf0c31c964b251b..a9b7d7e6c66f8a9ade4fc7d423c0550bdfa8dcae 100644 (file)
@@ -25,7 +25,7 @@ set binfile_lib [standard_output_file $libname.so]
 
 if { [gdb_compile_shlib $srcfile_lib $binfile_lib {}] != "" } {
     untested "failed to compile shared library 1"
-    return -1
+    return
 }
 
 set binfile_lib_target [gdb_download_shlib $binfile_lib]
@@ -34,7 +34,7 @@ if { [build_executable "failed to prepare" $testfile $srcfile \
          [list debug \
               additional_flags=-DSHLIB_NAME=\"$binfile_lib_target\" \
               shlib_load]] } {
-    return -1
+    return
 }
 
 # Start two inferiors, both running the same test binary.  The arguments
index c991ea5919343998074785af7e403cdf4513d60d..ae2ecdffb83cd8e93d4cdf7716d7e6812c3e37eb 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if { [build_executable ${testfile}.exp ${binfile} "${srcfile}" {debug}] != 0 } {
-    return -1
+    return
 }
 
 proc switch_to_inferior { num message } {
index a167de814919137b8281d016cb255af6f6a44d13..73e3437c25d819f0d99aece5dee3af7cf2f361fa 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile
 require !use_gdb_stub
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 # Setting the target to non-stop mode revealed a bug where the context
index 47cffd0afb98ac3005788d012ef88c071693377b..f734aa9f22ce8be347dac1381b5bdd5972d255b1 100644 (file)
@@ -34,11 +34,11 @@ set testfile_other $testfile-other
 set binfile_other [standard_output_file $testfile_other]
 
 if { [build_executable ${testfile}.exp ${binfile} "${srcfile}" {debug}] != 0 } {
-    return -1
+    return
 }
 
 if { [build_executable ${testfile}.exp ${binfile_other} "${srcfile_other}" {debug}] != 0 } {
-    return -1
+    return
 }
 
 proc do_test {} {
index 3463e897d5f5e08225c16786a4a79c045cbe308d..8c08d2bbbb0d7e6ca4b011149a94c0d89cf55761 100644 (file)
@@ -31,11 +31,11 @@ if {![gdb_protocol_is_native]} {
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Add a second inferior that will sleep longer.
@@ -43,7 +43,7 @@ gdb_test "add-inferior -exec $binfile" "Added inferior 2.*" \
     "add the second inferior"
 gdb_test "inferior 2" ".*Switching to inferior 2.*"
 if {![runto_main]} {
-    return -1
+    return
 }
 gdb_test "print duration=10" "= 10"
 
index e02884109d1f62796483dd64448a86ef8d75f664..d6e5d7ed18312c1c4a5bebdc24a5f1bf3b3921a3 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 
 if { [build_executable "failed to prepare" ${testfile} ${srcfile} \
          {pthreads debug}] } {
-    return -1
+    return
 }
 
 with_test_prefix "single-inferior" {
@@ -32,7 +32,7 @@ with_test_prefix "single-inferior" {
        clean_restart ${testfile}
 
        if {![runto_main]} {
-           return -1
+           return
        }
 
        gdb_test "info threads -gid" "\\* 1 +1 +.*"
@@ -41,7 +41,7 @@ with_test_prefix "single-inferior" {
     with_test_prefix "restart" {
        gdb_continue_to_end
        if {![runto_main]} {
-           return -1
+           return
        }
     }
 
@@ -82,7 +82,7 @@ with_test_prefix "multi-inferior" {
     with_test_prefix "restart" {
        gdb_continue_to_end
        if {![runto_main]} {
-           return -1
+           return
        }
     }
 
index be42fcbffd0575dac913f860e4bb5ed79b9696b8..1a1be716d3f5da6bb13cafb2a5c3ca93605745bf 100644 (file)
@@ -25,11 +25,11 @@ standard_testfile
 require !use_gdb_stub
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {pthreads debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Issue "thread apply TID_LIST p 1234" and expect EXP_TID_LIST (a list
index bf71f11673f36a1eae34a7cbdc78be19f270d6f8..2283d5926aad186e92a15065f169b1b2a4cdc0ad 100644 (file)
@@ -22,7 +22,7 @@ require allow_fork_tests
 standard_testfile
 
 if {[build_executable "failed to build" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 # The test proper.  DISPOSE indicates how to dispose of the fork
index a68ece0bdbbed0139b893ff24f8d7f796de9e4c8..175c3261704a63ec1260300e43a3321a1a79b077 100644 (file)
@@ -28,7 +28,7 @@ require allow_hw_watchpoint_access_tests
 
 if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $executable
index 571f1fcb8bdde3d779c19e901ad68aed14742d7b..7868eb975c3dd575eb4b7f711217781f39274e52 100644 (file)
@@ -28,7 +28,7 @@ set clprogram [remote_download target $srcdir/$subdir/$srcfile]
 # Compile the generic OpenCL host app
 if { [gdb_compile_opencl_hostapp "${clprogram}" "${testfile}" "" ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index b7173d206f8d4a41dfd8b165d74068275c4da218..40f8952780f60daf894d222c2e99d173d075bc6a 100644 (file)
@@ -27,7 +27,7 @@ set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]
 # Compile the generic OpenCL host app
 if { [gdb_compile_opencl_hostapp "${clprogram}" "${testfile}" "" ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Load the OpenCL app
index 73dcb6ed417e9a37c7fd32feadd9fff2ee6846ae..965bd5148cd0e35747710affc6f6d2606094083b 100644 (file)
@@ -27,7 +27,7 @@ set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]
 # Compile the generic OpenCL host app
 if { [gdb_compile_opencl_hostapp "${clprogram}" "${testfile}" "" ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 gdb_exit
index 92f345251b61fe29224122d2d7433a6315a1b3f5..8977d012463dbcc1e9d4d9d64222ec5b8fd3d01d 100644 (file)
@@ -27,7 +27,7 @@ set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]
 # Compile the generic OpenCL host app
 if { [gdb_compile_opencl_hostapp "${clprogram}" "${testfile}" "" ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Load the OpenCL app
index 4c18c8c404149efcdefddb1ae0ddd0720969f01f..f6a26d1a670aa70975374b5044f43b3397f5a57f 100644 (file)
@@ -27,7 +27,7 @@ set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]
 # Compile the generic OpenCL host app
 if { [gdb_compile_opencl_hostapp "${clprogram}" "${testfile}" "" ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Load the OpenCL app
index 8ba9267fe258cf317147de70751ac91c2dcf19df..fa7cd96d61d27fb92f866e9c950fd9f82e3e4723 100644 (file)
@@ -38,14 +38,14 @@ standard_testfile
 # See if we have target board readnow.exp or similar.
 if {[readnow]} {
     untested "--readnever not allowed in combination with --readnow"
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
     append GDBFLAGS " -readnever"
 
     if {[prepare_for_testing "failed to prepare" $testfile $srcfile nodebug]} {
-       return -1
+       return
     }
 }
 
index f36bb62a78ac524b836644b4444b2751aaa6e2f9..5fbfba73351262a20a25b5d128600b5aace2b0bf 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .c -2.c -3.c
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2 $srcfile3] \
         {debug optimize=-O2 nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto start_sequence]} {
index ac0e6f31802d92d43b1352d07e32a3c8f4f3f9f0..2664a323afe31113d83b62f06f5349b76e5c8e0a 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile .f90
 
 if { [prepare_for_testing "prepare for testing" ${testfile} ${srcfile} \
          {debug f90 additional_flags=-O1}] } {
-    return -1
+    return
 }
 
 if {![runto f]} {
index c794aa659b3764413c7be06b96b2d8a998062706..e473ec923264e513e67d4107f142a5e2b6d13ec6 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          {debug additional_flags=-Winline}] } {
-    return -1
+    return
 }
 
 # Return a string that may be used to match the output of "info break NUM".
@@ -195,7 +195,7 @@ foreach_with_prefix cmd [list "break" "tbreak"] {
     # Start with a clean state.
     delete_breakpoints
     if {![runto_main]} {
-       return -1
+       return
     }
 
     # Assemble flags to pass to gdb_breakpoint.  Lame but this is just
index 9bfc32f58b3f12fa7b976f97f0cad2640325671c..22a18d9489743a79a6a9bca355237ce196773829 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile .c inline-markers.c
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] {debug additional_flags=-Winline}]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set listsize 1"
index 6af398e5cf4f242cd9a9ce371cd60e1547a84b2b..3844b7c5149d4c0ec950a678fcc65b23bd227125 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile .c inline-markers.c
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] {debug additional_flags=-Winline}]} {
-    return -1
+    return
 }
 
 runto_main
index 9e209f0918e39fccc2de856e3fe9b28b2a579280..08aa7e6b6b6931b1b567e63e60204768ebd1c2a1 100644 (file)
@@ -38,11 +38,11 @@ standard_testfile inline-small-func.c inline-small-func.h
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
          [list $srcfile] {debug optimize=-O1}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
index ecd7cba22e994daa959aec926eb6026917320f68..117eb318cb32d5f60752cd564d39af421bce5b25 100644 (file)
@@ -31,7 +31,7 @@ set bin_flags [list debug shlib=${binfile_lib}]
 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
      || [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
   untested "failed to compile"
-  return -1
+  return
 }
 
 clean_restart ${::testfile}
index 92a5d2836d600272dc4a643bc62b0cf51bbf614f..dc3d1c5f82e2de433fa08f847de8c252ca1d3a9d 100644 (file)
@@ -24,7 +24,7 @@ lappend opts "optimize=-O2 -flto"
 
 if { [prepare_for_testing "failed to prepare" $testfile \
          [list $srcfile $srcfile2] $opts] } {
-    return -1
+    return
 }
 
 set val ""
index 02139742686f32577d736b315fefbb5556a18718..92fb921a5b8c4a7eda2f7a16ac544cff09016f1e 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug class]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
index 86e8852e3d2585633107d83ccedc2a75ba5a86ec..74a6ee403d07e5f0683dd5c958a08b269b3f1143 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
index 361c0928b7be434d1cf3c661af3ad764e90b0ca0..3ca4bd2fce29d13c7e034640378eb72971b9a481 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
index 749b7dbbe399cd5825b8edcaa98920c01fc6aa3a..8e906b4ef277015057f609df4a0726a8bba908e5 100644 (file)
@@ -18,7 +18,7 @@ load_lib "pascal.exp"
 standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return -1
+  return
 }
 
 clean_restart ${testfile}
index 697c3b971f3b765e073b2884cee3ad49acae4d82..9bc0df0b736f14764d04361a6fb97407b4f04282 100644 (file)
@@ -18,7 +18,7 @@ load_lib "pascal.exp"
 standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return -1
+  return
 }
 
 clean_restart ${testfile}
index dd72ffc60d1c904af502be7af82254a0937a9a2a..7f59175e5622e2f98670f4da045313a7439df908 100644 (file)
@@ -18,7 +18,7 @@ load_lib "pascal.exp"
 standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return -1
+  return
 }
 
 clean_restart ${testfile}
index 43874da50897ececec00fd21add12ac0a58cfc87..c414192fe68d5d889a03c67f5403cd8946516b56 100644 (file)
@@ -21,7 +21,7 @@ load_lib "pascal.exp"
 standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return -1
+  return
 }
 
 # If this fails, the failure will have already been recorded.
index 2573e529f8ac3b2a5d25963d27c64c1df7f68e93..f6d4d8a6c0db251633dd3dfe8ad14365f6b57b78 100644 (file)
@@ -40,7 +40,7 @@ PerfTest::assemble {
     lappend compile_flags "additional_flags=-DBACKTRACE_DEPTH=${BACKTRACE_DEPTH}"
 
     if { [gdb_compile "$srcdir/$subdir/$srcfile" ${binfile} executable $compile_flags] != ""} {
-       return -1
+       return
     }
 
     return 0
@@ -50,7 +50,7 @@ PerfTest::assemble {
     clean_restart $::testfile
 
     if ![runto_main] {
-       return -1
+       return
     }
 
     gdb_breakpoint "fun2"
index c9da08cab44df3539754e22df399c8cb9add9239..2e4f4b99fa5678b3cf87d240e8510d1ca80b1e76 100644 (file)
@@ -44,7 +44,7 @@ PerfTest::assemble {
     # we only run to main function of child GDB, so child GDB's
     # prompt can't be printed out.
     if ![runto_main] {
-       return -1
+       return
     }
 
     return 0
index 7c9ba607f57d351d58f28eedd24b240cd728bbdf..ffbb6dc40b7e1cee7da0d4b2e498c590a6573956 100644 (file)
@@ -34,7 +34,7 @@ PerfTest::assemble {
     global srcdir subdir srcfile binfile
 
     if { [gdb_compile "$srcdir/$subdir/$srcfile" ${binfile} executable {debug}] != "" } {
-       return -1
+       return
     }
     return 0
 } {
@@ -42,7 +42,7 @@ PerfTest::assemble {
     clean_restart $::testfile
 
     if ![runto_main] {
-       return -1
+       return
     }
     return 0
 } {
index 18d9840aec60d707777ca234413907903077f7e7..95f157941c461493e7889b05396b0c762efc8a22 100644 (file)
@@ -115,7 +115,7 @@ PerfTest::assemble {
 
     write_skip_func_source $skip_func_file "skip_func" [expr 4 * $SKIP_DIRECTIVE_COUNT]
     if { [gdb_compile [list "$srcdir/$subdir/$srcfile" $skip_func_file] ${binfile} executable {c++ debug}] != "" } {
-       return -1
+       return
     }
     return 0
 } {
index d0a3fe36c2bd4232d55b19cc8171d3a49cd5e934..7810be8a0c005f518853b62e025220df198d4e45 100644 (file)
@@ -43,7 +43,7 @@ PerfTest::assemble {
 
     if { [gdb_compile "$srcdir/$subdir/$srcfile" ${binfile} executable $opts] != "" } {
        untested "failed to compile"
-       return -1
+       return
     }
 
     return 0
@@ -54,7 +54,7 @@ PerfTest::assemble {
     clean_restart $::testfile
 
     if ![runto_main] {
-       return -1
+       return
     }
     return 0
 } {
index 0ad4610a2026cf2560f9b21e1ed89ebd79c0fdd5..103e79f22859fe872f85e93d0ec328db22584327 100644 (file)
@@ -50,7 +50,7 @@ PerfTest::assemble {
 
        # Compile.
        if { [gdb_compile_shlib $src $exe {debug}] != "" } {
-           return -1
+           return
        }
 
        # Delete object files to save some space.
@@ -65,7 +65,7 @@ PerfTest::assemble {
     }
 
     if { [gdb_compile "$srcdir/$subdir/$srcfile" ${binfile} executable  $compile_flags] != "" } {
-       return -1
+       return
     }
 
     return 0
@@ -75,7 +75,7 @@ PerfTest::assemble {
     clean_restart $::testfile
 
     if ![runto_main] {
-       return -1
+       return
     }
     return 0
 } {
index 2ddd3b363fb05246f4f648e144c40c80529c99da..b36eee5702e908502030bcdfc3753eb5bc922f00 100644 (file)
@@ -40,7 +40,7 @@ PerfTest::assemble {
        lappend compile_flags "additional_flags=-DEXPANSION_DEPTH=${EXPANSION_DEPTH}"
 
        if { [gdb_compile "$srcdir/$subdir/$srcfile" ${binfile} executable $compile_flags] != ""} {
-               return -1
+               return
        }
 
        return 0
@@ -50,7 +50,7 @@ PerfTest::assemble {
        clean_restart $::testfile
 
        if ![runto_main] {
-               return -1
+               return
        }
 
        return 0
index 86f51d81ef2ecc287794361602a1f2be4adf38ba..73a556741b5cd68b1e57b627be3af47f60adde30 100644 (file)
@@ -29,7 +29,7 @@ require has_gdbreplay
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 # Connect to gdbserver and run to a breakpoint in main.  Record the
index e3844c82453691d88ee2a39d10ac5e5aab4c9d62..23bbddac55639322215825ff68164f4680ecfe5a 100644 (file)
@@ -35,7 +35,7 @@ require has_gdbreplay
 standard_testfile
 
 if { [build_executable "failed to build exec" $testfile $srcfile {debug pthreads}] } {
-    return -1
+    return
 }
 
 # Start the inferior and record a remote log for our interaction with it.
index c06038863837338a3de56c8d8893981a524b931e..842a3211090e8713febf611b3e376ed739f71fcc 100644 (file)
@@ -39,7 +39,7 @@ require allow_hipcc_tests
 # Build the host executable.
 if { [build_executable "failed to prepare" \
          $testfile $srcfile {debug hip}] == -1 } {
-    return -1
+    return
 }
 
 set hipmodule_path [standard_output_file ${testfile}.co]
@@ -48,7 +48,7 @@ set hipmodule_path [standard_output_file ${testfile}.co]
 if { [gdb_compile $srcdir/$subdir/$srcfile \
        $hipmodule_path object \
        { debug hip additional_flags=--genco additional_flags=-DDEVICE } ] != "" } {
-    return -1
+    return
 }
 
 proc do_test { } {
index b821faf17655cc0d86ee106dbb50e4d2040d9ac8..0b6a798abc870be899d8cb95cfba0f37c9264d93 100644 (file)
@@ -23,7 +23,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}]} {
-    return -1
+    return
 }
 
 # Run "info threads" and return a list of various information:
index 6c98ebe3956c6acef749082f23ee3a0b42a930fb..33aa03b9ffdb4cc5bdeeb7117bd4b33d404cca3e 100644 (file)
@@ -28,7 +28,7 @@ require {expr {$exit_is_reliable}}
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthread}] } {
-    return -1
+    return
 }
 
 # WHICH is which thread exits the process.  Can be "main" for main
index 9dc2be66a77d53a8f2f61b8e66cd929f30d70286..4f16033f473369b186a163fbd27065afba1410fd 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile
 require gdb_trace_common_supports_arch
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 proc test_actions_changed { } {
@@ -162,12 +162,12 @@ proc test_actions_changed { } {
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "current target does not support trace"
-    return -1
+    return
 }
 
 test_actions_changed
index 8a8a08d0f9e0c5cc3d4795235026f4019bbc2812..2cb53260d34b8b09e41372eee4169cc440d3d0fa 100644 (file)
@@ -22,7 +22,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
@@ -242,12 +242,12 @@ gdb_load $binfile
 gdb_breakpoint "main"
 gdb_run_cmd
 if {[gdb_test "" "Breakpoint .*" "run to main"] != 0} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 gdb_trace_setactions "set actions for first tracepoint" \
index c4c0c5abcf8e722f0fdfef7b17db56b32e2295e4..d88a2c68147e0662bad4e5068ddfa0c0fa99287c 100644 (file)
@@ -27,7 +27,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index bdfe1215de6361804052c3425813fb34036a11e2..da3f540fa0f68caeeea189298add97fcdfcfaa70 100644 (file)
@@ -25,11 +25,11 @@ require gdb_trace_common_supports_arch
 
 if {[prepare_for_testing "failed to prepare" $executable $srcfile \
         [list debug nowarnings nopie]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
@@ -104,7 +104,7 @@ all tests in this module will fail."
 }
 
 if {$return_me == 1} {
-    return -1
+    return
 }
 
 #
index 1f080c63c5d16fe204203e785d16662af6747882..0fbb326b8ec97a6e0ac1d8ad9506f92394a40737 100644 (file)
@@ -32,7 +32,7 @@ gdb_download_shlib $libipa
 
 if { [build_executable "failed to prepare" $testfile $srcfile \
          [list debug shlib=$libipa]] } {
-    return -1
+    return
 }
 
 save_vars { env(ASAN_OPTIONS) } {
@@ -46,7 +46,7 @@ save_vars { env(ASAN_OPTIONS) } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 pass "inferior with libinproctrace.so started"
index 5557e4cfff60eb44dcecc4f8412b9b085c3979fc..ed17f5bbd9b3b84def3317ec553f9f093d4c9459 100644 (file)
@@ -36,7 +36,7 @@ if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
      || [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $additional_flags] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $executable
@@ -45,12 +45,12 @@ gdb_load_shlib $lib_sl1
 gdb_load_shlib $lib_sl2
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "current target does not support trace"
-    return -1
+    return
 }
 
 
@@ -355,7 +355,7 @@ gdb_load_shlib $libipa
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable \
          [list debug nowarnings shlib=$libipa shlib=$lib_sl1 shlib_load] ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 tracepoint_change_loc_1 "ftrace"
index e96000f2e24713a9290c7399770c21f476cc434c..11751374299a4ecf44eb7776d3724fe480888c2a 100644 (file)
@@ -18,7 +18,7 @@ load_lib "trace-support.exp"
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings nopie}]} {
-    return -1
+    return
 }
 
 # Tests:
@@ -74,7 +74,7 @@ proc run_trace_experiment { } {
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 if { ![gdb_target_supports_trace] } {
index 0fbc9de24c274f8714bdec1e298b1536daa42160..ac64f60d685f4c79c0f22c3fd833a2db0d70d580 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile
 set executable $testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings nopie}]} {
-    return -1
+    return
 }
 
 # Tests:
index a4dafdc1d277f7230226f2b1b7aec30a64b27037..1b787688bb386325397c2da67632d4f7ffa711e4 100644 (file)
@@ -24,7 +24,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 8202520b48218d92e60642aa38e1ddad532e9b3d..67cfbcca6b4e60677c1bc0e844ae6756a54c7f67 100644 (file)
@@ -24,21 +24,21 @@ set gdbserver_reconnect_p 1
 
 if { [info proc gdb_reconnect] == "" } {
     unsupported "target does not support reconnect"
-    return -1
+    return
 }
 
 if {[prepare_for_testing "failed to prepare" $executable $srcfile \
         {debug nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 # Disconnect in tracing.
index fe652b827f02947ce4c8cd61960b3ac655dbd2fd..405f0d7e519c39410cfa713621b87c3ca27b7906 100644 (file)
@@ -21,12 +21,12 @@ standard_testfile .c entry-values-dw.S
 
 if  {[gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
          object {nodebug}] != ""} {
-    return -1
+    return
 }
 
 if  {[gdb_compile [list ${binfile}1.o] \
          "${binfile}1" executable {}] != ""} {
-    return -1
+    return
 }
 
 clean_restart ${testfile}1
@@ -75,7 +75,7 @@ if { [string equal $returned_from_foo ""] } {
     # The following test makes no sense if the offset is unknown.  We need
     # to update the pattern above to match call or branch instruction for
     # the target architecture.
-    return -1
+    return
 }
 
 # Make some DWARF for the test.
@@ -155,18 +155,18 @@ Dwarf::assemble $asm_file {
 }
 
 if  {[gdb_compile $asm_file ${binfile}2.o object {nodebug}] != ""} {
-    return -1
+    return
 }
 
 if  {[gdb_compile [list ${binfile}1.o ${binfile}2.o] \
          "${binfile}" executable {}] != ""} {
-    return -1
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "foo"
@@ -200,12 +200,12 @@ clean_restart $testfile
 load_lib "trace-support.exp"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 gdb_test "trace foo" "Tracepoint $decimal at .*"
index a05bb793aea85a9c2190dc2614eb74beaca1b156..19483607e05f5036420c848195eba81f6f76d5c5 100644 (file)
@@ -38,12 +38,12 @@ with_test_prefix "runtime trace support check" {
     }
 
     if {![runto_main]} {
-       return -1
+       return
     }
 
     if {![gdb_target_supports_trace]} {
        unsupported "target does not support trace"
-       return -1
+       return
     }
 }
 
@@ -60,7 +60,7 @@ if { [prepare_for_testing "prepare for testing with libipa" \
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if { [gdb_test "info sharedlibrary" ".*${remote_libipa}.*" "IPA loaded"] != 0 } {
index 3ceb6f88058c27553883509900cc71c049cc10de..b6addf722c0ac79128e76bf21c804e860fd324ae 100644 (file)
@@ -27,16 +27,16 @@ require gdb_trace_common_supports_arch
 
 if {[prepare_for_testing "failed to prepare" $executable $srcfile \
         [list debug $additional_flags]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 require allow_in_proc_agent
@@ -50,7 +50,7 @@ set remote_libipa [gdb_load_shlib $libipa]
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable [list debug nopie $additional_flags shlib=$libipa] ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 clean_restart ${executable}
 
index 034411636dcee561d7ad091a3f50bede63c4ec3a..0ee9c452e864b304b089389669e35b252938d3c9 100644 (file)
@@ -25,7 +25,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
@@ -99,7 +99,7 @@ gdb_trace_setactions "collect on tracepoint 1" "1" \
        "collect gdb_struct1_test" "^$"
 gdb_run_cmd
 if {[gdb_test "" "Breakpoint ${decimal}, main.*" "run to main"] != 0} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
index 78e8c942b5780cc2bf3110031abb48a903b457f8..51840e5f30ba48402152d12227893a6c74dd4de8 100644 (file)
@@ -20,16 +20,16 @@ standard_testfile actions.c
 require gdb_trace_common_supports_arch
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "current target does not support trace"
-    return -1
+    return
 }
 
 gdb_exit
index 9facc8dee17078b9ec4984dcfe0f76b60fba0d23..5a13f321d9e14d90592d2e0aab584f2bac6ac41b 100644 (file)
@@ -18,16 +18,16 @@ load_lib trace-support.exp
 standard_testfile trace-unavailable.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug nopie}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "current target does not support trace"
-    return -1
+    return
 }
 
 gdb_exit
index 535a14add3738caf8b118cf83457a8e176a97eec..78320e73cc789e1171b4b0b1c58d0856509fa667 100644 (file)
@@ -36,7 +36,7 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
                "additional_flags=-DTFILE_DIR=\"$tfile_dir\""]] \
          != "" } {
      untested "failed to compile"
-     return -1
+     return
 }
 
 # Make sure we are starting fresh.
index b727d7a1b5ceea62db1f69c0ad7a83546375f0ed..c41c390080a31c64b5f1ca89dc2bc06d765b34a3 100644 (file)
@@ -32,13 +32,13 @@ set lib_opts [gdb_target_symbol_prefix_flags]
 if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
      || [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 set exec_opts [list debug shlib=$lib_sl1 shlib_load]
 if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 load_lib mi-support.exp
index 5005eba59f3578ae06b2a33d38958b85f2a87c65..ded552cb24bf834bb2ee49dace07429eaeeb02e8 100644 (file)
@@ -23,7 +23,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Test notifications on creating, deleting and modifying TSV.
@@ -223,12 +223,12 @@ proc test_upload_tsv { } {
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "current target does not support trace"
-    return -1
+    return
 }
 
 gdb_exit
index 3222b63d8a9408edf4ef03b725269dad36cf10d3..ea75851fcd8b4c5268c4ed038c2a9f2feafec479 100644 (file)
@@ -22,7 +22,7 @@ load_lib trace-support.exp
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Start GDB, but don't run so that we have no process attached.
@@ -43,6 +43,6 @@ gdb_test "tstart" "Target returns error code.*\."
 
 with_test_prefix "after tstart" {
     if {![runto_main]} {
-       return -1
+       return
     }
 }
index ff9ae26fb89113f16e7383893eecada2e41806a6..7497855fa0b9075ad7e15c86d399ff4a5435207b 100644 (file)
@@ -22,7 +22,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 32fa58166f07e86cecb1e49926e23f9f585c1ccd..4e5b53b7c7806e7e06a2327cc6239bb81a11c864 100644 (file)
@@ -22,7 +22,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 57958aaeed088b39ade632cf83711ac4fcec2f32..8d0eec9bda818d4b7ca2f3d1a77f559389232cac 100644 (file)
@@ -22,7 +22,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 8da7115ca0d8535b3a99e85c046ca48b149f5a91..cf3df0ada330d02141012d49d52893978ffeb000 100644 (file)
@@ -32,13 +32,13 @@ set lib_opts [gdb_target_symbol_prefix_flags]
 if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
      || [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 set exec_opts [list debug shlib=$lib_sl1 shlib_load]
 if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $executable
@@ -47,12 +47,12 @@ gdb_load_shlib $lib_sl1
 gdb_load_shlib $lib_sl2
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "current target does not support trace"
-    return -1
+    return
 }
 
 # Verify pending tracepoint is resolved to running to main.
@@ -180,7 +180,7 @@ proc pending_tracepoint_resolved_during_trace { trace_type } \
     # Start with a fresh gdb.
     clean_restart $executable
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_multiple "$trace_type set_point2" "set pending tracepoint on set_point2" {
@@ -248,7 +248,7 @@ proc pending_tracepoint_installed_during_trace { trace_type } \
     # Start with a fresh gdb.
     clean_restart $executable
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test "next" ".*"
@@ -321,7 +321,7 @@ proc pending_tracepoint_disconnect_during_trace { trace_type } \
     # Start with a fresh gdb.
     clean_restart $executable
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_multiple "trace pendfunc3" "set pending tracepoint on set_point2" {
@@ -368,7 +368,7 @@ proc pending_tracepoint_disconnect_after_resolved { trace_type } \
     # Start with a fresh gdb.
     clean_restart $executable
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_multiple "trace set_point2" "set pending tracepoint on set_point2" {
@@ -420,7 +420,7 @@ proc pending_tracepoint_with_action_resolved { trace_type } \
     # Start with a fresh gdb.
     clean_restart $executable
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_multiple "$trace_type set_point2" "set pending tracepoint on set_point2" {
@@ -502,7 +502,7 @@ lappend exec_opts "shlib=$libipa"
 
 if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" } {
     untested "failed to compile with in-process agent library"
-    return -1
+    return
 }
 
 pending_tracepoint_resolved "ftrace"
index 7d8b0d08c8dd74d256ac3f404de954b00e21042a..d3ef8feb0b8ba993c0cb907e0d3fd8da91695e87 100644 (file)
@@ -19,16 +19,16 @@ set executable $testfile
 
 if {[prepare_for_testing "failed to prepare for trace tests" \
         $executable $srcfile [list debug]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 gdb_test "trace start" ".*"
index ae64738392230737970e82185191654bf8daf2c8..62a08c3695c84203b35b3e004f9239fc64ee63ec 100644 (file)
@@ -27,18 +27,18 @@ require gdb_protocol_is_remote
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nopie}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Check whether the target supports tracepoints.
 
 if {![gdb_target_supports_trace]} {
     unsupported "current target does not support trace"
-    return -1
+    return
 }
 
 # Run a trace session, stop it, and then inspect the resulting trace
@@ -91,13 +91,13 @@ gdb_test_multiple "show remote traceframe-info-packet" $test {
     }
 }
 if { $traceframe_info_supported == -1 } {
-    return -1
+    return
 }
 
 # Check whether we're testing with our own GDBserver.
 set is_gdbserver [target_is_gdbserver]
 if { $is_gdbserver == -1 } {
-    return -1
+    return
 }
 
 # Now disassemble (IOW, read from read-only memory) while inspecting a
index 5ff104a725ddddf830e17d65487e20332815875a..a0a1003ffb375ab6a51c8f988bdf93308c88cfb9 100644 (file)
@@ -21,21 +21,21 @@ set executable $testfile
 
 if {[prepare_for_testing "failed to prepare" $executable $srcfile \
         {debug nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 if {![gdb_range_stepping_enabled]} {
     unsupported "range stepping not supported by the target"
-    return -1
+    return
 }
 
 # Check that range stepping works well with tracepoints.
@@ -74,7 +74,7 @@ set remote_libipa [gdb_load_shlib $libipa]
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable [list debug nowarnings shlib=$libipa] ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${executable}
index 7d9b1c15d6427bb2414e4230a5b22ab39bcda765..0599b2e8e07f484558941e3166f4f6883ea07974 100644 (file)
@@ -18,16 +18,16 @@ load_lib "trace-support.exp"
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nopie}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 # Set tracepoints, start tracing and collect data.
index 32d7a9fb3ae641b4470d10f31865a423b6322139..8539975c407de021a4bb3c3491e0fc3fffaf2cfc 100644 (file)
@@ -22,7 +22,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings nopie}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 clean_restart $testfile
 runto_main
@@ -104,7 +104,7 @@ all tests in this module will fail."
 }
 
 if {$return_me == 1} {
-    return -1
+    return
 }
 
 #
index 92f15ce5ac55288b63cd10a164c7fc692e104a23..448b0a6d31ef9d32d087b1c71b213db29acadc2e 100644 (file)
@@ -23,7 +23,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index dd3958d7ffd260d78ffca4bf0178b4e5833909c4..f46380c217cd6a8c903a92f05a36d6d75a565fa5 100644 (file)
@@ -33,16 +33,16 @@ require {!target_info exists gdb,nosignals}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 # Step 1, find the syscall instruction address.
@@ -57,13 +57,13 @@ if { [istarget "i\[34567\]86-*-linux*"] || [istarget "x86_64-*-linux*"] } {
     set syscall_insn "\[ \t\](swi|svc)\[ \t\]"
 } else {
     unsupported "unknown syscall instruction"
-    return -1
+    return
 }
 
 # Start with a fresh gdb.
 clean_restart ${testfile}
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "kill" -qualified
index d8ed0a3bda498dae2d71ae04c9c4454c7c8ba74f..e7003d193269ded8b110ff772e513cc1c0ad5d5c 100644 (file)
@@ -101,7 +101,7 @@ proc gdb_collect_probe_arg { msg probe val_arg0 } {
 
 if {![compile_stap_bin "stap-probe-nosem"]} {
     # An appropriate failure message has already been output
-    return -1
+    return
 }
 
 clean_restart $executable
@@ -121,7 +121,7 @@ gdb_exit
 
 if {![compile_stap_bin "stap-probe-sem" "-DUSE_PROBES"]} {
     # An appropriate failure message has already been output
-    return -1
+    return
 }
 
 gdb_collect_probe_arg "probe args with semaphore" "-probe-stap two" "46"
index e41ca4555aa6772d77554bcaa438c624346cd851..4ea57e93ff549865cfdf5df80a7d5b7d37dbf562 100644 (file)
@@ -21,16 +21,16 @@ set expfile $testfile.exp
 
 if {[prepare_for_testing "failed to prepare" $executable $srcfile \
         {debug nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 # Verify that the sequence of commands "tstart tstop tstart" works well.
index b596968ce7ffa33be357c997098dac01e218fb64..d963d4501269b0b4f903e1066091213353a24796 100644 (file)
@@ -29,7 +29,7 @@ set additional_flags [list quiet debug shlib=$libipa shlib_load \
 
 if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $additional_flags] != ""} {
     untested "UST library or headers are not installed"
-    return -1
+    return
 }
 
 # Test that the socket file is removed when GDB quits, detaches or
@@ -368,7 +368,7 @@ if { [istarget "x86_64-*-linux*"] || [istarget "i\[34567\]86-*-linux*"] } {
 clean_restart $executable
 gdb_load_shlib $libipa
 if {![runto_main]} {
-    return -1
+    return
 }
 if {![gdb_target_supports_trace]} {
     # At this point, the socket file has been created.  We must make sure it is
@@ -377,7 +377,7 @@ if {![gdb_target_supports_trace]} {
     # the socket file.
     gdb_test "detach" "Detaching .*, process .*"
     unsupported "current target does not support trace"
-    return -1
+    return
 }
 
 # Double-check that marker ID ("-m") is not mistaken for an explicit location
index 0401b0a2c3ffc7e9bd955c0d759fe854a52722dd..1ecb784b361f89768035a4d75112022459170779 100644 (file)
@@ -41,7 +41,7 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
               "additional_flags=-DTFILE_DIR=\"$tfile_dir\""]] \
         != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Make sure we are starting fresh.
@@ -52,7 +52,7 @@ remote_file target delete $tfile_error
 
 if { ![generate_tracefile $binfile] } {
     unsupported "unable to generate trace file"
-    return -1
+    return
 }
 
 if {!$purely_local} {
index 5cf4122c017a1d0b449f52e6014f320e8e3832a9..cb4d255b78179e28e305bad70c340fb334b8bfab 100644 (file)
@@ -24,7 +24,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" \
          executable {debug nowarnings nopie}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
@@ -117,7 +117,7 @@ gdb_test_multiple "tstart" "6.1: tstart" {
 }
 
 if {$return_me == 1} {
-    return -1
+    return
 }
 
 # test tstatus (when trace on)
@@ -148,7 +148,7 @@ gdb_test_multiple "tstop" "7.1: tstop" {
 }
 
 if {$return_me == 1} {
-    return -1
+    return
 }
 
 # test tstatus (when trace off)
index 27df24b70947be447596cc217a6252915e308f47..215d2c2ff4b09560fd6891cc3f9994c888ac0a54 100644 (file)
@@ -25,16 +25,16 @@ require gdb_trace_common_supports_arch
 
 if {[prepare_for_testing "failed to prepare" $executable $srcfile \
         [list debug $additional_flags]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 # Set breakpoint and tracepoint at the same address.
@@ -48,7 +48,7 @@ proc break_trace_same_addr_1 { trace_type option } \
     # Start with a fresh gdb.
     clean_restart ${executable}
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
@@ -82,7 +82,7 @@ proc break_trace_same_addr_2 { trace_type1 trace_type2 option } \
     # Start with a fresh gdb.
     clean_restart ${executable}
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
@@ -120,7 +120,7 @@ proc break_trace_same_addr_3 { trace_type option } \
     # Start with a fresh gdb.
     clean_restart ${executable}
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
@@ -157,7 +157,7 @@ proc break_trace_same_addr_4 { trace_type option } \
     # Start with a fresh gdb.
     clean_restart ${executable}
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
@@ -200,7 +200,7 @@ proc break_trace_same_addr_5 { trace1 trace2 trace3 trace3_at_first_loc } \
     # Start with a fresh gdb.
     clean_restart ${executable}
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_breakpoint "marker" -qualified
@@ -273,7 +273,7 @@ proc break_trace_same_addr_6 { trace1 enable1 trace2 enable2 } \
     # Start with a fresh gdb.
     clean_restart ${executable}
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_breakpoint "marker" -qualified
@@ -355,7 +355,7 @@ set remote_libipa [gdb_load_shlib $libipa]
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable [list debug $additional_flags shlib=$libipa] ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 clean_restart ${executable}
 
index e774fc4fd494322182bfc449d4910985993fb55d..4b1a8f75a0ae2e53f16b1457b4b340f6bcfe928e 100644 (file)
@@ -19,16 +19,16 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 set BUFFER_SIZE 4
@@ -46,7 +46,7 @@ gdb_test_multiple "tstatus" $test {
 # If we did not get the default size then there is no point in running the
 # tests below.
 if { $default_size < 0 } {
-  return -1
+  return
 }
 
 # Change buffer size to 'BUFFER_SIZE'.
index 7eb5df7ab7cfad9fac3ae6a15ffb2afa43a2a7bd..d63d7b8a89db71ee3d20a394d2b54df86197c039 100644 (file)
@@ -27,16 +27,16 @@ require gdb_trace_common_supports_arch
 
 if {[prepare_for_testing "failed to prepare" $executable $srcfile \
         [list debug $additional_flags]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 require allow_in_proc_agent
@@ -50,7 +50,7 @@ set remote_libipa [gdb_load_shlib $libipa]
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable [list debug $additional_flags shlib=$libipa] ] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${executable}
index 04ec2973674eeac70ad315269f27d6c548f36572..a3b6b328b254fa2fb4ddd36b60f882a0051f9b00 100644 (file)
@@ -27,18 +27,18 @@ set options [list debug [gdb_target_symbol_prefix_flags]]
 require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 # Compile the test case with the in-process agent library.
@@ -50,7 +50,7 @@ lappend options shlib=$libipa
 
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
     untested "failed to compile with in-process agent library"
-    return -1
+    return
 }
 
 # This test makes sure that disabling and enabling tracepoints works
index 90dd5284adc2994ea803d37e436dfe83dd3bf9bb..d43ccc3dc914f927e9719ea3490a8be690a17e83 100644 (file)
@@ -28,12 +28,12 @@ with_test_prefix "runtime trace support check" {
     }
 
     if {![runto_main]} {
-       return -1
+       return
     }
 
     if {![gdb_target_supports_trace]} {
        unsupported "target does not support trace"
-       return -1
+       return
     }
 }
 
@@ -48,7 +48,7 @@ proc step_over_tracepoint { testfile trace_type } \
     # Make sure inferior is running in all-stop mode.
     gdb_test_no_output "set non-stop 0"
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test "break set_point1" "Breakpoint \[0-9\] at $hex: file.*"
@@ -71,7 +71,7 @@ proc break_trace_same_addr { testfile trace_type option } \
     # Start with a fresh gdb.
     clean_restart $testfile
     if {![runto_main]} {
-       return -1
+       return
     }
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
index e4d39470e9b6cdabc96c422ad41f1c615af76584..5b34092d7dc8c32186b5c35b4169fb70ff95ece3 100644 (file)
@@ -22,7 +22,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index e23b418644223687226f66a56e34f1f92bb4aeb3..35ec9f539afc912e08cf3c9a549b15ae84301451 100644 (file)
@@ -20,16 +20,16 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
      [list debug additional_flags=-mavx]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 gdb_test_multiple "print \$ymm15" "check for AVX support" {
index fae22b0e8c4875e858f1a7fb60da2da716d1b60c..16bfdf2304dfb5f1936f2d1b8d1291f0e9d45409 100644 (file)
@@ -28,18 +28,18 @@ set executable $testfile
 # Check that the target supports trace.
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 # Compile the test case with the in-process agent library.
@@ -49,7 +49,7 @@ set ipalib [get_in_proc_agent]
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable [concat {debug c} shlib=$ipalib]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Typically we need a little extra time for this test.
index 9ee56d490b15e7c6202cf5f2c71a287808617f55..017f59f893fd93c52c1a2a1e18233d48320c4eb8 100644 (file)
@@ -22,16 +22,16 @@ require gdb_trace_common_supports_arch
 
 if {[prepare_for_testing "failed to prepare" $executable $srcfile \
         [list debug]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 set tstatus_output ""
index b1b706735e7ad71aa6b5859f0c53f422cafdc5d2..aea6484dec2fc09304724945399162bfc5cd3956 100644 (file)
@@ -20,7 +20,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 1a118c920dac4f9dc5a8a053df5136d8d2273a15..ee8fb5d52a2e088e7d3a1c3e5869fc2ebb5a57b6 100644 (file)
@@ -25,7 +25,7 @@ set opts {}
 
 if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
           object {nodebug}] != "" } {
-    return -1
+    return
 }
 
 Dwarf::assemble $asm_file {
@@ -284,23 +284,23 @@ Dwarf::assemble $asm_file {
 }
 
 if  { [gdb_compile ${asm_file} ${binfile}2.o object {nodebug}] != "" } {
-    return -1
+    return
 }
 
 if  { [gdb_compile [list ${binfile}1.o ${binfile}2.o] ${binfile} \
           executable {}] != "" } {
-    return -1
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 gdb_breakpoint "end" -qualified
index cd652affc0fd59c8463d3c5d0734ac8d8c82ea0d..8fd3af60e326c47a7df19fae6a85fce222a3d9f9 100644 (file)
@@ -20,7 +20,7 @@ set executable $testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug nowarnings c++ nopie}]} {
-    return -1
+    return
 }
 
 set ws "\[\r\n\t \]+"
index 8b7472cfcf44295d51b0a0d01997dc41b1cc941d..0203517fb7887c9583ce841ab8200609986acd61 100644 (file)
@@ -23,7 +23,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index f96034391a24658cb60b58a004ed2050b350d570..91f2f3853da0ec65b03fa0cce98ba9251c00894d 100644 (file)
@@ -22,7 +22,7 @@ require gdb_trace_common_supports_arch
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \
          executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
@@ -102,12 +102,12 @@ gdb_load $binfile
 gdb_breakpoint "main"
 gdb_run_cmd
 if {[gdb_test "" "Breakpoint .*" "run to main"] != 0} {
-    return -1
+    return
 }
 
 if {![gdb_target_supports_trace]} {
     unsupported "target does not support trace"
-    return -1
+    return
 }
 
 gdb_trace_setactions "set stepcount to $stepcount" \