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

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

inside gdb/testsuite/gdb.base.

I didn't include changes made to return statements inside procedures.

Approved-By: Tom Tromey <tom@tromey.com>
421 files changed:
gdb/testsuite/gdb.base/a2-run.exp
gdb/testsuite/gdb.base/access-mem-running.exp
gdb/testsuite/gdb.base/add-symbol-file-attach.exp
gdb/testsuite/gdb.base/advance-until-multiple-locations.exp
gdb/testsuite/gdb.base/advance.exp
gdb/testsuite/gdb.base/all-bin.exp
gdb/testsuite/gdb.base/annota-input-while-running.exp
gdb/testsuite/gdb.base/annota1.exp
gdb/testsuite/gdb.base/annota3.exp
gdb/testsuite/gdb.base/annotate-symlink.exp
gdb/testsuite/gdb.base/anon.exp
gdb/testsuite/gdb.base/args.exp
gdb/testsuite/gdb.base/argv0-symlink.exp
gdb/testsuite/gdb.base/arithmet.exp
gdb/testsuite/gdb.base/array-indices.exp.tcl
gdb/testsuite/gdb.base/array-repeat.exp.tcl
gdb/testsuite/gdb.base/asmlabel.exp
gdb/testsuite/gdb.base/async.exp
gdb/testsuite/gdb.base/attach-deleted-exec.exp
gdb/testsuite/gdb.base/attach-fail-twice.exp
gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp
gdb/testsuite/gdb.base/attach-pie-misread.exp
gdb/testsuite/gdb.base/attach-pie-noexec.exp
gdb/testsuite/gdb.base/attach-twice.exp
gdb/testsuite/gdb.base/attach-wait-input.exp
gdb/testsuite/gdb.base/attach.exp
gdb/testsuite/gdb.base/auto-connect-native-target.exp
gdb/testsuite/gdb.base/auto-load.exp
gdb/testsuite/gdb.base/auxv.exp
gdb/testsuite/gdb.base/backtrace.exp
gdb/testsuite/gdb.base/bang.exp
gdb/testsuite/gdb.base/batch-preserve-term-settings.exp
gdb/testsuite/gdb.base/bfd-errors.exp
gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.exp
gdb/testsuite/gdb.base/bg-execution-repeat.exp
gdb/testsuite/gdb.base/bitfields.exp
gdb/testsuite/gdb.base/bitfields2.exp
gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp
gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp
gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp
gdb/testsuite/gdb.base/bp-cmds-sourced-script.exp
gdb/testsuite/gdb.base/bp-cond-failure.exp
gdb/testsuite/gdb.base/bp-permanent.exp
gdb/testsuite/gdb.base/branch-to-self.exp
gdb/testsuite/gdb.base/break-always.exp
gdb/testsuite/gdb.base/break-caller-line.exp
gdb/testsuite/gdb.base/break-entry.exp
gdb/testsuite/gdb.base/break-include.exp
gdb/testsuite/gdb.base/break-inline.exp
gdb/testsuite/gdb.base/break-interp.exp
gdb/testsuite/gdb.base/break-main-file-remove-fail.exp
gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp
gdb/testsuite/gdb.base/break-probes.exp
gdb/testsuite/gdb.base/break-unload-file.exp
gdb/testsuite/gdb.base/break.exp
gdb/testsuite/gdb.base/breakpoint-in-ro-region.exp
gdb/testsuite/gdb.base/breakpoint-shadow.exp
gdb/testsuite/gdb.base/bt-on-error-and-warning.exp
gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
gdb/testsuite/gdb.base/bt-selected-frame.exp
gdb/testsuite/gdb.base/build-id-seqno.exp
gdb/testsuite/gdb.base/c-linkage-name.exp
gdb/testsuite/gdb.base/cached-source-file.exp
gdb/testsuite/gdb.base/call-ar-st.exp
gdb/testsuite/gdb.base/call-strs.exp
gdb/testsuite/gdb.base/cast-call.exp
gdb/testsuite/gdb.base/cast-indirection.exp
gdb/testsuite/gdb.base/catch-fork-static.exp
gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp
gdb/testsuite/gdb.base/catch-load.exp
gdb/testsuite/gdb.base/catch-signal-fork.exp
gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
gdb/testsuite/gdb.base/catch-signal.exp
gdb/testsuite/gdb.base/catch-syscall.exp
gdb/testsuite/gdb.base/charset.exp
gdb/testsuite/gdb.base/commands.exp
gdb/testsuite/gdb.base/compare-sections.exp
gdb/testsuite/gdb.base/complete-empty.exp
gdb/testsuite/gdb.base/completion.exp
gdb/testsuite/gdb.base/complex-parts.exp
gdb/testsuite/gdb.base/complex.exp
gdb/testsuite/gdb.base/cond-eval-mode.exp
gdb/testsuite/gdb.base/condbreak-call-false.exp
gdb/testsuite/gdb.base/condbreak.exp
gdb/testsuite/gdb.base/consecutive-step-over.exp
gdb/testsuite/gdb.base/consecutive.exp
gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp
gdb/testsuite/gdb.base/coredump-filter-build-id.exp
gdb/testsuite/gdb.base/coredump-filter.exp
gdb/testsuite/gdb.base/corefile-exec-context.exp
gdb/testsuite/gdb.base/corefile-find-exec.exp
gdb/testsuite/gdb.base/corefile.exp
gdb/testsuite/gdb.base/corefile2.exp
gdb/testsuite/gdb.base/ctf-ptype.exp
gdb/testsuite/gdb.base/ctxobj.exp
gdb/testsuite/gdb.base/cursal.exp
gdb/testsuite/gdb.base/dcache-flush.exp
gdb/testsuite/gdb.base/dcache-line-read-error.exp
gdb/testsuite/gdb.base/debug-expr.exp
gdb/testsuite/gdb.base/debug-frame.exp
gdb/testsuite/gdb.base/decl-before-def.exp
gdb/testsuite/gdb.base/default-args.exp
gdb/testsuite/gdb.base/define.exp
gdb/testsuite/gdb.base/del.exp
gdb/testsuite/gdb.base/disabled-location.exp
gdb/testsuite/gdb.base/disasm-end-cu.exp
gdb/testsuite/gdb.base/disasm-optim.exp
gdb/testsuite/gdb.base/displaced-step-closure.exp
gdb/testsuite/gdb.base/display.exp
gdb/testsuite/gdb.base/dmsym.exp
gdb/testsuite/gdb.base/document.exp
gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
gdb/testsuite/gdb.base/dprintf-detach.exp
gdb/testsuite/gdb.base/dprintf-execution-x-script.exp
gdb/testsuite/gdb.base/dprintf-next.exp
gdb/testsuite/gdb.base/dprintf-non-stop.exp
gdb/testsuite/gdb.base/dprintf-pending.exp
gdb/testsuite/gdb.base/dprintf.exp
gdb/testsuite/gdb.base/dump.exp
gdb/testsuite/gdb.base/dup-sect.exp
gdb/testsuite/gdb.base/duplicate-bp.exp
gdb/testsuite/gdb.base/early-init-file.exp
gdb/testsuite/gdb.base/eh_return.exp
gdb/testsuite/gdb.base/ena-dis-br.exp
gdb/testsuite/gdb.base/endianity.exp
gdb/testsuite/gdb.base/ending-run.exp
gdb/testsuite/gdb.base/enum_cond.exp
gdb/testsuite/gdb.base/enumval.exp
gdb/testsuite/gdb.base/eu-strip-infcall.exp
gdb/testsuite/gdb.base/eval-avoid-side-effects.exp
gdb/testsuite/gdb.base/examine-backward.exp
gdb/testsuite/gdb.base/exe-lock.exp
gdb/testsuite/gdb.base/execl-update-breakpoints.exp
gdb/testsuite/gdb.base/execution-termios.exp
gdb/testsuite/gdb.base/exitsignal.exp
gdb/testsuite/gdb.base/expand-psymtabs.exp
gdb/testsuite/gdb.base/fileio.exp
gdb/testsuite/gdb.base/filesym.exp
gdb/testsuite/gdb.base/find-unmapped.exp
gdb/testsuite/gdb.base/finish-pretty.exp
gdb/testsuite/gdb.base/finish.exp
gdb/testsuite/gdb.base/float.exp
gdb/testsuite/gdb.base/float128.exp
gdb/testsuite/gdb.base/floatn.exp
gdb/testsuite/gdb.base/foll-fork-syscall.exp
gdb/testsuite/gdb.base/foll-fork.exp
gdb/testsuite/gdb.base/foll-vfork.exp
gdb/testsuite/gdb.base/fork-print-inferior-events.exp
gdb/testsuite/gdb.base/fortran-sym-case.exp
gdb/testsuite/gdb.base/frame-info-consistent.exp
gdb/testsuite/gdb.base/frame-selection.exp
gdb/testsuite/gdb.base/frame-unwind-disable.exp
gdb/testsuite/gdb.base/frameapply.exp
gdb/testsuite/gdb.base/freebpcmd.exp
gdb/testsuite/gdb.base/fullname.exp
gdb/testsuite/gdb.base/fullpath-expand.exp
gdb/testsuite/gdb.base/func-ptr.exp
gdb/testsuite/gdb.base/func-ptrs.exp
gdb/testsuite/gdb.base/funcargs.exp
gdb/testsuite/gdb.base/gcore-buffer-overflow.exp
gdb/testsuite/gdb.base/gcore-memory-usage.exp
gdb/testsuite/gdb.base/gcore-relro-pie.exp
gdb/testsuite/gdb.base/gcore-tls-pie.exp
gdb/testsuite/gdb.base/gcore.exp
gdb/testsuite/gdb.base/gdb-index-err.exp
gdb/testsuite/gdb.base/gdb-sigterm.exp
gdb/testsuite/gdb.base/gdb1090.exp
gdb/testsuite/gdb.base/gdb11530.exp
gdb/testsuite/gdb.base/gdb11531.exp
gdb/testsuite/gdb.base/gdb1821.exp
gdb/testsuite/gdb.base/gdbvars.exp
gdb/testsuite/gdb.base/gnu-debugdata.exp
gdb/testsuite/gdb.base/gnu_vector.exp
gdb/testsuite/gdb.base/gstack.exp
gdb/testsuite/gdb.base/hashline1.exp
gdb/testsuite/gdb.base/hashline2.exp
gdb/testsuite/gdb.base/hashline3.exp
gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp
gdb/testsuite/gdb.base/hbreak-unmapped.exp
gdb/testsuite/gdb.base/hbreak.exp
gdb/testsuite/gdb.base/hbreak2.exp
gdb/testsuite/gdb.base/history-duplicates.exp
gdb/testsuite/gdb.base/hook-stop.exp
gdb/testsuite/gdb.base/hw-sw-break-same-address.exp
gdb/testsuite/gdb.base/include-main.exp
gdb/testsuite/gdb.base/included.exp
gdb/testsuite/gdb.base/infcall-exec.exp
gdb/testsuite/gdb.base/infcall-input.exp
gdb/testsuite/gdb.base/inferior-died.exp
gdb/testsuite/gdb.base/infnan.exp
gdb/testsuite/gdb.base/info-locals-unused-static-var.exp
gdb/testsuite/gdb.base/info-macros.exp
gdb/testsuite/gdb.base/info-os.exp
gdb/testsuite/gdb.base/info-proc.exp
gdb/testsuite/gdb.base/info-shared.exp
gdb/testsuite/gdb.base/info-target.exp
gdb/testsuite/gdb.base/info-var.exp
gdb/testsuite/gdb.base/info_minsym.exp
gdb/testsuite/gdb.base/info_qt.exp
gdb/testsuite/gdb.base/info_sources.exp
gdb/testsuite/gdb.base/info_sources_2.exp
gdb/testsuite/gdb.base/infoline-reloc-main-from-zero.exp
gdb/testsuite/gdb.base/infoline.exp
gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
gdb/testsuite/gdb.base/interp.exp
gdb/testsuite/gdb.base/interrupt-a.exp
gdb/testsuite/gdb.base/interrupt-daemon-attach.exp
gdb/testsuite/gdb.base/interrupt-daemon.exp
gdb/testsuite/gdb.base/interrupt-noterm.exp
gdb/testsuite/gdb.base/interrupt.exp
gdb/testsuite/gdb.base/jit-attach-pie.exp
gdb/testsuite/gdb.base/jit-reader-simple.exp
gdb/testsuite/gdb.base/jit-reader.exp
gdb/testsuite/gdb.base/jump-inline.exp
gdb/testsuite/gdb.base/jump.exp
gdb/testsuite/gdb.base/jump_multiple_objfiles.exp
gdb/testsuite/gdb.base/kill-after-signal.exp
gdb/testsuite/gdb.base/kill-detach-inferiors-cmd.exp
gdb/testsuite/gdb.base/kill-during-detach.exp
gdb/testsuite/gdb.base/killed-outside.exp
gdb/testsuite/gdb.base/label-without-address.exp
gdb/testsuite/gdb.base/label.exp
gdb/testsuite/gdb.base/langs.exp
gdb/testsuite/gdb.base/ldbl_e308.exp
gdb/testsuite/gdb.base/limited-length.exp
gdb/testsuite/gdb.base/line-symtabs.exp
gdb/testsuite/gdb.base/line65535.exp
gdb/testsuite/gdb.base/list-ambiguous.exp
gdb/testsuite/gdb.base/list-before-start.exp
gdb/testsuite/gdb.base/list-missing-source.exp
gdb/testsuite/gdb.base/list-nodebug.exp
gdb/testsuite/gdb.base/list.exp
gdb/testsuite/gdb.base/load-command.exp
gdb/testsuite/gdb.base/long-inferior-output.exp
gdb/testsuite/gdb.base/longest-types.exp
gdb/testsuite/gdb.base/macscp.exp
gdb/testsuite/gdb.base/main-c.exp
gdb/testsuite/gdb.base/maint-expand-symbols-header-file.exp
gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp
gdb/testsuite/gdb.base/maint-info-sections.exp
gdb/testsuite/gdb.base/maint-print-frame-id.exp
gdb/testsuite/gdb.base/maint.exp
gdb/testsuite/gdb.base/many-completions.exp
gdb/testsuite/gdb.base/many-headers.exp
gdb/testsuite/gdb.base/max-value-size.exp
gdb/testsuite/gdb.base/memattr.exp
gdb/testsuite/gdb.base/memops-watchpoint.exp
gdb/testsuite/gdb.base/memtag.exp
gdb/testsuite/gdb.base/mips_pro.exp
gdb/testsuite/gdb.base/morestack.exp
gdb/testsuite/gdb.base/msym-lang.exp
gdb/testsuite/gdb.base/nested-addr.exp
gdb/testsuite/gdb.base/nested-subp1.exp
gdb/testsuite/gdb.base/nested-subp2.exp
gdb/testsuite/gdb.base/nested-subp3.exp
gdb/testsuite/gdb.base/new-ui-echo.exp
gdb/testsuite/gdb.base/new-ui-pending-input.exp
gdb/testsuite/gdb.base/new-ui.exp
gdb/testsuite/gdb.base/nextoverexit.exp
gdb/testsuite/gdb.base/non-lazy-array-index.exp
gdb/testsuite/gdb.base/noreturn-finish.exp
gdb/testsuite/gdb.base/noreturn-return.exp
gdb/testsuite/gdb.base/offsets.exp
gdb/testsuite/gdb.base/opaque.exp
gdb/testsuite/gdb.base/options.exp
gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp
gdb/testsuite/gdb.base/paginate-bg-execution.exp
gdb/testsuite/gdb.base/paginate-execution-startup.exp
gdb/testsuite/gdb.base/paginate-inferior-exit.exp
gdb/testsuite/gdb.base/patch.exp
gdb/testsuite/gdb.base/pc-fp.exp
gdb/testsuite/gdb.base/pending.exp
gdb/testsuite/gdb.base/permissions.exp
gdb/testsuite/gdb.base/persistent-lang.exp
gdb/testsuite/gdb.base/pie-execl.exp
gdb/testsuite/gdb.base/pr10179.exp
gdb/testsuite/gdb.base/prelink.exp
gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
gdb/testsuite/gdb.base/pretty-array.exp
gdb/testsuite/gdb.base/pretty-print.exp
gdb/testsuite/gdb.base/print-internal-string.exp
gdb/testsuite/gdb.base/print-symbol-loading.exp
gdb/testsuite/gdb.base/printf-wchar_t.exp
gdb/testsuite/gdb.base/prologue-include.exp
gdb/testsuite/gdb.base/psym-external-decl.exp
gdb/testsuite/gdb.base/psymtab.exp
gdb/testsuite/gdb.base/ptype-offsets-c.exp
gdb/testsuite/gdb.base/ptype-offsets.exp
gdb/testsuite/gdb.base/ptype.exp
gdb/testsuite/gdb.base/random-signal.exp
gdb/testsuite/gdb.base/randomize.exp
gdb/testsuite/gdb.base/range-stepping.exp
gdb/testsuite/gdb.base/readline-ask.exp
gdb/testsuite/gdb.base/readline-commands-eof.exp
gdb/testsuite/gdb.base/readnever.exp
gdb/testsuite/gdb.base/realname-expand.exp
gdb/testsuite/gdb.base/recpar.exp
gdb/testsuite/gdb.base/recurse.exp
gdb/testsuite/gdb.base/reggroups.exp
gdb/testsuite/gdb.base/relational.exp
gdb/testsuite/gdb.base/remote.exp
gdb/testsuite/gdb.base/reread-readsym.exp
gdb/testsuite/gdb.base/restore.exp
gdb/testsuite/gdb.base/return-3.exp
gdb/testsuite/gdb.base/return.exp
gdb/testsuite/gdb.base/retval-large-struct.exp
gdb/testsuite/gdb.base/rtld-step.exp
gdb/testsuite/gdb.base/run-after-attach.exp
gdb/testsuite/gdb.base/run-fail-twice.exp
gdb/testsuite/gdb.base/save-bp.exp
gdb/testsuite/gdb.base/scope-hw-watch-disable.exp
gdb/testsuite/gdb.base/scope.exp
gdb/testsuite/gdb.base/sect-cmd.exp
gdb/testsuite/gdb.base/sepdebug.exp
gdb/testsuite/gdb.base/sepsymtab.exp
gdb/testsuite/gdb.base/server-del-break.exp
gdb/testsuite/gdb.base/set-cwd.exp
gdb/testsuite/gdb.base/set-inferior-tty.exp
gdb/testsuite/gdb.base/set-lang-auto.exp
gdb/testsuite/gdb.base/set-noassign.exp
gdb/testsuite/gdb.base/settings.exp
gdb/testsuite/gdb.base/setvar.exp
gdb/testsuite/gdb.base/share-env-with-gdbserver.exp
gdb/testsuite/gdb.base/share-psymtabs-bt.exp
gdb/testsuite/gdb.base/sigall.exp
gdb/testsuite/gdb.base/sigbpt.exp
gdb/testsuite/gdb.base/siginfo-addr.exp
gdb/testsuite/gdb.base/siginfo-infcall.exp
gdb/testsuite/gdb.base/siginfo-obj.exp
gdb/testsuite/gdb.base/siginfo.exp
gdb/testsuite/gdb.base/signals-state-child.exp
gdb/testsuite/gdb.base/signals.exp
gdb/testsuite/gdb.base/signed-builtin-types.exp
gdb/testsuite/gdb.base/signest.exp
gdb/testsuite/gdb.base/sigstep.exp
gdb/testsuite/gdb.base/sizeof.exp
gdb/testsuite/gdb.base/skip-inline.exp
gdb/testsuite/gdb.base/skip-solib.exp
gdb/testsuite/gdb.base/skip.exp
gdb/testsuite/gdb.base/skipcxx.exp
gdb/testsuite/gdb.base/solib-corrupted.exp
gdb/testsuite/gdb.base/solib-nodir.exp
gdb/testsuite/gdb.base/solib-probes-nosharedlibrary.exp
gdb/testsuite/gdb.base/solib-search.exp
gdb/testsuite/gdb.base/solib-vanish.exp
gdb/testsuite/gdb.base/source-execution.exp
gdb/testsuite/gdb.base/source-open.exp
gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp
gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
gdb/testsuite/gdb.base/stale-infcall.exp
gdb/testsuite/gdb.base/start-cpp.exp
gdb/testsuite/gdb.base/start.exp
gdb/testsuite/gdb.base/starti.exp
gdb/testsuite/gdb.base/startup-with-shell.exp
gdb/testsuite/gdb.base/step-bt.exp
gdb/testsuite/gdb.base/step-indirect-call-thunk.exp
gdb/testsuite/gdb.base/step-into-other-file.exp
gdb/testsuite/gdb.base/step-line.exp
gdb/testsuite/gdb.base/step-over-exit.exp
gdb/testsuite/gdb.base/step-over-no-symbols.exp
gdb/testsuite/gdb.base/step-over-syscall.exp
gdb/testsuite/gdb.base/step-resume-infcall.exp
gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp
gdb/testsuite/gdb.base/step-symless.exp
gdb/testsuite/gdb.base/store.exp
gdb/testsuite/gdb.base/structs2.exp
gdb/testsuite/gdb.base/structs3.exp
gdb/testsuite/gdb.base/style.exp
gdb/testsuite/gdb.base/symbol-alias.exp
gdb/testsuite/gdb.base/symbol-without-target_section.exp
gdb/testsuite/gdb.base/symfile-warn.exp
gdb/testsuite/gdb.base/symlink-sourcefile.exp
gdb/testsuite/gdb.base/symtab-search-order.exp
gdb/testsuite/gdb.base/term.exp
gdb/testsuite/gdb.base/thread-bp-multi-loc.exp
gdb/testsuite/gdb.base/tls-dlobj.exp
gdb/testsuite/gdb.base/tls-multiobj.exp
gdb/testsuite/gdb.base/traced-thread.exp
gdb/testsuite/gdb.base/ui-redirect.exp
gdb/testsuite/gdb.base/until-nodebug.exp
gdb/testsuite/gdb.base/until-trailing-insns.exp
gdb/testsuite/gdb.base/until.exp
gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl
gdb/testsuite/gdb.base/unwindonsignal.exp
gdb/testsuite/gdb.base/utf8-identifiers.exp
gdb/testsuite/gdb.base/valgrind-bt.exp
gdb/testsuite/gdb.base/valgrind-disp-step.exp
gdb/testsuite/gdb.base/valgrind-infcall-2.exp
gdb/testsuite/gdb.base/valgrind-infcall.exp
gdb/testsuite/gdb.base/value-double-free.exp
gdb/testsuite/gdb.base/value-history-unavailable.exp
gdb/testsuite/gdb.base/vdso-warning.exp
gdb/testsuite/gdb.base/vfork-follow-parent.exp
gdb/testsuite/gdb.base/vla-datatypes.exp
gdb/testsuite/gdb.base/vla-ptr.exp
gdb/testsuite/gdb.base/vla-sideeffect.exp
gdb/testsuite/gdb.base/vla-struct-fields.exp
gdb/testsuite/gdb.base/vla-stub.exp
gdb/testsuite/gdb.base/volatile.exp
gdb/testsuite/gdb.base/watch-bitfields.exp
gdb/testsuite/gdb.base/watch-cond-infcall.exp
gdb/testsuite/gdb.base/watch-cond.exp
gdb/testsuite/gdb.base/watch-non-mem.exp
gdb/testsuite/gdb.base/watch-read.exp
gdb/testsuite/gdb.base/watch-vfork.exp
gdb/testsuite/gdb.base/watchpoint-cond-gone.exp
gdb/testsuite/gdb.base/watchpoint-delete.exp
gdb/testsuite/gdb.base/watchpoint-hw-attach.exp
gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
gdb/testsuite/gdb.base/watchpoint-hw.exp
gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp
gdb/testsuite/gdb.base/watchpoint-running.exp
gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp
gdb/testsuite/gdb.base/watchpoint-unaligned.exp
gdb/testsuite/gdb.base/watchpoints.exp
gdb/testsuite/gdb.base/wchar.exp
gdb/testsuite/gdb.base/whatis-exp.exp
gdb/testsuite/gdb.base/with-mf.exp
gdb/testsuite/gdb.base/with.exp
gdb/testsuite/gdb.base/write_mem.exp
gdb/testsuite/gdb.base/wrong_frame_bt_full.exp

index c5df2cce4695d3a05d3972a83055f50e8c3affb7..725f8fac5349fd340151b3ec2446bdbf0ff23e10 100644 (file)
@@ -31,7 +31,7 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/unbuffer_output.c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile $flags] } {
-    return -1
+    return
 }
 
 # Run with no arguments.
index 7a5468d5307f83d0cecc47edb0aa06d00632022d..11dea64a6338b141bff5ce3c05dcd07ab1a0a1b2 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug}] == -1} {
-    return -1
+    return
 }
 
 # The test proper.  NON_STOP indicates whether we're testing in
index 44faa8dbd3cf6e491ee342afd2de212fd02f18be..b76c4d588d95fb2ca20fbd0ab7ab05155c9fe72c 100644 (file)
@@ -36,7 +36,7 @@ standard_testfile
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Use 'spawn_wait_for_attach' to start the test program running.  It'll
index 85fd20ae69844b567d0b55de76e6b96eafc98206..102c68bf9f5391aa1d44ab9b9b2652ea1c2f2c5f 100644 (file)
@@ -22,7 +22,7 @@ require allow_cplus_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
          {debug c++}] } {
-    return -1
+    return
 }
 
 set lineno [gdb_get_line_number "multiple locations here"]
index dda32c05c8305d359b6dc8c3bd6da75752d13c37..fe05dd3a3c37ca0804ef23d4d6340b65a7806d8a 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 9c8345218d141df3f1ced752149f7883f9375210..12b530be77d8494d7f2494cd3f5c96c4fdaa0ed4 100644 (file)
@@ -30,7 +30,7 @@
 standard_testfile all-types.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 #
index a1908d449605433b94cce07c171e72c3ac171e6e..747175f0ab5fa260c8cf9c126444a0a28957dc84 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 # Because runto_main doesn't know how to handle the prompt with annotations,
index d8c8abcbf5691e77ea198831de6f371faeec1dbe..35eaf26103e20d33bda98958097080bc3bf97f66 100644 (file)
@@ -35,7 +35,7 @@ set breakpoints_invalid "\r\n\032\032breakpoints-invalid\r\n"
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 #
index 6824e4d70980ac2ba1a58b08f922fe397e0e4ba6..8a69350f1d5d879f46af40cefa5f7281c9f504a5 100644 (file)
@@ -29,7 +29,7 @@ require target_can_use_run_cmd
 standard_testfile
 
 if  { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 
index acf4b540e804e69c0d14f88616b798d4e02c8737..9d6f8fe3a68031cd3f8f898d8590ef9d4b358564 100644 (file)
@@ -26,19 +26,19 @@ remote_exec build "ln -sf ${srcdirabs}/${subdir}/${srcfile2} $srcfilelink"
 
 if { [file type $srcfilelink] != "link" } {
     unsupported "target directory cannot have symbolic links"
-    return -1
+    return
 }
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile} ${srcfilelink}" "${binfile}" \
                  executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint func message
index 700744e6631b0703bdd0111e167ca8f6df2552fb..6a077aa267cbfbd5e220dc5376c39cc6d6352327 100644 (file)
@@ -17,7 +17,7 @@
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index bd10c90b6cd73ade677fa540873704ba5bc4ea98..d2d5a601b1eece50207ccd2db5eca986e7e9a17c 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile
 
 if {[build_executable $testfile.exp $testfile $srcfile] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Assuming a running GDB.  Check the status of the single inferior
index 3ddc1f7356d43857c639d5919c5358d7ad654ef1..6b05bba205d6dcf6bb69f524c6d4941fb69c674d 100644 (file)
@@ -29,7 +29,7 @@ standard_testfile
 set has_argv0 [gdb_has_argv0]
 
 if { [build_executable ${testfile}.exp ${testfile} ${srcfile}] == -1 } {
-    return -1
+    return
 }
 
 with_test_prefix "file symlink" {
index 2d03a62c5306aaa665a854b726fbbfa1bb026bd3..2911d70afdb3c2d56d5584aed5b0f33af5c27e6c 100644 (file)
@@ -29,7 +29,7 @@
 standard_testfile int-type.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings}]} {
-    return -1
+    return
 }
 
 
index 8f3c0ad03d4eb672c1ce3d66546aed1cffc1fe1b..82f1d29189922cee22cd7913f507f98e12dd0f61 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile ${srcdir}/gdb.base/array-repeat.c
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
        [list debug ${lang}]]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set print array-indexes on"
index d10d441325b5f89de4b5e112da2d1cc16052d6f5..e4c19ac205c351ce50d95198007d2e41a962c38f 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile ${srcdir}/gdb.base/array-repeat.c
 
 if {[prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} \
        [list debug ${lang}]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 163ef2dc5c8d93e27d7c3b467560a82b9175bc75..15f3695d796c1fff156d094da59a1cb20738da0b 100644 (file)
@@ -34,7 +34,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index c9318b9b24876b2d611ed546a6a7c80a16fc65fd..a3b40882f9b81dc337c8639a5c15e16d7631e5fd 100644 (file)
@@ -21,7 +21,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 #
index 7bd8db07ca49beea5104e8969a2a9b8619a6e1ee..61ee8647c9c4660c1363baf366a3079a305b91ca 100644 (file)
@@ -23,7 +23,7 @@ require {istarget *-linux*}
 standard_testfile
 
 if { [build_executable "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 set test_spawn_id [spawn_wait_for_attach $binfile]
index 226ade56f7dcac0ad182e05f9d0b01e7d2f6a5d0..b3a40ca9a7d6c8410c106a0cb6796120b611c25d 100644 (file)
@@ -20,7 +20,7 @@ require can_spawn_for_attach
 standard_testfile
 
 if {[build_executable "failed to build" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 set test_spawn_id [spawn_wait_for_attach $binfile]
index 3a9730d99c7cb490f95acdc589c69369134b21c5..ded09db5d137b516deae420580f0f3968fbb5081 100644 (file)
@@ -23,7 +23,7 @@ require can_spawn_for_attach
 standard_testfile
 
 if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] == -1 } {
-    return -1
+    return
 }
 
 proc do_test {} {
index be10db7e3a1ebf5c60564a656ca2865112434a18..a8002119d962416efa17b8b13f878e5f89f6bbf0 100644 (file)
@@ -26,7 +26,7 @@ set executable $testfile
 
 if {[build_executable_own_libs ${testfile}.exp $executable $srcfile \
         {pie}] == ""} {
-    return -1
+    return
 }
 
 # Program Headers:
@@ -110,7 +110,7 @@ set phdr [read_phdr $binfile "readelf rebuilt with stub_size"]
 set dynamic_vaddr_prelinkno [lindex $phdr 0]
 
 if {![prelink_yes $prelink_args]} {
-    return -1
+    return
 }
 
 set phdr [read_phdr $binfile "readelf with prelink -R"]
index ab613d2543ad551a8566b7911c9d674bf538cd02..54a4b0bffae7016c5ac1f15edbf14a82c060f75a 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile .c
 set executable ${testfile}
 
 if { [prepare_for_testing "failed to prepare" $executable "" [list debug pie]] } {
-    return -1
+    return
 }
 
 set arch ""
index 96292d12818a8baf5bc0effe739bafcef1a5eb78..a3677f2fad9213ee92f77e0dd9f0dda97e352e01 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile
 set executable ${testfile}
 
 if { [prepare_for_testing "failed to prepare" $executable] } {
-    return -1
+    return
 }
 
 # Start the program running and then wait for a bit, to be sure
index f7651abdcfd82b1bd17f98042034f3cf360b38ba..68979b3c9f97e76aefa4a977a0d81860306f2b0b 100644 (file)
@@ -34,7 +34,7 @@ require !use_gdb_stub
 standard_testfile
 
 if {[build_executable "failed to build" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Start the program running, and return its PID, ready for attaching.
index a4e7d72ef94713c52ebed53cb880f5c3a5f899a2..1cb716d7130ec9b0dd56eae2535f028a37f82362 100644 (file)
@@ -30,21 +30,21 @@ remote_exec build "rm -f ${binfile} ${binfile2} ${binfile3}"
 #
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Build the in-system-call test
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } {
     untested "failed to compile in-system-call test"
-    return -1
+    return
 }
 
 # Build the third file, used to check attach when the exec-file has changed.
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile3}" "${binfile3}" executable {debug}] != "" } {
     untested "failed to compile attach exec-file changed test"
-    return -1
+    return
 }
 
 # This is a test of the error cases for gdb's ability to attach to a
index 26434396cc6a428975ae37c3e9609abaef8a9123..4529d68e16c650fe537dd24b23248ddf13ddbe72 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 require have_native_target
index c890117bd95164f9c090b290134a2de685a98a44..0b974d43d6d91a3a2531766a876c680cfa904424 100644 (file)
@@ -25,7 +25,7 @@ set targetscript "${targetscriptdir}/${testfile}-gdb.gdb"
 remote_exec host "rm -rf ${targetdir}"
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 remote_exec host "mkdir -p ${targetscriptdir}"
index ec0172c88bb77ff352807fe760caaacdba8a33ea..79e897078e5df9fa290bf16f7b9c7e8ce121e2dd 100644 (file)
@@ -30,7 +30,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
      && [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
                  {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Use a fresh directory to confine the native core dumps.
index 00e4681b93aa01fcc724b530dfc5d1599219c57b..612dd2ad6a87da6ff8ef5c9b9d031088d76684d3 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index d6d7adf9d8e7840d2f6c288887e543ad5bffddcd..8a341d95fe5638126b7a054642fd749372e79cb0 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile args.c
 
 if {[prepare_for_testing "failed to prepare" ${testfile}! $srcfile \
         {debug nowarnings}]} {
-    return -1
+    return
 }
 
 # Verify that we can run the program and that it terminates normally.
index 6587e71fd7ed6bb4aca645bd3a2dfb63004b42d0..2aae194e11878f37ba58773da1477eb9cefd1358 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 set file_arg $binfile
index 93d108cc14883ad30afba61618dbaaa722b6d6c9..d4e12f78d99e68987c8f586e175e410ec71dfbb9 100644 (file)
@@ -57,7 +57,7 @@ set lib_flags debug
 # Compile shared library:
 if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Open the shared library and determine some basic facts.  The key
@@ -71,7 +71,7 @@ set data [read $solib_fp 4]
 if { ![string equal $data "\x7fELF"] } {
     close $solib_fp
     untested "shared library is not an ELF file"
-    return -1
+    return
 }
 
 # Read EI_CLASS for ELF32 versus ELF64.
@@ -93,7 +93,7 @@ if { [catch {exec $objcopy_program \
                 ${binfile_lib}} output] } {
     untested "failed objcopy dump-section"
     verbose -log "objcopy output: $output"
-    return -1
+    return
 }
 
 # Determine length of .dynstr.  We'll use the length for creating invalid
@@ -144,7 +144,7 @@ if { [catch {exec $objcopy_program \
                 ${binfile_lib}} output] } {
     untested "failed objcopy update-section"
     verbose -log "objcopy output: $output"
-    return -1
+    return
 }
 
 clean_restart
index 43ef98e16da641315611fba5997297a6abe3ab54..44b84b3755dc20a05d23ca1dc20558a04d27dfb2 100644 (file)
@@ -23,7 +23,7 @@ require {!is_remote host}
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Run the test.  Sets a breakpoint with a condition that sends a
index 7567a0fbba55ce9f6fea91e41ddd470f1b426e5a..48d650c02533b94fef2dde7ca8a5f90d866cb8d8 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if { [build_executable "failed to prepare" ${testfile} $srcfile] } {
-    return -1
+    return
 }
 
 set linenum [gdb_get_line_number "set break here"]
index 6f4ace22371a034955f0672249d418735eae0aff..8ec8e00393c7ddba12c5169000a45f375ac392c9 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 #
index 0f86a56db97b1f0e965a00bac4ca4490c00f550e..dac6a32fc9fe1e40e0d202193d0b84dc6b0ac1a3 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile .c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set has_signed_bitfields 1
index 4163c4c32b3d3fc994de8214c8788368de170b42..368507b2409cb222d78c5f2a14c2bbe2a52f3892 100644 (file)
@@ -27,7 +27,7 @@ require {!target_info exists gdb,nointerrupts}
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # See intro.
index 491f1e2609f6681d738ba8da180759142bfe87d9..7204a3736c0925bbbe7a77e90d94825b25f1e042 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 set x_file ${srcdir}/${subdir}/$testfile.gdb
index 698c85c3e4090b49de55ddb3bbee807e0c1f9364..95c2811a3e03d8cd55bef5744d75d02ecb08e4ed 100644 (file)
@@ -22,7 +22,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 set script_file $srcdir/$subdir/$testfile.gdb
index e12016f2fc5ea254854c62f3fcbc7cacbedc5c44..2fa46d5bc09398f35a5f55a69b00e6779dd310be 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 set script_file ${srcdir}/${subdir}/$testfile.gdb
index bde1eab21bd8960c5677187f631a0c1992ef13c8..f6ca85027e4c0040847550f9bda62c204b118258 100644 (file)
@@ -36,7 +36,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
 # 'show breakpoint condition-evaluation' checks below will be
 # performed with the remote connection in place.
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # This test relies on reading address zero triggering a SIGSEGV.
index eb716cac6b5b2d1109c620f775320997969f2ce1..dac54fadef1c2e2d3052e62a6a708d21b541c4c0 100644 (file)
@@ -25,7 +25,7 @@ if { ![target_info exists gdb,nosignals] } {
 }
 
 if {[build_executable "failed to prepare" $testfile $srcfile $options]} {
-    return -1
+    return
 }
 
 set line_bp [gdb_get_line_number "write permanent bp"]
index 03758ebb9427bc9fdccfb0402b8d7cb08261778c..ffd15780d72420293219e89c005b21541359aa50 100644 (file)
@@ -20,7 +20,7 @@ require {!target_info exists gdb,nosignals}
 standard_testfile
 
 if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] == -1 } {
-    return -1
+    return
 }
 
 with_test_prefix "single-step" {
index 050eac05942a7e213634984ba62754c5ae085429..f2eb1a3ba8b9fcf75e13d0f915fe673d17601247 100644 (file)
@@ -18,7 +18,7 @@
 # with duplicated breakpoints.
 
 if { [prepare_for_testing "failed to prepare" break-always break-always.c] } {
-    return -1
+    return
 }
 
 set bar_location [gdb_get_line_number "break in bar" break-always.c]
index 0bdda52caab8b20179b6e1e24d5067b7065aeb19..7fdef95cc607e09d365d1e344f0aa28ee80cd2a8 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 if {![runto callee]} {
index 2b51c822c0c463461a4853671cefa02fb71571c5..2629d99c7ef083496493b713d1e8b9955aa76b2e 100644 (file)
@@ -30,7 +30,7 @@ standard_testfile start.c
 require !use_gdb_stub
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile {additional_flags=-static}] } {
-    return -1
+    return
 }
 
 set test "info files"
index d9b0a6b644138581c11ea1fbc9421735af27d047..5a66dbf1fced006aa9dbe16cb5eebaf96fcba29b 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if { [prepare_for_testing ${testfile}.exp $testfile] } {
-    return -1
+    return
 }
 
 set bp_line [gdb_get_line_number "break here" ${testfile}.c]
index 99f55f64f837827a498b96686c7922b28a7ff117..057dd3b03b912e9f9f74b01a4c854e17a87ea90c 100644 (file)
@@ -15,7 +15,7 @@
 
 
 if { [prepare_for_testing "failed to prepare" "break-inline" {} {debug nowarnings optimize=-O2}] } {
-    return -1
+    return
 }
 
 gdb_breakpoint "main" "temporary"
index 2b9a66d9aa1c34bf251c586d58b9d47bf1ad3b4f..527eece5d86751068f72c42b06fa392aa410e173 100644 (file)
@@ -31,11 +31,11 @@ set srcfile_lib "${test}-lib.c"
 
 if {[build_executable "build library" ${binfile_lib} ${srcfile_lib} \
         {debug shlib}] == -1} {
-    return -1
+    return
 }
 
 if {[build_executable ${test}.exp $binfile_test ${srcfile_test} {}] == -1} {
-    return -1
+    return
 }
 
 # Note: The separate debug info file content build-id/crc32 are not verified
index face6205da777ad1281f7b174912860368a29045..b0a22962bba871c437a8bbf3352d07edf606c0ea 100644 (file)
@@ -21,7 +21,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Run the test proper.  INITIAL_LOAD determines whether the program is
index 780b226a3731aba9778ee534ea94f594b76f48f8..f430c51f946eafa5607bf0f673b559f0c8ce235c 100644 (file)
@@ -31,7 +31,7 @@ if {[build_executable_from_specs $testfile.exp $testfile \
        {c++ ldflags=-Wl,--gc-sections} \
        $srcfile {debug c++ additional_flags=-ffunction-sections}]} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 81ceb99d983693e38a9bb60ede5b2dc1005fb54c..12a3c55b081f5643cdff8d30a014e592779bca5b 100644 (file)
@@ -23,14 +23,14 @@ set binfile_lib [standard_output_file $libname.so]
 
 if { [gdb_compile_shlib $srcfile_lib $binfile_lib {}] != "" } {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 set binfile_lib_target [gdb_download_shlib $binfile_lib]
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          [list debug shlib_load additional_flags=-DSHLIB_NAME=\"$binfile_lib_target\"]] } {
-    return -1
+    return
 }
 
 gdb_locate_shlib $binfile_lib
@@ -57,7 +57,7 @@ gdb_test_multiple "p /x \$pc" "" {
 }
 if { $pc == "" } {
     unsupported "Couldn't get $pc"
-    return -1
+    return
 }
 regsub "0x0*" $pc "" pc
 
@@ -72,7 +72,7 @@ gdb_test_multiple "info probes stap rtld" "" {
 
 if { ! $using_probes } {
     unsupported "probes not present on this system"
-    return -1
+    return
 }
 
 set sysroot ""
index 63e0c9462a15750634bbe5aa1e65be90a72faa9f..1b7e8b0a5b01b432a1c3cd09cb4897f221d0b7bb 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Run the test proper.  INITIAL_LOAD determines whether the program is
index d5f92e469ac998ebcfd05e77feb92fc936ce7d50..2f5fa3d8e59a857d61b94bce0d8830edac182df3 100644 (file)
@@ -16,7 +16,7 @@
 # This file was written by Rob Savoye. (rob@cygnus.com)
 
 if { [build_executable "failed to prepare" "break" {break.c break1.c} {debug nowarnings}] } {
-    return -1
+    return
 }
 set srcfile break.c
 set srcfile1 break1.c
@@ -805,7 +805,7 @@ test_next_with_recursion
 # on targets with optimized prologues
 
 if { [build_executable "failed to prepare" "breako2" {break.c break1.c} {debug nowarnings optimize=-O2}] } {
-    return -1
+    return
 }
 
 proc_with_prefix test_break_optimized_prologue {} {
index 2ab0354ee8c2ed5e26215b3c960df7e54ef3ce24..b7ae91155d4b479cfa25d3a1c20864506c303a62 100644 (file)
@@ -22,11 +22,11 @@ require !gdb_debug_enabled
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Delete all target-supplied memory regions.
@@ -141,7 +141,7 @@ set hw_step [probe_target_hardware_step]
 
 if {![get_function_bounds "main" main_lo main_hi]} {
     # Can't do the following tests if main's bounds are unknown.
-    return -1
+    return
 }
 
 # Manually create a read-only memory region that covers 'main'.
index 9d270e8b148f8e10dd6dee3f8c81463b653bec74..1be637848eb52e9dae2e73b0db1dbf7d976ca2ea 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # We need to start the inferior to place the breakpoints in the memory at all.
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # The default "auto" mode removes all the breakpoints when we stop (and not
index a710b9c5908a48c9f742f23aa8edb57b03aad241..a9a1db344d21b348ae8c631f710f2a83a65ac30a 100644 (file)
 standard_testfile bt-on-fatal-signal.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 # Check we can run to main.  If this works this time then we just
 # assume that it will work later on (when we repeatedly restart GDB).
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Check that the backtrace-on-fatal-signal feature is supported.  If
index ae9463f2369c276a8fd2df37907d5dee2f5f639f..9bf5f09c566f25c91406a43a3e166b43dedc1b89 100644 (file)
@@ -26,13 +26,13 @@ standard_testfile
 require {!is_remote host}
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 # Check we can run to main.  If this works this time then we just
 # assume that it will work later on (when we repeatedly restart GDB).
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Check that the backtrace-on-fatal-signal feature is supported.  If
index f6c34b1a181560b5ca4d15411a6628d7d879cde1..0bd1024e98744a09a01b95bc5d76ba772ff12e78 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
-    return -1
+    return
 }
 
 proc check_selected_frame_after_bt { bt_cmd stack_pattern } {
index 907c4b74cafc287adbc1a8a4b37e0bff3075b2fc..68ac4208f1d8da8734d7d8828153c3fab8fb73b7 100644 (file)
@@ -31,12 +31,12 @@ standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug build-id}] == -1} {
-    return -1
+    return
 }
 
 # Split out BINFILE.debug.  Remove debug from BINFILE.
 if {[gdb_gnu_strip_debug $binfile] != 0} {
-    return -1
+    return
 }
 
 # Get the '.build-id/xx/xxx...xxx' part of the filename.
index f0c0f6e87ecb7aaa9c3bc6305dca4d38836cccfc..70115709e3dd5236c5524795700a355b775a82f8 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile c-linkage-name.c c-linkage-name-2.c
 set sources "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}"
 if { [gdb_compile "${sources}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 19b62a4a3760b97a17a0c15f1cf3c5103ee799cf..ec523b29830532123c330917ed6c5dd91a5332ca 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile
 # Only run on native boards.
 require !use_gdb_stub
 if { [target_info gdb_protocol] == "extended-remote" } {
-    return -1
+    return
 }
 
 # Because we need to modify the source file later, it's better if we
@@ -37,7 +37,7 @@ file copy -force -- $srcdir/$subdir/$srcfile $newsrc
 set srcfile $newsrc
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 # Get the line number for the line with the "break-here" marker.
@@ -79,7 +79,7 @@ sleep 1
 # Recompile the modified source.  We use "gdb_compile" here instead of
 # "prepare_for_testing" because we don't want to call "clean_restart".
 if { [gdb_compile "${srcfile}" "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 # Rerun the program.  This should not only force GDB to reload the
index 9337c2433c9bfed4efead982dbe7ba5fd2a9fc9f..0f8d65d2eaa41c4e9d8ace2c8a83c75419a57d75 100644 (file)
@@ -33,7 +33,7 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/unbuffer_output.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
-    return -1
+    return
 }
 
 
index dff0e95be11d5c824f51ca504a67c5c51ac8ead3..d9d011ed8113449eeea822869827ef7955829704 100644 (file)
@@ -34,7 +34,7 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/unbuffer_output.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set print sevenbit-strings"
index de2f77da19cf636c4fe99a58cb692e1e0e5a0cbb..9f6d526f6a0cf8faf0085254a5aa8180f66cbda0 100644 (file)
@@ -21,11 +21,11 @@ require {!target_info exists gdb,cannot_call_functions}
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "STOP"]
index c446a54021bc16ba75519fdca284191612d5013c..193c02a66253da82890a8de1e95b34d0d4399218 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          {nodebug}] == -1} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "p a_loc ()" \
index cad0cf885328fc88efac9de555444339243985b7..1b4a6b860080141f75d162be1f0a18ffae5b339b 100644 (file)
@@ -28,7 +28,7 @@ standard_testfile foll-fork.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile \
       {additional_flags=-static}] } {
-    return -1
+    return
 }
 
 gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)"
index 1fa567ad3ca70c1050304ecfcb68ce74f9fc050d..21f0e9bc98cc9923f9e4b362e365512c9fd37469 100644 (file)
@@ -33,11 +33,11 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/unbuffer_output.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "handle SIGSEGV nostop noprint" \
index dbf45941f5e74c9299d5f08af7d44e4d997e847c..eac42ba9f0af79583a719fb4a01f03a255485a00 100644 (file)
@@ -18,7 +18,7 @@ require allow_shlib_tests
 standard_testfile .c
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set testfile2 catch-load-so
@@ -27,7 +27,7 @@ set binfile2 [standard_output_file ${testfile2}.so]
 set binfile2_dlopen [shlib_target_file ${testfile2}.so]
 if { [gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" ${binfile2} {debug}] != "" } {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 # Run one set of tests.
index 2ed6929848d42e840aa4b6a39f59a4a12c59ec5d..fd872ecb3186454159251b9258b0a456b3adaf02 100644 (file)
@@ -19,11 +19,11 @@ require allow_fork_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Test "catch signal SIGHUP"
index 0cca484dd574bc73f5c2391bd5f1a2be1cf0589e..dc0e77076df0516cb42958487fb8c9e6f683e5ab 100644 (file)
@@ -32,11 +32,11 @@ require supports_get_siginfo_type
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" "${testfile}" $srcfile {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "set breakpoint here"]
index 7b46d8bbe3871c4ca629f57fa79d2287faa0cf8f..6da1b6aeda79fcf9bcd70de86c2c3ec0d087d9a7 100644 (file)
@@ -18,7 +18,7 @@ require {!target_info exists gdb,nosignals}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 proc test_catch_signal {signame} {
index 31a42e33b5ff3ba0909831f6d8d8b4a37ee1f66d..673fca4a9984ce5475ffc68faa6ca9f178e10bb1 100644 (file)
@@ -795,7 +795,7 @@ proc setup_all_syscalls {} {
 }
 
 if { ![setup_all_syscalls] } {
-    return -1
+    return
 }
 
 # Fill all the syscalls numbers before starting anything.
index f7ee7a76bb7be0d17258a6bde075a080e33814fa..13e874ec9553b35fb26c6a0b0ebcb264d4b8d22c 100644 (file)
@@ -24,7 +24,7 @@
 standard_testfile .c charset-malloc.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} [list $srcfile $srcfile2]] } {
-    return -1
+    return
 }
 
 # Parse the output from a `show charset' command.  Return the host
@@ -158,7 +158,7 @@ gdb_expect {
 # is pointless.
 if {[llength [array names charsets]] < 3} {
     untested "fewer than 3 charsets"
-    return -1
+    return
 }
 
 send_gdb "set target-charset\n"
index b8b44d8f874f4fb52c64025def2f4c44979fb876..c64c5fa313565f090443c9691f03db7a66d0ad03 100644 (file)
@@ -33,7 +33,7 @@ lappend flags additional_flags=-DFAKEARGV
 lappend_include_file flags $srcdir/lib/unbuffer_output.c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile $flags] } {
-    return -1
+    return
 }
 
 # Run to FUNCTION.  If that fails, issue a FAIL and make the caller
index 56f0b2a6ca80ad3b2910c5c16070c53c2db7431b..f647cc5a8491e126be633cf15dbad688bd0c979f 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 set is_pie [exec_is_pie $binfile]
index 7a77224857cb8d84f706d24a9974362d7d40c77d..295f44591ad9f8b7e8d11dc3b786d0b1b703c6ea 100644 (file)
@@ -25,7 +25,7 @@ gdb_start
 
 if { ![readline_is_used] } {
     untested "no tab completion support without readline"
-    return -1
+    return
 }
 
 # Start of tests.
index 4469f0dbbc358d6707dcea77fbf1072427425b43..e7407e75ee096ccbf6dbfa858aeccdca112b0fdf 100644 (file)
@@ -54,7 +54,7 @@ standard_testfile break.c break1.c
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] {debug nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
@@ -165,7 +165,7 @@ gdb_assert {$all_regs eq $completed_regs} "complete 'info registers '"
 # library isn't used.  Check it first.
 
 if { ![readline_is_used] } {
-    return -1
+    return
 }
 
 # The bulk of this test script pre-dates the completion-support
index c010ffee1ca1e7d359bdb3431c458281880ceece..56260996bdb65bf6cdc7d1e182d1ef68b2907925 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index c4be874e37672148a30e70736aab6cd077eae3b9..0d7a83fb667eed007e74abb480a5b373edb39340 100644 (file)
@@ -17,7 +17,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {[runto f2]} {
index b963ae45a750c83a7c6e7e61bbbb3f6aff217248..e2afc3a959390efd05195195ec4617949e0c65fb 100644 (file)
@@ -26,7 +26,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 767d6d181e7c79959f5882064a67ec32f2d5e4b0..32113e3b9501c28d63f4672d79e811752bf7e76e 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index ed76c261dbe5239b2e765df838212353001c2cdd..6a6c9c1d4f8d9779b605fd7f9a1939b837555ff6 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile break.c break1.c
 
 if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile $srcfile2] \
         {debug nowarnings}]} {
-    return -1
+    return
 }
 
 set bp_location1  [gdb_get_line_number "set breakpoint 1 here"]
index 9a10f19c040095dc5006f8efe968563ee7ad42dd..d7efec8f418d2ab510b9df164a8fa5f186bf6b7d 100644 (file)
@@ -21,7 +21,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 71d207c95bf3c8d00eaf5f99758775fcd6f11180..4c657a8f897ccc2f2061bfb46c4a6a27558302ed 100644 (file)
@@ -23,7 +23,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 488677413862150aff6120656083211bcaf596fa..1285c4f1415878d5203890d40b1c2a5f930a6c02 100644 (file)
@@ -37,7 +37,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # DISPLACED indicates whether to use displaced-stepping.
index 1eba93c0f6ade5f224170086dd6c373e73006e1d..d267221e1bfe8bf26768607635d3fbcd74a42ad4 100644 (file)
@@ -26,16 +26,16 @@ standard_testfile "normal.c"
 # This test is Linux x86_64 only.
 if { ![istarget *-*-linux*] } {
     untested "$testfile.exp"
-    return -1
+    return
 }
 require is_x86_64_m64_target gcore_cmd_available
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug build-id}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # First we need to generate a corefile.
@@ -43,7 +43,7 @@ set corefilename "[standard_output_file gcore.test]"
 if { ![gdb_gcore_cmd "$corefilename" "save corefile"] } {
     verbose -log "Could not save corefile"
     untested "$testfile.exp"
-    return -1
+    return
 }
 
 # Determine if GDB dumped the mapping containing the build-id.  This
index e2ce86d48e8aafebca957bcb8b8339ce28090563..6bf26f1643abd9e626095c29103ef293ceab0da2 100644 (file)
@@ -18,15 +18,15 @@ standard_testfile
 # This test is Linux-only.
 if {![istarget *-*-linux*]} {
     untested "coredump-filter.exp"
-    return -1
+    return
 }
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "break-here"]
@@ -184,7 +184,7 @@ set all_anon_corefiles { { "non-Private-Anonymous" "0x7e" \
 set core_supported [gdb_gcore_cmd "$non_private_anon_core" "save a corefile"]
 if { !$core_supported } {
     untested "corefile generation is not supported"
-    return -1
+    return
 }
 
 gdb_test_multiple "info inferiors" "getting inferior pid" {
index 17d7e23f333a894e60e014c717c69cfe27211fb0..bf935a795e7d218b6bdba66e680d28549ea8a3d2 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 
 if {[build_executable $testfile.exp $testfile $srcfile] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Linux core files can encore upto 80 characters for the command and
@@ -136,7 +136,7 @@ for { set i 0 } { $i < 10 } { incr i } {
 
 if { $env_var_name eq "" } {
     unsupported "couldn't find suitable environment variable name"
-    return -1
+    return
 }
 
 # Generate a core file with this environment variable set.
index d766aa69f1bcedb4f135cb142bb4cb5c9babb2fa..7d79b70c41b768f8daa77724e056cab3bced98b5 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 
 if {[build_executable $testfile.exp $testfile $srcfile {debug build-id}] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Load the COREFILE and confirm that GDB auto-loads the executable.
index f6a0a7a1ecad0b91a417655275782e32d5c2f720..31249355353f60b37553a84d26af1201176995fc 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile coremaker.c
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Do not delete coremap.data when calling core_find.  This file is
index 4ad218b3462766d71e1cd078fdcc444c81cf5d54..805e08973f6bdc11aa9a67d849eca1a7b79c0f88 100644 (file)
@@ -35,7 +35,7 @@ standard_testfile coremaker2.c
 
 if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set corefile [core_find $binfile {}]
index e6bae63562b53c48a3ba7ee09c8cfe95a554e1b0..d3c3b46140c5397ae6eda7142bca9f549a7f0bc4 100644 (file)
@@ -88,16 +88,16 @@ gdb_test "ptype struct t_struct" \
 # Test the equivalence between '.' and '->' for struct member references.
 
 if {[gdb_test "ptype v_struct1.v_float_member" "type = float"] < 0} {
-    return -1
+    return
 }
 if {[gdb_test "ptype v_struct1->v_float_member"        "type = float"] < 0} {
-    return -1
+    return
 }
 if {[gdb_test "ptype v_t_struct_p.v_float_member"      "type = float"] < 0} {
-    return -1
+    return
 }
 if {[gdb_test "ptype v_t_struct_p->v_float_member"     "type = float"] < 0} {
-    return -1
+    return
 }
 
 gdb_test "ptype struct link" \
index 567c4292aafbf9ceb6d85f0383b4a682d050c678..3b1b12a9b18605541e2907d6e58794c102f3d03b 100644 (file)
@@ -39,17 +39,17 @@ set libobj2_opts { debug
                   additional_flags=-DGET_VERSION=get_version_2 }
 
 if { [gdb_compile_shlib $libsrc $libobj1 $libobj1_opts ] != "" } {
-    return -1
+    return
 }
 if { [gdb_compile_shlib $libsrc $libobj2 $libobj2_opts ] != "" } {
-    return -1
+    return
 }
 if { [gdb_compile "${srcdir}/${subdir}/${executable}.c" \
                  [standard_output_file ${executable}] \
                  executable \
                  [list debug shlib=${libobj1} shlib=${libobj2}]]
      != ""} {
-    return -1
+    return
 }
 
 clean_restart $executable
@@ -57,7 +57,7 @@ gdb_load_shlib $libobj1
 gdb_load_shlib $libobj2
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set bp_location [gdb_get_line_number "STOP" "ctxobj-f.c"]
index 1385a30632b6b94eba69997c167654b1237432f5..a52ec3f844e708384d70312679a399ca741ff27e 100644 (file)
@@ -18,7 +18,7 @@ standard_testfile
 
 if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
@@ -32,7 +32,7 @@ gdb_test "list" \
 
 gdb_load ${binfile}
 if {! [runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "list" \
@@ -40,7 +40,7 @@ gdb_test "list" \
     "list in main"
 
 if {! [runto "func2"]} {
-    return -1
+    return
 }
 
 gdb_test "list" \
@@ -58,7 +58,7 @@ gdb_test "list -1" \
 gdb_test_no_output "set listsize 3"
 
 if {! [runto_main]} {
-    return -1
+    return
 }
 gdb_test "list" \
     "func1 \\(\\);" \
index 7ed60e3e913a8f3e0aeab3db4ac76c27296dfb34..df05ab554b662770417639d1ea150c7255fe6b4a 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 if {![runto func]} {
-    return -1
+    return
 }
 
 gdb_test "up" ".* main .*"
index 207724af756e5b0efcef860be9b10f6138830dcb..98095c188663d27f4005765442889db8ee916610 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 if {![runto breakpt]} {
-    return -1
+    return
 }
 
 # Issue the "delete mem" command.  This makes GDB ignore the
index 80f6d5a968b1eada3c82cdff0800f6fe04c48d7c..b9377541847edaafb47219a2d50927e800a98a63 100644 (file)
@@ -22,11 +22,11 @@ require !gdb_debug_enabled
 standard_testfile .c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 for { set i 0 } { $i < 4 } { incr i } {
index 1f5f015f5ddbfebe0cfa1c2d613c00afe88b7b45..2038fa992d23fc22e834f1629413d08e74a31048 100644 (file)
@@ -20,11 +20,11 @@ require !gdb_debug_enabled
 standard_testfile .c -2.c
 set srcfiles [list $srcfile $srcfile2]
 if {[prepare_for_testing "failed to prepare" $testfile $srcfiles]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Redirect debug output to file.
index 2c4de8f42f9f0a347708db97e3460791a812432f..66083d2aa7105fcc75077213ddc768037dd058ca 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile decl-before-def-decl.c decl-before-def-def.c
 set sources [list $srcfile $srcfile2]
 
 if {[prepare_for_testing "failed to prepare" $testfile $sources]} {
-    return -1
+    return
 }
 
 # This is required due to PR25764.
index edd3bea3c33bdbf37621e1b4f680615595d4faa6..3046aaf7c5f898b1913f69212e2f8ea905a2129f 100644 (file)
@@ -22,7 +22,7 @@ load_lib completion-support.exp
 standard_testfile .c
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 clean_restart $testfile
index 33aee1d46cf0a15474501c3432b9eec7fadfbb6f..e0e440e455c6bd61e2cf0d5099b0d16d82f7009c 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile break.c break1.c
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $srcfile2] {debug nowarnings}]} {
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
index ea3c639e0dda0456a787e824cc6e3f0af3e6676d..a34dba5845ea9c45d1810d17b695df3cf194ff68 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # A function to test that ALIAS is working as a shortcut of the "delete"
index 300f73cd0c7d5bedecb9e2f7e96eba3548b261d7..17e8987ded18af6a67a48060c1f209f0c4f3dc9f 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index dc0dc25882aad621fd40efe8efe3beba4e641060..66cd2f92d8719f8b2c297dc7a47b1a2da3e1cf4e 100644 (file)
 # can handle our use of line number 0 to mark the end of sequence.
 
 if { [prepare_for_testing "failed to prepare" "disasm-end-cu" {disasm-end-cu-1.c disasm-end-cu-2.c} {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set main_addr [get_hexadecimal_valueof "&main" "0"]
@@ -30,7 +30,7 @@ set dummy_3_addr [get_hexadecimal_valueof "&dummy_3" "0"]
 
 if {$main_addr == 0 || $dummy_3_addr == 0 || $dummy_3_addr <= $main_addr} {
     fail "unable to extract required addresses, or addresses out of order"
-    return -1
+    return
 }
 
 gdb_test_multiple "disassemble /m ${main_addr},${dummy_3_addr}" "disassemble address range with source" {
index 70841ac2723dad88afad567629f34f2577f9f466..c926a02007593dffdf0d5f73fcfed756ecb05e95 100644 (file)
@@ -20,11 +20,11 @@ require is_amd64_regs_target
 standard_testfile .S
 
 if { [prepare_for_testing "failed to prepare" $testfile ${testfile}.S {nodebug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_sequence "disassemble /s main" \
index 358020fed85f33052ee476a8ee777cddb8f28bef..6d0521d3141ac5d0cb94803390bff7cced827e5d 100644 (file)
 
 standard_testfile
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # We have a breakpoint at the current pc (from stopping at main).  Step over
index 1eae678111b5217278a5141862ac5961a3a9a6c5..3acc512de0e0e1220e82ef133a14e467fd5a97a8 100644 (file)
@@ -29,7 +29,7 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug nowarnings}]} {
-    return -1
+    return
 }
 
 # Preserve the old timeout, and set a new one that should be
index 89e38a29d45329a3b8955c97e73034687f791cde..3820b13bfdc7c8dcdbd67431b35402df6abf727b 100644 (file)
@@ -35,7 +35,7 @@ if {[gdb_compile \
       [standard_output_file ${testfile}] \
       executable {debug}] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
index a7d685e5f35f75761763a11b03313e5eabca841e..905ce59af97b993bd249791ea986979d190ff74a 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile break.c break1.c
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $srcfile2] {debug nowarnings}]} {
-    return -1
+    return
 }
 
 # test document command used within user command.
index 6fc9ec99ebcbcd7c216a736f169a2a3f5055d333..b2cc3ddb144c221384d9e501499134b5af1f12d7 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile
 
 if {[build_executable "failed to prepare" \
         ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 set dp_location [gdb_get_line_number "set dprintf here"]
index 4aad0158291b0f3c627548d6be8aff16d2495fee..dd9bfde8f47c9184ae93e09bc7fd0f6115a8f6b6 100644 (file)
@@ -28,7 +28,7 @@ set escapedbinfile [string_to_regexp ${binfile}]
 
 if {[build_executable "failed to prepare for dprintf-detach" \
         ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 proc dprintf_detach_test { breakpoint_always_inserted dprintf_style disconnected_dprintf } {
index 3f149381f4f55105c4c0f74d16997a6736ad48ea..5263d15a83de8494838804a481a8ab5cf79a0bc3 100644 (file)
@@ -25,7 +25,7 @@ require target_can_use_run_cmd
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # This is the name of the GDB script to load.
@@ -47,7 +47,7 @@ save_vars { GDBFLAGS } {
 set test "load and run script with -x"
 if { $res != 0} {
     fail $test
-    return -1
+    return
 }
 
 # The script loaded via -x contains a run command; while running, GDB
index 6ddf949c531da23c033aa1f1420be5acbab6766c..325478fb47174aae8f3c8542fcd74e4f0fba3271 100644 (file)
@@ -21,11 +21,11 @@ set dp_location [gdb_get_line_number "Set dprintf here"]
 
 if {[prepare_for_testing "failed to prepare for dprintf with next" \
         ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "dprintf $dp_location, \"%d\\n\", x" \
index 3807a7b6623fc365dc1fdc9668435b5ea902a09f..89b1c894c04b8fc150efd42a62adb4c5d55b2082 100644 (file)
@@ -18,7 +18,7 @@ set executable ${testfile}
 
 if {[build_executable "failed to prepare for dprintf with non-stop" \
         ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
@@ -27,7 +27,7 @@ save_vars { GDBFLAGS } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "dprintf foo,\"At foo entry\\n\"" "Dprintf .*"
index ec101f2bdc77dce9cf802702cb6eb214d93e9a9f..5b13cfda595a23c5fb95d8ae32be66b7793a042f 100644 (file)
@@ -27,7 +27,7 @@ set exec_opts [list debug shlib=$lib_sl]
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 with_test_prefix "without format" {
index ef1f09443c1ede94d25ebeed3ec41363fe3cb794..9896f2c1924653658fe0b2dfe5988218a731f488 100644 (file)
@@ -20,14 +20,14 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/unbuffer_output.c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile $flags] } {
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 set dp_location1 [gdb_get_line_number "set dprintf 1 here"]
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "dprintf" "Format string required"
index 84be9df6d6efabc2a68a080df8c5cc762153e431..798cca9a6b0a799f9334a33435e96330af8b4ee4 100644 (file)
@@ -94,7 +94,7 @@ remote_exec host "rm -f $filenames"
 
 if {![runto checkpoint1]} {
     untested "couldn't run to checkpoint"
-    return -1
+    return
 }
 
 # Get the endianness for the later use with endianless formats.
index a2c74f51a6cd8fa2c16949791ef278bc86b0b457..ef9ba340ae247f47549ccd9cb63ef9233673e4ab 100644 (file)
@@ -37,7 +37,7 @@ set srcmainfile start.c
 set executable ${testfile}
 
 if {[build_executable ${testfile}.exp $executable [list ${srcfile} ${srcmainfile}] {}] == -1} {
-    return -1
+    return
 }
 
 set test "rename section"
index 959eb7697d93a02d68b48dbaf27fd8ab9cc40337..5fd96928e2e96ef1808f13c8d759d47d7685810c 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if { [build_executable "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 # Setup for the test, create COUNT breakpoints at the function BREAKPT.
index b609e2c199204a69ee11d651f18467dff8731ecf..cbbfefa6912fca9b0cf918b17def9eb4954535ec 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile
 
 # Compile the test executable.
 if {[build_executable "failed to build" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 set custom_signal_handle_re \
index 55cca9362d3837360f7024e692c83fec39fa1530..c6f1d7375c58238f6840c4bc9213252691e219eb 100644 (file)
@@ -54,7 +54,7 @@ if {[istarget "powerpc*"]} {
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         $compile_flags]} {
-    return -1
+    return
 }
 
 set address -1
index bdf54d083f08c2a00015b243adeb47c5ce43100d..5f208644a3668076ffaddea4314d7d506a2ab9a8 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile break.c break1.c
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $srcfile2] {debug nowarnings}]} {
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
index 661a83d5e54379c5647d4bc07ee4717d42a527f7..0da319a824cd91608964a6be8c801e0fc57f908b 100644 (file)
@@ -45,7 +45,7 @@ if { !$test_sso } {
     # The rest of the testcase requires Scalar Storage Order support.
     # This compiler does not support it, so skip the rest.
     unsupported "No scalar storage order support"
-    return -1
+    return
 }
 
 gdb_test "x/x &o.v" "0x04000000"
index 4dac31eb0596a37d606c8571690ffb3aba6efbe5..c8d3672cd87d6d32fdb6c06633e83e77bfd3e94e 100644 (file)
@@ -28,7 +28,7 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/unbuffer_output.c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile $flags] } {
-    return -1
+    return
 }
 remote_exec build "rm -f core"
 
index 9d660fe055760d3594c10a433e018569b2570395..0421ea37d8f72c22446c3c731b15b78bd41473ae 100644 (file)
@@ -35,7 +35,7 @@ lappend opts additional_flags=-DHAVE_BUILTIN_TRAP=[have_builtin_trap]
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index aab68ba073049fd1f3b93083f885244d27e361fd..6942d0265b5b914dd96462fb72351f6d09342dc5 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Check the real contents.
index be1793305dcc25611d18f4325cb9ff029f3899ef..73df0e5650bb06c0cb7b9992864aeb1410cc5b74 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[build_executable ${testfile}.exp $testfile] == -1} {
-    return -1
+    return
 }
 
 set test "eu-strip"
@@ -29,7 +29,7 @@ if {[lindex $status 0] != 0} {
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "p callfunc (func)" " = 2" "infcall"
index ce0e1cfa8738236d8b22cf3737b0f16e648a7cbd..1a6d76cad8d24c0ced764aa45bb9ae4e5d77d4c2 100644 (file)
 standard_testfile int-type.c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set sizeof_int [get_sizeof "int" 4]
index 76a904ad7a4727ce3f0bca77c0b99f801feb4e79..9f986374ebc8edf24c8b76b6ed63a5140c70a8cf 100644 (file)
 standard_testfile
 if { [prepare_for_testing "failed to prepare for examine-backward" \
        ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 proc get_first_mapped_address {} {
index d6ad59172f3e759f174608ab5cef7df42c37229b..c4c6585cf7f89f79019d1175ed469e8bd63c4208 100644 (file)
@@ -31,7 +31,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile] != 0 } {
 # it really has been deleted.
 if { ! [file exists $binfile] } {
     fail "executable does not exist (${binfile})"
-    return -1
+    return
     }
 
 if {![runto_main]} {
index 5f96b7039978359f937a34a173e84466be3a3525..98d38c9ccefa5e55f2c334961e5b2b68846436a6 100644 (file)
@@ -31,13 +31,13 @@ set exec2 [standard_output_file $testfile2]
 if { [gdb_compile [file join $srcdir $subdir $srcfile] $objfile \
          object [list debug]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if { [gdb_compile $objfile $exec1 executable {debug text_segment=0x1000000}] != ""
      || [gdb_compile $objfile $exec2 executable {debug text_segment=0x2000000}] != ""} {
     untested "link failed"
-    return -1
+    return
 }
 
 # First check whether the address of "main" in exec1 is readable in
@@ -45,7 +45,7 @@ if { [gdb_compile $objfile $exec1 executable {debug text_segment=0x1000000}] !=
 
 clean_restart $testfile1
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set addr ""
@@ -59,7 +59,7 @@ gdb_test_multiple "p/x &main" $test {
 
 clean_restart $testfile2
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set cannot_access 0
index f82b62afc985766ecf7aea73f66d069579ac2c07..c448b1e29139dccec2f42f6c8715c3ef67c51a15 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Run to main, and execute BODY in the caller's context, with PREFIX
index 7bbf82db79c4e4c9ccd6ee829c8f69865fc61155..aa2710450b50c105f36d5bbfe770bff4aa494c39 100644 (file)
@@ -26,7 +26,7 @@ require {!target_info exists gdb,nosignals}
 standard_testfile segv.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # Run to main.  But, before, change cwd to get the core into the
@@ -34,7 +34,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
 set_inferior_cwd_to_output_dir
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # Get the inferior's PID for later.
@@ -85,7 +85,7 @@ gdb_test "print \$_exitcode" " = void" \
 standard_testfile normal.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # Checking $_exitsignal and $_exitcode, both should be void before the
@@ -97,7 +97,7 @@ gdb_test "print \$_exitcode" " = void" \
 
 # Run the inferior until the end.
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 gdb_continue_to_end
index cd29d1098f4b82db727c8187210c2508a97db69d..fb670204dcb13764ec0a7cf75a7de7f678c9dd6d 100644 (file)
@@ -34,7 +34,7 @@ standard_testfile
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug $srcfile {debug additional_flags=-DFIRST} \
              $srcfile debug]]} {
-    return -1
+    return
 }
 
 set foo_bp [gdb_get_line_number "Break here"]
index d33c8224a10f1d4c5633da47496758b885971cb5..b68645e8bb646cb9a94aaf4d20f97f10597ea326 100644 (file)
@@ -29,7 +29,7 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
           executable \
           [list debug additional_flags=[quote_for_host -DOUTDIR=\"$outdir/\"]]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set dir2 [standard_output_file dir2.fileio.test]
index 50018b6ae5a57cc0a3b6437631ac8ba3ca606623..0ec92c2686d5239ccd0a6d2041d5f2659163572c 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if { ![readline_is_used] } {
     unsupported "completion doesn't work when readline isn't used."
-    return -1
+    return
 }
 
 
index 3e67b4dd83e1d83ab935ffe7d5611ec24cfa127d..5c75db1680af3fabcfb1cbf858ff031cb2be24d7 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 if {![runto breakpt]} {
-    return -1
+    return
 }
 
 # Basic attempt to read memory from globals.
index ee87380a67064422ffebfc6b659a2924acfe12fb..6b79add3a204719f5806eceb481a4006aae1f158 100644 (file)
@@ -25,7 +25,7 @@ if { [have_fvar_tracking] } {
 }
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
-    return -1
+    return
 }
 
 proc finish_pretty { } {
index f15106f1fd0f281bfb9a8eb33f208b34b9c9fb9f..973f4cf3f742f72a20959a19f575094eb4c0d14b 100644 (file)
@@ -19,7 +19,7 @@ set allow_float_test [allow_float_test]
 
 # re-use the program from the "return2" test.
 if { [prepare_for_testing "failed to prepare" finish return2.c] } {
-    return -1
+    return
 }
 
 proc finish_1 { type } {
index 87e522c0983a7a7c17f4a2b24d1ce6ba5f6d03c2..5777cbc3a31068bfd9ee16e19ad8a4a6640f84dd 100644 (file)
@@ -24,7 +24,7 @@
 
 
 if { [prepare_for_testing "failed to prepare" float float.c] } {
-    return -1
+    return
 }
 
 # Set it up at a breakpoint so we have its registers.
index a02ae20f29c2bfbffac9c519f74c14f868fb2fd4..37aa51364161e9fa54b8471b4126d5fb01b8b7bd 100644 (file)
@@ -27,7 +27,7 @@ proc do_compile { {opts {}} } {
 
 if { [do_compile] != "" && [do_compile {-mfloat128}] != "" } {
     untested "compiler can't handle __float128 type?"
-    return -1
+    return
 }
 
 clean_restart $testfile
index d086fcb9185b317c456ed78514fe7edae4047110..8f6d4f03bafc7afd82c6a3b74f7a6ad1e39ac80c 100644 (file)
@@ -27,7 +27,7 @@ proc do_compile { {opts {}} } {
 
 if { [do_compile] != "" && [do_compile {-mfloat128}] != "" } {
     untested "compiler can't handle _FloatN/_FloatNx types?"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 580a130bc520b9ab697d48e48027923b5822e937..0452d403c62a4bad1620f88d2ea0c6816b4035d2 100644 (file)
@@ -25,7 +25,7 @@ require allow_fork_tests
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 proc setup_gdb {} {
index 671bcf385431348ffb82a39304a067282fcb4af6..0cd16001c3361214210844fc19b7a0eb14be44e5 100644 (file)
@@ -22,7 +22,7 @@ require allow_fork_tests
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Restart GDB and run the inferior to main.  Return 1 on success, 0 on failure.
index 1a387772c4ccb57ca7374bfc60e6cb650bf55f94..d58b64095f7ce5c908bff2a85550104b50a99237 100644 (file)
@@ -28,17 +28,17 @@ set binfile3 vforked-prog
 
 if {[build_executable "compile $binfile" $binfile $srcfile] == -1} {
     untested "failed to compile first test binary"
-    return -1
+    return
 }
 
 if {[build_executable "compile $binfile2" $binfile2 $srcfile2] == -1} {
     untested "failed to compile second test binary"
-    return -1
+    return
 }
 
 if {[build_executable "compile $binfile3" $binfile3 $srcfile3] == -1} {
     untested "failed to compile third test binary"
-    return -1
+    return
 }
 
 # If required, download the program that we exec after vfork to the
index 1bb5d70d714f5df338d3d2f9788e8793fcd23ee4..27b71e7e977279461db2f8959ca79d7c447eb199 100644 (file)
@@ -31,7 +31,7 @@ require !gdb_debug_enabled
 standard_testfile
 
 if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
-    return -1
+    return
 }
 
 # This is the expected output for each of the test combinations
index 403ea46d75e2944bf61bad96cb39260af94e7757..2ebb358c82d50c41e9b89997eaddd77f856cf2bf 100644 (file)
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "set language fortran" {Warning: the current language does not match this frame\.}
index 5ad825c33e2ba5f8fdff90c78daa81849d7e850a..f1ab8b0cc550321e92e346aa9819236e51f4db26 100644 (file)
@@ -26,7 +26,7 @@ lappend flags debug
 lappend_include_file flags $srcdir/lib/attributes.h
 
 if { [build_executable "failed to prepare" $testfile $srcfile $flags] } {
-    return -1
+    return
 }
 
 # Unwind to each function in FRAMES, and compare "info frame" output
index a7e99a4dffd8993d2fd791d8cf767872aed14d58..b3fb5e13d25190fc68c5e0ff8a28de564311b8e5 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 runto_main
index e483b9e9904a94b57c944f98cd41ca8679a71e6e..3d6e098abfdd4310adc121344461528cec449739 100644 (file)
@@ -74,7 +74,7 @@ proc check_unwinder_class { unwinder_class state {testname ""} } {
 }
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 73650052ad9ed6aa7f7b2c9e23dc36847ecba35b..7525ba5085c5e808a0e8e31de90fc1b6628302fd 100644 (file)
@@ -21,7 +21,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 if {![runto setup_done]} {
index 0c545b671678dca5c0372f6002965b3b8f4f099d..8fe8dab13e95586b21e9225f336d4e63d45b71b6 100644 (file)
@@ -46,7 +46,7 @@
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 gdb_test "break ${srcfile}:[gdb_get_line_number "euphonium"]" ".*" \
index 8572eeaf5ab1fa2463e0168bad56c616de84d517..7f46cb56d8588b5c4e7e558376baf253cabfb8ec 100644 (file)
@@ -27,12 +27,12 @@ require {!is_remote host}
 if { [catch {file copy -force ${srcdir}/${subdir}/${srcfile} \
                              [standard_output_file tmp-${srcfile}]}] != 0 } {
     error "Could not create temporary file"
-    return -1
+    return
 }
 
 # Build the test executable using an absolute path.
 if  { [gdb_compile [standard_output_file tmp-${srcfile}] "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 # Unlike most GDB tests, we do not use gdb_reinitialize_dir in this script.
@@ -67,7 +67,7 @@ if { [gdb_breakpoint [standard_output_file tmp-${srcfile}]:${line} {no-message}]
 # Build the test executable using a relative path.
 if  { [gdb_compile [relative_filename [pwd] [build_standard_output_file tmp-${srcfile}]] \
           "${binfile}" executable {debug}] != "" } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index a470c1e2e978fbf4fd2d5a8f35fb7c7464388e1f..053eb9b59f0a5de730375c0bbefe928e56000000 100644 (file)
@@ -21,7 +21,7 @@ require {!is_remote host}
 
 if { [file pathtype $objdir] != "absolute" } {
     untested "objdir $objdir is not absolute"
-    return -1
+    return
 }
 
 with_cwd $srcdir {
@@ -36,7 +36,7 @@ with_cwd $srcdir {
 set result [catch {exec realpath ${srcdir}/${subdir}/${srcfile2}} realsrcfile2]
 if { $result != 0 || $realsrcfile2 == "" } {
     untested "invalid realpath of ${srcfile2}: result $result output $realsrcfile2"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
index 8cc148ded9d360f497485a2038291300758c6e17..0f656d12780763ca1504888243bfaf1a275620f6 100644 (file)
@@ -18,7 +18,7 @@
 # to a function will put gdb into an infinite loop.
 
 if { [prepare_for_testing "failed to prepare" "func-ptr" {func-ptr.c} {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 66c3daac7a91382dd7776ff0365f0e8a424038f4..a36bc2559c045965ec3c293a7694f043a040c21e 100644 (file)
 set testname func-ptrs
 set srcfile ${testname}.c
 if { [prepare_for_testing "failed to prepare" ${testname} ${srcfile}] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 
index 4a2d96e1b3e4d810a5c9a51bbbf2246aeaa1cfdf..fdfdf07b78c6afaae45fbd8b18b334eb5aa9e216 100644 (file)
@@ -28,7 +28,7 @@ if {[support_complex_tests]} {
 set allow_float_test [allow_float_test]
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $compile_flags]} {
-    return -1
+    return
 }
 
 #
index 3dcc4f00d0a6e098b78a98b0a634e204cddd2bed..ad9bd89226df0d1aac2297790ac161c78a9e1353 100644 (file)
@@ -32,7 +32,7 @@ gdb_test_no_output "set args ${pattern}"      \
     "set buffer exceeding arguments"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_gcore_cmd [standard_output_file gcore-buffer-overflow.test] \
index fc57d1604e293e9c65ea7936d9249faecbceac2c..e9a0f2a69e4bd8f9537f7cbb2f821ad453a052d9 100644 (file)
@@ -21,7 +21,7 @@ require can_spawn_for_attach
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug}] == -1} {
-    return -1
+    return
 }
 
 # Read the proc_pid_status page, to find how much memory the given
index 5730f89eadf66970b4246d6dbd569ab09d64c32a..85abc100dff61460077232cac0fcde235fc01d5d 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug pie "ldflags=-Wl,-z,relro"}]} {
-    return -1
+    return
 }
 
 set stripped_binfile ${binfile}.stripped
@@ -30,7 +30,7 @@ set gcorefile ${binfile}.gcore
 set strip_program [transform strip]
 remote_file host delete ${stripped_binfile}
 if {[run_on_host "strip" "$strip_program" "-g -o ${stripped_binfile} $binfile"]} {
-    return -1
+    return
 }
 
 # Workaround PR binutils/10802:
@@ -43,11 +43,11 @@ gdb_load $stripped_binfile
 
 # The binary is stripped of debug info, but not minsyms.
 if {![runto break_here]} {
-    return -1
+    return
 }
 
 if {![gdb_gcore_cmd $gcorefile "save a corefile"]} {
-    return -1
+    return
 }
 
 # Now restart gdb with the unstripped binary and load the corefile.
index fa3cda88c3f415081e76052a1f56bce46d97415f..8306142cc80723dee542c6eebdde5a8bfad150e2 100644 (file)
 standard_testfile
 
 if { [have_fuse_ld_gold] == 0} {
-    return -1
+    return
 }
 
 if {[build_executable "failed to prepare" $testfile $srcfile \
         {debug pie "ldflags=-fuse-ld=gold"}]} {
-    return -1
+    return
 }
 
 set stripped_binfile ${binfile}.stripped
@@ -34,7 +34,7 @@ set gcorefile ${binfile}.gcore
 set strip_program [transform strip]
 remote_file host delete ${stripped_binfile}
 if {[run_on_host "strip" "$strip_program" "-g -o ${stripped_binfile} $binfile"]} {
-    return -1
+    return
 }
 
 # Workaround PR binutils/10802:
@@ -47,11 +47,11 @@ gdb_load $stripped_binfile
 
 # The binary is stripped of debug info, but not minsyms.
 if {![runto break_here]} {
-    return -1
+    return
 }
 
 if {![gdb_gcore_cmd $gcorefile "save a corefile"]} {
-    return -1
+    return
 }
 
 # Now restart gdb with the unstripped binary and load the corefile.
index fa30f50a63c69d7a5bf4e5fb25ee093e16c983d4..aa887b0da14d3fd8ddee6947e42d66b9bdeb8b54 100644 (file)
@@ -21,11 +21,11 @@ require gcore_cmd_available
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "break terminal_func" "Breakpoint .* at .*${srcfile}, line .*" \
index 6fcc8b6526de2ce6b399893b488e5c69c54cf015..4e6f15d5d9f157105a946995530cfaadce7dfa85 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "prepare for test" $testfile $srcfile] == -1} {
-    return -1
+    return
 }
 
 # This test isn't going to work when the board file automatically adds
@@ -28,7 +28,7 @@ if {[prepare_for_testing "prepare for test" $testfile $srcfile] == -1} {
 set index_type [get_index_type $binfile "check debug style"]
 if { $index_type ne "cooked" } {
     unsupported "cannot test without a cooked index"
-    return -1
+    return
 }
 
 
index ca3622d3462b95d44e70347703061897c901b2bd..7c5b43de085552cdb55148597b6a44f211eda8dd 100644 (file)
@@ -26,7 +26,7 @@ standard_testfile
 # failure.
 set options { "additional_flags=-DTIMEOUT=$timeout" debug }
 if { [build_executable ${testfile}.exp ${testfile} $srcfile $options] == -1 } {
-    return -1
+    return
 }
 
 # Return 0 on success, non-zero otherwise.
index 5e0e6e1047bc610f2914c45bb8a66d96f1d9ac8e..2a2ff1a5ada2321d4d7a10f739d7dfff970fb629 100644 (file)
@@ -25,7 +25,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index d27fde87d63e2a9764df9b4611bc9edb7532560f..fb293b986c7d1db70a29f4cc94ecaaf35c83b0d1 100644 (file)
@@ -27,7 +27,7 @@ if { ![test_compiler_info gcc*] } {
 }
 
 if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug}] } {
-    return -1
+    return
 }
 
 
index bbff1d2cea74fa8c5a32fd3e42e1b3a945afc649..6ed23921f23efdd1570cc28b6f42a7b0a1e72219 100644 (file)
@@ -30,7 +30,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug}] } {
-    return -1
+    return
 }
 
 # Disable hardware watchpoints if necessary.
index 1e79c0752dfbceae4a8b1ddf5ae618343ce52c47..a89fe9390ecb173bfd0618c1964ee7b3ea531bee 100644 (file)
@@ -25,7 +25,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 1768b36c8b64eea8acd8d6d9d1d8e6c4f1add897..9522d5f2f39b319ddb472be7742df1e968213013 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 proc test_convenience_variables {} {
index e2addf418c9ffc24b54f97ba25de4aa55221b42e..9bac264fce7cee95e193f86e005412713d5b3093 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[build_executable ${testfile}.exp $testfile]} {
-    return -1
+    return
 }
 
 set pipeline_counter 0
@@ -69,7 +69,7 @@ if {[pipeline "nm -D" \
         [list [transform nm] "-D ${binfile} --format=posix --defined-only"] \
         [list awk "\\{print\\ \\\$1\\}"] \
         [list sort "" "" "${binfile}.dynsyms"]]} {
-    return -1
+    return
 }
 
 # Extract all the text (i.e. function) symbols from the debuginfo.
@@ -80,7 +80,7 @@ if {[pipeline "nm" \
         [list [transform nm] "${binfile} --format=posix --defined-only"] \
         [list awk "\\{if(\\\$2==\"T\"||\\\$2==\"t\"||\\\$2==\"D\")print\\ \\\$1\\}"] \
         [list sort "" "" "${binfile}.funcsyms"]]} {
-    return -1
+    return
 }
 
 # Keep all the function symbols not already in the dynamic symbol
@@ -88,28 +88,28 @@ if {[pipeline "nm" \
 remote_file host delete ${binfile}.keep_symbols
 if {[run_on_host "comm" "comm" "-13 ${binfile}.dynsyms ${binfile}.funcsyms" "" \
         "${binfile}.keep_symbols"]} {
-    return -1
+    return
 }
 
 # GDB specific - we do not have split executable in advance.
 remote_file host delete ${binfile}.strip
 if {[run_on_host "strip" [transform strip] \
         "--strip-all -R .comment -o ${binfile}.strip ${binfile}"]} {
-    return -1
+    return
 }
 
 # Separate full debug info into ${binfile}.debug.
 remote_file host delete ${binfile}.debug
 if {[run_on_host "copydebug" ${objcopy_program} \
         "--only-keep-debug ${binfile} ${binfile}.debug"]} {
-    return -1
+    return
 }
 
 # Copy the full debuginfo, keeping only a minimal set of symbols and
 # removing some unnecessary sections.
 remote_file host delete ${binfile}.mini_debuginfo
 if {[run_on_host "objcopy 1" ${objcopy_program} "-S --remove-section .gdb_index --remove-section .comment --keep-symbols=${binfile}.keep_symbols ${binfile}.debug ${binfile}.mini_debuginfo"]} {
-    return -1
+    return
 }
 
 # Add the .gnu_debuglink section to the .gnu_debugdata file.
@@ -119,18 +119,18 @@ if {[run_on_host "objcopy 1" ${objcopy_program} "-S --remove-section .gdb_index
 # is not present in usual MiniDebugInfo sections.
 if {[run_on_host "addlink" ${objcopy_program} \
         "--add-gnu-debuglink=${binfile}.debug ${binfile}.mini_debuginfo ${binfile}.mini_debuginfo-debuglink"]} {
-    return -1
+    return
 }
 
 # Inject the compressed data into the .gnu_debugdata section of the
 # original binary.
 remote_file host delete ${binfile}.mini_debuginfo-debuglink.xz
 if {[run_on_host "xz" "xz" "-k ${binfile}.mini_debuginfo-debuglink"]} {
-    return -1
+    return
 }
 remote_file host delete ${binfile}.test
 if {[run_on_host "objcopy 2" ${objcopy_program} "--add-section .gnu_debugdata=${binfile}.mini_debuginfo-debuglink.xz ${binfile}.strip ${binfile}.test"]} {
-    return -1
+    return
 }
 
 clean_restart "$testfile.strip"
index c1616fd32750fc751b983052b2f3d0338cefaaca..b92d82c3428c9e03a0aa571834f09993f8aa231e 100644 (file)
@@ -43,7 +43,7 @@ if { [do_compile {-mcpu=native}] != ""
 clean_restart $testfile
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # Get endianess for the scalar->vector casts
index 4297b5b4efacc7d72bc7c05c40035630c0e288c9..bc524215d50b6b173166a10d06877654728c06a9 100644 (file)
@@ -19,7 +19,7 @@ require can_spawn_for_attach
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug}] == -1} {
-    return -1
+    return
 }
 
 set command "$binfile"
index 9e4b73654580adbf243ebe2145b91e8312e24f13..238f90f8c9df07d8a37a0a9d6f0e5ee2404bdf71 100644 (file)
@@ -34,7 +34,7 @@ close $fd
 set compile_name [relative_filename $objdir $new_srcfile]
 if { [gdb_compile $compile_name "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 4881f33d8373fb096dcb6cdb3aef8cb09da9ac59..400c0cfcf8acfaf445d22dad51c1b195953ed1a7 100644 (file)
@@ -31,7 +31,7 @@ close $fd
 
 if { [gdb_compile $new_srcfile "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 08c9184526a66c284f627f8635fd6d187dcbad9f..e5c44041937f55d35be1ec9e38c9006aac3be027 100644 (file)
@@ -32,7 +32,7 @@ close $fd
 
 if { [gdb_compile $new_srcfile "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index c4e6a9282d2c532144309dc76880b6898a4d6597..9a0d8453698207cbabfe7ddfe961e40647d5dddc 100644 (file)
@@ -39,7 +39,7 @@ if { [prepare_for_testing "prepare" $testfile $main_src $exec_opts] != 0 } {
 gdb_load_shlib $lib_so
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Get main breakpoint out of the way.
index 43e62f4a1f71649f273ddcecfa3c2cac22ddad35..f8bfcdaafdf2fb69b49da334d1d51ad491c79110 100644 (file)
@@ -18,11 +18,11 @@ require allow_hw_breakpoint_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # If we can read the memory at address 0, skip the test.
index 87a4f40defe4a913ba749573ff4d4d5e362a08c2..09947f7c7248f0a2c31f55ef2d5e3f5286bf5095 100644 (file)
@@ -18,11 +18,11 @@ require allow_hw_breakpoint_tests
 set test hbreak
 set srcfile ${test}.c
 if { [prepare_for_testing "failed to prepare" ${test} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set breakline [gdb_get_line_number "break-at-exit"]
index 4d18a4f0cee16a1358b63d4bca18bdca25f1d30f..f090aeefee9c56d2514d6a831082168f310e822d 100644 (file)
@@ -20,7 +20,7 @@
 
 
 if { [prepare_for_testing "failed to prepare" "hbreak2" {break.c break1.c} {debug nowarnings}] } {
-    return -1
+    return
 }
 set srcfile break.c
 set srcfile1 break1.c
@@ -517,7 +517,7 @@ test_next_with_recursion
 # on targets with optimized prologues.
 
 if { [prepare_for_testing "failed to prepare" "hbreak2o2" {break.c break1.c} {debug nowarnings optimize=-O2}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 58684fb5d4314647a79239619abab284e3eff0aa..ab51e0d1519b9114c130193365d3e91f3afb637d 100644 (file)
@@ -57,7 +57,7 @@ gdb_start
 # These tests require readline support.
 if { ![readline_is_used] } {
     unsupported "readline isn't used."
-    return -1
+    return
 }
 
 # By default the option is set to 0.
index 70cef1be92d74b86661e8db81632bdb32bf68621..de2fd14c703583627a322e4da97c5b135a442b88 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if { [build_executable ${testfile}.exp "${testfile}" $srcfile {debug nowarnings}] } {
-    return -1
+    return
 }
 
 # Define the hook-stop that runs COMMANDS.
index 3fdb5d16fb2a384c37c8a072ab940a1bd64d33b2..08d894e8f424459b14be062df522a72639bed1a6 100644 (file)
@@ -23,11 +23,11 @@ require allow_hw_breakpoint_tests
 set test hbreak
 set srcfile ${test}.c
 if { [prepare_for_testing "failed to prepare" ${test} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 delete_breakpoints
index a3972675f7de70fa4e3f3c6cdc60d424ce4d4a18..b78dd51cd62af369555f654edfde2497e13ac0fa 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile .c main.c
 
 if { [build_executable "failed to prepare" $testfile $srcfile {debug}] } {
-    return -1
+    return
 }
 
 clean_restart
index 0b5dd2a1ed2378e66b7b0dfceea0ba54ce67d83e..23bfd96c8404fccd0affdf3bf6104fa0ef225191 100644 (file)
@@ -19,7 +19,7 @@ if { [is_remote host] } {
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set listsize 1"
index 6b8bd605c09050146d82e627eee961f99d0c7141..1b47c6f5d6f95cf215c88b24d430ddcd3c6c25c4 100644 (file)
@@ -24,11 +24,11 @@ set binfile2 [standard_output_file $testfile2]
 
 # Build the two executables for the test.
 if {[build_executable "build exec'd file" $testfile2 $srcfile2] != 0} {
-    return -1
+    return
 }
 
 if {[prepare_for_testing "prepare" $testfile $srcfile] != 0} {
-    return -1
+    return
 }
 
 if { [is_remote target] } {
@@ -36,7 +36,7 @@ if { [is_remote target] } {
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set linenr [gdb_get_line_number "break here"]
index c60e65bb4c5216cee545419052af49f2ec141fe4..a0b6ab28df3a1564f1696617aee2092bb210c4f1 100644 (file)
@@ -21,11 +21,11 @@ standard_testfile
 require {!target_info exists gdb,cannot_call_functions}
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Run an infcall that takes a little bit to complete.
index a5006b363f5ac1b8b29a61a4c4dc060d3b8ab6a8..34434c82c20a35aee886725de6094990af769720 100644 (file)
@@ -20,7 +20,7 @@ require support_displaced_stepping
 standard_testfile .c
 
 if { [build_executable "failed to build" ${testfile} ${testfile}.c] } {
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 18a0d235525d7e265dbc5a722ac92f24ee815121..6d635f268779abe09c632808a55c039baef6a5eb 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 runto_main
index 674e48e3ee92ee473ba184a9723da58509d7914e..a1fffc51ea2b7c48a3a97336dab7693a29dd732d 100644 (file)
@@ -29,7 +29,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 0b1e4a9ffdb60ddcdd4bcef883e17164fa93e1ad..1c2fcfb2664135b89b43348881304dd3f8ee31f5 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile .c
 require !using_fission
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug macros}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Test various error messages.
index 632fa314cde818249e1d00f39f3befaf85a9568a..0f14202ca0eab8077c53d0c8a3582e06ebd2da8b 100644 (file)
@@ -18,7 +18,7 @@ standard_testfile .c
 # This test is Linux-only.
 if {![istarget *-*-linux*]} {
     unsupported "info-os.exp"
-    return -1
+    return
 }
 
 # Support for XML-output is needed to run this test.
@@ -26,11 +26,11 @@ require allow_xml_test
 
 # Compile test program.
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Get PID of test program.
index 1210bcb9af1e5bcb65454ec7c02c7e1a0311829b..f1b435e249f369c3fafdadf0385edbdb934fc0cf 100644 (file)
@@ -60,7 +60,7 @@ if { ! [use_gdb_stub] } {
 gdb_test "set environment GDB_INFO_PROC_ENVIRON_2 TWO"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "info proc" "process ${decimal}.*" "info proc with process"
index e792b4f982109ce0c276a3b25637b25af81cd265..41a47a30d7d6f53fca650095ae36318077b92f7c 100644 (file)
@@ -27,12 +27,12 @@ set binfile_lib2 [standard_output_file $lib2name.so]
 
 if { [gdb_compile_shlib $srcfile_lib1 $binfile_lib1 {}] != "" } {
     untested "failed to compile shared library 1"
-    return -1
+    return
 }
 
 if { [gdb_compile_shlib $srcfile_lib2 $binfile_lib2 {}] != "" } {
     untested "failed to compile shared library 2"
-    return -1
+    return
 }
 
 set binfile_lib1_target [gdb_download_shlib $binfile_lib1]
@@ -44,7 +44,7 @@ set define1 -DSHLIB1_NAME=\"$binfile_lib1_target\"
 set cflags "$define1 $define2"
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          [list additional_flags=$cflags shlib_load]] } {
-    return -1
+    return
 }
 
 gdb_locate_shlib $binfile_lib1
index 3427f175dd0e05de7fe6cc1486df4524c8a08247..91c89cbc4f8fff36b11fda506ddea230a4fc9cf0 100644 (file)
@@ -17,7 +17,7 @@
 standard_testfile start.c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 set eol "\r\n"
index 4b3abcf04fcbb199da5fe9e6f34c01ee7e738acf..a112a30092f211b16445b2d2d51df7d518c4d3ab 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile info-var-f1.c info-var-f2.c
 
 if {[prepare_for_testing "failed to prepare" \
         "${testfile}" "$srcfile $srcfile2" "debug"]} {
-    return -1
+    return
 }
 
 # Note: we do not run to main, as otherwise, the output of info variables
index d99b1ada0ae9b4aa5527c9c8c86b310dc54f42cd..43e3fd14eb0efcad1cd0e370c7f2088d7030ff33 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile info_minsym.c
 
 # Compile the program without debugging information, to have minimal symbols.
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c}]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "info variables -q -t int minsym" \
index 471f122358851e2fa093b12f5df7c02981b0d5c0..40cd9547bae8f626c89377e212eb2bbac286b43a 100644 (file)
@@ -24,7 +24,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 if {![runto setup_done]} {
index ddf6e254a5b9cbccadb1660ae682490078c20df9..e661b0fc49ff9b9e8fe6f067c39a3ec8de7d0b17 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile .c info_sources_base.c
 if {[prepare_for_testing $testfile.exp $testfile \
         [list $srcfile $srcfile2] debug]} {
     untested $testfile.exp
-    return -1
+    return
 }
 
 # Executes "info sources ARGS".
@@ -69,7 +69,7 @@ proc test_info_sources {args expect_seen_info_sources \
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # List both files with no regexp:
index 8af48eeb3c49881c7876f1bdcfbeab45ea4ebf75..3c8df2edc9d6316529eaad6abb475334cedd2a5d 100644 (file)
@@ -37,7 +37,7 @@ set solib_name [gdb_load_shlib $solib_name]
 
 if {![runto foo]} {
     untested "failed to run to function foo"
-    return -1
+    return
 }
 
 # Invoke 'info sources EXTRA_ARGS' and extract the results.
index 02fc1dd89b0cf86eeb75523c64407ca1d16d9b96..85bbe06c15fbc924fd8b78a6968c404147beb57c 100644 (file)
@@ -38,7 +38,7 @@ if { [gdb_can_simple_compile ld-flags {int main () { return 0; }} executable \
 
 if {[build_executable $testfile.exp $testfile $srcfile $opts] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 111e96e6560361f91413140cb795222d1dad9f3f..3795f741cbcc3ff309e0e5495724729197a9f28a 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 # Verify that the "info line" command does not skip function prologues.
index fd9cba78f9ab5c0cc402db121088a4cd656e75cd..4bda78dd27d658d253fd34166c3a6d28ed8e63a1 100644 (file)
@@ -54,7 +54,7 @@ standard_testfile
 require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index b47e717b0f736dcde0790ac4231e98d592d0d0e9..d19d0e3ceca65d6823a845f0f802d40d871dc2c0 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile {debug}] } {
-    return -1
+    return
 }
 
 # Do not use gdb_test for this test, since it has two prompts.
index fa5f5a281ab81db07592da7dc04cbe03459bb96d..4599aa5eb5a1f416d146f878dbc407ed7cafc4b9 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile .c
 set executable ${testfile}
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_multiple "continue &" "" {
index d8411593e3068ce6ad782e3c2cf0d72950ee2fb1..d6b241ea57a6d27285b32734dd400de7eeda0259 100644 (file)
@@ -23,7 +23,7 @@ require can_spawn_for_attach
 standard_testfile
 
 if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] == -1 } {
-    return -1
+    return
 }
 
 proc do_test {} {
index 7b6276556c2bc199053f3626479144a94276bb77..fd9f2f8eefb807613eb1bc4ec1cd194925894e0e 100644 (file)
@@ -21,7 +21,7 @@ require allow_fork_tests
 standard_testfile
 
 if {[build_executable "failed to build" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 # The test proper.
index f4252cc90a7279a7b86b879d17e1d9c886b4c674..afdb317964f09d8fb64f472b21c46ff072fd112c 100644 (file)
@@ -17,14 +17,14 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare for testing" \
         ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 # Pretend there's no terminal.
 gdb_test_no_output "set interactive-mode off"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Delete breakpoints so that the next resume is a plain continue,
index 9d1264843a8f1f3f18ed166480a5392772c854f3..44a27434bc2baa150af37984d3a6f64da4ffa8ba 100644 (file)
@@ -29,7 +29,7 @@ if { ! [target_info exists gdb,nosignals] } {
 
 if {[build_executable $testfile.exp $testfile $srcfile $options] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 gdb_start
index 4c1e854f1c3476e631cc9448674769d16dc836b5..c47535c791454e421c466297e3c26bf9215e1212 100644 (file)
@@ -20,7 +20,7 @@ set executable ${testfile}
 
 if { [build_executable ${testfile}.exp $executable $srcfile \
                          [list debug pthreads pie]] } {
-    return -1
+    return
 }
 
 # Start the program running and then wait for a bit, to be sure
index c97009857220899fe3a597a6efa056782ec6c6a6..445e2b053fd2e12e1c6089e3ae4726ca2e4a8dea 100644 (file)
@@ -81,7 +81,7 @@ set options [list debug shlib=${binfile_lib}]
 if {[gdb_compile ${srcdir}/${subdir}/${srcfile_dl} $binfile_dl executable \
         $options] == -1 } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Build the program that loads *two* JIT libraries.
@@ -90,7 +90,7 @@ set options [list debug shlib=${binfile_lib} shlib=${binfile_lib2}]
 if {[gdb_compile ${srcdir}/${subdir}/${srcfile_dl} $binfile_dl2 executable \
         $options] == -1 } {
     untested "failed to compile two-jitter binary"
-    return -1
+    return
 }
 
 # STANDALONE is true when the JIT reader is included directly in the
index 26656549e31ab016ec10f4b2670ced9755a954b7..e9b3f2672ae955bece173c8290077634989810c8 100644 (file)
@@ -37,7 +37,7 @@ set jit_reader_flag "-DJIT_READER_H=\"$jit_reader_header\""
 if  { [gdb_compile "${srcdir}/${subdir}/${jit_host_src}" "${jit_host_bin}" \
        executable  [list debug additional_flags=$jit_reader_flag]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set jit_reader jit-reader
@@ -47,7 +47,7 @@ set jit_reader_bin [standard_output_file ${jit_reader}.so]
 if { [gdb_compile_shlib "${srcdir}/${subdir}/${jit_reader_src}" "${jit_reader_bin}" \
          [list debug additional_flags=$jit_reader_flag]] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Test "info registers" in the current frame, expecting RSP's value to
index 07853ffcb82f6dc86839007a4d6a343ee29f4e96..15bc6fa70d7ad3565dce2359d6cb5652dceb39f3 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "inline-funct"]
index 15900520214cb1714b8ec2fee976cded3e4204c9..3139b081aa255b219ea2e5d68633d689bbfd9672 100644 (file)
@@ -19,7 +19,7 @@ clear_xfail "*-*-*"
 standard_testfile .c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 # General testing of the 'jump' command.  GDB is already started.
@@ -99,7 +99,7 @@ if {![use_gdb_stub]} {
 
 # Run to main, add inferiors if needed.
 if {![runto_main]} {
-    return -1
+    return
 }
 for {set inf 2} {$inf <= $num_inferiors} {incr inf} {
     # Start a new inferior, and run it with the same executable.
index 5345f256118ef80e6ecf93f6a2ac9aa8b635d20d..ddc34b6ff3b5f1f4322ffb5305d0d4b3180bddac 100755 (executable)
@@ -22,11 +22,11 @@ standard_testfile .c -foo.c .h
 
 if { [prepare_for_testing "failed to prepare" $testfile \
       [list ${srcfile} ${srcfile2}]] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 
index 58f9c395bb96700f09257394b9bd7e10f188898a..f55aa8b81f3c48ca7096b5e2fb2f3c3413c421d2 100644 (file)
@@ -20,13 +20,13 @@ require can_single_step_to_signal_handler
 require {!target_info exists gdb,nosignals}
 
 if {[prepare_for_testing "failed to prepare" ${testfile}]} {
-    return -1
+    return
 }
 
 gdb_test "handle SIGUSR1 stop print pass" "SIGUSR1\[ \t\]+Yes\[ \t\]+Yes\[ \t\]+Yes\[ \t\]+.*"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "continue" "Program received signal SIGUSR1, .*"
index 80fd913ddab4f5dc41e6ac6bb15baf296a66e391..ec086b785f14c66add242803f1226fd739436365 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 set executable $testfile
 
 if {[prepare_for_testing "failed to prepare" $executable]} {
-    return -1
+    return
 }
 
 runto_main
index 20a4f3481c4279a37d91362c0b405e497441e0b9..f5e3a902211223e7896e200648f76e8002b8dd54 100644 (file)
@@ -44,7 +44,7 @@ lappend flags debug
 lappend flags additional_flags=-DBINFILE=$binfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile $flags] == -1} {
-    return -1
+    return
 }
 
 set checkpoint_line [gdb_get_line_number "Checkpoint here"]
index e48137d4bd43594957c7f883379b2960c4e816d1..5fb818ec076b99060951fa42f903371d42f10d49 100644 (file)
@@ -80,7 +80,7 @@ proc test {cmds_after_kill} {
 }
 
 if {[build_executable "failed to prepare" $testfile $srcfile] == -1} {
-    return -1
+    return
 }
 
 # The actual output GDB prints in response to commands after the
index dbd590362d22306371e96dd39312def813c4ea81..7796de94c078907eadc7b2dc447ab771a4b88a44 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
@@ -35,7 +35,7 @@ gdb_test_multiple "l main:L1" "" {
 }
 
 if { ! $supported } {
-    return -1
+    return
 }
 
 gdb_test "break main:L1" "Location main:L1 not available"
index da4a369caf6ae19324eafd19a9b0483b58d50992..418841961c8d2ccddad92daf0be1d10e75fe5e40 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" $testfile ${srcfile} debug] } {
-    return -1
+    return
 }
 
 
index 8bfe377c60cec6dd95ef0f0d62bbe83124fd72dc..5705446f258028af10fc2c8ff1074a470375531f 100644 (file)
@@ -24,7 +24,7 @@ if {[is_remote host]} {
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $srcfile2 $srcfile3] {debug}]} {
-    return -1
+    return
 }
 
 set oldtimeout $timeout
index 2f70dba5624633f26874ca7c34d06b83a0df1ce9..6351f5ffa7c3de84f3bcb872957c66b4caf7a2b4 100644 (file)
 set testfile ldbl_e308
 set srcfile ${testfile}.c
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set variable ldbl_308 = 1.6e+308l"
index 8a55dd2540b46219da32f3583fad56d071f20209..e5f894cd2c57fde4b5ebc07e4c994fa2c47759c6 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 856d00de99c9e14cc03f734f990ec5f62ef538ba..02265a5dfc898f76469731ac256b1524811c98db 100644 (file)
@@ -21,11 +21,11 @@ if { [is_remote host] } {
 }
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # PR 17559: gdb_disassembly was using the wrong symtab lookup function.
index c01d9bc1526cab4fdcd33772419f1393f4b08a41..b62355b8a6080351aa2b4f70f7133ff0107773df 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 gdb_test "break $srcfile:65535" \
index 00e5e114978bf73e7b2305a5dfe53f9f218d10e0..45bc479c1c4ca1a34f0c306e571e3dd01d4bedd4 100644 (file)
@@ -24,7 +24,7 @@ setenv EDITOR true
 
 if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile $srcfile2] \
         {debug}]} {
-    return -1
+    return
 }
 
 # Build source listing pattern based on an inclusive line range.
index 4ed3856904c06f3b7cbaff7fa5ed328f357556d7..d332d41b2d73629ffdedecd96879c47d26f578bb 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile list-ambiguous0.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 set fill "${decimal}\\s+\[^\n\r\]+"
index ac053a6b3ba84a392f107ce7a0f207d35ae73837..fb78c85ffb08c666b65d3f6288092b5063c37569 100644 (file)
@@ -36,7 +36,7 @@ set options "debug"
 if  { [gdb_compile "${srcfile}" "${binfile}" \
           executable $options] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Now delete the source file.
index e0ba56db4855709f52eb9e3984fe9e3e6ebcf102..53c31ca08916f898d0618d25e3a91cba10bbb6b4 100644 (file)
@@ -23,7 +23,7 @@ if { [prepare_for_testing_full "failed to prepare" \
               $testfile {} \
               $srcfile {nodebug} \
               $srcfile2 {debug}]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 71419acfcf7ec073c6afe936734d11c95d814e19..77161305e04dfbee3639fc999bea02fa6b5cbc3d 100644 (file)
@@ -23,7 +23,7 @@ gdb_remote_download host ${srcdir}/${subdir}/list0.h
 
 if {[build_executable "failed to prepare" $testfile [list $srcfile $srcfile2] \
         {debug}]} {
-    return -1
+    return
 }
 
 # The last line in the file.
index f20de4d07fd4086d3c1ffdaef1a023aacee2a386..0329b33137de32f684240f7e897d3ea3a74952d0 100644 (file)
@@ -28,11 +28,11 @@ if {[gdb_protocol_is_native]} {
 set opts {debug nopie}
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Manually change the value of the_variable.
index 70fe78486183d327ba93461c012b645584eb728f..f2de534ec208bfe4d95af8c58c55f34a09822736 100644 (file)
@@ -33,7 +33,7 @@ require {!target_info exists gdb,noinferiorio}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile {} {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index a21c6515752450a239c22f7a82aab59b94be7057..42bec222ed6e174a80e4299f6cc397283d3fc1c8 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile {debug quiet}] } {
-    return -1
+    return
 }
 
 # 64-bit array size should not overflow
index 26ca0ce578d1b1e4b6a8c2bf32054307cf5920d5..44debe1e7f87de22850b721d986d1dff9c379cd6 100644 (file)
@@ -26,7 +26,7 @@ if  {[gdb_compile "${srcdir}/${subdir}/macscp1.c" "${objfile}" \
          object $options] != ""
      || [gdb_compile "${objfile}" "${binfile}" executable $options] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 1ae8a44a64e476242e960567c814e600602bb8d0..46e80b0567962e7184bab02f759632c2a773b783 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile main.c
 require !readnow
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 require {string eq [have_index $binfile] ""}
index 96c2575bd9b991d2c9e279845bfcdb97c434e8d1..55ab4c7e1da8472a8bdb776561b15d09e61126e9 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile .c
 
 if {[build_executable "failed to prepare" $testfile \
         $srcfile {debug nowarnings}]} {
-    return -1
+    return
 }
 clean_restart
 
@@ -32,7 +32,7 @@ gdb_load ${binfile}
 set test "verify no symtabs are expanded"
 if { [readnow] } {
     unsupported $test
-    return -1
+    return
 }
 gdb_test_no_output "maint info symtabs" $test
 
index e672e0b67bf43df72797d6ca8b7127c4788f68df..b123162d6e5b0415e4bd5182b9da847e85dde078 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
          {debug nopie}]} {
-    return -1
+    return
 }
 
 if {![runto normal_func]} {
index 65a761c6cb98d14232a253c941b3fb46d90f9041..ac712137cc639eacbb92c39aa7da84e3cc5ed4a4 100644 (file)
@@ -22,11 +22,11 @@ standard_testfile break.c break1.c
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] {debug nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Check the output of 'maint info target-sections' command.
index 18f9a6b3a166ec7055adae741355ab27c7c8aef2..9d857c8b45a7b9a5edbb4d90e8fce91730a13f0f 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         $srcfile {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint foo
index 87216181382f7edc9b850bd25b72b667c6c171aa..0099eb672dcbd4c2152018743df54d7fcc3a75cc 100644 (file)
@@ -47,7 +47,7 @@ standard_testfile break.c break1.c
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] {debug nowarnings}]} {
-    return -1
+    return
 }
 
 # Check "maint set per-command" warnings.  We do this early so that
index eb2736a9564b35dadef24ea57f0d27a68e707aae..edb61c2d7f488ff6327b0efceea08da87f29ce92 100644 (file)
@@ -67,7 +67,7 @@ set filename [prepare_test_source_file 250]
 standard_testfile $filename
 if {[prepare_for_testing "failed to prepare" "$testfile" $srcfile \
         { debug }]} {
-    return -1
+    return
 }
 
 # Start the test.
index 72a9e07a3e5568aa3c3ff0b91cb520d471216187..6b13db61e7407ee95b3c6c1206f3ea682814bc01 100644 (file)
@@ -27,7 +27,7 @@ if { [target_info gdb_protocol] != "" } {
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Generate core file.
@@ -49,7 +49,7 @@ catch {
 } msg
 if { "$msg" != "" } {
     untested "Can't set stack limit"
-    return -1
+    return
 }
 
 set cmd \
index f10e39d5106584d7616b695e989ed08463fc365e..ba5266401ee87e4be110298922d0d626fb3fb85b 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index e333f37c668bd5f8e0b07dca13ef8765e8cfbec7..a399111cd34fd3870e77bc23f7102b2516427b82 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 runto_main
index faa4f6e1c4a05b3930f5f3c26093397d614db88b..17c14fdee06575f552c92dc09481dd26e8353c8d 100644 (file)
@@ -21,12 +21,12 @@ standard_testfile
 set options "-fno-builtin-memset -fno-builtin-memcpy -fno-builtin-memmove"
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
          [list debug additional_flags=$options]] } {
-    return -1
+    return
 }
 
 set linespec ${srcfile}:[gdb_get_line_number "Break here"]
 if {![runto ${linespec}]} {
-    return -1
+    return
 }
 
 gdb_test "watch -location a\[28\]" \
index 0e032bb61fd96ea18d06fe9ff1a29d3819a8cb91..f630615ebac2b0a759309fdb4cf2fdeee155187d 100644 (file)
@@ -19,7 +19,7 @@ set u_msg "Memory tagging not supported or disabled by the current architecture\
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 if {[target_info gdb_protocol] == "extended-remote"} {
@@ -40,14 +40,14 @@ with_test_prefix "before program execution" {
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Targets that don't support memory tagging should not execute the
 # runtime memory tagging tests.
 if {![supports_memtag]} {
     unsupported "memory tagging unsupported"
-    return -1
+    return
 }
 
 # With the program running, try to use the memory tagging commands.
index 411457a8f76586fc7a8122698b40164e5bdc3b90..4000a06d51a65999e6e0169ae0ceecce3cffa283 100644 (file)
@@ -24,7 +24,7 @@ if {[test_compiler_info gcc-*-*]} {
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} {
-    return -1
+    return
 }
 
 if {[runto middle]} {
index 979500a4370c43f2f8c762c65ed2cbe38eac8e51..9b5ad1456598a9f3af372b6ce9e8c7473dd8a1c8 100644 (file)
@@ -22,11 +22,11 @@ standard_testfile
 set opts "additional_flags=-fsplit-stack"
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile \
          [list $opts]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "marker_hit"
index 15e40105110e0b7d75b663075add4521f58305e2..d0beddea417592b451127ca767b7b4ec76de77a7 100644 (file)
@@ -17,7 +17,7 @@ standard_testfile msym-lang-main.c msym-lang.c
 
 if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile $srcfile2] \
         {c++}]} {
-    return -1
+    return
 }
 
 gdb_test "info func foo" ".* foo\\(\\).* foo\\(\\).*"
index f20d7df1613a950d03664229e3100b6ecf57058d..6701aba3eacf3717348f9f497dd0446c54ad533e 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" "${testfile}" "${srcfile}"]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "BREAK"]
index 22ecb8f1f21c2b4b9ff8ba1363995a31a7dc65fc..ed783aa0e7d3e1d8346152b0a9b39f61dbac23ae 100644 (file)
@@ -26,14 +26,14 @@ set testcase "nested-subp1"
 
 if {![support_nested_function_tests]} {
     untested "compiler does not support nested functions"
-    return -1
+    return
 }
 
 if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
                  [standard_output_file "${testcase}"] \
                  executable \
                  [list debug "additional_flags=-std=gnu99"]] != "" } {
-    return -1
+    return
 }
 
 
index 23d36e77efc10c5116816340479f2219272fcaf2..7a5ff89a41879d6460ae15aca983246095c6dd78 100644 (file)
@@ -26,7 +26,7 @@ set testcase "nested-subp2"
 
 if {![support_nested_function_tests]} {
     untested "compiler does not support nested functions"
-    return -1
+    return
 }
 
 set flags {}
@@ -42,7 +42,7 @@ if { [gdb_can_simple_compile ld-flags {int main () { return 0; }} executable \
 if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
          [standard_output_file "${testcase}"] \
          executable $flags] != "" } {
-    return -1
+    return
 }
 
 
index 8e145bee7650960c4c4468c6a4a7d56326938029..5cb49b8dbce9901670126c7689e5927bcdd97076 100644 (file)
@@ -26,7 +26,7 @@ set testcase "nested-subp3"
 
 if {![support_nested_function_tests]} {
     untested "compiler does not support nested functions"
-    return -1
+    return
 }
 
 set flags {}
@@ -42,7 +42,7 @@ if { [gdb_can_simple_compile ld-flags {int main () { return 0; }} executable \
 if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \
          [standard_output_file "${testcase}"] \
          executable $flags] != "" } {
-    return -1
+    return
 }
 
 
index a57225add133ff7ad603146152774111d501014e..2dfbf66c81a4784fd81f0a10b33af8d2753d372e 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 set compile_options "debug"
 if {[build_executable $testfile.exp $testfile ${srcfile} ${compile_options}] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Start gdb and create an extra console UI.  Start the inferior in the
index 5d147bcfe1c7a22e28382bd26d10b1cd2f127e4c..cbc2c6d3b706fc095f7f967f0ed3e03e83d7142a 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile
 set compile_options "debug"
 if {[build_executable $testfile.exp $testfile ${srcfile} ${compile_options}] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # See intro.
index 6bc45392733cd57368154670ece94f079fad0e05..b5ee322dc04f759cb4c58d1dab3dc63da2dc3516 100644 (file)
@@ -18,7 +18,7 @@ standard_testfile
 set compile_options "debug"
 if {[build_executable $testfile.exp $testfile ${srcfile} ${compile_options}] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Ensure no output has been sent.  Use MESSAGE as test message.
index 5fbb4efa51b5cd39ff420d196771623c9526af07..91c78ba60e3773074cae73de85ad4f19ce8d4ffa 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $testfile.c]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Make sure we do not see any warnings.
index 48eb7db77c11579ceb9620dddda261e6a16af72d..0de2e59a9b92adccbf8b7e70c0b79e3410a44415 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Load 'global_foo' into a history variable.
index 3894b3e770ef4632120c32be84d35b4c177d86b4..0574733cde74ffe07c9202a0d595c088ed50c18d 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 proc noreturn_finish_test { } {
index e2ea8690771d5e4f41f1c9286b0c41ae00b78323..c761f141cddbe86370f9de18c0db63ba8618771a 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 proc noreturn_test { } {
index 2286f0c2276abfeb6ca5e84cd590fb48ee4399b3..a7480f692d5f6df4ef912cc1a51b66bbbddb25ad 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile offsets.c
 
 if { [prepare_for_testing "failed to prepare for testing large offsets" \
          ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set test "print &big_struct test"
index 489b0e451ee6b424d64790ed85786c7648d2522d..ded6f8c88e3085f1fdbbeb5e3f478694099b709c 100644 (file)
@@ -22,7 +22,7 @@ set gcc_compiled [is_c_compiler_gcc]
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] debug]} {
-    return -1
+    return
 }
 
 #
index 0b8dda51d4d08c71a17f45106343a3d182f9a56e..35487ead6a77e4b6a331148e4f8f5cfead19f057 100644 (file)
@@ -37,14 +37,14 @@ load_lib completion-support.exp
 standard_testfile .c
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 clean_restart
 
 if { ![readline_is_used] } {
     untested "no tab completion support without readline"
-    return -1
+    return
 }
 
 set tui_supported_p [allow_tui_tests]
index 3ab1e06c6e310b11dedc6e4b9224052610a5bb45..54a922187b849b4cc732500b1e5a2f693fb9b46d 100644 (file)
@@ -18,7 +18,7 @@ require {!target_info exists gdb,nointerrupts}
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 # Send a ctrl-c while the target is running and check that the output
index e369fa7ad046a8dcc027343b83a851536f9699e9..9f9e44fb4dc7651232f9fc66c31d71b273301da4 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 # Check that we handle a stop event coming from a background execution
index e1de36ca022fbebb5af0801d39d5c9576be66913..03647520c1578add3f8cc9dff2009a39ad474ea2 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 set file_arg $binfile
index e6557f947a76695a3e113cda202c6039f16ec748..eb274b091f9917eabf618b4f8c63bdc9c3d857b9 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug] == -1} {
-    return -1
+    return
 }
 
 # Test paginating while printing about the inferior having exited.
index ed6d268f6bd081bd05681e55a2caae213a0b44fc..e998ef4334c0fad56890b1acb1204c65f02a0e2e 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Check that we can patch an executable.
index 3f4fafee237f957410e5bbc045b6a8a74014c471..fd44942bfe87f114476218955bf5bf875bd2e8c1 100644 (file)
@@ -27,7 +27,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 62894063ee6b7eb3da0c77f5eab6153369b536a7..161287226f86d7f95ebe363b60d410df8ddb1447 100644 (file)
@@ -32,7 +32,7 @@ set exec_opts [list debug shlib=$lib_sl]
 if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
      || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 6835ed5a4c68e4963234dc7f1f2827309da8158b..4db6521bea1a99826307ea5975749394bed79fce 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile start.c
 if {[build_executable $testfile.exp $testfile \
         $srcfile {debug nowarnings}] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 880dbb2d9eea5fee856e84490b5533d4d546e36b..4099459ca3836bc6abf94e217123495a4d0db293 100644 (file)
@@ -20,7 +20,7 @@ lappend flags debug
 lappend flags c++
 
 if {[build_executable "failed to prepare" $testfile $srcfile $flags]} {
-    return -1
+    return
 }
 
 clean_restart
index 60d2270f8873b66c4175a5d8a24c36f948285384..62f3bc100921a059a05e09947c1cc3c27d0d0118 100644 (file)
@@ -42,7 +42,7 @@ set binfile2_test_msg OBJDIR/${subdir}/${executable2}
 set opts [list debug pie]
 if {[build_executable ${testfile}.exp $executable1 $srcfile [concat $opts {additional_flags=-DBIN=1}]] == -1
     || [build_executable ${testfile}.exp $executable2 $srcfile [concat $opts {additional_flags=-DBIN=2}]] == -1} {
-    return -1
+    return
 }
 
 clean_restart ${executable1}
@@ -50,7 +50,7 @@ clean_restart ${executable1}
 gdb_test_no_output "set args ${binfile2}" "set args ${binfile2_test_msg}"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Do not stop on `main' after re-exec.
index 55808e42285f1a0315f0932271dc094b32d6a3b3..b3129d43ef913d38d414d82278036d29c4b0187c 100644 (file)
@@ -17,13 +17,13 @@ set testname pr10179
 set sources "pr10179-a.c pr10179-b.c"
 
 if {[build_executable ${testname}.exp $testname $sources {debug}] == -1} {
-    return -1
+    return
 }
 
 clean_restart ${testname}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "rbreak foo.*" "Breakpoint ${::decimal}\[^\\n\]*\\nint foo\[12\]\[^\\n\]*\\nBreakpoint ${::decimal}\[^\\n\]*\\nint foo\[12\].*"
index cfbb511c7d97a70ea3866b582733bd9277464012..4f18af4739c22816a8f87f1758fb275ec61efa81 100644 (file)
@@ -31,7 +31,7 @@ set libfile [standard_output_file ${testfile}.so]
 
 if {[build_executable "build library" ${libfile} ${libsrcfile} \
         {debug shlib}] == -1} {
-    return -1
+    return
 }
 
 set srcfile ${testfile}.c
@@ -39,7 +39,7 @@ set executable ${testfile}t
 set binfile [standard_output_file ${executable}]
 set prelink_args [build_executable_own_libs ${testfile}.exp $executable $srcfile [list debug "ldflags=-Wl,${libfile},-rpath,[file dirname ${libfile}]"]]
 if {$prelink_args == ""} {
-    return -1
+    return
 }
 
 set test "split debug of executable"
@@ -51,7 +51,7 @@ if {[gdb_gnu_strip_debug $binfile]} {
 
 if {![prelink_yes $prelink_args]} {
     # Maybe we don't have prelink.
-    return -1
+    return
 }
 
 set found 0
@@ -86,7 +86,7 @@ if { $found == 0  } {
 
 # Relink $libfile to a different address.
 if {![prelink_yes $prelink_args]} {
-    return -1
+    return
 }
 
 # Start with a fresh gdb
index 079f5c83e3a5b6541d7264d29302872b7cb426ea..c3e9fdbc6b9ed82c96c59071283ae5682140b0b6 100644 (file)
@@ -39,7 +39,7 @@ standard_testfile .c
 require allow_python_tests
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index f484286f931ec9d413e5581491b1ea7fb0aa52f7..e1a8428d842abefcb4a8aa44e816d6c7aa705960 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {
     untested $testfile.exp
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "print nums" \
index 5aaa4cafaff7d5268dcf28e519611d7980a04e03..efe9cbae11d640dd9b72346b5318318952d2e5de 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile
 
 if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} {
     untested $testfile.exp
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set print pretty on"
index 3ff2a6708fa53c3a188bfd3bb9df26ad68895d1e..7ebf8ed9b4d4fe49b6c8f48bd858e3ba7ea1cd5a 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index c4cb501932d2026c6f98fa06b78d2f4696fe1bd4..77c6145201e9218902db9ada0cecb11882fae8b5 100644 (file)
@@ -27,23 +27,23 @@ set objfile [standard_output_file ${testfile}.o]
 if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} {debug}] != ""
      || [gdb_compile ${srcdir}/${subdir}/${srcfile} ${objfile} object {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 set opts [list debug shlib=${binfile_lib}]
 if { [gdb_compile ${objfile} ${binfile} executable $opts] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
 gdb_load_shlib ${binfile_lib}
 
 if {![runto lib]} {
-    return -1
+    return
 }
 
 if {![gdb_gcore_cmd $gcorefile "save a corefile"]} {
-    return -1
+    return
 }
 
 proc test_load_core { print_symbol_loading } {
index db331a3e3280800ab75cbf6372c8a365bbfbbae2..37fee25996a6270377f749b7093c2162dce04e11 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test {printf "%ls\n", wide_str} "^wide string"
index 9e92221b3a7aa8c5071f6b4ccf06587e9e3f1d29..d25df5953cc1e623b1f915fe9be28ee075d50edb 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile}] } {
-    return -1
+    return
 }
 
 set bp_main [gdb_get_line_number "break main" ${testfile}.h]
index b4b62f21b13ee0619325d0adc46db40c1fe86099..bbe8a043fabf4b67b14ccc0529c233f527d1c2eb 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile .c psym-external-decl-2.c
 
 if { [test_compiler_info "clang-*"] } {
-    return -1
+    return
 }
 
 set srcfiles [list $srcfile $srcfile2]
@@ -26,7 +26,7 @@ if { [build_executable_from_specs \
          $testfile [list] \
          $srcfile [list debug] \
          $srcfile2 [list]] == -1 } {
-    return -1
+    return
 }
 
 clean_restart $testfile
index 9a979cdce9717c93a79358d2685bf2f189eaa701..2103ace870e6996b51741f0317af594c79fe415f 100644 (file)
@@ -30,7 +30,7 @@ standard_testfile psymtab1.c psymtab2.c
 
 if {[prepare_for_testing "failed to prepare" $testfile \
         [list $srcfile $srcfile2] debug]} {
-    return -1
+    return
 }
 
 # Disable the prompt for whether to set pending breakpoints.
index cffcbbeb2f7a070fac3e7ac4624035f02b584539..fd88514f5f6bead2c9b3025d859ee519c5013d80 100644 (file)
@@ -30,7 +30,7 @@ if { ![is_lp64_target] } {
 }
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 # Tests handling flexible array member.  Regression tests for PR gdb/33966.
index 2ee3470ba10fefda796f8dc3cfcf3105dcf7f041..56dca939fb3335138b65cf774a6f88fa8593381d 100644 (file)
@@ -29,7 +29,7 @@ if { ![is_lp64_target] } {
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          { debug c++ }] } {
-    return -1
+    return
 }
 
 # Test general offset printing, ctor/dtor printing, union, formatting.
index 5602defba64ed5902768a56fbf46cfd61120c85b..0539b87ddfeaa931cee6c04380854f32221dc169 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile .c ptype1.c
 
 if {[prepare_for_testing "failed to prepare" ${testfile} \
         [list $srcfile $srcfile2] {debug nowarnings}]} {
-    return -1
+    return
 }
 
 # Some tests require GCC.
@@ -80,16 +80,16 @@ gdb_test "ptype struct t_struct" \
 # Test the equivalence between '.' and '->' for struct member references.
 
 if {[gdb_test "ptype v_struct1.v_float_member" "type = float"] < 0} {
-    return -1
+    return
 }
 if {[gdb_test "ptype v_struct1->v_float_member" "type = float"] < 0} {
-    return -1
+    return
 }
 if {[gdb_test "ptype v_t_struct_p.v_float_member" "type = float"] < 0} {
-    return -1
+    return
 }
 if {[gdb_test "ptype v_t_struct_p->v_float_member" "type = float"] < 0} {
-    return -1
+    return
 }
 
 
index 77d1064772097339dd65af07dd0dd3aa6ce8ec99..e0c5e669c2f202d7715b1966ac6a5b41942736d7 100644 (file)
@@ -21,7 +21,7 @@ require {!target_info exists gdb,nointerrupts}
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Set a software watchpoint, continue, wait a bit and stop the target
index 52c2ff71ab127bd2075378a04bf06e5d8800491b..58c2c78ee26ac1111006314b337f4936f300d44e 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 proc address_get { testname } {
@@ -62,7 +62,7 @@ set addr2 [address_get "randomized second address"]
 set test "randomized addresses should not match"
 if {[string equal $addr1 $addr2]} {
     untested "no randomization detected on this system"
-    return -1
+    return
 } else {
     pass $test
 }
index 53083f066c352d562463e0f18da624f996bf3f3c..06d976bdf25592628ba57e2380779996f9c5fcb5 100644 (file)
@@ -19,16 +19,16 @@ standard_testfile
 set executable $testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {![gdb_range_stepping_enabled]} {
     unsupported "range stepping not supported by the target"
-    return -1
+    return
 }
 
 # Check that range stepping can step a range of multiple instructions.
index 0981860eacff983e707e73d5fdf1cdd02dcdd48d..bee3fbba4e78b5cbedb18618011b133a7793ac75 100644 (file)
@@ -20,7 +20,7 @@ set inputrc ${srcdir}/${subdir}/${testfile}.inputrc
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 setenv TERM dumb
@@ -31,7 +31,7 @@ clean_restart $testfile
 
 if { ![readline_is_used] } {
     unsupported "completion doesn't work when readline isn't used."
-    return -1
+    return
 }
 
 gdb_test_no_output "set width 50"
index 6fa6cf96e6567a62888cef057ac68b00f53d8bcf..7da5f08fc7b5cddf7a5a3457466abb2d7021417b 100644 (file)
@@ -23,7 +23,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 # The fix for this issue relies on GDB being able to adjust the EOF
@@ -32,7 +32,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
 # this feature is not available then this test might not pass.
 if { ![readline_supports_eof_flag] } {
     unsupported "readline is not eof flag aware"
-    return -1
+    return
 }
 
 # Create a breakpoint then issue the 'commands' commands.  When the
index 427b9a82c85dc2c2e4539aec4ce7ac89ef5179d5..9f74b8b005d57da38d354090f50f7b0b98086d8c 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile .c
 
 if { [build_executable "failed to build" $testfile $srcfile { debug }] == -1 } {
     untested "couldn't compile ${srcfile}"
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 5c8e8acb1298e5836fee7c942bd8c67d74aed5dc..5817cd57d9db3b715ceb2b457879ee2111c3359d 100644 (file)
@@ -26,13 +26,13 @@ remote_exec build "ln -sf ${srcdirabs}/${subdir}/${srcfile2} $srcfilelink"
 
 if { [file type $srcfilelink] != "link" } {
     unsupported "target directory cannot have symbolic links"
-    return -1
+    return
 }
 
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile} ${srcfilelink}" "${binfile}" \
                  executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart ${testfile}
index b325002b2d38bf98628d0f03287d1a3634b153d1..3812884dc4682bac640601f50061e3c0a3340cd6 100644 (file)
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "break $srcfile:[gdb_get_line_number BREAK $srcfile] if n == 3" \
index f96e1e3072a384541d4286d604e31d2585cb981e..4a59cecf8fba8bd261148ca1ab9b362bfd40d7d6 100644 (file)
@@ -26,7 +26,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 proc recurse_tests {} {
index ce5cb50d85c7c5b2ef9fae18961000194209e560..f3866ec51cf4a9abcf2bfbe3785ac4c0a3cd6f5c 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 01b635f9694a9108f5f7067cd70d173b930a2a23..f75043643ec28761fe5101f9e0c8c9d90cc4b916 100644 (file)
@@ -26,7 +26,7 @@
 #
 
 if { [prepare_for_testing "failed to prepare" relational int-type.c {debug nowarnings}] } {
-    return -1
+    return
 }
 
 #
index 9fa50611ed5b4e21a7831b39593e30e015bba5fd..da13e9f13fe7997363225a08fe18365b5cf50a75 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile .c
 set result [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}]
 if {$result != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 gdb_start
index 6db4eacc1b929dfcdde7a77c5a91289593d5a78a..8457d2e4fbba6fb9d55ff235bc6f31fde6fa86d8 100644 (file)
@@ -41,7 +41,7 @@ proc generate_cmd_file {gdbfile binfile} {
 require !use_gdb_stub
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Using the source command to read commands from a file is important,
index d5e78238575c2a1df35a86fcb9177fcc28e19d33..ce7fe5b3ca11f484e3d77215b486b3ed78d31e4a 100644 (file)
@@ -25,7 +25,7 @@ standard_testfile
 set executable $testfile
 
 if { [prepare_for_testing "failed to prepare" $executable $srcfile] } {
-    return -1
+    return
 }
 
 proc restore_tests { } {
@@ -98,7 +98,7 @@ set timeout $prev_timeout
 # Test PR cli/23785
 clean_restart $testfile
 if { ![runto_main] } {
-    return -1
+    return
 }
 gdb_test "restore non-existent-file binary" \
     "Failed to open non-existent-file: .*"
index d2f7739b1e3c1c693e1d9d8500db0c16054b6b7e..8c958a2245ac1603f3a97473172dac0d4743febd 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if { ![runto bar] } {
-    return -1
+    return
 }
 
 with_test_prefix "in bar" {
index 2899ce9dbbbbb181a5abddaa38fdc919e54cda53..7b4f6fea320dc57e418d8916b2b21bf856c623e4 100644 (file)
@@ -18,7 +18,7 @@
 set allow_float_test [allow_float_test]
 
 if { [prepare_for_testing "failed to prepare" "return"] } {
-    return -1
+    return
 }
 
 proc return_tests { } {
index 0ba13810cd6e9b5b20f4389212fac65cb156beaa..7bdc8af2a0f419f24e531fec7e63c876887d3dc9 100644 (file)
@@ -27,11 +27,11 @@ if {[have_fvar_tracking]} {
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile [list debug $additional_flags]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set pattern ".* = \\{int_array = \\{1, 2, 3, 4, 5\\}, double_array = \\{3.25, 5, 6.25, 1.325, -1.95\\}, char_array = \"abcde\"\\}"
index 3beab5ee334e743139ba6916f6e268524dc2c7d0..57f878dfb39583db477db98744bd2e136397839d 100644 (file)
@@ -93,7 +93,7 @@ if { ![gdb_can_simple_compile static-pie-static-libc \
           executable $rtld_flags] } {
     set reason "-static-pie not supported or static libc missing"
     untested "failed to compile ($reason)"
-    return -1
+    return
 }
 
 # Main program file names and flags:
@@ -108,13 +108,13 @@ lappend main_flags \
 # Compile pretend RTLD:
 if { [gdb_compile ${srcfile_rtld} ${binfile_rtld} executable $rtld_flags] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Compile main program:
 if { [gdb_compile ${srcfile_main} ${binfile_main} executable $main_flags] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 4a170b88c71da7bc7dcb4162acadac9db937fe1f..256f2fbcdd1adcb1b3e59e39c1212c67311b2b22 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile
 set executable $testfile
 
 if {[prepare_for_testing "failed to prepare" $executable]} {
-    return -1
+    return
 }
 
 set test_spawn_id [spawn_wait_for_attach $binfile]
index 57a7c437e40b7cefec04b4b73e5c3c9936937fe2..8fcfee9eee006d2a2098d41f1b4c799bd8a1aae0 100644 (file)
@@ -20,7 +20,7 @@ require target_can_use_run_cmd
 standard_testfile
 
 if {[build_executable "failed to build" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 proc test_run {testname} {
index 2e27f9ebbf8a762e1f9dfded66a0bdb13e0b446d..0c0eb860d2864d9c60875dfa826c9287c5a7ad78 100644 (file)
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 # Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
 # the "runto_main" breakpoint above does not interfere with our testing.
@@ -62,7 +62,7 @@ gdb_test "save breakpoint $bps" "" "save breakpoint bps"
 # Now start a new debugger session...
 clean_restart $testfile
 if {![runto_main]} {
-    return -1
+    return
 }
 # Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
 # the "runto_main" breakpoint above does not interfere with our testing.
index 67305ebb87b7ee78e3ff7e0d37eba76fb0d53c24..e45d10dc7b00088bde6c0ff403a1e4065d303285 100644 (file)
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
-    return -1
+    return
 }
 
 gdb_test_no_output "set can-use-hw-watchpoints 0"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test_multiple "maint info break" "maint info break before" {
index b82465a1184d8d52a8c7c3ec87ee3ceb78a32622..338e4a4b4467b89efff957888bb96baeb57f20b7 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile scope0.c scope1.c
 
 if {[build_executable "failed to build" ${testfile} \
         [list $srcfile $srcfile2] {debug}]} {
-    return -1
+    return
 }
 
 # Test locating various things when stopped just inside main, after
index 0c2a413b6943c164b72590f854cf29534b843448..c6300aa529920231e4b6ad158bcf66f8142338fb 100644 (file)
@@ -17,7 +17,7 @@
 
 if { [prepare_for_testing "failed to prepare" "sect-cmd" \
          {break.c break1.c} {debug nowarnings}] } {
-    return -1
+    return
 }
 set srcfile break.c
 set srcfile1 break1.c
index bbb9eb7cd16bdf74dc6f18e484bf5f3a937aa28b..1ada019ea43467cc39a88429478d0ec42d16ee17 100644 (file)
@@ -33,7 +33,7 @@ standard_testfile .c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Note: the procedure gdb_gnu_strip_debug will produce an executable called
@@ -45,7 +45,7 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
 if {[gdb_gnu_strip_debug $binfile$EXEEXT]} {
     # check that you have a recent version of strip and objcopy installed
     unsupported "cannot produce separate debug info files"
-    return -1
+    return
 }
 
 #
index 0677ef57b4fba64d42ce57f38d2fe1ece214a8c4..aecb1b93f32f46859160edba897df235275ba6a6 100644 (file)
@@ -22,13 +22,13 @@ standard_testfile .c
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
          executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 if {[gdb_gnu_strip_debug $binfile no-main]} {
     # check that you have a recent version of strip and objcopy installed
     unsupported "cannot produce separate debug info files"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 6bc95d5bd7f0f3d815d529566b9a8ee7ec5c31d7..4401a848589f3e008fc9f8d736d086c3f86e299f 100644 (file)
@@ -21,7 +21,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 gdb_test "break -q main" \
index 3fbffdc6136f0524b3bce146d9d13d450ed0c911..279004596a1ebae90820768daaba147efffce0f5 100644 (file)
@@ -20,7 +20,7 @@ require !use_gdb_stub
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
-    return -1
+    return
 }
 
 # Test that tilde expansion works fine.
index 1d0ee21b4cba0b4d87d9d91dd7b3c99a5368efd9..be82eeed6b1879f7785d3a679eda2542db8c8cdd 100644 (file)
@@ -18,7 +18,7 @@ standard_testfile
 set compile_options "debug"
 if {[build_executable $testfile.exp $testfile ${srcfile} ${compile_options}] == -1} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 proc test_set_inferior_tty { command } {
index 2cbc5930f6de27a2e4afce6cb3e227eb6630cf53..f003c2307e9bbb08228258f2c449691f15474cb2 100644 (file)
@@ -17,7 +17,7 @@
 standard_testfile start.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Do not run the inferior as the purpose of this testcase is to test
index 41a3f096cafaa1bf0b118e9a044e064ec5a5547f..0f3b843cd1febdd17357be403c6e064133e50f5c 100644 (file)
@@ -15,7 +15,7 @@
 
 
 if { [prepare_for_testing "failed to prepare" "set-noassign" start.c {debug nowarnings}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 48c015a3552a12f8aa8ea29c0f845a310bf00ab7..2da8d47405bb7154ab77c428839e9ddc4f3a0144 100644 (file)
@@ -24,14 +24,14 @@ load_lib completion-support.exp
 standard_testfile .c
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 clean_restart
 
 if { ![readline_is_used] } {
     untested "no tab completion support without readline"
-    return -1
+    return
 }
 
 # Test the show command SHOW_CMD.  EXPECTED_RE is the expected output.
index 8a3b88631d0137c36a1b9c3ae0005e89e1afe36e..14fba5497a8746c71f6de7efe4aa85f817ac9adf 100644 (file)
@@ -27,7 +27,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 #
index e1b3540d5d7eb8681cb128e51b9fd5169d0e95c1..60875224de2fc5945b8a2347afc0bc28efa270f3 100644 (file)
@@ -21,7 +21,7 @@ require !use_gdb_stub
 standard_testfile
 
 if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
-    return -1
+    return
 }
 
 set test_var_name "GDB_TEST_VAR"
index 8fd40cdaecd7d52f5ab89f416f7ff59c50a38dfa..6984e70354e40e30fb3ae80e3a1ad0cec8710753 100644 (file)
@@ -30,19 +30,19 @@ standard_testfile .c share-psymtabs-bt-2.c
 if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \
         {debug}] } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Load $binfile a second time.  The second created objfile will re-use the
 # partial symtabs created by the first one.
 if { [gdb_file_cmd $binfile] != 0 } {
     fail "file command failed"
-    return -1
+    return
 }
 
 gdb_breakpoint "bar"
 if { ![runto "bar"] } {
-    return -1
+    return
 }
 
 # A buggy GDB would fail to find the full symbol associated to this frame's
index 51cd91ed41ef5719a5672f00df344c1808b389c3..a550d1f71dda37312a614627f74db1f910108bef 100644 (file)
@@ -18,7 +18,7 @@ require {!target_info exists gdb,nosignals}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 proc test_one_sig {nextsig} {
index 02f907bdea6df8509bc8fd0679c6e3997a0ad7bc..c3f17e0e97074f856177d407817e588584bd0a95 100644 (file)
@@ -34,7 +34,7 @@ require {!target_info exists gdb,nosignals}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 #
index 0f7026d4a93cd44ee179047436217852049ad932..93ce7a227909eda7fefec6710b1c10288db7a987 100644 (file)
@@ -25,7 +25,7 @@ require {!target_info exists gdb,nosignals}
 
 standard_testfile
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 gdb_test "display/i \$pc"
index f581989caaffdc1517f9ebeecdbdaa0099a7e5a6..caf43d1ac4c3fd261a7925aa2cd8753cca89a5d0 100644 (file)
@@ -18,11 +18,11 @@ require {!target_info exists gdb,nosignals}
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint "pass"
index bf59dd93794655baf2207c7751d05521a145ecaa..daf160bc162be0fda24137bbbb33fdd7f18a58b8 100644 (file)
@@ -29,7 +29,7 @@ require supports_get_siginfo_type
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Advance to main
index 92d712053f05984c1e530fb71bc1ca3d16a151d1..f5a00220f12a98dfc4fdce0008322b008897ffd8 100644 (file)
@@ -29,7 +29,7 @@ require {!target_info exists gdb,nosignals}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 gdb_test "display/i \$pc"
index 0c3da466af45f3ba765235b338fad5ab197a5e15..5c0be259c00abf79f0a9b05549e7b748d8fb13e4 100644 (file)
@@ -47,13 +47,13 @@ remote_file target delete $standalone_txt
 set options [list debug "additional_flags=-DOUTPUT_TXT=\"$gdb_txt\""]
 if {[build_executable $testfile.exp $testfile $srcfile $options]} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set options [list debug "additional_flags=-DOUTPUT_TXT=\"$standalone_txt\""]
 if {[build_executable $testfile.exp $testfile-standalone $srcfile $options]} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Run the program directly, and dump its initial signal actions and
@@ -100,7 +100,7 @@ remote_close target
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_continue_to_end "collect signals state under gdb"
@@ -108,7 +108,7 @@ gdb_continue_to_end "collect signals state under gdb"
 set test "signals states are identical"
 if { ! $have_standalone } {
     untested $test
-    return -1
+    return
 }
 
 if {!$purely_local} {
index 56aa73aa55000456adeff66824bfd659c67fa441..da3eb6dae5bae0254815fca06bb9836909f250e8 100644 (file)
@@ -20,7 +20,7 @@ standard_testfile .c
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 gdb_exit
index 29e2f98535320b4f599fb5675432e0a76e1dc227..abe4a9c4cbade1b311ec7ce5e9d80adf357a13f1 100644 (file)
@@ -23,22 +23,22 @@ set libname "lib${gdb_test_file_name}.so"
 set objdso [standard_output_file $libname]
 if {[gdb_compile_shlib $srcdso $objdso {debug}] != ""} {
     untested "failed to compile dso"
-    return -1
+    return
 }
 
 # Build the test executable and runto main.
 set opts [list debug shlib=$objdso]
 if { [prepare_for_testing "failed to " $testfile $srcfile $opts] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 if {[readnow]} {
     untested "this test checks for delayed symtab expansion"
-    return -1
+    return
 }
 
 # Use 'info sources' to check if the debug information for the shared
index 920cdb907e74d76442a24a5681707c3d9b0c7370..465c8452d62de8af32b4a2171e3ebbe6be9de1ec 100644 (file)
@@ -20,11 +20,11 @@ standard_testfile
 require {!target_info exists gdb,nosignals}
 
 if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # If we can examine what's at memory address 0, it is possible that we
@@ -35,7 +35,7 @@ if {![runto_main]} {
 
 if { [is_address_zero_readable] } {
     untested "memory at address 0 is possibly executable"
-    return -1
+    return
 }
 
 # Run until we hit the SIGSEGV (or SIGBUS on some platforms).
index 2507504c5ccbd97fa44bd39e4381be003ed8f2c6..9199216b051b08932705fabbd6713beb4f57f033 100644 (file)
@@ -28,7 +28,7 @@ standard_testfile
 
 if {[build_executable $testfile.exp $testfile $srcfile debug]} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 set clear_done [gdb_get_line_number {done = 0}]
index 50930c82c6a42962db48f1c7c207b78509295c17..48caebe2f16d861a1361bfe03a6198474415efd3 100644 (file)
@@ -22,7 +22,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 #
index c2fd05808bd65d3f43dc28d23090229deef84376..a0223efa2eb56c7734b0b7b244fb2bad087b2ccc 100644 (file)
@@ -20,7 +20,7 @@ set epilogue [have_epilogue_line_info]
 if { [prepare_for_testing "failed to prepare" "skip-inline" \
                          {skip-inline.c skip1.c } \
                          {debug nowarnings}] } {
-    return -1
+    return
 }
 
 set srcfile skip-inline.c
index e8890288fa3c77746b50ec7aae7fd63926ce8a64..1382c7ce831ca24352dba703735f4039b6d7bb8b 100644 (file)
@@ -41,18 +41,18 @@ set binfile_lib [standard_output_file ${libname}.so]
 
 if {[gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} \
         [list debug]] != ""} {
-    return -1
+    return
 }
 
 if {[gdb_compile "${srcdir}/${subdir}/${srcfile_main}" "${binfile_main}.o" \
         object debug] != ""} {
-    return -1
+    return
 }
 
 set testobjdir [standard_output_file {}]
 if {[gdb_compile "${binfile_main}.o" "${binfile_main}" executable \
         [list debug shlib=$binfile_lib]] != ""} {
-    return -1
+    return
 }
 
 #
index 3807fb333255def4cfa23037c4fb432756fe463d..8ba6e8cda569185f75b8348b0107ee658f85341a 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile
 if { [prepare_for_testing "failed to prepare" "skip" \
                          {skip.c skip1.c } \
                          {debug nowarnings}] } {
-    return -1
+    return
 }
 
 set srcfile skip.c
index 06f9912d763e82f7ffc3992b480edc02d1c54b3d..9e1c0f293c8d9ec4666a9589ef0ee4de808ef7bc 100644 (file)
@@ -20,7 +20,7 @@ lappend flags debug
 lappend flags c++
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 19be38f773882d77dcaec7f9a1072453ecf47ec9..f733579809f677fd789c2c2c990c853121137b01 100644 (file)
@@ -23,7 +23,7 @@ set testfile "solib-corrupted"
 set srcfile start.c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # With probes interface GDB no longer scans the inferior library list so its
index 29b641b43e2b31375ea8294b0e41587dab9136fb..4189e1abd5b395fdc876235596070ac405b6195d 100644 (file)
@@ -42,7 +42,7 @@ if { [build_executable "build library" ${binlibfile} ${srclibfile} \
      || [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != ""
      || [gdb_compile "${objfile} ${binlibfile}" "${binfile}" executable {}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $executable
index 44617f42a8b19943df04578dcf0eb5db6ffe1e20..9b4c339cb92d295b615ab4442734cc9294461ba2 100644 (file)
@@ -21,7 +21,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {$use_gdb_stub && [target_info exists gdb,do_reload_on_run]} {
index c4b2730e8f2d3c39d3e3a51318738ad5fb0e58e6..43f54b41df0e9df1c6253cded0168695b32f125a 100644 (file)
@@ -65,7 +65,7 @@ if { [gdb_compile_shlib ${srcfile1_lib} ${wrong_binfile1_lib} $wrong_lib_flags]
      || [gdb_compile_shlib ${srcfile1_lib} ${right_binfile1_lib} $right_lib_flags] != ""
      || [gdb_compile_shlib ${srcfile2_lib} ${right_binfile2_lib} $right_lib_flags] != "" } {
     untested "failed to compile shared library"
-    return -1
+    return
 }
 
 # Build the test binary using the right copies of the libraries.
@@ -74,7 +74,7 @@ remote_exec build "ln -sf ${right_lib_subdir}/${libname2}.so ${binfile2_lib}"
 if { [gdb_compile $srcdir/$subdir/${srcfile} ${binfile} \
          executable $bin_flags] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 152e41760a02cf70bc5255beea806dbf0e376e29..80e28638b2d2838a763a8e34a386930652ef3ecf 100644 (file)
@@ -70,7 +70,7 @@ set lib1_flags [list debug shlib=${binfile_lib2}]
 if { [gdb_compile_shlib ${srcfile_lib2} ${binfile_lib2} $lib2_flags] != ""
      || [gdb_compile_shlib ${srcfile_lib1} ${binfile_lib1} $lib1_flags] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 # Main program
@@ -88,7 +88,7 @@ if {[is_remote target]} {
 
 if { [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart $testfile
index 8f5e88540d93b9b26d15187ee639f07cde65168b..a16535e97e4c7750d1a3e990d4a2a6a4e83acaab 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index e222c6420638fc8670fc0d2564a1d58c74155b97..38802489247c4b628936207db2bb4b7c93c129bb 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 gdb_test "show source open" "Source opening is \"on\"\\." \
index 691946d35f5fef56dbb4ed48fb82df36678553be..6b299b3bc05ae290998ac2642e88a8da2241f93c 100644 (file)
@@ -38,7 +38,7 @@ require !gdb_debug_enabled
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 89fdb486a9c08c6502501db85559af2b07f3f4be..042caf6c27bb9549c0bc96ca7eaa91a7af005b7f 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile
 set executable ${testfile}
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
@@ -42,7 +42,7 @@ gdb_test_multiple $test $test {
 }
 
 if { $next_insn_addr == "" } {
-    return -1
+    return
 }
 
 gdb_test "b *$next_insn_addr" "Breakpoint .*" "set breakpoint on address"
index b602bea56cfc4728b571b372929c712b0034c511..cb7c0997203283960965baa504b64b37308354f2 100644 (file)
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "test-next"] temporary
index 58269005e5171a547d00c0edb435448beadad11c..3dbd860a0b9d4e9a316dc5d10d232853db0a0dcf 100644 (file)
@@ -22,7 +22,7 @@ lappend flags debug
 lappend flags c++
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
-    return -1
+    return
 }
 
 # This is a testcase specifically for the `start' GDB command.  For regular
@@ -35,7 +35,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
 # For C++ programs, "start" should stop in main().
 if { [gdb_start_cmd] < 0 } {
     fail start
-    return -1
+    return
 }
 
 gdb_test "" \
index b747e42efc6a13a5a623e8986837cf52fde6363e..546926d32262c936eb59cbdb93034b3e70f441e8 100644 (file)
@@ -18,7 +18,7 @@ require !use_gdb_stub
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # This is a testcase specifically for the `start' GDB command.  For regular
@@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 # For C programs, "start" should stop in main().
 if { [gdb_start_cmd] < 0 } {
     fail start
-    return -1
+    return
 }
 
 gdb_test "" \
index 302be7aea6eed9fa9fb226b7b18289693c94dbe3..ab0cfc2e93783fb2f66ad70a66bb61c1a4824053 100644 (file)
@@ -17,7 +17,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Define a stop hook that outputs the value of 'x'
@@ -30,7 +30,7 @@ gdb_test_multiple "define hook-stop" "hook-stop" {
 
 if { [gdb_starti_cmd] < 0 } {
     untested starti
-    return -1
+    return
 }
 
 # The program should stop at the first instruction, so the constructor
index b27cdce63d733a497447a69c23c90cbd3f65e439..6f30841bdb8dd0647cbc142ca5fa1b2f9d920cc4 100644 (file)
@@ -27,7 +27,7 @@ require {expr {[have_startup_shell] != -1}}
 standard_testfile
 
 if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
-    return -1
+    return
 }
 
 set unique_file [standard_output_file "unique-file.unique-extension"]
index 5273234a75154e45ee0f3d3c18a8cee4c7d378c3..f7be4c2bec911d2ec489f94960a6695096e59981 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 gdb_test "break *hello" \
index 877a0a61dbb240a5593ca22bf21d912e31ffc70d..30d0e6932a5d9d370a6f27e92f9d0f50331199f3 100644 (file)
@@ -24,11 +24,11 @@ if { [gcc_major_version] >= 8 } {
 }
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
        [list debug "additional_flags=$cflags"]] } {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
-    return -1
+    return
 }
 
 # Do repeated instruction steps in order to reach TARGET from CURRENT
index 775ab991d6ef9fa6b29f46b1805340704b42ff89..178224a1bed361724e8eeae5d99c70060818edae 100644 (file)
@@ -23,11 +23,11 @@ lappend_include_file flags $srcdir/$subdir/$srcfile2
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
          $flags] == -1 } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test step $srcfile:$decimal\r\n.*
index a1bcc7522e6a260f50654cdd70611bffd7377f93..e0a7583573843933eee8638d3a5221916fd8e7da 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 set linefile ${testfile}.inp
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 263c640e876f1da64516e85053363e17356cca12..427ada57c90db2c64160ab0529db54befe2212b8 100644 (file)
@@ -31,15 +31,15 @@ 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
 }
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "set follow-fork-mode child"
index 18df1786039fa69686e5f420752002da5e0f4528..655b7a062d81b18f80601e6f0c005e5b73abbe3f 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile start.c
 
 if { [build_executable "failed to build" ${testfile} $srcfile] } {
-    return -1
+    return
 }
 
 # Get the current PC.  MSG is used as test message.
index 335736f56850c98eb2d4e1721b563f7fa3de429a..12eff194efc4f3de1858d747d67ba8455b33c237 100644 (file)
@@ -38,7 +38,7 @@ if { [istarget "i\[34567\]86-*-linux*"] || [istarget "x86_64-*-linux*"] } {
     array set syscall_number {fork "(120|220)" vfork "(190|220)" \
       clone "(120|220)"}
 } else {
-    return -1
+    return
 }
 
 proc_with_prefix check_pc_after_cross_syscall { displaced syscall syscall_insn_next_addr } {
@@ -359,7 +359,7 @@ step_over_syscall "clone"
 set testfile "step-over-fork"
 clean_restart $testfile
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set cond_bp_target 1
index 9c7c9fbde65a233e6fdcf44a8538b8d142405bd8..90ff43539f3f22137878d19ec1bc860d8ad54fc1 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "step" " in-func .*"
@@ -28,7 +28,7 @@ gdb_test "up" " call-func .*"
 gdb_test_no_output {set $b=$pc}
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint {*$b if cond ()}
index af825c1ffe831e3c2285c391d3cc7ae08ab832b3..d8cf9da97f712caad9a54bce4a962fce381f5f63 100644 (file)
@@ -22,7 +22,7 @@
 standard_testfile
 
 if {[build_executable "failed to build" ${testfile} ${srcfile} {debug}]} {
-    return -1
+    return
 }
 
 set linenum_for_user_bp [gdb_get_line_number "break for user-bp test here"]
index 0dcfec7da5cac6dadd258e0dbd057f9663a5389c..1f4dd88a103e5c7768e3c550c0185d7f9e410c34 100644 (file)
@@ -15,7 +15,7 @@
 
 standard_testfile
 if {[build_executable ${testfile}.exp ${testfile} ${srcfile} {nodebug}] == -1} {
-    return -1
+    return
 }
 
 # We need those symbols global to access them from the .S file.
@@ -33,7 +33,7 @@ pass $test
 clean_restart $testfile
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint symful
index bc8b1176002097f543e035cb8dca6e5f5018d135..d4165baed384e8c2eadbe188413e80aeae9dfe80 100644 (file)
@@ -19,7 +19,7 @@ standard_testfile
 set executable $testfile
 
 if { [prepare_for_testing "failed to prepare" $executable $srcfile] } {
-    return -1
+    return
 }
 
 #
index 65655c70fb4a10ebbfb0de34f1bb8f1ea734a2bc..76deeae538391b9ee84cba3795e279b0e8a976e2 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index bdcf19a9932b8c5e09194d2a4bbbfff3a9d1ce0d..a7e0ede2e2a0bc0dba2875d0d6a6b7b1b02335c1 100644 (file)
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" "structs3" "" {debug}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set vhn "${::valnum_re}"
index a12f61884798c1f14ac53d6a1faba260100f5385..8b9512e1e4f72e8d52e509ac2ec3eecf3701eb7d 100644 (file)
@@ -23,7 +23,7 @@ standard_testfile
 
 # Compile the test executable.
 if {[build_executable "failed to build" $testfile $srcfile {debug macros}]} {
-    return -1
+    return
 }
 
 # The tests in this file are run multiple times with GDB's styles
index 624422bb2f3561877b2e25167be3d88b1f867fb8..0d9192730f0f933d232b8c3d9c27e466b80626d0 100644 (file)
@@ -20,7 +20,7 @@ set old_clang [expr {[test_compiler_info {clang-1[0-4]-*-*}] \
                         || [test_compiler_info {clang-[1-9]-*}]}]
 
 if { [prepare_for_testing "failed to prepare" ${testfile} [list $srcfile $srcfile2]] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 420f5eeabf04f0ca00f707db9733f8f67d419625..c61ccebc316283d292ae86a182fe69713a027b65 100644 (file)
@@ -24,10 +24,10 @@ set binlibfile ${testfile}.x
 if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" \
                  [standard_output_file ${binlibfile}] object {debug}] != "" } {
     untested "failed to compile"
-    return -1
+    return
 }
 if {[build_executable ${testfile}.exp ${testfile} ${srcfile} {debug}] == -1} {
-    return -1
+    return
 }
 clean_restart ${binlibfile}
 
index 17f51071cb6d073a599470dac5c3b7a648fc6e3a..1dc5e6aee4ad07c84ac71cd9067e5f8c64de8f45 100644 (file)
@@ -19,7 +19,7 @@ set ofile [standard_output_file ${testfile}.o]
 if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" \
         $ofile object {debug}] != ""} {
     untested "failed to compile"
-    return -1
+    return
 }
 
 clean_restart
index 7870e16acc919b00f9e6aff8f99c53d11e2ce58e..bc2249071eb5c9e7e40d8879580db04cccbe895a 100644 (file)
@@ -32,11 +32,11 @@ if {[lindex $status 0] != 0} {
 }
 
 if {[prepare_for_testing $testfile $testfile $srcfilelink]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Using a line number ensures that the default symtab is used.
index 5ea8c18e3f3a453451bcdc8b0d85d1bc50bf0ab7..9709548b1297a90a379affbbfa5c04ea1c0a199b 100644 (file)
@@ -36,7 +36,7 @@ if { [prepare_for_testing "prepare" $testfile [list $srcfile $srcfile2] \
 gdb_load_shlib $lib1
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # PR 17564
index 320bf6f496a8cef588c29f141798079f86bf837c..b615d9a410e9edc62e590ee8a553e3e08be38720 100644 (file)
@@ -17,7 +17,7 @@
 # the output of the "info terminal" command.
 
 if { [prepare_for_testing "failed to prepare" term term.c] } {
-    return -1
+    return
 }
 
 # Once before running the program.
index ce8d6737b92b9d74237993df010f8d6678d48b2e..91c0f320935b1e7e7c3c7997eb462d1c6daa6dc7 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 delete_breakpoints
@@ -33,7 +33,7 @@ gdb_breakpoint "foo thread 1"
 set bp_number [get_integer_valueof "\$bpnum" 0]
 if { $bp_number == 0 } {
     unresolved "breakpoint not placed correctly"
-    return -1
+    return
 }
 
 set saw_header false
index 2e1b50145413b62399ce63bdc24c5f085b6a2e7b..2136af0fe7bcbc36b4fd7efffaa22e2e23aff756 100644 (file)
@@ -318,29 +318,29 @@ proc do_tests {force_internal_tls} {
 # Build shared objects for dlopen:
 if { [gdb_compile_shlib $libsrc $lib1obj [list debug additional_flags=-DN=1]] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 if { [gdb_compile_shlib $libsrc $lib2obj [list debug additional_flags=-DN=2]] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 if { [gdb_compile_shlib $libsrc $lib3obj [list debug additional_flags=-DN=3]] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 if { [gdb_compile_shlib $libsrc $lib4obj [list debug additional_flags=-DN=4]] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 
 # Build shared objects to link against main program:
 if { [gdb_compile_shlib $libsrc $lib10obj [list debug additional_flags=-DN=10]] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 if { [gdb_compile_shlib $libsrc $lib11obj [list debug additional_flags=-DN=11]] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 
 # Use gdb_compile_pthreads to build and link the main program for
index 56318b934382d4bb0b8d166eaaf869cdad3b7997..c0ad83c1db905a2280eae063f25821f1f98e05d4 100644 (file)
@@ -167,15 +167,15 @@ proc do_tests {force_internal_tls {do_kfail_tls_access 0}} {
 
 if { [gdb_compile_shlib $lib1src $lib1obj {debug}] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 if { [gdb_compile_shlib $lib2src $lib2obj {debug}] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 if { [gdb_compile_shlib $lib3src $lib3obj {debug}] != "" } {
     untested "failed to compile shared object"
-    return -1
+    return
 }
 
 # Certain linux target architectures implement support for internal
index 9bf4ea131d1d7d15faa913326c4187bacbdb5c28..b6d3549072254154837eff716139a1b12ffdd818 100644 (file)
@@ -22,7 +22,7 @@ standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
         {debug pthreads}]} {
-    return -1
+    return
 }
 
 if {![runto "parent_stop"]} {
index 5a37f485e74c87406d28fbd3854fd257f2c11abf..c1cb461496b86b7102654feb51ab52add58209ee 100644 (file)
 require !gdb_debug_enabled
 
 if { [prepare_for_testing "failed to prepare" ui-redirect start.c] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set test "commands"
index e23a0c915da67902e445fae4abcce0014a74e53a..5980bc435ced81f80bf759cb69bb48c97fb5dc75 100644 (file)
@@ -19,7 +19,7 @@
 standard_testfile advance.c
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile nodebug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 531bc46aefa2feefddaa6ea9b2210d9416b650fe..86909aa6dc41e0b1f7cfed96771b38f2f49dfa7f 100644 (file)
@@ -84,7 +84,7 @@ require dwarf2_support
 standard_testfile .c .S
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set asm_file [standard_output_file $srcfile2]
@@ -157,11 +157,11 @@ Dwarf::assemble $asm_file {
 
 if { [prepare_for_testing "failed to prepare" ${testfile} \
        [list $srcfile $asm_file] {nodebug} ] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "next" ".* TAG: loop code .*" "inside the loop"
index 7c16592fe6aeb4d53920d192e6e1455735de9475..58f9174af988e70ef7821d2e0d9d347151830233 100644 (file)
@@ -17,7 +17,7 @@
 
 set srcfile break.c
 if { [prepare_for_testing "failed to prepare" "until" {break.c break1.c} {debug nowarnings}] } {
-    return -1
+    return
 }
 
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
index c037ff2071af3e239370e065f0b19697e1f1c6fe..471342684aecbbace8976728cf77e0d576cbc5dd 100644 (file)
@@ -26,7 +26,7 @@
 if {[prepare_for_testing_full "failed to prepare" \
         [list ${testfile} $ldflags \
              $srcfile $srcfile_flags $srcfile2 $srcfile2_flags]]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 64f86bfd2820dd9cd3c4824970b690242620fa78..cd98b9fdd02f9127b174d78c319c2bd5206cec16 100644 (file)
@@ -23,7 +23,7 @@ require {!target_info exists gdb,cannot_call_functions}
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if { ![runto_main] } {
index 95311b5494af4424ffaab548ddf31c80fba04d2e..676cb2904c9e67c9309d7be887455179f91b69c4 100644 (file)
@@ -33,7 +33,7 @@ standard_testfile
 setenv LC_ALL C.UTF-8
 
 if { [prepare_for_testing "failed to prepare" ${testfile} [list $srcfile]] } {
-    return -1
+    return
 }
 
 if {![runto done]} {
@@ -66,7 +66,7 @@ gdb_test_no_output "nosharedlibrary"
 
 if { ![readline_is_used] } {
     untested "no tab completion support without readline"
-    return -1
+    return
 }
 
 # Test linespec completion.
index dd2b1ed83940834867df01513332632100bb633b..36614427cf9b2f4e90a24d49b9aeadc40bbf0521 100644 (file)
@@ -22,11 +22,11 @@ require {!is_remote target}
 
 standard_testfile .c
 if {[build_executable $testfile.exp $testfile $srcfile {debug}] == -1} {
-    return -1
+    return
 }
 
 if { [vgdb_start] == -1 } {
-    return -1
+    return
 }
 
 set double_free [gdb_get_line_number "double-free"]
index 13f36837d5e270d7c206b6a3c10a178e0c1010b4..2b2d5b5b8e6e04a8f11d2004cf2a50b4f150be94 100644 (file)
@@ -27,11 +27,11 @@ require {!is_remote target}
 
 standard_testfile .c
 if {[build_executable "failed to build" $testfile $srcfile {debug}] == -1} {
-    return -1
+    return
 }
 
 if { [vgdb_start] == -1 } {
-    return -1
+    return
 }
 
 gdb_test_no_output "set displaced-stepping off"
index 28fa2b78022f6817c682c32a4f3ad8f3a109b6ff..77e92ce81f9dc27244bd7d09e4baf8445d193fa8 100644 (file)
@@ -38,12 +38,12 @@ require {!is_remote target}
 
 standard_testfile .c
 if {[build_executable $testfile.exp $testfile $srcfile {debug}] == -1} {
-    return -1
+    return
 }
 
 set active_at_startup 0
 if { [vgdb_start $active_at_startup] == -1 } {
-    return -1
+    return
 }
 
 # Determine whether we're at nanosleep.
index 0bd6c837a28cc3832d6ac6f9d72e5c7c57040339..c39d318198373323f2899cdda48ce24334fa179d 100644 (file)
@@ -22,11 +22,11 @@ require {!is_remote target}
 
 standard_testfile .c
 if {[build_executable $testfile.exp $testfile $srcfile {debug}] == -1} {
-    return -1
+    return
 }
 
 if { [vgdb_start] == -1 } {
-    return -1
+    return
 }
 
 set continue_count 1
index 1b566b5fdd510f566473f41af2225e3883808eed..277d9bfd096e49bb70dc1226fb4f2cff4872ff62 100644 (file)
@@ -24,11 +24,11 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Disable hardware watchpoints if necessary.
index 347271c221186f6b0eca267dc567f66000eeb046..6e87bee29952b9d2dde47d1609460098a4d5fec2 100644 (file)
@@ -18,7 +18,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 37c481054e9d38709e8d7adaa6c3502715b36bb8..4f61554dc68ad6563859cd4de52af819ccd45446 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
-    return -1
+    return
 }
 
 with_test_prefix "setup" {
index 9e082ac91e49d461a880585899f1da3a5e2e7d59..40fd11ca8921066577df93ded0b0bfdaba358be5 100644 (file)
@@ -29,7 +29,7 @@ set binfile3 vforked-prog
 
 if { [build_executable "compile $binfile3" $binfile3 $srcfile2] } {
     untested "failed to compile third test binary"
-    return -1
+    return
 }
 
 if { [is_remote target] } {
index ffc25bfa36b5ba2a4d16a38b1baeb25e93d71bef..7453132bc6af1a65615c4c5d61f482734e2f501d 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "vlas_filled"]
index 74a1dc0981630ce7ecd121be7d6e31892af66d9b..33e29d5c2d9a307f65e4dc657466326b96a06f0d 100644 (file)
@@ -17,11 +17,11 @@ standard_testfile
 set using_clang [test_compiler_info clang*]
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 set sizeof_int [get_sizeof "int" 4]
index 02a8db2109278021791828cb8d8f1030fbb151b9..34756b36feb9e84d4b817d68590b39fea043c123 100644 (file)
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "vla-filled"]
index 9ed7762b8dc166be8e58be57fa4018ba0081725d..514ec9edff530dea8db6fdaeff45883d712499e6 100644 (file)
@@ -19,11 +19,11 @@ standard_testfile
 require {!test_compiler_info clang*}
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "vlas_filled"]
index 0258a629c9ed16031199230b97eb8ecf98e2ab55..6759a2655bce9505a4fcaca2875c0fe8fd29ec14 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile .c vla-stub-define.c
 if { [prepare_for_testing "failed to prepare for vla-stub.exp" \
       ${testfile} [list ${srcfile} ${srcfile2}]] } {
-    return -1
+    return
 }
 
 gdb_test "p *local_struct.ptr" { = {dynamic_field = 0x0}}
index f244303a3de16546861a0a7588d0f208193e220f..38b4588d568d4224aab8ecf9144cc63075d0ee45 100644 (file)
@@ -36,7 +36,7 @@
 # Use the same test program constvars.c.
 
 if { [prepare_for_testing "failed to prepare" volatile constvars.c] } {
-    return -1
+    return
 }
 
 #
index 83f33de12e4a0b8946ec11161d67d13da600bc34..30e90fecf6b899f41c1046c878f0f88b742878b2 100644 (file)
@@ -27,7 +27,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Set a watchpoint watching EXPR.
index 32a0632eae14fafa445868b3238b5957f9eadd93..ed62a39926d3e06706fcb4e864713020873db3f5 100644 (file)
@@ -30,7 +30,7 @@ require {!target_info exists gdb,cannot_call_functions}
 
 if { [build_executable ${testfile}.exp ${testfile} ${testfile}.c {debug}] } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 proc test_watchpoint { hw } {
index 4b0a93be2075c872a12ed5347a9dd0306aa6c132..0d283ad90582983ee5a4975b41e8cdb2f836a55f 100644 (file)
@@ -28,7 +28,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # Disable hardware watchpoints if necessary.
index 95591301287b792a1d4039bc0c7602ce92cf0c19..42dc3c8a80ffbbad3b09ade5ad8b8ea2995b450a 100644 (file)
@@ -20,7 +20,7 @@
 standard_testfile
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 49eb787347ec57afda9b9c726f96b6b904a3d655..378bae067752907c6b8f58a001c69a603e250265 100644 (file)
@@ -27,7 +27,7 @@ standard_testfile .c
 require allow_hw_watchpoint_access_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 588a94c8218affec0ae4d8549c83c71f20b30cc8..6df3a7ddbacc61f549326b11e1252576e89c7838 100644 (file)
@@ -21,7 +21,7 @@ require allow_fork_tests
 
 if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] } {
     untested "failed to compile"
-    return -1
+    return
 }
 
 proc test_watchpoint_across_vfork { hw teststr } {
index 546c2b4349f7c858bf1a05f67a4589342e474328..823334ec503482087d12fbfbb3afa432ea915651 100644 (file)
@@ -21,14 +21,14 @@ standard_testfile .c watchpoint-cond-gone-stripped.c
 
 if {[prepare_for_testing_full "failed to prepare" \
         [list $testfile debug $srcfile debug $srcfile2 {}]]} {
-    return -1
+    return
 }
 
 # Problem does not occur otherwise.
 gdb_test_no_output "set can-use-hw-watchpoints 0"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "watchpoint-here"]
index 91d28d7053898fc0db2baa09863ab49efe6ecc76..f410298a5ecece5bf6906abd03615a93a6221cd3 100644 (file)
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 # It is more compatible this way.
 gdb_test_no_output "set can-use-hw-watchpoints 0"
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 # Ensure there is a parent frame to create related bp_watchpoint_scope.
index e87cc72dfc0e29faba26e38ca920d53345504550..2962f6964bf1f8d692b5315f378fe0f927185561 100644 (file)
@@ -23,7 +23,7 @@ require can_spawn_for_attach
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 set test_spawn_id [spawn_wait_for_attach $binfile]
index 60b8ed826404d03e74c252498dc30528d52eea08..c8723e9dafe0515889af923637a84f4dbc474d1d 100644 (file)
@@ -18,11 +18,11 @@ require allow_hw_watchpoint_access_tests
 set test watchpoint-hw-hit-once
 set srcfile ${test}.c
 if { [prepare_for_testing "failed to prepare" ${test} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_test "rwatch watchee"
index af5c6712b93bdfaf9ec3753e79f4d249741e6a9b..537fceec914297d7c5900a4a04bf2aee1670df82 100644 (file)
@@ -20,7 +20,7 @@ require allow_hw_watchpoint_tests
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 # Create the watchpoint before the inferior gets started.  Now the native CPU
@@ -33,7 +33,7 @@ gdb_test "watch watchee" "atchpoint 1: watchee"
 
 if { [gdb_start_cmd] < 0 } {
     fail start
-    return -1
+    return
 }
 gdb_test "" "main .* at .*" "start"
 
index 44ede1e46546e492b76529d21fed85a186b27b53..85494e5463ed45a037e0ef0c0ed63abcb15b3834 100644 (file)
@@ -35,7 +35,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 standard_testfile
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 95b506a80b61506d767be40f79fddb3550dd84c6..232ecf5721c2096c945f71cdef3da25df717ef18 100644 (file)
@@ -23,7 +23,7 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
 standard_testfile
 
 if {[build_executable "failed to prepare" $testfile $srcfile {debug}]} {
-    return -1
+    return
 }
 
 # STOP_MODE is either "all-stop" or "non-stop".  HW is true if we are
index bf4851ca6c824d21b92354477ab89c090699320d..53d1064c76de0150451d727e110b780047556499 100644 (file)
@@ -74,7 +74,7 @@ standard_testfile
 require allow_hw_watchpoint_tests
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
index 8b929e5de4e68a304ae27c9c2f98c9dc04846ecd..e19a5c189c50fcb03b29c38329f679f329d8e5f8 100644 (file)
@@ -21,11 +21,11 @@ require allow_hw_watchpoint_tests
 
 standard_testfile
 if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 if {![runto_main]} {
-    return -1
+    return
 }
 
 gdb_breakpoint [gdb_get_line_number "start_again"] "Breakpoint $decimal at $hex" "start_again"
index 89a7075f5f5efe0f229946734782a893f045168b..969210ad625b531e2b72cb345c0b3e2d7a1f354a 100644 (file)
@@ -29,7 +29,7 @@ standard_testfile
 set wp_set 1
 
 if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 with_test_prefix "before inferior start" {
index e05cb4b0b03af1ea49220432e26e6e4179751a78..d3cfd09d5de4a9db6c027500e79c36c9a5b215c7 100644 (file)
@@ -16,7 +16,7 @@
 standard_testfile .c
 
 if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
-    return -1
+    return
 }
 
 set bp_location [gdb_get_line_number "START"]
index 7ee69c3b24635a0afa796dc44f5ff4e5c8570404..34652005a4f62d2755a3dc8eb4a3cb1f45acb2e5 100644 (file)
@@ -30,7 +30,7 @@
 #
 
 if { [prepare_for_testing "failed to prepare" whatis-exp int-type.c {debug nowarnings}] } {
-    return -1
+    return
 }
 
 #
index 44c331102e6a339b914708c622c285c86f8798c2..5a6e43e85d110c8086d62f7f5d56f89033274e8a 100644 (file)
@@ -21,12 +21,12 @@ standard_testfile with-mf-main.c with-mf-inc.c
 
 if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \
         debug]} {
-    return -1
+    return
 }
 
 if { [ensure_gdb_index $binfile] == -1 } {
     untested "error adding gdb index"
-    return -1
+    return
 }
 
 clean_restart $testfile
index c01804d5ea659dc71df6f2993686e47447211454..101c6dcccf938be84dc381693bdbf8fef322f11e 100644 (file)
@@ -22,7 +22,7 @@ load_lib completion-support.exp
 standard_testfile .c
 
 if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
-    return -1
+    return
 }
 
 clean_restart $testfile
index 6881211692a36636a8e55b088ea1d6246af5c2e0..2c9509dd658388d40699705429c42d3bcbb2de02 100644 (file)
@@ -24,7 +24,7 @@ standard_testfile
 if {[build_executable $testfile.exp $testfile \
        $srcfile [list debug nowarnings] ] == -1} {
     untested $testfile.exp
-    return -1
+    return
 }
 
 save_vars { GDBFLAGS } {
index 3087466c82aa9f7266de425b67dcf0fc3ee4e344..98680e5c5a32c161afee677a6fa7f494b7949474 100644 (file)
@@ -37,14 +37,14 @@ if {[gdb_compile \
       [standard_output_file ${main_testfile}] \
       executable {debug}] != ""} {
     untested "failed to build $main_testfile"
-    return -1
+    return
 }
 
 clean_restart ${main_testfile}
 
 if {![runto opaque_routine]} {
     untested "could not run to opaque_routine"
-    return -1
+    return
 }
 
 # Make sure that "bt full" command is capable of displaying MY_TABLE