* [PATCH 00/36] GDB: testsuite: Fix top-level returns
@ 2026-04-27 6:34 Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 01/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (35 more replies)
0 siblings, 36 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
In the past, when testcases needed to return early they would do a
"return -1". Or rarely, as I found out in the process of writing these
patches, "return 0" or even "return 1". Nowadays the style is to do
do a "return" without any value.
When creating new testcases, we often copy snippets from older files which
do return a value so the old style keeps spreading. In an effort to reduce
the bad examples, this patch series fixes the return statements that were
easy to find and verify for correctness. I didn't try to remove all of the
"wrong" instances. Especially of "return 0" or "return 1", which I only
learned about while working on these patches and which I haven't yet seen
spreat to new testcases. I fixed some of them opportunistically as I
encountered them.
I also didn't go through all directories under gdb/testsuite/. I can do
more in the future, if people find it worthwhile.
For each directory, I first ran a sed command and inspected each change
before adding it to the patch. Then I looked for other returns manually and
fixed the ones that the sed command didn't catch and which were easy to
check that they were indeed instances of top-level returns. Or returns from
procedures whose values aren't checked by their callers.
If there were many changes in a directory, I separated the sed changes from
the manual changes. I also separated the changes in gdb.arch per
architecture.
Tested on native aarch64-linux-gnu, armv8l-linux-gnueabihf and
x86_64-linux-gnu with no regressions.
Thiago Jung Bauermann (36):
GDB: testsuite: aarch64, arm: Don't return -1 from top-level (sed)
GDB: testsuite: aarch64, arm: Don't return -1 from top-level (manual)
GDB: testsuite: intel: Don't return -1 from top-level (sed)
GDB: testsuite: intel: Don't return -1 from top-level (manual)
GDB: testsuite: powerpc: Don't return -1 from top-level (sed)
GDB: testsuite: powerpc: Don't return -1 from top-level (manual)
GDB: testsuite: riscv: Don't return -1 from top-level (sed)
GDB: testsuite: riscv: Don't return -1 from top-level (manual)
GDB: testsuite: s390: Don't return -1 from top-level (sed)
GDB: testsuite: sparc: Don't return -1 from top-level (sed)
GDB: testsuite: Don't return -1 from top-level in tests of various
arches
GDB: testsuite: Don't return -1 from top-level in multi-arch tests
GDB: testsuite: base: Don't return -1 from top-level (sed)
GDB: testsuite: base: Don't return 0 from top-level (sed)
GDB: testsuite: base: Don't return -1 from top-level (manual)
GDB: testsuite: C++: Don't return -1 from top-level (sed)
GDB: testsuite: C++: Don't return -1 from top-level (manual)
GDB: testsuite: DWARF: Don't return -1 from top-level (sed)
GDB: testsuite: DWARF: Don't return -1 from top-level (manual)
GDB: testsuite: GDB: Don't return -1 from top-level
GDB: testsuite: Guile: Don't return -1 from top-level
GDB: testsuite: Python: Don't return -1 from top-level (sed)
GDB: testsuite: Python: Don't return -1 from top-level (manual)
GDB: testsuite: linespec: Don't return -1 from top-level
GDB: testsuite: MI: Don't return -1 from top-level (sed)
GDB: testsuite: MI: Don't return -1 from top-level (manual)
GDB: testsuite: reverse: Don't return -1 from top-level (sed)
GDB: testsuite: reverse: Don't return -1 from top-level (manual)
GDB: testsuite: server: Don't return -1 from top-level (sed)
GDB: testsuite: server: Don't return -1 from top-level (manual)
GDB: testsuite: threads: Don't return -1 from top-level (sed)
GDB: testsuite: threads: Don't return 0 from top-level (sed)
GDB: testsuite: threads: Don't return -1 from top-level (manual)
GDB: testsuite: TUI: Don't return -1 from top-level (sed)
GDB: testsuite: TUI: Don't return 0 from top-level (manual)
GDB: testsuite: XML: Don't return -1 nor 0 from top-level
.../gdb.arch/aarch64-atomic-inst.exp | 4 +-
.../gdb.arch/aarch64-brk-patterns.exp | 4 +-
gdb/testsuite/gdb.arch/aarch64-fp.exp | 4 +-
gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp | 6 +--
.../gdb.arch/aarch64-fpmr-sighandler.exp | 4 +-
gdb/testsuite/gdb.arch/aarch64-fpmr.exp | 4 +-
.../aarch64-frameptr-vecreg-unwind.exp | 2 +-
gdb/testsuite/gdb.arch/aarch64-gcs-core.exp | 2 +-
.../gdb.arch/aarch64-mops-single-step.exp | 4 +-
.../gdb.arch/aarch64-mops-watchpoint.exp | 4 +-
gdb/testsuite/gdb.arch/aarch64-mte-core.exp | 6 +--
gdb/testsuite/gdb.arch/aarch64-mte.exp | 18 ++++-----
.../gdb.arch/aarch64-non-address-bits.exp | 4 +-
gdb/testsuite/gdb.arch/aarch64-pauth.exp | 4 +-
gdb/testsuite/gdb.arch/aarch64-prologue.exp | 4 +-
.../gdb.arch/aarch64-pseudo-unwind.exp | 2 +-
.../gdb.arch/aarch64-sighandler-regs.exp | 4 +-
.../gdb.arch/aarch64-sme-core.exp.tcl | 8 ++--
.../aarch64-sme-regs-available.exp.tcl | 10 ++---
.../aarch64-sme-regs-sigframe.exp.tcl | 8 ++--
.../aarch64-sme-regs-unavailable.exp.tcl | 8 ++--
gdb/testsuite/gdb.arch/aarch64-sme-sanity.exp | 4 +-
.../gdb.arch/aarch64-tagged-pointer.exp | 4 +-
gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp | 4 +-
.../gdb.arch/aarch64-w-registers.exp | 4 +-
gdb/testsuite/gdb.arch/aix-sighandle.exp | 2 +-
gdb/testsuite/gdb.arch/alpha-step.exp | 4 +-
gdb/testsuite/gdb.arch/altivec-abi.exp | 6 +--
gdb/testsuite/gdb.arch/altivec-regs.exp | 8 ++--
.../gdb.arch/amd64-break-on-asm-line.exp | 4 +-
.../gdb.arch/amd64-disp-step-avx.exp | 2 +-
.../gdb.arch/amd64-disp-step-self-call.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-disp-step.exp | 2 +-
.../gdb.arch/amd64-entry-value-inline.exp | 4 +-
.../amd64-entry-value-param-dwarf5.exp | 4 +-
.../gdb.arch/amd64-entry-value-param.exp | 4 +-
.../gdb.arch/amd64-entry-value-paramref.exp | 4 +-
gdb/testsuite/gdb.arch/amd64-entry-value.exp | 4 +-
gdb/testsuite/gdb.arch/amd64-eval.exp | 4 +-
.../gdb.arch/amd64-frameptr-vecreg-unwind.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-gs_base.exp | 4 +-
gdb/testsuite/gdb.arch/amd64-i386-address.exp | 2 +-
.../gdb.arch/amd64-init-x87-values.exp | 2 +-
.../gdb.arch/amd64-invalid-stack-middle.exp | 8 ++--
.../gdb.arch/amd64-invalid-stack-top.exp | 8 ++--
gdb/testsuite/gdb.arch/amd64-lam.exp | 4 +-
.../gdb.arch/amd64-optimout-repeat.exp | 4 +-
gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp | 4 +-
.../gdb.arch/amd64-pseudo-unwind.exp | 2 +-
.../gdb.arch/amd64-shadow-stack-cmds.exp | 10 ++---
.../gdb.arch/amd64-stap-expressions.exp | 4 +-
.../gdb.arch/amd64-stap-optional-prefix.exp | 4 +-
.../gdb.arch/amd64-stap-special-operands.exp | 4 +-
.../gdb.arch/amd64-stap-wrong-subexp.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp | 4 +-
.../gdb.arch/amd64-tailcall-noret.exp | 4 +-
gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp | 4 +-
.../gdb.arch/amd64-tailcall-self.exp | 4 +-
.../gdb.arch/amd64-watchpoint-downgrade.exp | 4 +-
.../gdb.arch/arc-analyze-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/arc-dbnz.exp | 2 +-
gdb/testsuite/gdb.arch/arc-decode-insn.exp | 2 +-
gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp | 4 +-
gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp | 4 +-
gdb/testsuite/gdb.arch/arm-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/arm-neon.exp | 4 +-
.../gdb.arch/arm-pseudo-unwind-legacy.exp | 2 +-
gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp | 2 +-
.../arm-pthread_cond_timedwait-bt.exp | 2 +-
.../arm-single-step-kernel-helper.exp | 4 +-
.../gdb.arch/avr-flash-qualifier.exp | 10 ++---
gdb/testsuite/gdb.arch/core-file-pid0.exp | 6 +--
.../gdb.arch/disp-step-insn-reloc.exp | 6 +--
gdb/testsuite/gdb.arch/e500-abi.exp | 6 +--
gdb/testsuite/gdb.arch/e500-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/e500-regs.exp | 8 ++--
gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp | 14 +++----
gdb/testsuite/gdb.arch/gdb1291.exp | 4 +-
gdb/testsuite/gdb.arch/gdb1431.exp | 4 +-
gdb/testsuite/gdb.arch/gdb1558.exp | 2 +-
.../gdb.arch/i386-attach-see-vdso.exp | 2 +-
gdb/testsuite/gdb.arch/i386-avx512.exp | 4 +-
gdb/testsuite/gdb.arch/i386-biarch-core.exp | 4 +-
gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 8 ++--
.../gdb.arch/i386-cfi-notcurrent.exp | 4 +-
.../gdb.arch/i386-disp-step-self-call.exp | 2 +-
gdb/testsuite/gdb.arch/i386-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/i386-dr3-watch.exp | 4 +-
gdb/testsuite/gdb.arch/i386-float.exp | 2 +-
gdb/testsuite/gdb.arch/i386-gnu-cfi.exp | 4 +-
gdb/testsuite/gdb.arch/i386-permbkpt.exp | 2 +-
gdb/testsuite/gdb.arch/i386-pkru.exp | 4 +-
gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/i386-signal.exp | 2 +-
gdb/testsuite/gdb.arch/i386-size-overlap.exp | 2 +-
gdb/testsuite/gdb.arch/i386-size.exp | 2 +-
.../gdb.arch/i386-sse-stack-align.exp | 4 +-
.../gdb.arch/i386-stap-eval-lang-ada.exp | 4 +-
gdb/testsuite/gdb.arch/i386-unwind.exp | 2 +-
.../gdb.arch/ia64-breakpoint-shadow.exp | 6 +--
gdb/testsuite/gdb.arch/iwmmxt-regs.exp | 2 +-
gdb/testsuite/gdb.arch/pa-nullify.exp | 8 ++--
gdb/testsuite/gdb.arch/powerpc-addpcis.exp | 2 +-
.../gdb.arch/powerpc-aix-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-altivec.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-altivec2.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-altivec3.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-d128-regs.exp | 6 +--
.../gdb.arch/powerpc-fpscr-gcore.exp | 10 ++---
gdb/testsuite/gdb.arch/powerpc-lnia.exp | 2 +-
.../gdb.arch/powerpc-plxv-nonrel.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-power10.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-power7.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-power8.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-power9.exp | 2 +-
.../gdb.arch/powerpc-prologue-frame.exp | 6 +--
gdb/testsuite/gdb.arch/powerpc-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-stackless.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-tar.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-trap.exp | 4 +-
gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp | 10 ++---
gdb/testsuite/gdb.arch/powerpc-vsx.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-vsx2.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-vsx3.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc64-prologue.exp | 4 +-
gdb/testsuite/gdb.arch/ppc-dfp.exp | 6 +--
gdb/testsuite/gdb.arch/ppc-fp.exp | 4 +-
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 4 +-
.../gdb.arch/ppc64-break-on-_exit.exp | 2 +-
.../gdb.arch/ppc64-isa207-atomic-inst.exp | 6 +--
.../gdb.arch/ppc64-symtab-cordic.exp | 4 +-
gdb/testsuite/gdb.arch/pr25124.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-bp-infcall.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-info-fcsr.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-reg-aliases.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp | 8 ++--
.../gdb.arch/riscv-unwind-long-insn.exp | 4 +-
.../riscv64-unwind-prologue-with-c_li.exp | 2 +-
.../riscv64-unwind-prologue-with-ld-lw.exp | 2 +-
.../riscv64-unwind-prologue-with-mv.exp | 2 +-
gdb/testsuite/gdb.arch/s390-stackless.exp | 2 +-
gdb/testsuite/gdb.arch/s390-tdbregs.exp | 2 +-
gdb/testsuite/gdb.arch/s390-vregs.exp | 6 +--
gdb/testsuite/gdb.arch/skip-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/sparc-sysstep.exp | 4 +-
gdb/testsuite/gdb.arch/sparc64-adi.exp | 4 +-
gdb/testsuite/gdb.arch/sparc64-regs.exp | 2 +-
gdb/testsuite/gdb.arch/thumb-bx-pc.exp | 4 +-
gdb/testsuite/gdb.arch/thumb-prologue.exp | 4 +-
gdb/testsuite/gdb.arch/thumb-singlestep.exp | 4 +-
gdb/testsuite/gdb.arch/thumb2-it.exp | 6 +--
gdb/testsuite/gdb.arch/vsx-regs.exp | 10 ++---
gdb/testsuite/gdb.arch/vsx-vsr-float28.exp | 8 ++--
gdb/testsuite/gdb.arch/x86-avx512bf16.exp | 4 +-
gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp | 4 +-
gdb/testsuite/gdb.arch/x86-avx512fp16.exp | 4 +-
gdb/testsuite/gdb.base/a2-run.exp | 2 +-
gdb/testsuite/gdb.base/access-mem-running.exp | 6 +--
.../gdb.base/add-symbol-file-attach.exp | 2 +-
.../advance-until-multiple-locations.exp | 2 +-
gdb/testsuite/gdb.base/advance.exp | 4 +-
gdb/testsuite/gdb.base/all-bin.exp | 2 +-
.../gdb.base/annota-input-while-running.exp | 2 +-
gdb/testsuite/gdb.base/annota1.exp | 2 +-
gdb/testsuite/gdb.base/annota3.exp | 2 +-
gdb/testsuite/gdb.base/annotate-symlink.exp | 6 +--
gdb/testsuite/gdb.base/anon.exp | 2 +-
gdb/testsuite/gdb.base/args.exp | 2 +-
gdb/testsuite/gdb.base/argv0-symlink.exp | 10 ++---
gdb/testsuite/gdb.base/arithmet.exp | 2 +-
gdb/testsuite/gdb.base/array-indices.exp.tcl | 2 +-
gdb/testsuite/gdb.base/array-repeat.exp.tcl | 2 +-
gdb/testsuite/gdb.base/asmlabel.exp | 4 +-
gdb/testsuite/gdb.base/async-shell.exp | 2 +-
gdb/testsuite/gdb.base/async.exp | 2 +-
.../gdb.base/attach-deleted-exec.exp | 2 +-
gdb/testsuite/gdb.base/attach-fail-twice.exp | 2 +-
.../gdb.base/attach-non-pgrp-leader.exp | 2 +-
gdb/testsuite/gdb.base/attach-pie-misread.exp | 6 +--
gdb/testsuite/gdb.base/attach-pie-noexec.exp | 6 +--
gdb/testsuite/gdb.base/attach-twice.exp | 2 +-
gdb/testsuite/gdb.base/attach-wait-input.exp | 2 +-
gdb/testsuite/gdb.base/attach.exp | 6 +--
.../gdb.base/auto-connect-native-target.exp | 4 +-
gdb/testsuite/gdb.base/auto-load.exp | 2 +-
gdb/testsuite/gdb.base/auxv.exp | 4 +-
gdb/testsuite/gdb.base/backtrace.exp | 4 +-
gdb/testsuite/gdb.base/bang.exp | 2 +-
.../gdb.base/batch-preserve-term-settings.exp | 2 +-
gdb/testsuite/gdb.base/bfd-errors.exp | 8 ++--
.../gdb.base/bg-exec-sigint-bp-cond.exp | 2 +-
.../gdb.base/bg-execution-repeat.exp | 2 +-
gdb/testsuite/gdb.base/bigcore.exp | 6 +--
gdb/testsuite/gdb.base/bitfields.exp | 2 +-
gdb/testsuite/gdb.base/bitfields2.exp | 2 +-
.../gdb.base/bp-cmds-continue-ctrl-c.exp | 4 +-
.../gdb.base/bp-cmds-execution-x-script.exp | 4 +-
.../gdb.base/bp-cmds-run-with-ex.exp | 4 +-
.../gdb.base/bp-cmds-sourced-script.exp | 2 +-
gdb/testsuite/gdb.base/bp-cond-failure.exp | 4 +-
gdb/testsuite/gdb.base/bp-permanent.exp | 4 +-
gdb/testsuite/gdb.base/branch-to-self.exp | 6 +--
gdb/testsuite/gdb.base/break-always.exp | 4 +-
gdb/testsuite/gdb.base/break-caller-line.exp | 6 +--
gdb/testsuite/gdb.base/break-entry.exp | 2 +-
gdb/testsuite/gdb.base/break-include.exp | 2 +-
gdb/testsuite/gdb.base/break-inline.exp | 2 +-
gdb/testsuite/gdb.base/break-interp.exp | 4 +-
.../gdb.base/break-main-file-remove-fail.exp | 2 +-
.../gdb.base/break-on-linker-gcd-function.exp | 2 +-
gdb/testsuite/gdb.base/break-probes.exp | 8 ++--
gdb/testsuite/gdb.base/break-unload-file.exp | 2 +-
gdb/testsuite/gdb.base/break.exp | 4 +-
.../gdb.base/breakpoint-in-ro-region.exp | 6 +--
gdb/testsuite/gdb.base/breakpoint-shadow.exp | 4 +-
.../gdb.base/bt-on-error-and-warning.exp | 6 +--
gdb/testsuite/gdb.base/bt-on-fatal-signal.exp | 6 +--
gdb/testsuite/gdb.base/bt-selected-frame.exp | 2 +-
gdb/testsuite/gdb.base/build-id-seqno.exp | 4 +-
gdb/testsuite/gdb.base/c-linkage-name.exp | 2 +-
gdb/testsuite/gdb.base/cached-source-file.exp | 6 +--
gdb/testsuite/gdb.base/call-ar-st.exp | 2 +-
gdb/testsuite/gdb.base/call-signal-resume.exp | 4 +-
gdb/testsuite/gdb.base/call-strs.exp | 2 +-
gdb/testsuite/gdb.base/callexit.exp | 2 +-
gdb/testsuite/gdb.base/cast-call.exp | 4 +-
gdb/testsuite/gdb.base/cast-indirection.exp | 4 +-
gdb/testsuite/gdb.base/catch-follow-exec.exp | 2 +-
gdb/testsuite/gdb.base/catch-fork-kill.exp | 4 +-
gdb/testsuite/gdb.base/catch-fork-static.exp | 2 +-
.../gdb.base/catch-gdb-caused-signals.exp | 4 +-
gdb/testsuite/gdb.base/catch-load.exp | 4 +-
gdb/testsuite/gdb.base/catch-signal-fork.exp | 4 +-
.../gdb.base/catch-signal-siginfo-cond.exp | 4 +-
gdb/testsuite/gdb.base/catch-signal.exp | 4 +-
gdb/testsuite/gdb.base/catch-syscall.exp | 4 +-
gdb/testsuite/gdb.base/charset.exp | 4 +-
gdb/testsuite/gdb.base/checkpoint.exp | 2 +-
gdb/testsuite/gdb.base/clear_non_user_bp.exp | 2 +-
gdb/testsuite/gdb.base/code_elim.exp | 4 +-
gdb/testsuite/gdb.base/commands.exp | 2 +-
gdb/testsuite/gdb.base/compare-sections.exp | 10 ++---
gdb/testsuite/gdb.base/complete-empty.exp | 2 +-
gdb/testsuite/gdb.base/completion.exp | 4 +-
gdb/testsuite/gdb.base/complex-parts.exp | 4 +-
gdb/testsuite/gdb.base/complex.exp | 2 +-
gdb/testsuite/gdb.base/cond-eval-mode.exp | 6 +--
gdb/testsuite/gdb.base/condbreak-bad.exp | 6 +--
.../gdb.base/condbreak-call-false.exp | 4 +-
gdb/testsuite/gdb.base/condbreak.exp | 2 +-
.../gdb.base/consecutive-step-over.exp | 4 +-
gdb/testsuite/gdb.base/consecutive.exp | 2 +-
.../continue-after-aborted-step-over.exp | 4 +-
.../gdb.base/continue-all-already-running.exp | 2 +-
.../gdb.base/coredump-filter-build-id.exp | 8 ++--
gdb/testsuite/gdb.base/coredump-filter.exp | 10 ++---
gdb/testsuite/gdb.base/corefile-buildid.exp | 4 +-
.../gdb.base/corefile-exec-context.exp | 8 ++--
gdb/testsuite/gdb.base/corefile-find-exec.exp | 2 +-
gdb/testsuite/gdb.base/corefile.exp | 4 +-
gdb/testsuite/gdb.base/corefile2.exp | 4 +-
gdb/testsuite/gdb.base/ctf-constvars.exp | 2 +-
gdb/testsuite/gdb.base/ctf-ptype.exp | 10 ++---
gdb/testsuite/gdb.base/ctxobj.exp | 8 ++--
gdb/testsuite/gdb.base/cursal.exp | 8 ++--
gdb/testsuite/gdb.base/dcache-flush.exp | 4 +-
.../gdb.base/dcache-line-read-error.exp | 4 +-
gdb/testsuite/gdb.base/debug-expr.exp | 4 +-
gdb/testsuite/gdb.base/debug-frame.exp | 4 +-
gdb/testsuite/gdb.base/decl-before-def.exp | 4 +-
gdb/testsuite/gdb.base/default-args.exp | 2 +-
gdb/testsuite/gdb.base/define.exp | 2 +-
gdb/testsuite/gdb.base/del.exp | 2 +-
gdb/testsuite/gdb.base/disabled-location.exp | 2 +-
gdb/testsuite/gdb.base/disasm-end-cu.exp | 6 +--
gdb/testsuite/gdb.base/disasm-optim.exp | 4 +-
.../gdb.base/displaced-step-closure.exp | 4 +-
gdb/testsuite/gdb.base/display.exp | 2 +-
gdb/testsuite/gdb.base/dmsym.exp | 6 +--
gdb/testsuite/gdb.base/document.exp | 2 +-
.../gdb.base/dprintf-bp-same-addr.exp | 4 +-
gdb/testsuite/gdb.base/dprintf-detach.exp | 4 +-
.../gdb.base/dprintf-execution-x-script.exp | 4 +-
gdb/testsuite/gdb.base/dprintf-next.exp | 4 +-
gdb/testsuite/gdb.base/dprintf-non-stop.exp | 4 +-
gdb/testsuite/gdb.base/dprintf-pending.exp | 2 +-
gdb/testsuite/gdb.base/dprintf.exp | 6 +--
gdb/testsuite/gdb.base/dso2dso.exp | 4 +-
gdb/testsuite/gdb.base/dtrace-probe.exp | 8 ++--
gdb/testsuite/gdb.base/dump.exp | 2 +-
gdb/testsuite/gdb.base/dup-sect.exp | 4 +-
gdb/testsuite/gdb.base/duplicate-bp.exp | 2 +-
gdb/testsuite/gdb.base/early-init-file.exp | 2 +-
gdb/testsuite/gdb.base/eh_return.exp | 4 +-
gdb/testsuite/gdb.base/ena-dis-br.exp | 2 +-
gdb/testsuite/gdb.base/endianity.exp | 6 +--
gdb/testsuite/gdb.base/ending-run.exp | 2 +-
gdb/testsuite/gdb.base/enum_cond.exp | 2 +-
gdb/testsuite/gdb.base/enumval.exp | 2 +-
gdb/testsuite/gdb.base/eu-strip-infcall.exp | 6 +--
.../gdb.base/eval-avoid-side-effects.exp | 4 +-
gdb/testsuite/gdb.base/examine-backward.exp | 4 +-
gdb/testsuite/gdb.base/exe-lock.exp | 2 +-
.../gdb.base/execl-update-breakpoints.exp | 10 ++---
gdb/testsuite/gdb.base/execution-termios.exp | 2 +-
gdb/testsuite/gdb.base/exitsignal.exp | 8 ++--
gdb/testsuite/gdb.base/expand-psymtabs.exp | 2 +-
gdb/testsuite/gdb.base/fileio.exp | 2 +-
gdb/testsuite/gdb.base/filesym.exp | 4 +-
gdb/testsuite/gdb.base/find-unmapped.exp | 4 +-
gdb/testsuite/gdb.base/finish-pretty.exp | 2 +-
gdb/testsuite/gdb.base/finish.exp | 6 +--
gdb/testsuite/gdb.base/fission-macro.exp | 4 +-
gdb/testsuite/gdb.base/float.exp | 2 +-
gdb/testsuite/gdb.base/float128.exp | 2 +-
gdb/testsuite/gdb.base/floatn.exp | 2 +-
gdb/testsuite/gdb.base/foll-exec-mode.exp | 8 ++--
gdb/testsuite/gdb.base/foll-fork-syscall.exp | 2 +-
gdb/testsuite/gdb.base/foll-fork.exp | 2 +-
gdb/testsuite/gdb.base/foll-vfork.exp | 6 +--
.../gdb.base/fork-print-inferior-events.exp | 2 +-
gdb/testsuite/gdb.base/fork-running-state.exp | 6 +--
gdb/testsuite/gdb.base/fortran-sym-case.exp | 4 +-
.../gdb.base/frame-info-consistent.exp | 2 +-
gdb/testsuite/gdb.base/frame-selection.exp | 2 +-
.../gdb.base/frame-unwind-disable.exp | 2 +-
gdb/testsuite/gdb.base/frameapply.exp | 4 +-
gdb/testsuite/gdb.base/freebpcmd.exp | 2 +-
gdb/testsuite/gdb.base/fullname.exp | 8 ++--
gdb/testsuite/gdb.base/fullpath-expand.exp | 6 +--
gdb/testsuite/gdb.base/func-ptr.exp | 4 +-
gdb/testsuite/gdb.base/func-ptrs.exp | 4 +-
gdb/testsuite/gdb.base/funcargs.exp | 2 +-
.../gdb.base/gcore-buffer-overflow.exp | 2 +-
gdb/testsuite/gdb.base/gcore-memory-usage.exp | 2 +-
gdb/testsuite/gdb.base/gcore-relro-pie.exp | 8 ++--
gdb/testsuite/gdb.base/gcore-relro.exp | 12 +++---
gdb/testsuite/gdb.base/gcore-tls-pie.exp | 10 ++---
gdb/testsuite/gdb.base/gcore.exp | 6 +--
gdb/testsuite/gdb.base/gcorebg.exp | 2 +-
gdb/testsuite/gdb.base/gdb-index-err.exp | 4 +-
gdb/testsuite/gdb.base/gdb-sigterm.exp | 2 +-
gdb/testsuite/gdb.base/gdb1090.exp | 2 +-
gdb/testsuite/gdb.base/gdb11530.exp | 4 +-
gdb/testsuite/gdb.base/gdb11531.exp | 2 +-
gdb/testsuite/gdb.base/gdb1555.exp | 2 +-
gdb/testsuite/gdb.base/gdb1821.exp | 2 +-
gdb/testsuite/gdb.base/gdbvars.exp | 4 +-
.../gdb.base/global-var-nested-by-dso.exp | 2 +-
gdb/testsuite/gdb.base/gnu-debugdata.exp | 20 +++++-----
gdb/testsuite/gdb.base/gnu-ifunc.exp | 2 +-
gdb/testsuite/gdb.base/gnu_vector.exp | 6 +--
gdb/testsuite/gdb.base/gstack.exp | 2 +-
gdb/testsuite/gdb.base/hashline1.exp | 2 +-
gdb/testsuite/gdb.base/hashline2.exp | 2 +-
gdb/testsuite/gdb.base/hashline3.exp | 2 +-
.../gdb.base/hbreak-in-shr-unsupported.exp | 2 +-
gdb/testsuite/gdb.base/hbreak-unmapped.exp | 4 +-
gdb/testsuite/gdb.base/hbreak.exp | 4 +-
gdb/testsuite/gdb.base/hbreak2.exp | 4 +-
gdb/testsuite/gdb.base/history-duplicates.exp | 2 +-
gdb/testsuite/gdb.base/hook-stop.exp | 2 +-
gdb/testsuite/gdb.base/huge.exp | 2 +-
.../gdb.base/hw-sw-break-same-address.exp | 4 +-
gdb/testsuite/gdb.base/include-main.exp | 2 +-
gdb/testsuite/gdb.base/included.exp | 2 +-
gdb/testsuite/gdb.base/infcall-exec.exp | 6 +--
gdb/testsuite/gdb.base/infcall-input.exp | 4 +-
gdb/testsuite/gdb.base/inferior-args.exp | 16 ++++----
gdb/testsuite/gdb.base/inferior-died.exp | 2 +-
gdb/testsuite/gdb.base/infnan.exp | 2 +-
gdb/testsuite/gdb.base/info-fun.exp | 4 +-
.../info-locals-unused-static-var.exp | 4 +-
gdb/testsuite/gdb.base/info-macros.exp | 4 +-
gdb/testsuite/gdb.base/info-os.exp | 6 +--
gdb/testsuite/gdb.base/info-proc.exp | 6 +--
gdb/testsuite/gdb.base/info-program.exp | 4 +-
gdb/testsuite/gdb.base/info-shared.exp | 8 ++--
gdb/testsuite/gdb.base/info-target.exp | 2 +-
gdb/testsuite/gdb.base/info-var.exp | 2 +-
gdb/testsuite/gdb.base/info_minsym.exp | 2 +-
gdb/testsuite/gdb.base/info_qt.exp | 4 +-
gdb/testsuite/gdb.base/info_sources.exp | 4 +-
gdb/testsuite/gdb.base/info_sources_2.exp | 2 +-
.../infoline-reloc-main-from-zero.exp | 2 +-
gdb/testsuite/gdb.base/infoline.exp | 2 +-
.../gdb.base/inline-frame-cycle-unwind.exp | 4 +-
gdb/testsuite/gdb.base/interp.exp | 4 +-
gdb/testsuite/gdb.base/interrupt-a.exp | 4 +-
.../gdb.base/interrupt-daemon-attach.exp | 2 +-
gdb/testsuite/gdb.base/interrupt-daemon.exp | 2 +-
gdb/testsuite/gdb.base/interrupt-noterm.exp | 4 +-
gdb/testsuite/gdb.base/interrupt.exp | 4 +-
gdb/testsuite/gdb.base/jit-attach-pie.exp | 2 +-
gdb/testsuite/gdb.base/jit-elf-fork.exp | 8 ++--
gdb/testsuite/gdb.base/jit-reader-simple.exp | 6 +--
gdb/testsuite/gdb.base/jit-reader.exp | 4 +-
gdb/testsuite/gdb.base/jump-inline.exp | 4 +-
gdb/testsuite/gdb.base/jump.exp | 6 +--
.../gdb.base/jump_multiple_objfiles.exp | 4 +-
gdb/testsuite/gdb.base/kill-after-signal.exp | 4 +-
.../gdb.base/kill-detach-inferiors-cmd.exp | 2 +-
gdb/testsuite/gdb.base/kill-during-detach.exp | 4 +-
gdb/testsuite/gdb.base/killed-outside.exp | 4 +-
.../gdb.base/label-without-address.exp | 6 +--
gdb/testsuite/gdb.base/label.exp | 4 +-
gdb/testsuite/gdb.base/langs.exp | 2 +-
gdb/testsuite/gdb.base/ldbl_e308.exp | 4 +-
gdb/testsuite/gdb.base/limited-length.exp | 2 +-
gdb/testsuite/gdb.base/line-symtabs.exp | 4 +-
gdb/testsuite/gdb.base/line65535.exp | 2 +-
gdb/testsuite/gdb.base/list-ambiguous.exp | 2 +-
gdb/testsuite/gdb.base/list-before-start.exp | 2 +-
gdb/testsuite/gdb.base/list-dot-nodebug.exp | 6 +--
.../gdb.base/list-missing-source.exp | 4 +-
gdb/testsuite/gdb.base/list-nodebug.exp | 2 +-
gdb/testsuite/gdb.base/list.exp | 2 +-
gdb/testsuite/gdb.base/load-command.exp | 4 +-
.../gdb.base/long-inferior-output.exp | 2 +-
gdb/testsuite/gdb.base/longest-types.exp | 2 +-
gdb/testsuite/gdb.base/longjmp.exp | 6 +--
gdb/testsuite/gdb.base/macscp.exp | 6 +--
gdb/testsuite/gdb.base/main-c.exp | 2 +-
.../maint-expand-symbols-header-file.exp | 4 +-
.../maint-info-inline-frames-and-blocks.exp | 4 +-
.../gdb.base/maint-info-sections.exp | 4 +-
.../gdb.base/maint-print-frame-id.exp | 4 +-
gdb/testsuite/gdb.base/maint.exp | 2 +-
gdb/testsuite/gdb.base/many-completions.exp | 2 +-
gdb/testsuite/gdb.base/many-headers.exp | 6 +--
gdb/testsuite/gdb.base/max-value-size.exp | 4 +-
gdb/testsuite/gdb.base/memattr.exp | 2 +-
gdb/testsuite/gdb.base/memops-watchpoint.exp | 4 +-
gdb/testsuite/gdb.base/memtag.exp | 6 +--
gdb/testsuite/gdb.base/mips_pro.exp | 2 +-
gdb/testsuite/gdb.base/morestack.exp | 4 +-
gdb/testsuite/gdb.base/moribund-step.exp | 2 +-
gdb/testsuite/gdb.base/msym-bp.exp | 2 +-
gdb/testsuite/gdb.base/msym-lang.exp | 2 +-
gdb/testsuite/gdb.base/nested-addr.exp | 4 +-
gdb/testsuite/gdb.base/nested-subp1.exp | 4 +-
gdb/testsuite/gdb.base/nested-subp2.exp | 4 +-
gdb/testsuite/gdb.base/nested-subp3.exp | 4 +-
gdb/testsuite/gdb.base/new-ui-echo.exp | 2 +-
.../gdb.base/new-ui-pending-input.exp | 2 +-
gdb/testsuite/gdb.base/new-ui.exp | 4 +-
gdb/testsuite/gdb.base/nextoverexit.exp | 4 +-
.../gdb.base/non-lazy-array-index.exp | 4 +-
gdb/testsuite/gdb.base/noreturn-finish.exp | 4 +-
gdb/testsuite/gdb.base/noreturn-return.exp | 4 +-
gdb/testsuite/gdb.base/nostdlib.exp | 2 +-
gdb/testsuite/gdb.base/offsets.exp | 2 +-
gdb/testsuite/gdb.base/opaque.exp | 2 +-
gdb/testsuite/gdb.base/options.exp | 4 +-
gdb/testsuite/gdb.base/overlays.exp | 6 +--
.../paginate-after-ctrl-c-running.exp | 2 +-
.../gdb.base/paginate-bg-execution.exp | 2 +-
.../gdb.base/paginate-execution-startup.exp | 2 +-
.../gdb.base/paginate-inferior-exit.exp | 2 +-
gdb/testsuite/gdb.base/patch.exp | 2 +-
gdb/testsuite/gdb.base/pc-fp.exp | 2 +-
gdb/testsuite/gdb.base/pending.exp | 2 +-
gdb/testsuite/gdb.base/permissions.exp | 2 +-
gdb/testsuite/gdb.base/persistent-lang.exp | 2 +-
gdb/testsuite/gdb.base/pie-execl.exp | 4 +-
gdb/testsuite/gdb.base/pr10179.exp | 4 +-
gdb/testsuite/gdb.base/pr11022.exp | 2 +-
gdb/testsuite/gdb.base/prelink.exp | 10 ++---
.../premature-dummy-frame-removal.exp | 4 +-
gdb/testsuite/gdb.base/pretty-array.exp | 4 +-
gdb/testsuite/gdb.base/pretty-print.exp | 4 +-
gdb/testsuite/gdb.base/print-file-var.exp | 8 ++--
.../gdb.base/print-internal-string.exp | 4 +-
.../gdb.base/print-symbol-loading.exp | 10 ++---
gdb/testsuite/gdb.base/printcmds.exp | 6 +--
gdb/testsuite/gdb.base/printf-wchar_t.exp | 4 +-
gdb/testsuite/gdb.base/prologue-include.exp | 2 +-
gdb/testsuite/gdb.base/psym-external-decl.exp | 4 +-
gdb/testsuite/gdb.base/psymtab.exp | 2 +-
gdb/testsuite/gdb.base/ptype-offsets-c.exp | 4 +-
gdb/testsuite/gdb.base/ptype-offsets.exp | 4 +-
gdb/testsuite/gdb.base/ptype.exp | 10 ++---
gdb/testsuite/gdb.base/random-signal.exp | 4 +-
gdb/testsuite/gdb.base/randomize.exp | 8 ++--
gdb/testsuite/gdb.base/range-stepping.exp | 6 +--
gdb/testsuite/gdb.base/readline-ask.exp | 4 +-
.../gdb.base/readline-commands-eof.exp | 4 +-
gdb/testsuite/gdb.base/readline.exp | 2 +-
gdb/testsuite/gdb.base/readnever.exp | 4 +-
gdb/testsuite/gdb.base/realname-expand.exp | 4 +-
gdb/testsuite/gdb.base/recpar.exp | 4 +-
gdb/testsuite/gdb.base/recurse.exp | 2 +-
gdb/testsuite/gdb.base/reggroups.exp | 4 +-
gdb/testsuite/gdb.base/relational.exp | 2 +-
gdb/testsuite/gdb.base/relocate.exp | 4 +-
gdb/testsuite/gdb.base/remote.exp | 2 +-
gdb/testsuite/gdb.base/reread-readsym.exp | 2 +-
gdb/testsuite/gdb.base/reread.exp | 4 +-
gdb/testsuite/gdb.base/restore.exp | 4 +-
gdb/testsuite/gdb.base/return-3.exp | 4 +-
gdb/testsuite/gdb.base/return.exp | 2 +-
gdb/testsuite/gdb.base/return2.exp | 6 +--
.../gdb.base/retval-large-struct.exp | 4 +-
gdb/testsuite/gdb.base/rtld-step.exp | 8 ++--
gdb/testsuite/gdb.base/run-after-attach.exp | 2 +-
gdb/testsuite/gdb.base/run-fail-twice.exp | 2 +-
gdb/testsuite/gdb.base/save-bp.exp | 6 +--
gdb/testsuite/gdb.base/savedregs.exp | 2 +-
.../gdb.base/scope-hw-watch-disable.exp | 4 +-
gdb/testsuite/gdb.base/scope.exp | 2 +-
gdb/testsuite/gdb.base/sect-cmd.exp | 2 +-
gdb/testsuite/gdb.base/sepdebug.exp | 4 +-
gdb/testsuite/gdb.base/sepsymtab.exp | 4 +-
gdb/testsuite/gdb.base/server-del-break.exp | 2 +-
gdb/testsuite/gdb.base/set-cwd.exp | 14 +++----
gdb/testsuite/gdb.base/set-inferior-tty.exp | 2 +-
gdb/testsuite/gdb.base/set-lang-auto.exp | 2 +-
gdb/testsuite/gdb.base/set-noassign.exp | 4 +-
gdb/testsuite/gdb.base/setshow.exp | 4 +-
gdb/testsuite/gdb.base/settings.exp | 4 +-
gdb/testsuite/gdb.base/setvar.exp | 2 +-
.../gdb.base/share-env-with-gdbserver.exp | 4 +-
gdb/testsuite/gdb.base/share-psymtabs-bt.exp | 6 +--
gdb/testsuite/gdb.base/shreloc.exp | 2 +-
gdb/testsuite/gdb.base/sigall.exp | 2 +-
gdb/testsuite/gdb.base/sigaltstack.exp | 2 +-
gdb/testsuite/gdb.base/sigbpt.exp | 4 +-
gdb/testsuite/gdb.base/siginfo-addr.exp | 4 +-
gdb/testsuite/gdb.base/siginfo-infcall.exp | 4 +-
gdb/testsuite/gdb.base/siginfo-obj.exp | 6 +--
gdb/testsuite/gdb.base/siginfo-thread.exp | 2 +-
gdb/testsuite/gdb.base/siginfo.exp | 4 +-
.../gdb.base/signals-state-child.exp | 8 ++--
gdb/testsuite/gdb.base/signals.exp | 2 +-
.../gdb.base/signed-builtin-types.exp | 8 ++--
gdb/testsuite/gdb.base/signest.exp | 6 +--
gdb/testsuite/gdb.base/signull.exp | 2 +-
gdb/testsuite/gdb.base/sigrepeat.exp | 2 +-
gdb/testsuite/gdb.base/sigstep.exp | 2 +-
gdb/testsuite/gdb.base/sizeof.exp | 2 +-
gdb/testsuite/gdb.base/skip-inline.exp | 2 +-
gdb/testsuite/gdb.base/skip-solib.exp | 6 +--
gdb/testsuite/gdb.base/skip.exp | 2 +-
gdb/testsuite/gdb.base/skipcxx.exp | 2 +-
gdb/testsuite/gdb.base/solib-corrupted.exp | 2 +-
gdb/testsuite/gdb.base/solib-disc.exp | 8 ++--
gdb/testsuite/gdb.base/solib-display.exp | 4 +-
gdb/testsuite/gdb.base/solib-nodir.exp | 2 +-
gdb/testsuite/gdb.base/solib-overlap.exp | 6 +--
.../gdb.base/solib-probes-nosharedlibrary.exp | 2 +-
gdb/testsuite/gdb.base/solib-search.exp | 6 +--
gdb/testsuite/gdb.base/solib-vanish.exp | 4 +-
gdb/testsuite/gdb.base/solib-weak.exp | 6 +--
gdb/testsuite/gdb.base/source-dir.exp | 4 +-
gdb/testsuite/gdb.base/source-execution.exp | 4 +-
gdb/testsuite/gdb.base/source-open.exp | 2 +-
.../gdb.base/sss-bp-on-user-bp-2.exp | 4 +-
gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp | 6 +--
gdb/testsuite/gdb.base/stack-checking.exp | 2 +-
gdb/testsuite/gdb.base/stack-protector.exp | 8 ++--
gdb/testsuite/gdb.base/stale-infcall.exp | 6 +--
gdb/testsuite/gdb.base/start-cpp.exp | 4 +-
gdb/testsuite/gdb.base/start.exp | 4 +-
gdb/testsuite/gdb.base/starti.exp | 4 +-
gdb/testsuite/gdb.base/startup-with-shell.exp | 2 +-
gdb/testsuite/gdb.base/step-break.exp | 4 +-
gdb/testsuite/gdb.base/step-bt.exp | 2 +-
.../gdb.base/step-indirect-call-thunk.exp | 4 +-
.../gdb.base/step-into-other-file.exp | 4 +-
gdb/testsuite/gdb.base/step-line.exp | 2 +-
gdb/testsuite/gdb.base/step-over-exit.exp | 6 +--
.../gdb.base/step-over-no-symbols.exp | 4 +-
gdb/testsuite/gdb.base/step-over-syscall.exp | 12 +++---
.../gdb.base/step-resume-infcall.exp | 6 +--
.../gdb.base/step-sw-breakpoint-adjust-pc.exp | 4 +-
gdb/testsuite/gdb.base/step-symless.exp | 4 +-
gdb/testsuite/gdb.base/store.exp | 2 +-
gdb/testsuite/gdb.base/structs2.exp | 4 +-
gdb/testsuite/gdb.base/structs3.exp | 4 +-
gdb/testsuite/gdb.base/style-logging.exp | 2 +-
gdb/testsuite/gdb.base/style.exp | 2 +-
gdb/testsuite/gdb.base/sym-file.exp | 2 +-
gdb/testsuite/gdb.base/symbol-alias.exp | 2 +-
.../symbol-without-target_section.exp | 4 +-
gdb/testsuite/gdb.base/symfile-warn.exp | 2 +-
gdb/testsuite/gdb.base/symlink-sourcefile.exp | 6 +--
.../gdb.base/symtab-search-order.exp | 2 +-
gdb/testsuite/gdb.base/term.exp | 4 +-
gdb/testsuite/gdb.base/testenv.exp | 2 +-
.../gdb.base/thread-bp-multi-loc.exp | 6 +--
gdb/testsuite/gdb.base/tls-dlobj.exp | 12 +++---
gdb/testsuite/gdb.base/tls-multiobj.exp | 6 +--
gdb/testsuite/gdb.base/traced-thread.exp | 4 +-
gdb/testsuite/gdb.base/type-opaque.exp | 2 +-
gdb/testsuite/gdb.base/ui-redirect.exp | 4 +-
gdb/testsuite/gdb.base/until-nodebug.exp | 4 +-
.../gdb.base/until-trailing-insns.exp | 6 +--
gdb/testsuite/gdb.base/until.exp | 4 +-
.../gdb.base/unwind-on-each-insn.exp.tcl | 4 +-
gdb/testsuite/gdb.base/unwindonsignal.exp | 4 +-
gdb/testsuite/gdb.base/utf8-identifiers.exp | 4 +-
gdb/testsuite/gdb.base/valgrind-bt.exp | 8 ++--
gdb/testsuite/gdb.base/valgrind-disp-step.exp | 4 +-
gdb/testsuite/gdb.base/valgrind-infcall-2.exp | 4 +-
gdb/testsuite/gdb.base/valgrind-infcall.exp | 8 ++--
gdb/testsuite/gdb.base/value-double-free.exp | 4 +-
.../gdb.base/value-history-unavailable.exp | 2 +-
gdb/testsuite/gdb.base/vdso-warning.exp | 4 +-
.../gdb.base/vfork-follow-parent.exp | 2 +-
gdb/testsuite/gdb.base/vla-datatypes.exp | 4 +-
gdb/testsuite/gdb.base/vla-optimized-out.exp | 2 +-
gdb/testsuite/gdb.base/vla-ptr.exp | 4 +-
gdb/testsuite/gdb.base/vla-sideeffect.exp | 4 +-
gdb/testsuite/gdb.base/vla-struct-fields.exp | 4 +-
gdb/testsuite/gdb.base/vla-stub.exp | 2 +-
gdb/testsuite/gdb.base/volatile.exp | 2 +-
gdb/testsuite/gdb.base/watch-bitfields.exp | 6 +--
gdb/testsuite/gdb.base/watch-cond-infcall.exp | 2 +-
gdb/testsuite/gdb.base/watch-cond.exp | 2 +-
gdb/testsuite/gdb.base/watch-non-mem.exp | 2 +-
gdb/testsuite/gdb.base/watch-read.exp | 2 +-
gdb/testsuite/gdb.base/watch-vfork.exp | 2 +-
.../gdb.base/watchpoint-cond-gone.exp | 4 +-
gdb/testsuite/gdb.base/watchpoint-delete.exp | 4 +-
.../gdb.base/watchpoint-hw-attach.exp | 2 +-
.../gdb.base/watchpoint-hw-hit-once.exp | 4 +-
gdb/testsuite/gdb.base/watchpoint-hw.exp | 4 +-
.../gdb.base/watchpoint-reuse-slot.exp | 4 +-
gdb/testsuite/gdb.base/watchpoint-running.exp | 2 +-
.../watchpoint-stops-at-right-insn.exp | 2 +-
.../gdb.base/watchpoint-unaligned.exp | 4 +-
gdb/testsuite/gdb.base/watchpoint.exp | 4 +-
gdb/testsuite/gdb.base/watchpoints.exp | 2 +-
gdb/testsuite/gdb.base/wchar.exp | 4 +-
gdb/testsuite/gdb.base/whatis-exp.exp | 2 +-
gdb/testsuite/gdb.base/with-mf.exp | 4 +-
gdb/testsuite/gdb.base/with.exp | 2 +-
gdb/testsuite/gdb.base/write_mem.exp | 2 +-
.../gdb.base/wrong_frame_bt_full.exp | 8 ++--
gdb/testsuite/gdb.cp/abstract-origin.exp | 4 +-
gdb/testsuite/gdb.cp/align.exp | 2 +-
gdb/testsuite/gdb.cp/ambiguous.exp | 2 +-
gdb/testsuite/gdb.cp/annota2.exp | 2 +-
gdb/testsuite/gdb.cp/annota3.exp | 2 +-
gdb/testsuite/gdb.cp/anon-ns.exp | 2 +-
gdb/testsuite/gdb.cp/anon-struct.exp | 2 +-
gdb/testsuite/gdb.cp/anon-union.exp | 2 +-
gdb/testsuite/gdb.cp/arg-reference.exp | 2 +-
gdb/testsuite/gdb.cp/baseenum.exp | 4 +-
gdb/testsuite/gdb.cp/bool.exp | 2 +-
gdb/testsuite/gdb.cp/break-f-std-string.exp | 2 +-
gdb/testsuite/gdb.cp/break-template-cast.exp | 2 +-
gdb/testsuite/gdb.cp/breakpoint-locs.exp | 2 +-
.../gdb.cp/breakpoint-shlib-func.exp | 6 +--
gdb/testsuite/gdb.cp/breakpoint.exp | 2 +-
gdb/testsuite/gdb.cp/bs15503.exp | 2 +-
gdb/testsuite/gdb.cp/call-c.exp | 2 +-
gdb/testsuite/gdb.cp/call-method-register.exp | 6 +--
gdb/testsuite/gdb.cp/casts.exp | 4 +-
gdb/testsuite/gdb.cp/chained-calls.exp | 4 +-
gdb/testsuite/gdb.cp/class2.exp | 2 +-
gdb/testsuite/gdb.cp/classes.exp | 2 +-
gdb/testsuite/gdb.cp/cmpd-minsyms.exp | 2 +-
gdb/testsuite/gdb.cp/cold-clone.exp | 2 +-
gdb/testsuite/gdb.cp/constexpr-field.exp | 2 +-
gdb/testsuite/gdb.cp/converts.exp | 2 +-
gdb/testsuite/gdb.cp/cp-relocate.exp | 10 ++---
gdb/testsuite/gdb.cp/cpcompletion.exp | 4 +-
gdb/testsuite/gdb.cp/cpexprs.exp.tcl | 2 +-
gdb/testsuite/gdb.cp/cplabel.exp | 4 +-
gdb/testsuite/gdb.cp/cplusfuncs.exp | 2 +-
gdb/testsuite/gdb.cp/cpsizeof.exp | 2 +-
gdb/testsuite/gdb.cp/ctti.exp | 2 +-
gdb/testsuite/gdb.cp/derivation.exp | 2 +-
gdb/testsuite/gdb.cp/destrprint.exp | 4 +-
gdb/testsuite/gdb.cp/disasm-func-name.exp | 2 +-
gdb/testsuite/gdb.cp/dispcxx.exp | 2 +-
gdb/testsuite/gdb.cp/empty-enum.exp | 4 +-
gdb/testsuite/gdb.cp/ena-dis-br-range.exp | 4 +-
gdb/testsuite/gdb.cp/enum-class.exp | 4 +-
.../gdb.cp/except-multi-location.exp | 4 +-
gdb/testsuite/gdb.cp/exception.exp | 2 +-
gdb/testsuite/gdb.cp/exceptprint.exp | 8 ++--
gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp | 4 +-
gdb/testsuite/gdb.cp/expand-sals.exp | 4 +-
gdb/testsuite/gdb.cp/extern-c.exp | 2 +-
gdb/testsuite/gdb.cp/filename.exp | 2 +-
gdb/testsuite/gdb.cp/formatted-ref.exp | 2 +-
gdb/testsuite/gdb.cp/fpointer.exp | 2 +-
gdb/testsuite/gdb.cp/gdb1355.exp | 2 +-
gdb/testsuite/gdb.cp/gdb2384.exp | 4 +-
gdb/testsuite/gdb.cp/gdb2495.exp | 2 +-
gdb/testsuite/gdb.cp/hang.exp | 2 +-
gdb/testsuite/gdb.cp/impl-this.exp | 2 +-
gdb/testsuite/gdb.cp/infcall-dlopen.exp | 4 +-
gdb/testsuite/gdb.cp/inherit.exp | 2 +-
gdb/testsuite/gdb.cp/iostream.exp | 2 +-
gdb/testsuite/gdb.cp/koenig.exp | 2 +-
gdb/testsuite/gdb.cp/local-static.exp | 2 +-
gdb/testsuite/gdb.cp/local.exp | 2 +-
gdb/testsuite/gdb.cp/m-data.exp | 2 +-
gdb/testsuite/gdb.cp/m-static.exp | 2 +-
gdb/testsuite/gdb.cp/main-cp.exp | 2 +-
gdb/testsuite/gdb.cp/many-args.exp | 2 +-
gdb/testsuite/gdb.cp/mb-ctor.exp | 2 +-
gdb/testsuite/gdb.cp/mb-inline.exp | 2 +-
gdb/testsuite/gdb.cp/mb-templates.exp | 2 +-
gdb/testsuite/gdb.cp/member-name.exp | 2 +-
gdb/testsuite/gdb.cp/member-ptr.exp | 2 +-
gdb/testsuite/gdb.cp/meth-typedefs.exp | 2 +-
gdb/testsuite/gdb.cp/method-call-in-c.exp | 2 +-
gdb/testsuite/gdb.cp/method-ref-return.exp | 4 +-
gdb/testsuite/gdb.cp/method.exp | 2 +-
gdb/testsuite/gdb.cp/method2.exp | 2 +-
gdb/testsuite/gdb.cp/minsym-fallback.exp | 2 +-
gdb/testsuite/gdb.cp/misc.exp | 2 +-
gdb/testsuite/gdb.cp/namelessclass.exp | 4 +-
gdb/testsuite/gdb.cp/namespace-enum.exp | 2 +-
.../gdb.cp/namespace-nested-import.exp | 2 +-
gdb/testsuite/gdb.cp/namespace.exp | 2 +-
.../gdb.cp/nested-class-func-class.exp | 4 +-
gdb/testsuite/gdb.cp/nested-types.exp | 2 +-
gdb/testsuite/gdb.cp/nextoverthrow.exp | 4 +-
gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp | 4 +-
gdb/testsuite/gdb.cp/non-trivial-retval.exp | 4 +-
gdb/testsuite/gdb.cp/noparam.exp | 2 +-
gdb/testsuite/gdb.cp/nsalias.exp | 10 ++---
gdb/testsuite/gdb.cp/nsdecl.exp | 2 +-
gdb/testsuite/gdb.cp/nsimport.exp | 2 +-
gdb/testsuite/gdb.cp/nsnested.exp | 2 +-
gdb/testsuite/gdb.cp/nsnoimports.exp | 2 +-
gdb/testsuite/gdb.cp/nsrecurs.exp | 2 +-
gdb/testsuite/gdb.cp/nsstress.exp | 2 +-
gdb/testsuite/gdb.cp/nsusing.exp | 2 +-
gdb/testsuite/gdb.cp/operator.exp | 2 +-
gdb/testsuite/gdb.cp/oranking.exp | 2 +-
gdb/testsuite/gdb.cp/overload-const.exp | 2 +-
gdb/testsuite/gdb.cp/overload.exp | 2 +-
gdb/testsuite/gdb.cp/ovldbreak.exp | 2 +-
gdb/testsuite/gdb.cp/ovsrch.exp | 2 +-
gdb/testsuite/gdb.cp/paramless.exp | 2 +-
gdb/testsuite/gdb.cp/paren-type.exp | 2 +-
gdb/testsuite/gdb.cp/parse-lang.exp | 2 +-
gdb/testsuite/gdb.cp/pass-by-ref-2.exp | 4 +-
gdb/testsuite/gdb.cp/pass-by-ref.exp | 4 +-
gdb/testsuite/gdb.cp/pointer-to-member.exp | 2 +-
gdb/testsuite/gdb.cp/pr-1023.exp | 2 +-
gdb/testsuite/gdb.cp/pr-1210.exp | 2 +-
gdb/testsuite/gdb.cp/pr-574.exp | 2 +-
gdb/testsuite/gdb.cp/pr10687.exp | 2 +-
gdb/testsuite/gdb.cp/pr10728.exp | 12 +++---
gdb/testsuite/gdb.cp/pr12028.exp | 2 +-
gdb/testsuite/gdb.cp/pr17132.exp | 4 +-
gdb/testsuite/gdb.cp/pr17494.exp | 4 +-
gdb/testsuite/gdb.cp/pr9067.exp | 2 +-
gdb/testsuite/gdb.cp/pr9167.exp | 2 +-
gdb/testsuite/gdb.cp/pr9631.exp | 2 +-
gdb/testsuite/gdb.cp/print-demangle.exp | 2 +-
gdb/testsuite/gdb.cp/print-global-stub.exp | 2 +-
gdb/testsuite/gdb.cp/print-method-args.exp | 2 +-
gdb/testsuite/gdb.cp/printmethod.exp | 2 +-
gdb/testsuite/gdb.cp/psmang.exp | 2 +-
gdb/testsuite/gdb.cp/psymtab-parameter.exp | 2 +-
gdb/testsuite/gdb.cp/ptype-cv-cp.exp | 2 +-
gdb/testsuite/gdb.cp/ptype-flags.exp | 2 +-
gdb/testsuite/gdb.cp/re-set-overloaded.exp | 2 +-
gdb/testsuite/gdb.cp/readnow-language.exp | 2 +-
gdb/testsuite/gdb.cp/ref-params.exp | 2 +-
gdb/testsuite/gdb.cp/ref-types.exp | 2 +-
gdb/testsuite/gdb.cp/rtti.exp | 2 +-
gdb/testsuite/gdb.cp/rvalue-ref-casts.exp | 4 +-
gdb/testsuite/gdb.cp/rvalue-ref-overload.exp | 4 +-
gdb/testsuite/gdb.cp/rvalue-ref-params.exp | 2 +-
gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp | 2 +-
gdb/testsuite/gdb.cp/rvalue-ref-types.exp | 6 +--
gdb/testsuite/gdb.cp/save-bp-qualified.exp | 6 +--
gdb/testsuite/gdb.cp/scope-err.exp | 2 +-
gdb/testsuite/gdb.cp/shadow.exp | 2 +-
gdb/testsuite/gdb.cp/smartp.exp | 2 +-
gdb/testsuite/gdb.cp/static-method.exp | 2 +-
gdb/testsuite/gdb.cp/static-print-quit.exp | 2 +-
gdb/testsuite/gdb.cp/static-typedef-print.exp | 4 +-
gdb/testsuite/gdb.cp/step-and-next-inline.exp | 4 +-
gdb/testsuite/gdb.cp/stub-array-size.exp | 2 +-
gdb/testsuite/gdb.cp/subtypes.exp | 2 +-
gdb/testsuite/gdb.cp/temargs.exp | 4 +-
gdb/testsuite/gdb.cp/templates.exp | 2 +-
gdb/testsuite/gdb.cp/try_catch.exp | 2 +-
gdb/testsuite/gdb.cp/typed-enum.exp | 2 +-
gdb/testsuite/gdb.cp/typedef-base.exp | 4 +-
gdb/testsuite/gdb.cp/typedef-operator.exp | 4 +-
gdb/testsuite/gdb.cp/typeid.exp | 4 +-
gdb/testsuite/gdb.cp/userdef.exp | 2 +-
gdb/testsuite/gdb.cp/using-crash.exp | 2 +-
gdb/testsuite/gdb.cp/var-tag.exp | 2 +-
gdb/testsuite/gdb.cp/virtbase.exp | 2 +-
gdb/testsuite/gdb.cp/virtbase2.exp | 2 +-
gdb/testsuite/gdb.cp/virtfunc.exp | 2 +-
gdb/testsuite/gdb.cp/virtfunc2.exp | 2 +-
gdb/testsuite/gdb.cp/vla-cxx.exp | 4 +-
gdb/testsuite/gdb.cp/watch-cp.exp | 2 +-
.../DW_OP_piece_with_DW_OP_GNU_uninit.exp | 4 +-
gdb/testsuite/gdb.dwarf2/ada-array-bound.exp | 2 +-
gdb/testsuite/gdb.dwarf2/ada-cold-name.exp | 2 +-
gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp | 2 +-
.../gdb.dwarf2/ada-thick-pointer.exp | 2 +-
.../gdb.dwarf2/ada-valprint-error.exp | 4 +-
gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp | 2 +-
gdb/testsuite/gdb.dwarf2/arr-opt-out.exp | 2 +-
gdb/testsuite/gdb.dwarf2/arr-stride.exp | 2 +-
gdb/testsuite/gdb.dwarf2/arr-subrange.exp | 2 +-
gdb/testsuite/gdb.dwarf2/atomic-type.exp | 2 +-
.../gdb.dwarf2/backward-spec-inter-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/bad-regnum.exp | 4 +-
.../bitfield-parent-optimized-out.exp | 4 +-
.../gdb.dwarf2/break-inline-psymtab.exp | 6 +--
gdb/testsuite/gdb.dwarf2/callframecfa.exp | 4 +-
.../gdb.dwarf2/calling-convention.exp | 6 +--
gdb/testsuite/gdb.dwarf2/clztest.exp | 4 +-
gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp | 4 +-
gdb/testsuite/gdb.dwarf2/corrupt.exp | 2 +-
gdb/testsuite/gdb.dwarf2/count.exp | 4 +-
gdb/testsuite/gdb.dwarf2/cpp-linkage-name.exp | 2 +-
gdb/testsuite/gdb.dwarf2/cu-empty-name.exp | 4 +-
gdb/testsuite/gdb.dwarf2/cu-no-addrs.exp | 2 +-
gdb/testsuite/gdb.dwarf2/data-loc.exp | 6 +--
...debug-aranges-duplicate-offset-warning.exp | 2 +-
.../gdb.dwarf2/debug-names-bad-cu-index.exp | 2 +-
.../gdb.dwarf2/debug-names-duplicate-cu.exp | 2 +-
.../gdb.dwarf2/debug-names-missing-cu.exp | 2 +-
.../gdb.dwarf2/debug-names-tu.exp.tcl | 2 +-
gdb/testsuite/gdb.dwarf2/debug-names.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dup-psym.exp | 2 +-
.../dw-form-ref-addr-with-type-units.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-align.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp | 2 +-
.../gdb.dwarf2/dw2-anonymous-func.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-aranges.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp | 6 +--
.../gdb.dwarf2/dw2-bad-mips-linkage-name.exp | 2 +-
.../gdb.dwarf2/dw2-bad-parameter-type.exp | 2 +-
.../gdb.dwarf2/dw2-bad-unresolved.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-basic.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-bfloat16.exp | 4 +-
.../gdb.dwarf2/dw2-canonicalize-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-common-block.exp | 2 +-
.../gdb.dwarf2/dw2-compdir-oldgcc.exp | 2 +-
.../gdb.dwarf2/dw2-complex-parts.exp | 6 +--
gdb/testsuite/gdb.dwarf2/dw2-compressed.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-const.exp | 2 +-
.../gdb.dwarf2/dw2-cp-infcall-ref-static.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp | 2 +-
.../gdb.dwarf2/dw2-dir-file-name.exp | 6 +--
.../gdb.dwarf2/dw2-disasm-over-non-stmt.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp | 2 +-
.../gdb.dwarf2/dw2-double-set-die-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp | 4 +-
.../gdb.dwarf2/dw2-empty-file-name.exp | 2 +-
.../gdb.dwarf2/dw2-empty-inline-ranges.exp | 2 +-
.../gdb.dwarf2/dw2-empty-namespace.exp | 2 +-
.../gdb.dwarf2/dw2-empty-pc-range.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp | 8 ++--
.../gdb.dwarf2/dw2-entry-value-2.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp | 4 +-
.../gdb.dwarf2/dw2-epilogue-begin.exp.tcl | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-error.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-filename.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp | 4 +-
.../gdb.dwarf2/dw2-gas-workaround.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-icycle.exp | 2 +-
.../gdb.dwarf2/dw2-ifort-parameter.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp | 2 +-
.../gdb.dwarf2/dw2-inline-header-1.exp | 4 +-
.../gdb.dwarf2/dw2-inline-header-2.exp | 4 +-
.../gdb.dwarf2/dw2-inline-header-3.exp | 4 +-
.../gdb.dwarf2/dw2-inline-many-frames.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp | 6 +--
.../gdb.dwarf2/dw2-inline-small-func.exp | 4 +-
.../gdb.dwarf2/dw2-inline-stepping.exp | 4 +-
.../dw2-inline-with-lexical-scope.exp | 2 +-
.../gdb.dwarf2/dw2-inter-cu-error-2.exp | 2 +-
.../gdb.dwarf2/dw2-inter-cu-error.exp | 2 +-
.../dw2-inter-cu-forth-and-back.exp | 2 +-
.../gdb.dwarf2/dw2-inter-cu-symbol.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-intercu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-intermix.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-is-stmt.exp | 4 +-
.../gdb.dwarf2/dw2-lexical-block-bare.exp | 2 +-
.../gdb.dwarf2/dw2-line-number-zero.exp | 6 +--
gdb/testsuite/gdb.dwarf2/dw2-lines.exp | 4 +-
.../gdb.dwarf2/dw2-linkage-name-trust.exp | 4 +-
.../gdb.dwarf2/dw2-main-no-line-number.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp | 2 +-
.../gdb.dwarf2/dw2-missing-cu-tag.exp | 2 +-
.../gdb.dwarf2/dw2-modula2-self-type.exp | 2 +-
.../gdb.dwarf2/dw2-multiple-debug-info.exp | 2 +-
.../dw2-namespaceless-anonymous.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp | 4 +-
.../gdb.dwarf2/dw2-objfile-overlap.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-op-call.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-op-out-param.exp | 4 +-
.../gdb.dwarf2/dw2-op-stack-value.exp | 2 +-
.../gdb.dwarf2/dw2-opt-structptr.exp | 6 +--
.../dw2-out-of-range-end-of-seq.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-param-error.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-producer.exp | 2 +-
.../gdb.dwarf2/dw2-prologue-end-2.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp | 6 +--
gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp | 12 +++---
.../gdb.dwarf2/dw2-ranges-overlap.exp | 4 +-
.../gdb.dwarf2/dw2-ranges-psym-warning.exp | 6 +--
gdb/testsuite/gdb.dwarf2/dw2-ranges-psym.exp | 6 +--
.../gdb.dwarf2/dw2-ref-missing-frame.exp | 2 +-
.../gdb.dwarf2/dw2-reg-undefined.exp | 4 +-
.../gdb.dwarf2/dw2-regno-invalid.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-restore.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-restrict.exp | 2 +-
.../gdb.dwarf2/dw2-simple-locdesc.exp | 2 +-
.../dw2-single-line-discriminators.exp | 2 +-
.../gdb.dwarf2/dw2-skip-prologue.exp | 4 +-
.../gdb.dwarf2/dw2-skipped-line-entries.exp | 4 +-
.../gdb.dwarf2/dw2-stack-boundary.exp | 2 +-
...tep-between-different-inline-functions.exp | 4 +-
.../dw2-step-between-inline-func-blocks.exp | 4 +-
.../dw2-step-out-of-function-no-stmt.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-strp.exp | 2 +-
.../gdb.dwarf2/dw2-symtab-includes-lookup.exp | 2 +-
.../gdb.dwarf2/dw2-symtab-includes.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-tu-dwarf-4-5.exp | 2 +-
.../gdb.dwarf2/dw2-undefined-ret-addr.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp | 4 +-
.../gdb.dwarf2/dw2-unspecified-type.exp | 4 +-
.../gdb.dwarf2/dw2-unusual-field-names.exp | 6 +--
.../gdb.dwarf2/dw2-using-debug-str.exp | 10 ++---
.../gdb.dwarf2/dw2-var-zero-addr.exp | 2 +-
.../gdb.dwarf2/dw2-vendor-extended-opcode.exp | 4 +-
.../gdb.dwarf2/dw2-weird-type-len.exp | 4 +-
.../gdb.dwarf2/dw2-wrong-mangled-name.exp | 4 +-
.../gdb.dwarf2/dw4-sig-type-unused.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp | 4 +-
.../gdb.dwarf2/dw4-toplevel-types.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dwp-sepdebug.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dwp-symlink.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dwz-many.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dwz-unused-pu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dwz.exp | 4 +-
gdb/testsuite/gdb.dwarf2/dwznolink.exp | 2 +-
.../gdb.dwarf2/dyn-type-unallocated.exp | 6 +--
.../gdb.dwarf2/dynamic-bit-offset.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dynarr-ptr.exp | 6 +--
.../gdb.dwarf2/enqueued-cu-base-addr.exp | 2 +-
gdb/testsuite/gdb.dwarf2/enum-type-c++.exp | 2 +-
gdb/testsuite/gdb.dwarf2/enum-type.exp | 2 +-
.../gdb.dwarf2/fission-absolute-dwo.exp | 4 +-
gdb/testsuite/gdb.dwarf2/fission-base.exp | 4 +-
.../gdb.dwarf2/fission-loclists-pie.exp | 4 +-
gdb/testsuite/gdb.dwarf2/fission-loclists.exp | 4 +-
gdb/testsuite/gdb.dwarf2/fission-mix.exp | 6 +--
gdb/testsuite/gdb.dwarf2/fission-multi-cu.exp | 4 +-
.../gdb.dwarf2/fission-relative-dwo.exp | 4 +-
gdb/testsuite/gdb.dwarf2/fission-reread.exp | 2 +-
.../gdb.dwarf2/fission-type-unit-locexpr.exp | 2 +-
gdb/testsuite/gdb.dwarf2/formdata16.exp | 4 +-
.../gdb.dwarf2/fortran-var-string.exp | 6 +--
.../gdb.dwarf2/forward-spec-inter-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/forward-spec.exp | 2 +-
.../gdb.dwarf2/gdb-add-index-symlink.exp | 8 ++--
gdb/testsuite/gdb.dwarf2/gdb-add-index.exp | 4 +-
gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp | 2 +-
.../gdb.dwarf2/gdb-index-nodebug.exp | 2 +-
gdb/testsuite/gdb.dwarf2/gdb-index-tilde.exp | 8 ++--
.../gdb.dwarf2/gdb-index-types-dwarf5.exp | 4 +-
gdb/testsuite/gdb.dwarf2/gdb-index.exp | 8 ++--
gdb/testsuite/gdb.dwarf2/implptr-64bit.exp | 4 +-
.../gdb.dwarf2/implptr-optimized-out.exp | 4 +-
gdb/testsuite/gdb.dwarf2/implptr.exp | 4 +-
gdb/testsuite/gdb.dwarf2/implptrconst.exp | 4 +-
gdb/testsuite/gdb.dwarf2/implptrpiece.exp | 4 +-
gdb/testsuite/gdb.dwarf2/implref-array.exp | 6 +--
gdb/testsuite/gdb.dwarf2/implref-const.exp | 6 +--
gdb/testsuite/gdb.dwarf2/implref-global.exp | 6 +--
gdb/testsuite/gdb.dwarf2/implref-struct.exp | 6 +--
.../imported-unit-abstract-const-value.exp | 4 +-
.../gdb.dwarf2/imported-unit-bp.exp.tcl | 2 +-
gdb/testsuite/gdb.dwarf2/imported-unit-c.exp | 6 +--
.../gdb.dwarf2/imported-unit-runto-main.exp | 6 +--
gdb/testsuite/gdb.dwarf2/imported-unit.exp | 4 +-
.../gdb.dwarf2/info-locals-optimized-out.exp | 4 +-
gdb/testsuite/gdb.dwarf2/inline.exp | 2 +-
.../inlined_subroutine-inheritance.exp | 2 +-
gdb/testsuite/gdb.dwarf2/intbits.exp | 6 +--
gdb/testsuite/gdb.dwarf2/loc-sec-offset.exp | 2 +-
gdb/testsuite/gdb.dwarf2/local-var.exp | 2 +-
.../locexpr-data-member-location.exp | 2 +-
.../gdb.dwarf2/loclists-multiple-cus.exp | 2 +-
.../gdb.dwarf2/loclists-sec-offset.exp | 2 +-
.../gdb.dwarf2/loclists-start-end.exp | 2 +-
gdb/testsuite/gdb.dwarf2/mac-fileno.exp | 2 +-
gdb/testsuite/gdb.dwarf2/main-subprogram.exp | 4 +-
.../gdb.dwarf2/malformed-line-header.exp | 2 +-
gdb/testsuite/gdb.dwarf2/mega-enum.exp | 2 +-
.../gdb.dwarf2/member-ptr-forwardref.exp | 2 +-
gdb/testsuite/gdb.dwarf2/method-ptr.exp | 2 +-
.../gdb.dwarf2/missing-line-table.exp | 2 +-
gdb/testsuite/gdb.dwarf2/missing-sig-type.exp | 2 +-
.../missing-type-name-for-templates.exp | 4 +-
.../gdb.dwarf2/missing-type-name.exp | 4 +-
gdb/testsuite/gdb.dwarf2/multidictionary.exp | 2 +-
gdb/testsuite/gdb.dwarf2/nameless-enum.exp | 2 +-
gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp | 2 +-
gdb/testsuite/gdb.dwarf2/nonvar-access.exp | 4 +-
gdb/testsuite/gdb.dwarf2/nostaticblock.exp | 2 +-
gdb/testsuite/gdb.dwarf2/nullptr_t.exp | 2 +-
.../gdb.dwarf2/opaque-type-lookup.exp | 4 +-
.../gdb.dwarf2/opt-out-not-implptr.exp | 4 +-
.../gdb.dwarf2/pieces-optimized-out.exp | 4 +-
gdb/testsuite/gdb.dwarf2/pieces.exp | 4 +-
gdb/testsuite/gdb.dwarf2/pr10770.exp | 4 +-
gdb/testsuite/gdb.dwarf2/pr11465.exp | 2 +-
gdb/testsuite/gdb.dwarf2/pr13961.exp | 2 +-
.../gdb.dwarf2/rnglists-multiple-cus.exp | 2 +-
.../gdb.dwarf2/rnglists-sec-offset.exp | 2 +-
gdb/testsuite/gdb.dwarf2/rust-enum.exp | 2 +-
gdb/testsuite/gdb.dwarf2/self-spec.exp | 2 +-
gdb/testsuite/gdb.dwarf2/shortpiece.exp | 2 +-
.../gdb.dwarf2/static-optimized-out.exp | 2 +-
gdb/testsuite/gdb.dwarf2/staticvirtual.exp | 2 +-
gdb/testsuite/gdb.dwarf2/struct-decl.exp | 2 +-
.../gdb.dwarf2/struct-with-sig-2.exp | 4 +-
gdb/testsuite/gdb.dwarf2/struct-with-sig.exp | 4 +-
gdb/testsuite/gdb.dwarf2/subrange-enum.exp | 2 +-
gdb/testsuite/gdb.dwarf2/subrange.exp | 2 +-
.../gdb.dwarf2/symbol_needs_eval_fail.exp | 4 +-
.../gdb.dwarf2/symbol_needs_eval_timeout.exp | 4 +-
.../template-specification-full-name.exp | 4 +-
gdb/testsuite/gdb.dwarf2/trace-crash.exp | 2 +-
gdb/testsuite/gdb.dwarf2/typeddwarf.exp | 4 +-
.../gdb.dwarf2/typedef-void-finish.exp | 4 +-
gdb/testsuite/gdb.dwarf2/utf-rust.exp | 4 +-
gdb/testsuite/gdb.dwarf2/valop.exp | 4 +-
gdb/testsuite/gdb.dwarf2/var-access.exp | 4 +-
gdb/testsuite/gdb.dwarf2/variant.exp | 4 +-
gdb/testsuite/gdb.dwarf2/varval.exp | 10 ++---
gdb/testsuite/gdb.dwarf2/void-type.exp | 4 +-
gdb/testsuite/gdb.dwarf2/watch-notconst.exp | 2 +-
gdb/testsuite/gdb.gdb/index-file.exp | 8 ++--
gdb/testsuite/gdb.gdb/python-helper.exp | 2 +-
gdb/testsuite/gdb.gdb/unittest.exp | 2 +-
gdb/testsuite/gdb.guile/scm-block.exp | 2 +-
gdb/testsuite/gdb.guile/scm-breakpoint.exp | 8 ++--
gdb/testsuite/gdb.guile/scm-frame.exp | 2 +-
gdb/testsuite/gdb.guile/scm-iterator.exp | 2 +-
gdb/testsuite/gdb.guile/scm-progspace.exp | 2 +-
gdb/testsuite/gdb.guile/scm-symbol.exp | 4 +-
gdb/testsuite/gdb.guile/types-module.exp | 2 +-
gdb/testsuite/gdb.linespec/break-ask.exp | 2 +-
gdb/testsuite/gdb.linespec/break-asm-file.exp | 8 ++--
.../gdb.linespec/cp-completion-aliases.exp | 2 +-
.../cp-replace-typedefs-ns-template.exp | 2 +-
gdb/testsuite/gdb.linespec/cpcompletion.exp | 4 +-
gdb/testsuite/gdb.linespec/cpexplicit.exp | 4 +-
gdb/testsuite/gdb.linespec/cpls-abi-tag.exp | 4 +-
gdb/testsuite/gdb.linespec/cpls-ops.exp | 4 +-
gdb/testsuite/gdb.linespec/errors.exp | 2 +-
gdb/testsuite/gdb.linespec/explicit.exp | 4 +-
gdb/testsuite/gdb.linespec/keywords.exp | 4 +-
gdb/testsuite/gdb.linespec/linespec.exp | 2 +-
gdb/testsuite/gdb.linespec/ls-dollar.exp | 2 +-
gdb/testsuite/gdb.linespec/ls-errs.exp | 6 +--
gdb/testsuite/gdb.linespec/macro-relative.exp | 2 +-
gdb/testsuite/gdb.linespec/skip-two.exp | 6 +--
gdb/testsuite/gdb.linespec/thread.exp | 4 +-
.../gdb.mi/dw2-ref-missing-frame.exp | 2 +-
gdb/testsuite/gdb.mi/gdb2549.exp | 4 +-
gdb/testsuite/gdb.mi/gdb669.exp | 2 +-
gdb/testsuite/gdb.mi/gdb701.exp | 4 +-
gdb/testsuite/gdb.mi/gdb792.exp | 4 +-
.../gdb.mi/interrupt-thread-group.exp | 2 +-
.../gdb.mi/list-thread-groups-available.exp | 2 +-
gdb/testsuite/gdb.mi/mi-add-inferior.exp | 2 +-
gdb/testsuite/gdb.mi/mi-async-run.exp | 4 +-
gdb/testsuite/gdb.mi/mi-async.exp | 6 +--
gdb/testsuite/gdb.mi/mi-basics.exp | 4 +-
gdb/testsuite/gdb.mi/mi-break-qualified.exp | 4 +-
gdb/testsuite/gdb.mi/mi-break.exp | 4 +-
.../gdb.mi/mi-breakpoint-changed.exp | 4 +-
.../mi-breakpoint-multiple-locations.exp | 2 +-
gdb/testsuite/gdb.mi/mi-breakpoint-script.exp | 2 +-
.../gdb.mi/mi-catch-cpp-exceptions.exp | 4 +-
gdb/testsuite/gdb.mi/mi-catch-load.exp | 4 +-
gdb/testsuite/gdb.mi/mi-cli.exp | 4 +-
gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp | 4 +-
gdb/testsuite/gdb.mi/mi-cmd-user-context.exp | 2 +-
gdb/testsuite/gdb.mi/mi-complete.exp | 4 +-
.../gdb.mi/mi-condbreak-call-thr-state.exp | 2 +-
gdb/testsuite/gdb.mi/mi-condbreak-fail.exp | 2 +-
gdb/testsuite/gdb.mi/mi-condbreak-throw.exp | 2 +-
gdb/testsuite/gdb.mi/mi-console.exp | 4 +-
gdb/testsuite/gdb.mi/mi-corefile.exp | 4 +-
gdb/testsuite/gdb.mi/mi-detach.exp | 4 +-
gdb/testsuite/gdb.mi/mi-disassemble.exp | 4 +-
gdb/testsuite/gdb.mi/mi-dprintf-pending.exp | 4 +-
gdb/testsuite/gdb.mi/mi-dprintf.exp | 2 +-
gdb/testsuite/gdb.mi/mi-eval.exp | 4 +-
gdb/testsuite/gdb.mi/mi-exec-run.exp | 4 +-
gdb/testsuite/gdb.mi/mi-exit-code.exp | 2 +-
gdb/testsuite/gdb.mi/mi-file-transfer.exp | 2 +-
gdb/testsuite/gdb.mi/mi-file.exp | 4 +-
gdb/testsuite/gdb.mi/mi-fill-memory.exp | 4 +-
gdb/testsuite/gdb.mi/mi-fortran-modules.exp | 2 +-
gdb/testsuite/gdb.mi/mi-frame-regs.exp | 8 ++--
gdb/testsuite/gdb.mi/mi-fullname-deleted.exp | 6 +--
gdb/testsuite/gdb.mi/mi-info-os.exp | 6 +--
gdb/testsuite/gdb.mi/mi-info-sources.exp | 2 +-
.../gdb.mi/mi-inheritance-syntax-error.exp | 4 +-
gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp | 2 +-
gdb/testsuite/gdb.mi/mi-logging.exp | 4 +-
gdb/testsuite/gdb.mi/mi-memory-changed.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nonstop.exp | 2 +-
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsintrall.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsmoribund.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsthrexec.exp | 2 +-
gdb/testsuite/gdb.mi/mi-pending.exp | 8 ++--
gdb/testsuite/gdb.mi/mi-pthreads.exp | 2 +-
gdb/testsuite/gdb.mi/mi-py-modify-bp.exp | 2 +-
gdb/testsuite/gdb.mi/mi-read-memory.exp | 4 +-
gdb/testsuite/gdb.mi/mi-record-changed.exp | 2 +-
gdb/testsuite/gdb.mi/mi-reg-undefined.exp | 6 +--
gdb/testsuite/gdb.mi/mi-regs.exp | 4 +-
gdb/testsuite/gdb.mi/mi-return.exp | 4 +-
gdb/testsuite/gdb.mi/mi-reverse.exp | 6 +--
gdb/testsuite/gdb.mi/mi-simplerun.exp | 4 +-
gdb/testsuite/gdb.mi/mi-solib.exp | 4 +-
gdb/testsuite/gdb.mi/mi-stack.exp | 4 +-
gdb/testsuite/gdb.mi/mi-start.exp | 4 +-
gdb/testsuite/gdb.mi/mi-stepi.exp | 4 +-
gdb/testsuite/gdb.mi/mi-stepn.exp | 4 +-
gdb/testsuite/gdb.mi/mi-sym-info.exp | 2 +-
gdb/testsuite/gdb.mi/mi-syn-frame.exp | 4 +-
gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp | 2 +-
.../gdb.mi/mi-thread-specific-bp.exp | 2 +-
gdb/testsuite/gdb.mi/mi-threads-interrupt.exp | 2 +-
gdb/testsuite/gdb.mi/mi-until.exp | 4 +-
gdb/testsuite/gdb.mi/mi-var-block.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-child-f.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-child.exp | 4 +-
gdb/testsuite/gdb.mi/mi-var-cmd.exp | 4 +-
gdb/testsuite/gdb.mi/mi-var-cp.exp | 6 +--
gdb/testsuite/gdb.mi/mi-var-create-rtti.exp | 4 +-
gdb/testsuite/gdb.mi/mi-var-display.exp | 2 +-
.../gdb.mi/mi-var-invalidate-shlib.exp | 4 +-
gdb/testsuite/gdb.mi/mi-var-invalidate.exp | 6 +--
...i-var-list-children-invalid-grandchild.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-rtti.exp | 4 +-
gdb/testsuite/gdb.mi/mi-vla-c99.exp | 4 +-
gdb/testsuite/gdb.mi/mi-vla-fortran.exp | 4 +-
gdb/testsuite/gdb.mi/mi-watch-nonstop.exp | 2 +-
gdb/testsuite/gdb.mi/mi-watch.exp | 4 +-
.../gdb.mi/mi2-amd64-entry-value.exp | 16 ++++----
gdb/testsuite/gdb.mi/mi2-cli-display.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-var-child.exp | 2 +-
gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp | 2 +-
gdb/testsuite/gdb.mi/new-ui-mi-sync.exp | 2 +-
gdb/testsuite/gdb.mi/print-simple-values.exp | 2 +-
.../gdb.mi/user-selected-context-sync.exp | 4 +-
gdb/testsuite/gdb.python/lib-types.exp | 2 +-
.../gdb.python/pretty-print-call-by-hand.exp | 2 +-
.../gdb.python/py-arch-reg-groups.exp | 4 +-
.../gdb.python/py-arch-reg-names.exp | 4 +-
gdb/testsuite/gdb.python/py-arch.exp | 4 +-
gdb/testsuite/gdb.python/py-as-string.exp | 2 +-
.../gdb.python/py-auto-load-chaining.exp | 12 +++---
...ed-pretty-printers-in-newobjfile-event.exp | 4 +-
gdb/testsuite/gdb.python/py-bad-printers.exp | 4 +-
gdb/testsuite/gdb.python/py-block.exp | 2 +-
gdb/testsuite/gdb.python/py-bp-locations.exp | 6 +--
.../gdb.python/py-breakpoint-create-fail.exp | 2 +-
gdb/testsuite/gdb.python/py-breakpoint.exp | 40 ++++++++++---------
gdb/testsuite/gdb.python/py-caller-is.exp | 2 +-
gdb/testsuite/gdb.python/py-cmd-exception.exp | 2 +-
gdb/testsuite/gdb.python/py-cmd-prompt.exp | 2 +-
gdb/testsuite/gdb.python/py-cmd.exp | 2 +-
.../gdb.python/py-commands-breakpoint.exp | 2 +-
.../gdb.python/py-connection-removed.exp | 2 +-
gdb/testsuite/gdb.python/py-connection.exp | 2 +-
gdb/testsuite/gdb.python/py-disasm.exp.tcl | 6 +--
gdb/testsuite/gdb.python/py-event-load.exp | 4 +-
gdb/testsuite/gdb.python/py-events.exp | 2 +-
gdb/testsuite/gdb.python/py-evsignal.exp | 4 +-
gdb/testsuite/gdb.python/py-evthreads.exp | 2 +-
gdb/testsuite/gdb.python/py-exec-file.exp | 4 +-
gdb/testsuite/gdb.python/py-explore-cc.exp | 4 +-
gdb/testsuite/gdb.python/py-explore.exp | 4 +-
.../py-finish-breakpoint-deletion.exp | 2 +-
.../gdb.python/py-finish-breakpoint.exp | 2 +-
.../gdb.python/py-finish-breakpoint2.exp | 2 +-
.../gdb.python/py-format-address.exp | 4 +-
gdb/testsuite/gdb.python/py-frame-args.exp | 4 +-
gdb/testsuite/gdb.python/py-frame-inline.exp | 2 +-
gdb/testsuite/gdb.python/py-frame.exp | 4 +-
.../gdb.python/py-framefilter-addr.exp | 4 +-
.../gdb.python/py-framefilter-invalidarg.exp | 2 +-
.../gdb.python/py-framefilter-mi.exp | 4 +-
gdb/testsuite/gdb.python/py-framefilter.exp | 4 +-
gdb/testsuite/gdb.python/py-inferior.exp | 2 +-
gdb/testsuite/gdb.python/py-infthread.exp | 2 +-
.../gdb.python/py-label-symbol-value.exp | 4 +-
gdb/testsuite/gdb.python/py-lazy-string.exp | 4 +-
.../gdb.python/py-linetable-empty.exp | 4 +-
gdb/testsuite/gdb.python/py-linetable.exp | 4 +-
gdb/testsuite/gdb.python/py-mi-cmd.exp | 2 +-
gdb/testsuite/gdb.python/py-mi-events.exp | 2 +-
gdb/testsuite/gdb.python/py-mi-notify.exp | 2 +-
gdb/testsuite/gdb.python/py-mi-objfile.exp | 2 +-
.../py-mi-var-info-path-expression.exp | 2 +-
gdb/testsuite/gdb.python/py-mi.exp | 8 ++--
gdb/testsuite/gdb.python/py-missing-debug.exp | 4 +-
gdb/testsuite/gdb.python/py-nested-maps.exp | 4 +-
.../gdb.python/py-objfile-script.exp | 2 +-
gdb/testsuite/gdb.python/py-objfile.exp | 4 +-
.../gdb.python/py-pending-frame-level.exp | 2 +-
gdb/testsuite/gdb.python/py-pp-cast.exp | 4 +-
gdb/testsuite/gdb.python/py-pp-integral.exp | 4 +-
gdb/testsuite/gdb.python/py-pp-maint.exp | 4 +-
gdb/testsuite/gdb.python/py-pp-re-notag.exp | 4 +-
.../gdb.python/py-pp-registration.exp | 10 ++---
.../gdb.python/py-prettyprint-stub.exp | 2 +-
.../gdb.python/py-progspace-events.exp | 2 +-
gdb/testsuite/gdb.python/py-progspace.exp | 2 +-
gdb/testsuite/gdb.python/py-prompt.exp | 2 +-
.../gdb.python/py-read-memory-leak.exp | 4 +-
.../gdb.python/py-record-btrace-threads.exp | 4 +-
gdb/testsuite/gdb.python/py-record-btrace.exp | 6 ++-
gdb/testsuite/gdb.python/py-record-full.exp | 6 ++-
.../gdb.python/py-recurse-unwind.exp | 2 +-
.../gdb.python/py-rvalue-ref-value-cc.exp | 4 +-
gdb/testsuite/gdb.python/py-send-packet.exp | 2 +-
gdb/testsuite/gdb.python/py-shared.exp | 4 +-
gdb/testsuite/gdb.python/py-strfns.exp | 2 +-
.../gdb.python/py-sym-artificial.exp | 4 +-
gdb/testsuite/gdb.python/py-symbol.exp | 4 +-
gdb/testsuite/gdb.python/py-symtab.exp | 2 +-
gdb/testsuite/gdb.python/py-sync-interp.exp | 2 +-
gdb/testsuite/gdb.python/py-template.exp | 4 +-
gdb/testsuite/gdb.python/py-thread-exited.exp | 4 +-
gdb/testsuite/gdb.python/py-thrhandle.exp | 2 +-
gdb/testsuite/gdb.python/py-typeprint.exp | 2 +-
gdb/testsuite/gdb.python/py-unwind-inline.exp | 2 +-
gdb/testsuite/gdb.python/py-unwind-maint.exp | 4 +-
.../gdb.python/py-unwind-user-regs.exp | 2 +-
gdb/testsuite/gdb.python/py-unwind.exp | 2 +-
gdb/testsuite/gdb.python/py-value-cc.exp | 4 +-
gdb/testsuite/gdb.python/py-value.exp | 6 +--
gdb/testsuite/gdb.python/py-varobj.exp | 2 +-
gdb/testsuite/gdb.python/py-watchpoint.exp | 2 +-
gdb/testsuite/gdb.python/py-xmethods.exp | 4 +-
gdb/testsuite/gdb.python/python.exp | 10 ++---
.../gdb.python/tui-window-disabled.exp | 2 +-
gdb/testsuite/gdb.python/tui-window.exp | 2 +-
gdb/testsuite/gdb.reverse/aarch64-mops.exp | 4 +-
.../gdb.reverse/amd64-tailcall-reverse.exp | 4 +-
.../gdb.reverse/basic-record-full.exp | 2 +-
gdb/testsuite/gdb.reverse/break-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/break-reverse.exp | 2 +-
.../gdb.reverse/consecutive-precsave.exp | 2 +-
.../gdb.reverse/consecutive-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/finish-precsave.exp | 2 +-
.../gdb.reverse/finish-reverse-bkpt.exp | 4 +-
.../gdb.reverse/finish-reverse-next.exp | 2 +-
gdb/testsuite/gdb.reverse/finish-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/fstatat-reverse.exp | 2 +-
.../gdb.reverse/func-map-to-same-line.exp | 2 +-
gdb/testsuite/gdb.reverse/getrandom.exp | 2 +-
.../gdb.reverse/getresuid-reverse.exp | 2 +-
.../gdb.reverse/i386-avx-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-reverse.exp | 2 +-
.../gdb.reverse/i386-sse-reverse.exp | 8 ++--
.../gdb.reverse/i387-env-reverse.exp | 2 +-
.../gdb.reverse/i387-stack-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/insn-reverse.exp | 2 +-
.../gdb.reverse/machinestate-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/machinestate.exp | 2 +-
.../gdb.reverse/maint-print-instruction.exp | 4 +-
.../gdb.reverse/map-to-same-line.exp | 4 +-
.../gdb.reverse/next-reverse-bkpt-over-sr.exp | 4 +-
gdb/testsuite/gdb.reverse/pipe-reverse.exp | 2 +-
.../gdb.reverse/ppc_record_test_isa_2_06.exp | 2 +-
.../gdb.reverse/ppc_record_test_isa_3_1.exp | 2 +-
gdb/testsuite/gdb.reverse/readv-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/recursion.exp | 2 +-
gdb/testsuite/gdb.reverse/recvmsg-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/rerun-prec.exp | 2 +-
gdb/testsuite/gdb.reverse/s390-mvcle.exp | 2 +-
gdb/testsuite/gdb.reverse/sigall-precsave.exp | 4 +-
gdb/testsuite/gdb.reverse/sigall-reverse.exp | 4 +-
.../gdb.reverse/singlejmp-reverse.exp | 6 +--
gdb/testsuite/gdb.reverse/solib-precsave.exp | 8 ++--
gdb/testsuite/gdb.reverse/solib-reverse.exp | 8 ++--
.../gdb.reverse/step-indirect-call-thunk.exp | 4 +-
gdb/testsuite/gdb.reverse/step-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/step-reverse.exp | 2 +-
.../gdb.reverse/test_ioctl_TCSETSW.exp | 2 +-
gdb/testsuite/gdb.reverse/until-precsave.exp | 4 +-
gdb/testsuite/gdb.reverse/until-reverse.exp | 4 +-
gdb/testsuite/gdb.reverse/waitpid-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/watch-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/watch-reverse.exp | 2 +-
gdb/testsuite/gdb.server/abspath.exp | 2 +-
gdb/testsuite/gdb.server/attach-flag.exp | 2 +-
gdb/testsuite/gdb.server/build-id-seqno.exp | 4 +-
.../gdb.server/connect-stopped-target.exp | 2 +-
.../connect-with-no-symbol-file.exp | 2 +-
.../connect-without-multi-process.exp | 2 +-
.../gdb.server/exit-multiple-threads.exp | 2 +-
gdb/testsuite/gdb.server/ext-attach.exp | 2 +-
gdb/testsuite/gdb.server/ext-restart.exp | 2 +-
gdb/testsuite/gdb.server/ext-run.exp | 2 +-
gdb/testsuite/gdb.server/ext-wrapper.exp | 4 +-
.../gdb.server/extended-remote-restart.exp | 6 +--
gdb/testsuite/gdb.server/file-transfer.exp | 2 +-
gdb/testsuite/gdb.server/inferior-args.exp | 2 +-
.../gdb.server/monitor-exit-quit.exp | 2 +-
gdb/testsuite/gdb.server/multi-ui-errors.exp | 2 +-
gdb/testsuite/gdb.server/no-thread-db.exp | 2 +-
.../gdb.server/pread-offset-size.exp | 2 +-
gdb/testsuite/gdb.server/reconnect-ctrl-c.exp | 2 +-
gdb/testsuite/gdb.server/remote-read-msgs.exp | 4 +-
.../gdb.server/run-without-local-binary.exp | 2 +-
gdb/testsuite/gdb.server/server-connect.exp | 2 +-
gdb/testsuite/gdb.server/server-exec-info.exp | 2 +-
.../gdb.server/server-kill-python.exp | 2 +-
gdb/testsuite/gdb.server/server-kill.exp | 2 +-
gdb/testsuite/gdb.server/server-mon.exp | 2 +-
gdb/testsuite/gdb.server/server-pipe.exp | 2 +-
gdb/testsuite/gdb.server/server-run.exp | 2 +-
gdb/testsuite/gdb.server/solib-list.exp | 2 +-
.../gdb.server/stop-reply-no-thread-multi.exp | 2 +-
.../gdb.server/stop-reply-no-thread.exp | 2 +-
gdb/testsuite/gdb.server/sysroot.exp | 2 +-
gdb/testsuite/gdb.server/target-exec-file.exp | 6 +--
gdb/testsuite/gdb.server/twice-connect.exp | 2 +-
gdb/testsuite/gdb.server/wrapper.exp | 4 +-
.../access-mem-running-thread-exit.exp | 8 ++--
gdb/testsuite/gdb.threads/async.exp | 2 +-
.../gdb.threads/attach-into-signal.exp | 4 +-
.../attach-many-short-lived-threads.exp | 4 +-
gdb/testsuite/gdb.threads/attach-non-stop.exp | 2 +-
.../gdb.threads/attach-slow-waitpid.exp | 6 +--
gdb/testsuite/gdb.threads/attach-stopped.exp | 4 +-
gdb/testsuite/gdb.threads/bp_in_thread.exp | 2 +-
.../gdb.threads/break-while-running.exp | 6 +--
.../gdb.threads/check-libthread-db.exp | 2 +-
.../gdb.threads/clone-attach-detach.exp | 2 +-
.../gdb.threads/clone-new-thread-event.exp | 4 +-
gdb/testsuite/gdb.threads/clone-thread_db.exp | 4 +-
.../continue-pending-after-query.exp | 4 +-
.../gdb.threads/continue-pending-status.exp | 4 +-
gdb/testsuite/gdb.threads/corethreads.exp | 6 +--
gdb/testsuite/gdb.threads/create-fail.exp | 4 +-
.../gdb.threads/current-lwp-dead.exp | 4 +-
.../gdb.threads/del-pending-thread-bp.exp | 6 +--
.../gdb.threads/detach-step-over.exp | 4 +-
.../gdb.threads/dlopen-libpthread.exp | 8 ++--
gdb/testsuite/gdb.threads/execl.exp | 4 +-
.../gdb.threads/fork-child-threads.exp | 2 +-
.../gdb.threads/fork-plus-threads.exp | 4 +-
.../gdb.threads/fork-thread-pending.exp | 2 +-
.../forking-threads-plus-breakpoint.exp | 2 +-
.../gdb.threads/gcore-stale-thread.exp | 6 +--
gdb/testsuite/gdb.threads/gcore-thread.exp | 8 ++--
.../gdb.threads/hand-call-in-threads.exp | 4 +-
.../gdb.threads/hand-call-new-thread.exp | 2 +-
gdb/testsuite/gdb.threads/ia64-sigill.exp | 4 +-
gdb/testsuite/gdb.threads/inf-thr-count.exp | 8 ++--
.../gdb.threads/infcall-thread-announce.exp | 4 +-
.../gdb.threads/info-threads-cur-sal.exp | 4 +-
.../gdb.threads/info-threads-options.exp | 4 +-
.../gdb.threads/interrupt-while-step-over.exp | 4 +-
.../gdb.threads/interrupted-hand-call.exp | 4 +-
gdb/testsuite/gdb.threads/kill.exp | 2 +-
gdb/testsuite/gdb.threads/killed-outside.exp | 6 +--
gdb/testsuite/gdb.threads/killed.exp | 2 +-
gdb/testsuite/gdb.threads/leader-exit.exp | 4 +-
gdb/testsuite/gdb.threads/linux-dp.exp | 4 +-
.../gdb.threads/local-watch-wrong-thread.exp | 2 +-
.../main-thread-exit-during-detach.exp | 4 +-
gdb/testsuite/gdb.threads/manythreads.exp | 2 +-
.../gdb.threads/multi-create-ns-info-thr.exp | 4 +-
gdb/testsuite/gdb.threads/multi-create.exp | 2 +-
.../gdb.threads/multiple-step-overs.exp | 4 +-
.../multiple-successive-infcall.exp | 6 +--
gdb/testsuite/gdb.threads/names.exp | 2 +-
.../gdb.threads/next-bp-other-thread.exp | 2 +-
.../next-while-other-thread-longjmps.exp | 4 +-
.../gdb.threads/no-unwaited-for-left.exp | 4 +-
gdb/testsuite/gdb.threads/non-ldr-exc-1.exp | 4 +-
gdb/testsuite/gdb.threads/non-ldr-exc-2.exp | 4 +-
gdb/testsuite/gdb.threads/non-ldr-exc-3.exp | 4 +-
gdb/testsuite/gdb.threads/non-ldr-exc-4.exp | 4 +-
gdb/testsuite/gdb.threads/non-ldr-exit.exp | 4 +-
.../gdb.threads/non-stop-fair-events.exp | 4 +-
gdb/testsuite/gdb.threads/omp-par-scope.exp | 6 +--
gdb/testsuite/gdb.threads/omp-task.exp | 6 +--
gdb/testsuite/gdb.threads/pending-step.exp | 4 +-
gdb/testsuite/gdb.threads/print-threads.exp | 2 +-
.../process-dies-while-detaching.exp | 10 ++---
.../process-dies-while-handling-bp.exp | 2 +-
...cess-exit-status-is-leader-exit-status.exp | 4 +-
.../gdb.threads/pthread_cond_wait.exp | 2 +-
gdb/testsuite/gdb.threads/pthreads.exp | 2 +-
gdb/testsuite/gdb.threads/queue-signal.exp | 4 +-
.../gdb.threads/reconnect-signal.exp | 8 ++--
gdb/testsuite/gdb.threads/schedlock.exp | 2 +-
gdb/testsuite/gdb.threads/siginfo-threads.exp | 6 +--
.../signal-command-handle-nopass.exp | 2 +-
...ignal-command-multiple-signals-pending.exp | 2 +-
.../signal-delivered-right-thread.exp | 2 +-
gdb/testsuite/gdb.threads/signal-sigtrap.exp | 2 +-
...al-while-stepping-over-bp-other-thread.exp | 4 +-
gdb/testsuite/gdb.threads/sigstep-threads.exp | 4 +-
gdb/testsuite/gdb.threads/sigthread.exp | 2 +-
gdb/testsuite/gdb.threads/staticthreads.exp | 4 +-
.../step-bg-decr-pc-switch-thread.exp | 2 +-
gdb/testsuite/gdb.threads/step-over-exec.exp | 4 +-
.../step-over-lands-on-breakpoint.exp | 2 +-
.../step-over-trips-on-watchpoint.exp | 2 +-
.../gdb.threads/stepi-over-clone.exp | 2 +-
.../gdb.threads/stepi-random-signal.exp | 4 +-
.../gdb.threads/stop-with-handle.exp | 4 +-
gdb/testsuite/gdb.threads/switch-threads.exp | 2 +-
.../gdb.threads/thread-bp-deleted.exp | 6 +--
gdb/testsuite/gdb.threads/thread-execl.exp | 2 +-
gdb/testsuite/gdb.threads/thread-find.exp | 2 +-
.../gdb.threads/thread-specific-bp.exp | 8 ++--
gdb/testsuite/gdb.threads/thread-specific.exp | 2 +-
.../gdb.threads/thread-unwindonsignal.exp | 4 +-
gdb/testsuite/gdb.threads/thread_check.exp | 2 +-
gdb/testsuite/gdb.threads/thread_events.exp | 2 +-
gdb/testsuite/gdb.threads/threadapply.exp | 6 +--
gdb/testsuite/gdb.threads/threadcrash.exp | 4 +-
.../gdb.threads/threads-after-exec.exp | 2 +-
.../gdb.threads/threxit-hop-specific.exp | 2 +-
gdb/testsuite/gdb.threads/tid-reuse.exp | 4 +-
gdb/testsuite/gdb.threads/tls-core.exp | 2 +-
gdb/testsuite/gdb.threads/tls-nodebug-pie.exp | 4 +-
gdb/testsuite/gdb.threads/tls-nodebug.exp | 2 +-
gdb/testsuite/gdb.threads/tls-sepdebug.exp | 4 +-
gdb/testsuite/gdb.threads/tls-shared.exp | 4 +-
gdb/testsuite/gdb.threads/tls-so_extern.exp | 4 +-
gdb/testsuite/gdb.threads/tls-var.exp | 4 +-
gdb/testsuite/gdb.threads/tls.exp | 6 +--
.../gdb.threads/vfork-follow-child-exec.exp | 2 +-
.../gdb.threads/vfork-follow-child-exit.exp | 2 +-
.../gdb.threads/vfork-multi-inferior.exp | 4 +-
gdb/testsuite/gdb.threads/watchpoint-fork.exp | 2 +-
.../gdb.threads/watchthreads-reorder.exp | 6 +--
gdb/testsuite/gdb.threads/watchthreads.exp | 4 +-
gdb/testsuite/gdb.threads/watchthreads2.exp | 6 +--
gdb/testsuite/gdb.threads/wp-replication.exp | 4 +-
gdb/testsuite/gdb.tui/basic.exp | 4 +-
gdb/testsuite/gdb.tui/break.exp | 2 +-
gdb/testsuite/gdb.tui/compact-source.exp | 2 +-
gdb/testsuite/gdb.tui/corefile-run.exp | 6 +--
gdb/testsuite/gdb.tui/flush-after-run.exp | 2 +-
gdb/testsuite/gdb.tui/list-before.exp | 2 +-
gdb/testsuite/gdb.tui/list.exp | 2 +-
gdb/testsuite/gdb.tui/main-2.exp | 2 +-
gdb/testsuite/gdb.tui/main.exp | 2 +-
gdb/testsuite/gdb.tui/new-layout.exp | 2 +-
gdb/testsuite/gdb.tui/regs.exp | 2 +-
gdb/testsuite/gdb.tui/reread.exp | 2 +-
gdb/testsuite/gdb.tui/resize-2.exp | 2 +-
gdb/testsuite/gdb.tui/resize-3.exp | 2 +-
gdb/testsuite/gdb.tui/resize-one-line.exp | 2 +-
gdb/testsuite/gdb.tui/resize.exp | 2 +-
gdb/testsuite/gdb.tui/scroll.exp | 2 +-
gdb/testsuite/gdb.tui/tui-focus.exp | 2 +-
gdb/testsuite/gdb.tui/tui-init-source.exp | 2 +-
.../gdb.tui/tui-layout-asm-short-prog.exp | 2 +-
gdb/testsuite/gdb.tui/tui-layout-asm.exp | 2 +-
gdb/testsuite/gdb.tui/tui-layout.exp | 4 +-
gdb/testsuite/gdb.tui/tui-mode-switch.exp | 2 +-
gdb/testsuite/gdb.tui/winheight.exp | 2 +-
gdb/testsuite/gdb.tui/winwidth.exp | 2 +-
gdb/testsuite/gdb.xml/tdesc-arch.exp | 2 +-
gdb/testsuite/gdb.xml/tdesc-regs.exp | 2 +-
gdb/testsuite/gdb.xml/tdesc-reload.exp | 6 +--
1499 files changed, 2641 insertions(+), 2633 deletions(-)
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 01/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 02/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (34 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' aarch64-*.exp* arm-*.exp* thumb*.exp*
inside gdb/testsuite/gdb.arch.
---
gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-fp.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-fpmr-sighandler.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-fpmr.exp | 4 ++--
.../gdb.arch/aarch64-frameptr-vecreg-unwind.exp | 2 +-
gdb/testsuite/gdb.arch/aarch64-mops-single-step.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-mte.exp | 12 ++++++------
gdb/testsuite/gdb.arch/aarch64-non-address-bits.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-pauth.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp | 2 +-
gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-sme-sanity.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp | 4 ++--
gdb/testsuite/gdb.arch/aarch64-w-registers.exp | 4 ++--
gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp | 4 ++--
gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp | 2 +-
gdb/testsuite/gdb.arch/arm-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/arm-neon.exp | 4 ++--
gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp | 2 +-
gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp | 2 +-
.../gdb.arch/arm-single-step-kernel-helper.exp | 4 ++--
gdb/testsuite/gdb.arch/thumb-bx-pc.exp | 4 ++--
gdb/testsuite/gdb.arch/thumb-prologue.exp | 4 ++--
gdb/testsuite/gdb.arch/thumb-singlestep.exp | 4 ++--
gdb/testsuite/gdb.arch/thumb2-it.exp | 4 ++--
30 files changed, 57 insertions(+), 57 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp b/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp
index 269e32cecc74..38c83d67dc44 100644
--- a/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-atomic-inst.exp
@@ -22,11 +22,11 @@ require is_aarch64_target
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 "ldxr"]" \
diff --git a/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp b/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp
index f3abd842d0ea..b23d36b8e2bb 100644
--- a/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-brk-patterns.exp
@@ -22,11 +22,11 @@ require is_aarch64_target
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Number of expected SIGTRAP's to get. This needs to be kept in sync
diff --git a/gdb/testsuite/gdb.arch/aarch64-fp.exp b/gdb/testsuite/gdb.arch/aarch64-fp.exp
index e2e3777a7289..7d8c323ba2a4 100644
--- a/gdb/testsuite/gdb.arch/aarch64-fp.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-fp.exp
@@ -22,11 +22,11 @@ require is_aarch64_target
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set endianness [get_endianness]
diff --git a/gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp b/gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp
index dea9f82bd4a1..81ebd4892aa9 100644
--- a/gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp
@@ -42,13 +42,13 @@ require allow_aarch64_fpmr_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
set binfile [standard_output_file ${testfile}]
if {![runto_main]} {
- return -1
+ return
}
set crash_breakpoint "crash point"
diff --git a/gdb/testsuite/gdb.arch/aarch64-fpmr-sighandler.exp b/gdb/testsuite/gdb.arch/aarch64-fpmr-sighandler.exp
index d0c23ca2861a..19c28c70c50d 100644
--- a/gdb/testsuite/gdb.arch/aarch64-fpmr-sighandler.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-fpmr-sighandler.exp
@@ -22,11 +22,11 @@ require allow_aarch64_fpmr_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set reg_main_value "0x3fff7fc049"
diff --git a/gdb/testsuite/gdb.arch/aarch64-fpmr.exp b/gdb/testsuite/gdb.arch/aarch64-fpmr.exp
index bbaf2bf3eed9..72fd977fc673 100644
--- a/gdb/testsuite/gdb.arch/aarch64-fpmr.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-fpmr.exp
@@ -20,11 +20,11 @@ require allow_aarch64_fpmr_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_multiple "info register \$fpmr" "Test FPMR SRC1 E5M2" {
diff --git a/gdb/testsuite/gdb.arch/aarch64-frameptr-vecreg-unwind.exp b/gdb/testsuite/gdb.arch/aarch64-frameptr-vecreg-unwind.exp
index 784868651b8d..29c44a657adb 100644
--- a/gdb/testsuite/gdb.arch/aarch64-frameptr-vecreg-unwind.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-frameptr-vecreg-unwind.exp
@@ -19,7 +19,7 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} \
"${srcfile}" {debug}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/aarch64-mops-single-step.exp b/gdb/testsuite/gdb.arch/aarch64-mops-single-step.exp
index 3671d3fdaa35..b489723b9869 100644
--- a/gdb/testsuite/gdb.arch/aarch64-mops-single-step.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-mops-single-step.exp
@@ -22,7 +22,7 @@ require allow_aarch64_mops_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug additional_flags=-march=armv9.3-a]] } {
- return -1
+ return
}
# If the inferior is rescheduled to another CPU while a main or epilogue
@@ -72,7 +72,7 @@ proc step_through_sequence { prefix } {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint ${srcfile}:[gdb_get_line_number "Break memset"]
diff --git a/gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.exp b/gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.exp
index da80fa2fe8ed..35d15d2588a0 100644
--- a/gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-mops-watchpoint.exp
@@ -24,12 +24,12 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug additional_flags=-march=armv9.3-a]] } {
- return -1
+ return
}
set linespec ${srcfile}:[gdb_get_line_number "Break here"]
if {![runto ${linespec}]} {
- return -1
+ return
}
gdb_test "watch -location a\[28\]" \
diff --git a/gdb/testsuite/gdb.arch/aarch64-mte.exp b/gdb/testsuite/gdb.arch/aarch64-mte.exp
index 4da381095739..4826041e330a 100644
--- a/gdb/testsuite/gdb.arch/aarch64-mte.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-mte.exp
@@ -47,24 +47,24 @@ require is_aarch64_target
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
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
}
gdb_breakpoint "access_memory"
if {[gdb_continue "access_memory"]} {
- return -1
+ return
}
# Fetch a known pointer to an area mapped with PROT_MTE.
@@ -73,7 +73,7 @@ set tagged_ptr_addr [get_hexadecimal_valueof $tagged_ptr_symbol -1]
if {$tagged_ptr_addr == -1} {
unresolved "unexpected pointer or tag value"
- return -1
+ return
}
# Fetch a known pointer to an area not mapped with PROT_MTE.
@@ -82,7 +82,7 @@ set untagged_ptr_addr [get_hexadecimal_valueof $untagged_ptr_symbol -1]
if {$untagged_ptr_addr == -1} {
unresolved "unexpected pointer or tag value"
- return -1
+ return
}
with_test_prefix "literals" {
diff --git a/gdb/testsuite/gdb.arch/aarch64-non-address-bits.exp b/gdb/testsuite/gdb.arch/aarch64-non-address-bits.exp
index 2f90b518fcb6..8066b2035e1b 100644
--- a/gdb/testsuite/gdb.arch/aarch64-non-address-bits.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-non-address-bits.exp
@@ -23,11 +23,11 @@ require is_aarch64_target
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# We need to iterate over two distinct ranges, separated by a single bit.
diff --git a/gdb/testsuite/gdb.arch/aarch64-pauth.exp b/gdb/testsuite/gdb.arch/aarch64-pauth.exp
index e89ec701342a..6f363097f030 100644
--- a/gdb/testsuite/gdb.arch/aarch64-pauth.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-pauth.exp
@@ -42,11 +42,11 @@ foreach pauth_flag "-mbranch-protection=pac-ret+leaf -msign-return-address=all"
# If we couldn't compile, just bail out.
if {!$compilation_ok} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [ gdb_get_line_number "break here" ]
diff --git a/gdb/testsuite/gdb.arch/aarch64-prologue.exp b/gdb/testsuite/gdb.arch/aarch64-prologue.exp
index 98583e84aa9f..c6fe2e262a5e 100644
--- a/gdb/testsuite/gdb.arch/aarch64-prologue.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-prologue.exp
@@ -19,7 +19,7 @@ require is_aarch64_target
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp b/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp
index f2bf2236a9b1..d43ab468cabe 100644
--- a/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp
@@ -26,7 +26,7 @@ standard_testfile aarch64-pseudo-unwind.c aarch64-pseudo-unwind-asm.S
if { [prepare_for_testing "failed to prepare" ${testfile} \
"${srcfile} ${srcfile2}" {debug}] } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp b/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp
index aff80020cd33..740b807e7078 100644
--- a/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-sighandler-regs.exp
@@ -29,11 +29,11 @@ if { ![allow_aarch64_sve_tests] } {
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${compile_flags}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set endianness [get_endianness]
diff --git a/gdb/testsuite/gdb.arch/aarch64-sme-sanity.exp b/gdb/testsuite/gdb.arch/aarch64-sme-sanity.exp
index f3ded57969d2..c0c4af53a4f9 100644
--- a/gdb/testsuite/gdb.arch/aarch64-sme-sanity.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-sme-sanity.exp
@@ -47,11 +47,11 @@ require !gdb_protocol_is_remote
set compile_flags {"debug" "macros" "additional_flags=-march=armv8.5-a+sve"}
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${compile_flags}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Adjust the repeat count for the test.
diff --git a/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp b/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp
index 21242a698cc1..12cede6e2eb2 100644
--- a/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp
@@ -19,11 +19,11 @@ require is_aarch64_target
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 "breakpoint here"]
diff --git a/gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp b/gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp
index 7ee2eec43b81..e08b4d1f90ee 100644
--- a/gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-unwind-pc.exp
@@ -22,11 +22,11 @@ require is_aarch64_target
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
proc test_reg_vals {} {
diff --git a/gdb/testsuite/gdb.arch/aarch64-w-registers.exp b/gdb/testsuite/gdb.arch/aarch64-w-registers.exp
index 31de299c7f16..c2685b302012 100644
--- a/gdb/testsuite/gdb.arch/aarch64-w-registers.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-w-registers.exp
@@ -20,12 +20,12 @@ require is_aarch64_target
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
untested "could not run to main"
- return -1
+ return
}
array set w_values {
diff --git a/gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp b/gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp
index c0516313ee30..703d5d66f4e1 100644
--- a/gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp
+++ b/gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp
@@ -24,11 +24,11 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug text_segment=0xb0000000]] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
gdb_test "next" "${::decimal}\\s+return 0;"
diff --git a/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp b/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp
index cb6d9e60b0bf..c2ecaffd1d2c 100644
--- a/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp
+++ b/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp
@@ -19,7 +19,7 @@ require {istarget "arm*-*-*"}
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile ]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/arm-disp-step.exp b/gdb/testsuite/gdb.arch/arm-disp-step.exp
index 8bf9da42a59d..295ef22da4c5 100644
--- a/gdb/testsuite/gdb.arch/arm-disp-step.exp
+++ b/gdb/testsuite/gdb.arch/arm-disp-step.exp
@@ -22,7 +22,7 @@ require is_aarch32_target
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.arch/arm-neon.exp b/gdb/testsuite/gdb.arch/arm-neon.exp
index e15c04420c72..3ef346150d65 100644
--- a/gdb/testsuite/gdb.arch/arm-neon.exp
+++ b/gdb/testsuite/gdb.arch/arm-neon.exp
@@ -22,11 +22,11 @@ require allow_float_test
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug quiet}] } {
unsupported "ARM NEON is not supported"
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Test passing vectors in function argument in the inferior call.
diff --git a/gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp b/gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp
index bdfe665ee70b..06a9ba3a74ed 100644
--- a/gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp
+++ b/gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp
@@ -31,7 +31,7 @@ standard_testfile arm-pseudo-unwind-legacy.c arm-pseudo-unwind-legacy-asm.S
if { [prepare_for_testing "failed to prepare" ${testfile} \
"${srcfile} ${srcfile2}" {debug additional_flags=-marm}] } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp b/gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp
index af637d639757..d2d65f792d59 100644
--- a/gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp
+++ b/gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp
@@ -26,7 +26,7 @@ standard_testfile arm-pseudo-unwind.c arm-pseudo-unwind-asm.S
if { [prepare_for_testing "failed to prepare" ${testfile} \
"${srcfile} ${srcfile2}" {debug additional_flags=-marm}] } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp b/gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp
index 78d7c2fbb3af..6e60cec31b87 100644
--- a/gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp
+++ b/gdb/testsuite/gdb.arch/arm-single-step-kernel-helper.exp
@@ -19,11 +19,11 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug]] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
# Initialize kernel_user_helper_version.
diff --git a/gdb/testsuite/gdb.arch/thumb-bx-pc.exp b/gdb/testsuite/gdb.arch/thumb-bx-pc.exp
index 3a86ea2e2922..29dbfb348931 100644
--- a/gdb/testsuite/gdb.arch/thumb-bx-pc.exp
+++ b/gdb/testsuite/gdb.arch/thumb-bx-pc.exp
@@ -22,11 +22,11 @@ set srcfile ${testfile}.S
set opts {}
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "stepi" "$hex in main \\(\\)" "stepi for bx pc"
diff --git a/gdb/testsuite/gdb.arch/thumb-prologue.exp b/gdb/testsuite/gdb.arch/thumb-prologue.exp
index ccf7a235cd73..d0eb17927746 100644
--- a/gdb/testsuite/gdb.arch/thumb-prologue.exp
+++ b/gdb/testsuite/gdb.arch/thumb-prologue.exp
@@ -23,7 +23,7 @@ standard_testfile
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {"additional_flags=-mthumb"}] != "" } {
untested "ARM prologue tests"
- return -1
+ return
}
@@ -34,7 +34,7 @@ clean_restart $testfile
#
if {![runto_main]} {
- return -1
+ return
}
# Testcase for TPCS prologue.
diff --git a/gdb/testsuite/gdb.arch/thumb-singlestep.exp b/gdb/testsuite/gdb.arch/thumb-singlestep.exp
index 53fce5770a94..cb9f77f4ee76 100644
--- a/gdb/testsuite/gdb.arch/thumb-singlestep.exp
+++ b/gdb/testsuite/gdb.arch/thumb-singlestep.exp
@@ -22,11 +22,11 @@ set srcfile ${testfile}.S
set additional_flags "additional_flags=-mthumb"
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} [list debug $additional_flags]]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# GDB doesn't skip prologue for asm files, so do one single step to
diff --git a/gdb/testsuite/gdb.arch/thumb2-it.exp b/gdb/testsuite/gdb.arch/thumb2-it.exp
index d100a34acc1c..0c9246b2131e 100644
--- a/gdb/testsuite/gdb.arch/thumb2-it.exp
+++ b/gdb/testsuite/gdb.arch/thumb2-it.exp
@@ -21,13 +21,13 @@ standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
# Make sure that the compiler options allow Thumb-2.
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 02/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 01/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (33 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes the "return -1" statements that weren't
caught by the sed command.
In aarch64-prologue.exp and arm-cmse-sgstubs.exp, this was caused by a
misaligned line, which is now fixed.
In aarch64-mte.exp, arm-pthread_cond_timedwait-bt.exp and thumb2-it.exp
this is because the return statements have extra indentation due to
being inside with_test_prefix or save_vars blocks.
In the case of pr25124.exp it's because the file didn't match the glob
pattern of the sed command.
In the other testcases, the return statements are in procedures whose
callers don't use the return value. In some of those, that return value
would have "bubbled up" as the top level return value.
There's also a top-level "return 0" fixed in iwmmxt-regs.exp.
---
gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp | 2 +-
gdb/testsuite/gdb.arch/aarch64-gcs-core.exp | 2 +-
gdb/testsuite/gdb.arch/aarch64-mte-core.exp | 6 +++---
gdb/testsuite/gdb.arch/aarch64-mte.exp | 6 +++---
gdb/testsuite/gdb.arch/aarch64-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/aarch64-sme-core.exp.tcl | 8 ++++----
.../gdb.arch/aarch64-sme-regs-available.exp.tcl | 10 +++++-----
.../gdb.arch/aarch64-sme-regs-sigframe.exp.tcl | 8 ++++----
.../gdb.arch/aarch64-sme-regs-unavailable.exp.tcl | 8 ++++----
gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp | 2 +-
.../gdb.arch/arm-pthread_cond_timedwait-bt.exp | 2 +-
gdb/testsuite/gdb.arch/iwmmxt-regs.exp | 2 +-
gdb/testsuite/gdb.arch/pr25124.exp | 2 +-
gdb/testsuite/gdb.arch/thumb2-it.exp | 2 +-
14 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp b/gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp
index 81ebd4892aa9..030f9f9b55e8 100644
--- a/gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-fpmr-core.exp
@@ -29,7 +29,7 @@ proc check_fpmr_core_file {core_filename} {
"load core file"]
} {
untested "failed to generate core file"
- return -1
+ return
}
# Check the value of FPMR in the core file.
diff --git a/gdb/testsuite/gdb.arch/aarch64-gcs-core.exp b/gdb/testsuite/gdb.arch/aarch64-gcs-core.exp
index 30a620ed06b3..808fb943fdfb 100644
--- a/gdb/testsuite/gdb.arch/aarch64-gcs-core.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-gcs-core.exp
@@ -48,7 +48,7 @@ proc check_core_file {core_filename saved_gcspr} {
"#0 function \\(gcspr=$hex\\) at .*aarch64-gcs-core.c:$decimal" \
"$decimal.*__asm__ volatile \\(\"ret\\\\n\"\\);"] \
"load core file"]} {
- return -1
+ return
}
# Check the value of GCSPR in the core file.
diff --git a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
index 1d570a9497a2..92ffb6f1be64 100644
--- a/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-mte-core.exp
@@ -94,20 +94,20 @@ proc test_mode { mode } {
standard_testfile
set executable "${::testfile}-${mode}"
if {[prepare_for_testing "failed to prepare" ${executable} ${::srcfile} ${compile_flags}]} {
- return -1
+ return
}
set binfile [standard_output_file ${executable}]
if {![runto_main]} {
untested "could not run to 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
}
# Run until a crash and confirm GDB displays memory tag violation
diff --git a/gdb/testsuite/gdb.arch/aarch64-mte.exp b/gdb/testsuite/gdb.arch/aarch64-mte.exp
index 4826041e330a..72d4bba72531 100644
--- a/gdb/testsuite/gdb.arch/aarch64-mte.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-mte.exp
@@ -278,7 +278,7 @@ with_test_prefix "print command" {
if {$ltag == -1} {
unresolved "unexpected tag value"
- return -1
+ return
}
set atag [expr {($ltag + 1) % 16}]
@@ -335,14 +335,14 @@ gdb_test "continue" \
# Restart to execute the async tag fault test.
with_test_prefix "async" {
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "access_memory"
if {[gdb_continue "access_memory"]} {
fail "could not run to tagged memory test function"
- return -1
+ return
}
# Force a tag fault.
diff --git a/gdb/testsuite/gdb.arch/aarch64-prologue.exp b/gdb/testsuite/gdb.arch/aarch64-prologue.exp
index c6fe2e262a5e..509fd31e8b4f 100644
--- a/gdb/testsuite/gdb.arch/aarch64-prologue.exp
+++ b/gdb/testsuite/gdb.arch/aarch64-prologue.exp
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {
}
if {![runto_main]} {
- return -1
+ return
}
# Ensure gdb can break at excessiveprologue then continue.
diff --git a/gdb/testsuite/gdb.arch/aarch64-sme-core.exp.tcl b/gdb/testsuite/gdb.arch/aarch64-sme-core.exp.tcl
index 0727d7055502..ea53716e144f 100644
--- a/gdb/testsuite/gdb.arch/aarch64-sme-core.exp.tcl
+++ b/gdb/testsuite/gdb.arch/aarch64-sme-core.exp.tcl
@@ -33,7 +33,7 @@ proc check_sme_core_file { core_filename state vl svl } {
".*p = 0xff;.* crash point .*"] \
"load core file"]} {
untested "failed to generate core file"
- return -1
+ return
}
check_state $state $vl $svl
@@ -127,7 +127,7 @@ proc test_sme_core_file { id_start id_end } {
standard_testfile ${::srcdir}/${::subdir}/aarch64-sme-core.c
set executable "${::testfile}"
if {[prepare_for_testing "failed to prepare" ${executable} ${::srcfile} ${compile_flags}]} {
- return -1
+ return
}
set binfile [standard_output_file ${executable}]
@@ -166,12 +166,12 @@ proc test_sme_core_file { id_start id_end } {
# lifted, we can remove this guard.
if {[gdb_protocol_is_remote]} {
unsupported "aarch64 sve/sme tests not supported for remote targets"
- return -1
+ return
}
if {![runto_main]} {
untested "could not run to main"
- return -1
+ return
}
generate_sme_core_files ${executable} ${binfile} $id $state $vl $svl
diff --git a/gdb/testsuite/gdb.arch/aarch64-sme-regs-available.exp.tcl b/gdb/testsuite/gdb.arch/aarch64-sme-regs-available.exp.tcl
index 32805466e8a7..926583e0b5e4 100644
--- a/gdb/testsuite/gdb.arch/aarch64-sme-regs-available.exp.tcl
+++ b/gdb/testsuite/gdb.arch/aarch64-sme-regs-available.exp.tcl
@@ -52,7 +52,7 @@ proc check_regs { mode vl svl } {
# Check SVCR.
if {[gdb_test "print \$svcr" $za_state "svcr before assignments" ]} {
fail "incorrect za state"
- return -1
+ return
}
# Check the size of ZA.
@@ -85,7 +85,7 @@ proc check_regs { mode vl svl } {
# Make sure we have ZA state.
if {[gdb_test "print \$svcr" $za_state "svcr after assignment to ${register_name}" ]} {
fail "incorrect za state"
- return -1
+ return
}
set pattern [string_to_regexp [2d_array_value_pattern 255 $tile_svl $tile_svl]]
@@ -116,7 +116,7 @@ proc check_regs { mode vl svl } {
# Make sure we have ZA state.
if {[gdb_test "print \$svcr" $za_state "svcr after assignment of ${register_name}" ]} {
fail "incorrect za state"
- return -1
+ return
}
set pattern [string_to_regexp [1d_array_value_pattern 255 $num_elements]]
@@ -159,13 +159,13 @@ proc test_sme_registers_available { id_start id_end } {
standard_testfile ${::srcdir}/${::subdir}/aarch64-sme-regs-available.c
set executable "${::testfile}-${id_start}-${id_end}"
if {[prepare_for_testing "failed to prepare" ${executable} ${::srcfile} ${compile_flags}]} {
- return -1
+ return
}
set binfile [standard_output_file ${executable}]
if {![runto_main]} {
untested "could not run to main"
- return -1
+ return
}
gdb_test_no_output "set print repeats 1"
diff --git a/gdb/testsuite/gdb.arch/aarch64-sme-regs-sigframe.exp.tcl b/gdb/testsuite/gdb.arch/aarch64-sme-regs-sigframe.exp.tcl
index d83a1cbcf315..e550a17a133d 100644
--- a/gdb/testsuite/gdb.arch/aarch64-sme-regs-sigframe.exp.tcl
+++ b/gdb/testsuite/gdb.arch/aarch64-sme-regs-sigframe.exp.tcl
@@ -38,13 +38,13 @@ proc test_sme_registers_sigframe { id_start id_end } {
standard_testfile ${::srcdir}/${::subdir}/aarch64-sme-regs-sigframe.c
set executable "${::testfile}-${id_start}-${id_end}"
if {[prepare_for_testing "failed to prepare" ${executable} ${::srcfile} ${compile_flags}]} {
- return -1
+ return
}
set binfile [standard_output_file ${executable}]
if {![runto_main]} {
untested "could not run to main"
- return -1
+ return
}
set sigill_breakpoint "stop before SIGILL"
@@ -84,7 +84,7 @@ proc test_sme_registers_sigframe { id_start id_end } {
# Run the program until it has adjusted the svl.
if {[gdb_continue_to_breakpoint $sigill_breakpoint]} {
- return -1
+ return
}
# Check SVG to make sure it is correct
@@ -142,7 +142,7 @@ proc test_sme_registers_sigframe { id_start id_end } {
gdb_test_no_output "set \$pc=\$pc+4"
# Continue to the signal handler.
if {[gdb_continue_to_breakpoint $handler_breakpoint]} {
- return -1
+ return
}
# Modify TPIDR2 so it is different from its value past the signal
diff --git a/gdb/testsuite/gdb.arch/aarch64-sme-regs-unavailable.exp.tcl b/gdb/testsuite/gdb.arch/aarch64-sme-regs-unavailable.exp.tcl
index 5f2647f276d7..716c6a5c5718 100644
--- a/gdb/testsuite/gdb.arch/aarch64-sme-regs-unavailable.exp.tcl
+++ b/gdb/testsuite/gdb.arch/aarch64-sme-regs-unavailable.exp.tcl
@@ -36,7 +36,7 @@ proc_with_prefix check_regs { vl svl } {
# Make sure there is no SM or ZA state.
if {[gdb_test "print \$svcr" "= \\\[ \\\]"]} {
fail "incorrect ZA state"
- return -1
+ return
}
# Check the size of ZA.
@@ -116,7 +116,7 @@ proc test_sme_registers_unavailable { id_start id_end } {
standard_testfile ${::srcdir}/${::subdir}/aarch64-sme-regs-unavailable.c
set executable "${::testfile}-${id_start}-${id_end}"
if {[prepare_for_testing "failed to prepare" ${executable} ${::srcfile} ${compile_flags}]} {
- return -1
+ return
}
set binfile [standard_output_file ${executable}]
@@ -125,12 +125,12 @@ proc test_sme_registers_unavailable { id_start id_end } {
# via the RSP. When this restriction is lifted, we can remove this guard.
if {[gdb_protocol_is_remote]} {
unsupported "aarch64 sve/sme tests not supported for remote targets"
- return -1
+ return
}
if {![runto_main]} {
untested "could not run to main"
- return -1
+ return
}
gdb_test_no_output "set print repeats 1"
diff --git a/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp b/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp
index c2ecaffd1d2c..188ee1a913c4 100644
--- a/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp
+++ b/gdb/testsuite/gdb.arch/arm-cmse-sgstubs.exp
@@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile ]} {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "si" "0x.*" "branch to func from main"
diff --git a/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp b/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp
index 85ca6e78210f..02ae70095170 100644
--- a/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp
+++ b/gdb/testsuite/gdb.arch/arm-pthread_cond_timedwait-bt.exp
@@ -34,7 +34,7 @@ if { [build_executable "failed to prepare" ${testfile} ${srcfile} \
save_vars { GDBFLAGS } {
append GDBFLAGS " --readnever"
if { [clean_restart $testfile] == -1 } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.arch/iwmmxt-regs.exp b/gdb/testsuite/gdb.arch/iwmmxt-regs.exp
index 6c1848593b21..5317c9bfae35 100644
--- a/gdb/testsuite/gdb.arch/iwmmxt-regs.exp
+++ b/gdb/testsuite/gdb.arch/iwmmxt-regs.exp
@@ -38,7 +38,7 @@ gdb_load ${binfile}
#
if {![runto_main]} {
- return 0
+ return
}
# Set all the registers to arbitrary values.
diff --git a/gdb/testsuite/gdb.arch/pr25124.exp b/gdb/testsuite/gdb.arch/pr25124.exp
index 6086790bc568..b543812a50a4 100644
--- a/gdb/testsuite/gdb.arch/pr25124.exp
+++ b/gdb/testsuite/gdb.arch/pr25124.exp
@@ -22,7 +22,7 @@ standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.arch/thumb2-it.exp b/gdb/testsuite/gdb.arch/thumb2-it.exp
index 0c9246b2131e..9ffcc6e1e3b9 100644
--- a/gdb/testsuite/gdb.arch/thumb2-it.exp
+++ b/gdb/testsuite/gdb.arch/thumb2-it.exp
@@ -35,7 +35,7 @@ gdb_test_multiple "list" "list main" {
-re ".*@ No Thumb-2.*$gdb_prompt $" {
pass "list main"
untested "skipping tests due to lack of Thumb-2"
- return -1
+ return
}
-re ".*@ Thumb-2 OK.*$gdb_prompt $" {
pass "list main"
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 01/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 02/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-28 15:54 ` Schimpe, Christina
2026-04-27 6:34 ` [PATCH 04/36] GDB: testsuite: intel: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (32 subsequent siblings)
35 siblings, 1 reply; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' \
amd64-*.exp* i386-*.exp* x86*.exp* ia64*.exp*
inside gdb/testsuite/gdb.arch.
---
gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-entry-value-param.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-entry-value.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-eval.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-gs_base.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-i386-address.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-init-x87-values.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp | 8 ++++----
gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp | 8 ++++----
gdb/testsuite/gdb.arch/amd64-lam.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-stap-expressions.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp | 2 +-
gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-tailcall-self.exp | 4 ++--
gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp | 2 +-
gdb/testsuite/gdb.arch/i386-avx512.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-biarch-core.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 2 +-
gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp | 2 +-
gdb/testsuite/gdb.arch/i386-disp-step.exp | 2 +-
gdb/testsuite/gdb.arch/i386-dr3-watch.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-float.exp | 2 +-
gdb/testsuite/gdb.arch/i386-gnu-cfi.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-permbkpt.exp | 2 +-
gdb/testsuite/gdb.arch/i386-pkru.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/i386-signal.exp | 2 +-
gdb/testsuite/gdb.arch/i386-size-overlap.exp | 2 +-
gdb/testsuite/gdb.arch/i386-size.exp | 2 +-
gdb/testsuite/gdb.arch/i386-sse-stack-align.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp | 4 ++--
gdb/testsuite/gdb.arch/i386-unwind.exp | 2 +-
gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp | 6 +++---
gdb/testsuite/gdb.arch/x86-avx512bf16.exp | 4 ++--
gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp | 4 ++--
gdb/testsuite/gdb.arch/x86-avx512fp16.exp | 4 ++--
52 files changed, 90 insertions(+), 90 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
index 93e1ed36652b..bd05a4d4ae3a 100644
--- a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
+++ b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
@@ -20,11 +20,11 @@ standard_testfile .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{ debug }] } {
untested "could not compile"
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here"]
diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
index 3a16bfb3824f..db458b3a7863 100644
--- a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
+++ b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
@@ -25,7 +25,7 @@ standard_testfile .S
set options [list debug nopie]
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $options] } {
- return -1
+ return
}
# Get things started.
diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp b/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
index ce0283d462e7..38852cb2f272 100644
--- a/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
+++ b/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
@@ -25,7 +25,7 @@ set opts {debug nopie}
standard_testfile .S -alarm.c
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts] } {
- return -1
+ return
}
gdb_test "set displaced-stepping on" ""
diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step.exp b/gdb/testsuite/gdb.arch/amd64-disp-step.exp
index d05b6760e585..e8f4b7aea8e5 100644
--- a/gdb/testsuite/gdb.arch/amd64-disp-step.exp
+++ b/gdb/testsuite/gdb.arch/amd64-disp-step.exp
@@ -25,7 +25,7 @@ set opts {debug nopie}
standard_testfile .S -signal.c
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts] } {
- return -1
+ return
}
gdb_test "set displaced-stepping on" ""
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
index 257a7c8cf604..b67f676b7163 100644
--- a/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
@@ -30,11 +30,11 @@ if {[is_remote host]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
index e5697c9c9ab5..8043235eec8e 100644
--- a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
@@ -30,11 +30,11 @@ if {[is_remote host]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
index 5b2b65e86365..4c1d63ab5a3c 100644
--- a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
@@ -30,11 +30,11 @@ if {[is_remote host]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
index 146d92eb2670..cb789b541bc2 100644
--- a/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
@@ -24,11 +24,11 @@ if {[is_remote host]} {
if { [prepare_for_testing_full "failed to prepare" \
[list $testfile "c++" $srcfile {}]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value.exp b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
index 65c4ab142c3e..997312ee4375 100644
--- a/gdb/testsuite/gdb.arch/amd64-entry-value.exp
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "breakhere"
diff --git a/gdb/testsuite/gdb.arch/amd64-eval.exp b/gdb/testsuite/gdb.arch/amd64-eval.exp
index 34fb21e0678f..2b145375595b 100644
--- a/gdb/testsuite/gdb.arch/amd64-eval.exp
+++ b/gdb/testsuite/gdb.arch/amd64-eval.exp
@@ -23,11 +23,11 @@ standard_testfile .cc
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
{ debug c++ additional_flags=-std=c++11 }] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp b/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
index e1ca703881dd..9e358c016427 100644
--- a/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
+++ b/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
@@ -26,7 +26,7 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} \
"${srcfile}" {debug}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/amd64-gs_base.exp b/gdb/testsuite/gdb.arch/amd64-gs_base.exp
index db64c52d89fd..c879cd9d2bf6 100644
--- a/gdb/testsuite/gdb.arch/amd64-gs_base.exp
+++ b/gdb/testsuite/gdb.arch/amd64-gs_base.exp
@@ -19,11 +19,11 @@ require is_amd64_regs_target
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug nowarnings]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print /x \$fs_base" "= $hex" "print fs_base"
diff --git a/gdb/testsuite/gdb.arch/amd64-i386-address.exp b/gdb/testsuite/gdb.arch/amd64-i386-address.exp
index 710e9c0cdb46..c9e759272355 100644
--- a/gdb/testsuite/gdb.arch/amd64-i386-address.exp
+++ b/gdb/testsuite/gdb.arch/amd64-i386-address.exp
@@ -22,7 +22,7 @@ require {is_any_target "x86_64-*-*" "i?86-*-*"} is_lp64_target
require {!istarget "*-*-openbsd*"}
if {[prepare_for_testing "failed to prepare" amd64-i386-address amd64-i386-address.S [list debug "additional_flags=-m32 -nostdlib"]]} {
- return -1
+ return
}
gdb_run_cmd
diff --git a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
index 91c198e43a31..4c7664676d63 100644
--- a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
+++ b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
@@ -26,7 +26,7 @@ set options [list debug \
additional_flags=-static \
ldflags=-nostartfiles]
if { [build_executable "failed to prepare" ${testfile} ${srcfile} $options] } {
- return -1
+ return
}
# Start the test file, and check the x87 control registers (and
diff --git a/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp b/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
index 713bef8ba473..a48896d60a6c 100644
--- a/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
+++ b/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
@@ -32,11 +32,11 @@ standard_testfile .S
require is_x86_64_m64_target
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {nopie}] } {
- return -1
+ return
}
if {![runto breakpt]} {
- return -1
+ return
}
gdb_test "bt" "^#0 +breakpt *\\(\\) \[^\r\n\]*\r\n#1 +${::hex} in func5\[^\r\n\]*\r\n#2 +${::hex} in func4\[^\r\n\]*\r\n#3 +${::hex} in func3\[^\r\n\]*\r\nBacktrace stopped: Cannot access memory at address ${::hex}" \
@@ -48,7 +48,7 @@ gdb_test "bt" "^#0 +breakpt *\\(\\) \[^\r\n\]*\r\n#1 +${::hex} in func5\[^\r\n\]
clean_restart ${::testfile}
if {![runto breakpt]} {
- return -1
+ return
}
gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
@@ -62,7 +62,7 @@ gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
clean_restart ${::testfile}
if {![runto breakpt]} {
- return -1
+ return
}
gdb_test "interpreter-exec mi \"-stack-list-frames\"" \
diff --git a/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp b/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
index 9a4f2e2663e2..d3ad91ed64fd 100644
--- a/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
+++ b/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
@@ -33,11 +33,11 @@ standard_testfile .c
require is_x86_64_m64_target
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto breakpt]} {
- return -1
+ return
}
# Use 'bt no-filters' here as the python filters will raise their own
@@ -52,7 +52,7 @@ gdb_test "bt no-filters" "^#0 +$hex in func2 \\(\\)\r\nBacktrace stopped: Cannot
clean_restart ${::testfile}
if {![runto breakpt]} {
- return -1
+ return
}
gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
@@ -66,7 +66,7 @@ gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
clean_restart ${::testfile}
if {![runto breakpt]} {
- return -1
+ return
}
gdb_test "interpreter-exec mi \"-stack-list-frames\"" \
diff --git a/gdb/testsuite/gdb.arch/amd64-lam.exp b/gdb/testsuite/gdb.arch/amd64-lam.exp
index 746ab313871b..3abdb3116d88 100644
--- a/gdb/testsuite/gdb.arch/amd64-lam.exp
+++ b/gdb/testsuite/gdb.arch/amd64-lam.exp
@@ -21,11 +21,11 @@ standard_testfile amd64-lam.c
# Test LAM 57.
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Breakpoint here"]
diff --git a/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp b/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
index 209aa240e623..a2651898b0c6 100644
--- a/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
+++ b/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
@@ -25,11 +25,11 @@ if {[info exists COMPILE]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print v" { = {i = 0, xxx = {<optimized out> <repeats 256 times>}}}
diff --git a/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp b/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
index bae24da9cf76..f402350acdee 100644
--- a/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
+++ b/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
@@ -29,11 +29,11 @@ if {[info exists COMPILE]} {
}
if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "func"
diff --git a/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp b/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
index a50978d439eb..44ef137d8758 100644
--- a/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
+++ b/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
@@ -29,7 +29,7 @@ standard_testfile amd64-pseudo-unwind.c amd64-pseudo-unwind-asm.S
if { [prepare_for_testing "failed to prepare" ${testfile} \
"${srcfile} ${srcfile2}" {debug}] } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp b/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
index 4f2c6c26dab4..1d6d0cf786c5 100644
--- a/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
+++ b/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
@@ -18,7 +18,7 @@ standard_testfile ".S"
require is_x86_64_m64_target
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Helper procedure to go to probe NAME
@@ -38,7 +38,7 @@ proc test_probe_value { value } {
}
if { ![runto_main] } {
- return -1
+ return
}
# Name and expected value for each probe.
diff --git a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
index 4b4d0543f64d..9cd7dec166c1 100644
--- a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
+++ b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
@@ -20,7 +20,7 @@ standard_testfile ".S"
require is_x86_64_m64_target
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Helper procedure to go to probe NAME
@@ -46,7 +46,7 @@ proc test_probe_value_without_reg { value } {
}
if { ![runto_main] } {
- return -1
+ return
}
foreach probe_name [list "foo" "bar" "foo_prefix" "bar_prefix"] \
diff --git a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
index 9c819e490acd..3fbdae9197de 100644
--- a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
+++ b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
@@ -29,7 +29,7 @@ proc test_probe { probe_name } {
standard_testfile amd64-stap-triplet.S
if { [prepare_for_testing "failed to prepare" $testfile-triplet $srcfile] } {
- return -1
+ return
}
test_probe "triplet"
@@ -38,7 +38,7 @@ standard_testfile amd64-stap-three-arg-disp.S
if { [prepare_for_testing "failed to prepare" $testfile-three-arg-displ \
$srcfile] } {
- return -1
+ return
}
test_probe "three_arg"
diff --git a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
index 2f55fbdf82c8..e7089c20f489 100644
--- a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
+++ b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
@@ -18,7 +18,7 @@ require is_x86_64_m64_target
standard_testfile amd64-stap-wrong-subexp.S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
proc goto_probe { probe_name } {
diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp b/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
index 5d6ae1776c66..c2cffe0793b2 100644
--- a/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} "${srcfile} ${srcfile2}" $opts] } {
- return -1
+ return
}
if {![runto g]} {
- return -1
+ return
}
gdb_test "bt" "\r\n#0 +g \\(x=x@entry=2\\) at \[^\r\n\]*\r\n#1 +${::hex} in f \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +${::hex} in main .*"
diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp b/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
index 8a58dda00b1d..767602805b97 100644
--- a/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
lappend opts nopie
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto noret]} {
- return -1
+ return
}
gdb_test "bt" "#0 +noret \\(x=1\\) at \[^\r\n\]*\r\n#1 +${::hex} in mayret \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +${::hex} in tailcall \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#3 +${::hex} in main \\(\\) at .*"
diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
index 00ed2323a620..7ae151c690f3 100644
--- a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
@@ -30,11 +30,11 @@ if {[is_remote host]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "g"
diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp b/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
index 63a3e00411a9..f1c6396d5108 100644
--- a/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
@@ -18,11 +18,11 @@ standard_testfile .S
require is_x86_64_m64_target
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } {
- return -1
+ return
}
if {![runto b]} {
- return -1
+ return
}
gdb_test "bt" "#0 +b \\(\\) at \[^\r\n\]*\r\n#1 +${::hex} in a \\(q=<optimized out>\\) at \[^\r\n\]*\r\n#2 +${::hex} in main \\(\[^\r\n\]*\\) at .*"
diff --git a/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp b/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
index e26d6efb201c..459330563f87 100644
--- a/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
+++ b/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
@@ -31,14 +31,14 @@ require target_can_use_run_cmd is_x86_64_m64_target
if {[target_info gdb_protocol] == "remote"
|| [target_info gdb_protocol] == "extended-remote"} {
unsupported "using [target_info gdb_protocol] protocol"
- return -1
+ return
}
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{ debug }] } {
- return -1
+ return
}
# Insert the watchpoint, it should default to a h/w watchpoint.
diff --git a/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp b/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
index 46f81f28c2d4..a53e14bf33d0 100644
--- a/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
+++ b/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
@@ -28,7 +28,7 @@ if {![istarget "i386-*-*"]} {
# The kernel VDSO is used for the syscalls returns only on i386 (not x86_64).
if { [build_executable "failed to prepare" $testfile $srcfile $options] } {
- return -1
+ return
}
# Don't tell GDB which executable we're debugging.
diff --git a/gdb/testsuite/gdb.arch/i386-avx512.exp b/gdb/testsuite/gdb.arch/i386-avx512.exp
index f1a0d59ccd89..c79563366dc8 100644
--- a/gdb/testsuite/gdb.arch/i386-avx512.exp
+++ b/gdb/testsuite/gdb.arch/i386-avx512.exp
@@ -28,11 +28,11 @@ set comp_flags "-mavx512f -I${srcdir}/../nat"
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug nowarnings additional_flags=${comp_flags}]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set supports_avx512 0
diff --git a/gdb/testsuite/gdb.arch/i386-biarch-core.exp b/gdb/testsuite/gdb.arch/i386-biarch-core.exp
index 95b1a3e29cb0..a9102559e5b5 100644
--- a/gdb/testsuite/gdb.arch/i386-biarch-core.exp
+++ b/gdb/testsuite/gdb.arch/i386-biarch-core.exp
@@ -40,13 +40,13 @@ set address 0x400078
set corefile [decompress_bz2 $corebz2file]
if { $corefile == "" } {
untested "failed bzip2"
- return -1
+ return
}
file stat ${corefile} corestat
if {$corestat(size) != 102400} {
untested "bzip2 produces invalid result"
- return -1
+ return
}
set corefile [gdb_remote_download host $corefile]
diff --git a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
index d2fcf0a311f9..ef4d0370de89 100644
--- a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
+++ b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
@@ -29,7 +29,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list $additional_flags]] != "" } {
untested "failed to compile"
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
index 11a9f0331928..a340182c1d88 100644
--- a/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
+++ b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
@@ -22,11 +22,11 @@ set testfile "i386-cfi-notcurrent"
set srcfile ${testfile}.S
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {nodebug}]} {
- return -1
+ return
}
if {![runto f]} {
- return -1
+ return
}
gdb_test "backtrace" "#0 \[^\r\n\]* f \[^\r\n\]*\r\n#1 \[^\r\n\]* g \[^\r\n\]*\r\n#2 \[^\r\n\]* main \[^\r\n\]*"
diff --git a/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp b/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
index 8c7061ecd78e..5ea8d8f543af 100644
--- a/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
+++ b/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
@@ -25,7 +25,7 @@ set opts {debug nopie}
standard_testfile .S -alarm.c
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts] } {
- return -1
+ return
}
gdb_test "set displaced-stepping on" ""
diff --git a/gdb/testsuite/gdb.arch/i386-disp-step.exp b/gdb/testsuite/gdb.arch/i386-disp-step.exp
index b593651ad45c..ba8931e8ff19 100644
--- a/gdb/testsuite/gdb.arch/i386-disp-step.exp
+++ b/gdb/testsuite/gdb.arch/i386-disp-step.exp
@@ -27,7 +27,7 @@ lappend opts debug
lappend opts nopie
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
- return -1
+ return
}
gdb_test "set displaced-stepping on" ""
diff --git a/gdb/testsuite/gdb.arch/i386-dr3-watch.exp b/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
index 058eefdb0051..d0c9209f62c3 100644
--- a/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
+++ b/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
@@ -24,11 +24,11 @@ require {is_any_target "i?86-*-*" "x86_64-*-*"}
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug $additional_flags}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set breakpoint always-inserted on"
diff --git a/gdb/testsuite/gdb.arch/i386-float.exp b/gdb/testsuite/gdb.arch/i386-float.exp
index 23db5f843c2c..e1e8af45f056 100644
--- a/gdb/testsuite/gdb.arch/i386-float.exp
+++ b/gdb/testsuite/gdb.arch/i386-float.exp
@@ -26,7 +26,7 @@ standard_testfile .S
set additional_flags [gdb_target_symbol_prefix_flags_asm]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile [list debug nopie $additional_flags]] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
index c7e019829e75..458a902fb974 100644
--- a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
+++ b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
@@ -35,7 +35,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if { [gdb_compile "${srcdir}/${subdir}/${srcfilec} ${srcdir}/${subdir}/${srcfileasm}" "${binfile}" executable [list debug $additional_flags]] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Get things started.
@@ -67,7 +67,7 @@ gdb_test_multiple "backtrace" "" {
}
}
if { $gate_n == "" } {
- return -1
+ return
}
# Check we see the inserted `DW_CFA_GNU_negative_offset_extended' CFI.
diff --git a/gdb/testsuite/gdb.arch/i386-permbkpt.exp b/gdb/testsuite/gdb.arch/i386-permbkpt.exp
index f365597e052e..58ab263688a1 100644
--- a/gdb/testsuite/gdb.arch/i386-permbkpt.exp
+++ b/gdb/testsuite/gdb.arch/i386-permbkpt.exp
@@ -27,7 +27,7 @@ set additional_flags [gdb_target_symbol_prefix_flags_asm]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.arch/i386-pkru.exp b/gdb/testsuite/gdb.arch/i386-pkru.exp
index 94cf2101e18b..b9b0b99b0de3 100644
--- a/gdb/testsuite/gdb.arch/i386-pkru.exp
+++ b/gdb/testsuite/gdb.arch/i386-pkru.exp
@@ -31,11 +31,11 @@ set comp_flags "-I${srcdir}/../nat/"
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug additional_flags=${comp_flags}]] } {
untested "failed to compile x86 PKEYS test."
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set supports_pkru 0
diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp b/gdb/testsuite/gdb.arch/i386-prologue.exp
index 03a32ba9c3f9..c02858efe4c3 100644
--- a/gdb/testsuite/gdb.arch/i386-prologue.exp
+++ b/gdb/testsuite/gdb.arch/i386-prologue.exp
@@ -34,7 +34,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list $additional_flags]] != "" } {
untested "failed to compile"
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.arch/i386-signal.exp b/gdb/testsuite/gdb.arch/i386-signal.exp
index 9e7976b5a275..35096076d6f4 100644
--- a/gdb/testsuite/gdb.arch/i386-signal.exp
+++ b/gdb/testsuite/gdb.arch/i386-signal.exp
@@ -27,7 +27,7 @@ lappend opts additional_flags=-DIS_AMD64_REGS_TARGET=[is_amd64_regs_target]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable $opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.arch/i386-size-overlap.exp b/gdb/testsuite/gdb.arch/i386-size-overlap.exp
index ccc1d56e6dbc..7991dc9cfc8a 100644
--- a/gdb/testsuite/gdb.arch/i386-size-overlap.exp
+++ b/gdb/testsuite/gdb.arch/i386-size-overlap.exp
@@ -27,7 +27,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable [list debug $additional_flags]] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.arch/i386-size.exp b/gdb/testsuite/gdb.arch/i386-size.exp
index 0b2b2a3c3bda..723a96a3673f 100644
--- a/gdb/testsuite/gdb.arch/i386-size.exp
+++ b/gdb/testsuite/gdb.arch/i386-size.exp
@@ -32,7 +32,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable [list debug $additional_flags]] != "" } {
untested "i386-size"
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
index 60b83b525fd5..8732279fc28a 100644
--- a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
+++ b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
@@ -29,13 +29,13 @@ if {[info exists COMPILE]} {
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart $executable
if {![runto_main]} {
- return -1
+ return
}
set args ""
diff --git a/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp b/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
index 21beeb400054..63b3ef17adb2 100644
--- a/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
+++ b/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
@@ -19,13 +19,13 @@ standard_testfile ".S"
require is_x86_like_target
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
gdb_test_no_output "set language ada"
if { ![runto "-pstap bar"] } {
- return -1
+ return
}
gdb_test "print \$_probe_arg0" " = 40" \
diff --git a/gdb/testsuite/gdb.arch/i386-unwind.exp b/gdb/testsuite/gdb.arch/i386-unwind.exp
index 8f522308fe46..7d816aa2ec5c 100644
--- a/gdb/testsuite/gdb.arch/i386-unwind.exp
+++ b/gdb/testsuite/gdb.arch/i386-unwind.exp
@@ -30,7 +30,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
index e206c07cefef..7c746c12e294 100644
--- a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
+++ b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
@@ -20,7 +20,7 @@ set srcfile ${testfile}.S
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
@@ -28,7 +28,7 @@ gdb_load $binfile
# We need to start the inferior to place the breakpoints in the memory at all.
if {![runto_main]} {
- return -1
+ return
}
# The default "auto" mode removes all the breakpoints when we stop (and not
@@ -55,7 +55,7 @@ gdb_test_multiple "b bundle" $test {
}
if {![info exists bpt2address]} {
- return -1
+ return
}
gdb_test "b *($bpt2address + 1)" "Breakpoint \[0-9\] at .*" "slot 1 breakpoint placed"
diff --git a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
index cebea7c3b620..08d4849bae20 100644
--- a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
+++ b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
@@ -23,11 +23,11 @@ require allow_avx512bf16_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
# Test xmm
diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
index 4b2e3e547e88..6adff2155313 100644
--- a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
+++ b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
@@ -21,11 +21,11 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug additional_flags="-mavx512fp16"}] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
gdb_test "p square(2.2)" "= 4\\.8359"
diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
index 2d3ab6814c35..e99ec13f7d0e 100644
--- a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
+++ b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
@@ -20,11 +20,11 @@ require allow_avx512fp16_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
# Test xmm.
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 04/36] GDB: testsuite: intel: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (2 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-28 16:39 ` Schimpe, Christina
2026-04-27 6:34 ` [PATCH 05/36] GDB: testsuite: powerpc: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (31 subsequent siblings)
35 siblings, 1 reply; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes the "return -1" statements that weren't
caught by the sed command.
In i386-bp_permanent.exp this was caused by misaligned lines, which are
now fixed.
In the case of core-file-pid0.exp it's because the file didn't match the
glob pattern of the sed command.
In amd64-shadow-stack-cmds.exp there's a return statement in a procedure
whose callers don't use the return value, and the others have extra
indentation due to being inside a save_vars block.
---
gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp | 10 +++++-----
gdb/testsuite/gdb.arch/core-file-pid0.exp | 6 +++---
gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 6 +++---
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp b/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
index e4daecb590dd..266c658eae86 100644
--- a/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
+++ b/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
@@ -29,7 +29,7 @@ proc restart_and_run_infcall_call2 {} {
global binfile
clean_restart ${::testfile}
if { ![runto_main] } {
- return -1
+ return
}
set inside_infcall_str "The program being debugged stopped while in a function called from GDB"
gdb_breakpoint [ gdb_get_line_number "break call2" ]
@@ -44,12 +44,12 @@ save_vars { ::env(GLIBC_TUNABLES) } {
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug additional_flags="-fcf-protection=return"}] } {
- return -1
+ return
}
clean_restart ${::testfile}
if { ![runto_main] } {
- return -1
+ return
}
with_test_prefix "test inferior call and continue" {
@@ -85,7 +85,7 @@ save_vars { ::env(GLIBC_TUNABLES) } {
clean_restart ${::testfile}
if { ![runto_main] } {
- return -1
+ return
}
set call1_line [ gdb_get_line_number "break call1" ]
@@ -122,7 +122,7 @@ save_vars { ::env(GLIBC_TUNABLES) } {
clean_restart ${::testfile}
if { ![runto_main] } {
- return -1
+ return
}
with_test_prefix "test return from past frame" {
diff --git a/gdb/testsuite/gdb.arch/core-file-pid0.exp b/gdb/testsuite/gdb.arch/core-file-pid0.exp
index 8f4f88bcdb6a..3f389a705480 100644
--- a/gdb/testsuite/gdb.arch/core-file-pid0.exp
+++ b/gdb/testsuite/gdb.arch/core-file-pid0.exp
@@ -28,7 +28,7 @@ if {[istarget "x86_64-*-linux*"]} {
set cf_size 8757248
} else {
unsupported "no pre-generated core file for this target"
- return -1
+ return
}
# Decompress the core file.
@@ -36,14 +36,14 @@ set corebz2file ${srcdir}/${subdir}/${cf_name}
set corefile [decompress_bz2 $corebz2file]
if { $corefile eq "" } {
untested "failed to bunzip2 the core file"
- return -1
+ return
}
# Check the size of the decompressed core file. Just for sanity.
file stat ${corefile} corestat
if { $corestat(size) != ${cf_size} } {
untested "uncompressed core file is the wrong size"
- return -1
+ return
}
# Copy over the corefile if we are remote testing.
diff --git a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
index ef4d0370de89..9805f5626348 100644
--- a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
+++ b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
@@ -40,7 +40,7 @@ clean_restart $::testfile
#
if {![runto_main]} {
- return -1
+ return
}
set function "standard"
@@ -53,8 +53,8 @@ set retcode [gdb_test_multiple "disassemble $function" "disassemble function '$f
}]
if {$retcode != 0} {
- fail "disassemble failed, skipping entire test."
- return -1
+ fail "disassemble failed, skipping entire test."
+ return
}
gdb_breakpoint "*$address_bp"
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 05/36] GDB: testsuite: powerpc: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (3 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 04/36] GDB: testsuite: intel: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 06/36] GDB: testsuite: powerpc: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (30 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' \
aix*.exp* altivec*.exp* e500*.exp* powerpc*.exp* ppc*.exp* vsx*.exp*
inside gdb/testsuite/gdb.arch.
---
gdb/testsuite/gdb.arch/aix-sighandle.exp | 2 +-
gdb/testsuite/gdb.arch/altivec-abi.exp | 2 +-
gdb/testsuite/gdb.arch/altivec-regs.exp | 2 +-
gdb/testsuite/gdb.arch/e500-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-addpcis.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-altivec.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-altivec2.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-altivec3.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-d128-regs.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp | 10 +++++-----
gdb/testsuite/gdb.arch/powerpc-lnia.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-power10.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-power7.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-power8.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-power9.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-stackless.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-tar.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-trap.exp | 4 ++--
gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp | 10 +++++-----
gdb/testsuite/gdb.arch/powerpc-vsx.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-vsx2.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc-vsx3.exp | 2 +-
gdb/testsuite/gdb.arch/powerpc64-prologue.exp | 4 ++--
gdb/testsuite/gdb.arch/ppc-dfp.exp | 6 +++---
gdb/testsuite/gdb.arch/ppc-fp.exp | 4 ++--
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 2 +-
gdb/testsuite/gdb.arch/ppc64-break-on-_exit.exp | 2 +-
gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp | 2 +-
gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp | 4 ++--
gdb/testsuite/gdb.arch/vsx-regs.exp | 2 +-
gdb/testsuite/gdb.arch/vsx-vsr-float28.exp | 2 +-
35 files changed, 49 insertions(+), 49 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/aix-sighandle.exp b/gdb/testsuite/gdb.arch/aix-sighandle.exp
index df988b26a44d..4e5bb50c8560 100644
--- a/gdb/testsuite/gdb.arch/aix-sighandle.exp
+++ b/gdb/testsuite/gdb.arch/aix-sighandle.exp
@@ -16,7 +16,7 @@
require {istarget "powerpc*-*-aix*"}
if { [prepare_for_testing "failed to prepare" aix-sighandle aix-sighandle.c] } {
- return -1
+ return
}
set srcfile aix-sighandle.c
diff --git a/gdb/testsuite/gdb.arch/altivec-abi.exp b/gdb/testsuite/gdb.arch/altivec-abi.exp
index 40b1c3519e28..f7bea3de4ced 100644
--- a/gdb/testsuite/gdb.arch/altivec-abi.exp
+++ b/gdb/testsuite/gdb.arch/altivec-abi.exp
@@ -170,5 +170,5 @@ if {[test_compiler_info gcc*]} {
altivec_abi_tests "additional_flags=-qaltivec" "auto"
} else {
warning "unknown compiler"
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.arch/altivec-regs.exp b/gdb/testsuite/gdb.arch/altivec-regs.exp
index 70a15a9190a8..55d245d92981 100644
--- a/gdb/testsuite/gdb.arch/altivec-regs.exp
+++ b/gdb/testsuite/gdb.arch/altivec-regs.exp
@@ -32,7 +32,7 @@ if {[test_compiler_info gcc*]} {
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
diff --git a/gdb/testsuite/gdb.arch/e500-prologue.exp b/gdb/testsuite/gdb.arch/e500-prologue.exp
index b3d0056fd97c..f6884285e3a3 100644
--- a/gdb/testsuite/gdb.arch/e500-prologue.exp
+++ b/gdb/testsuite/gdb.arch/e500-prologue.exp
@@ -24,7 +24,7 @@ set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-addpcis.exp b/gdb/testsuite/gdb.arch/powerpc-addpcis.exp
index e699e730021c..a8895446cde3 100644
--- a/gdb/testsuite/gdb.arch/powerpc-addpcis.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-addpcis.exp
@@ -32,7 +32,7 @@ standard_testfile .s
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp b/gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp
index f465f36fe2da..0da2383b1082 100644
--- a/gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp
@@ -25,7 +25,7 @@ set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-altivec.exp b/gdb/testsuite/gdb.arch/powerpc-altivec.exp
index edbb822ff838..cb89ba7e518f 100644
--- a/gdb/testsuite/gdb.arch/powerpc-altivec.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-altivec.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-altivec2.exp b/gdb/testsuite/gdb.arch/powerpc-altivec2.exp
index 1b34cb6a8a33..621f44dc4e42 100644
--- a/gdb/testsuite/gdb.arch/powerpc-altivec2.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-altivec2.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-altivec3.exp b/gdb/testsuite/gdb.arch/powerpc-altivec3.exp
index 602e65217494..6607e24d7a8f 100644
--- a/gdb/testsuite/gdb.arch/powerpc-altivec3.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-altivec3.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp b/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp
index 05ae31877e1b..10c77ef29489 100644
--- a/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp
@@ -36,7 +36,7 @@ if {![runto_main]} {
}
if {[gdb_test "show arch" ".*powerpc:common.*" "checking for PPC arch"]} {
- return -1
+ return
}
gdb_test "next" ""
diff --git a/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp b/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp
index e0afcf419272..b2ead4cef5ee 100644
--- a/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-fpscr-gcore.exp
@@ -31,13 +31,13 @@ gdb_produce_source $gen_src {
}
if {[build_executable "compile" $binfile $gen_src] == -1} {
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
# Check if our target has FPSCR
@@ -59,7 +59,7 @@ proc check_fpscr_access {} {
}
if { ![check_fpscr_access] } {
- return -1
+ return
}
set fpscr_size_process [get_integer_valueof "sizeof(\$fpscr)" -1 "process size"]
@@ -68,7 +68,7 @@ set core_filename [standard_output_file "$testfile.core"]
set core_generated [gdb_gcore_cmd "$core_filename" "generate core file"]
if { !$core_generated } {
- return -1
+ return
}
clean_restart
@@ -76,7 +76,7 @@ clean_restart
set core_loaded [gdb_core_cmd "$core_filename" "load core file"]
if { $core_loaded != 1 } {
- return -1
+ return
}
set fpscr_size_corefile [get_integer_valueof "sizeof(\$fpscr)" -2 "corefile size" ]
diff --git a/gdb/testsuite/gdb.arch/powerpc-lnia.exp b/gdb/testsuite/gdb.arch/powerpc-lnia.exp
index 799b6fc06b79..700ba0dea67d 100644
--- a/gdb/testsuite/gdb.arch/powerpc-lnia.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-lnia.exp
@@ -31,7 +31,7 @@ standard_testfile .s
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.exp b/gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.exp
index 4f90080cf564..865ceb18ccd1 100644
--- a/gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-plxv-nonrel.exp
@@ -24,7 +24,7 @@ standard_testfile .s
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{debug quiet}] } {
- return -1
+ return
}
gdb_test "set radix 0b10000"
diff --git a/gdb/testsuite/gdb.arch/powerpc-power10.exp b/gdb/testsuite/gdb.arch/powerpc-power10.exp
index 4fa55b01da1b..1389a5568e27 100644
--- a/gdb/testsuite/gdb.arch/powerpc-power10.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-power10.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-power7.exp b/gdb/testsuite/gdb.arch/powerpc-power7.exp
index 17ef875f4aef..810f536f8b0f 100644
--- a/gdb/testsuite/gdb.arch/powerpc-power7.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-power7.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-power8.exp b/gdb/testsuite/gdb.arch/powerpc-power8.exp
index baefb3cb6554..14a49b71f987 100644
--- a/gdb/testsuite/gdb.arch/powerpc-power8.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-power8.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-power9.exp b/gdb/testsuite/gdb.arch/powerpc-power9.exp
index 7e446330e68a..2d4884ce815f 100644
--- a/gdb/testsuite/gdb.arch/powerpc-power9.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-power9.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp b/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp
index 1a6c4ca367e3..1f41f3aaaa3f 100644
--- a/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp
@@ -22,7 +22,7 @@ if {[gdb_compile \
[list ${srcdir}/${subdir}/$srcfile ${srcdir}/${subdir}/$srcfile2] \
"${binfile}" executable {}] != ""} {
untested "failed to build $binfile"
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue.exp b/gdb/testsuite/gdb.arch/powerpc-prologue.exp
index c52507a716c9..e0c9f30e4ee4 100644
--- a/gdb/testsuite/gdb.arch/powerpc-prologue.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-prologue.exp
@@ -27,7 +27,7 @@ set binfile [standard_output_file ${testfile}]
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
untested "PowerPC prologue tests"
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.arch/powerpc-stackless.exp b/gdb/testsuite/gdb.arch/powerpc-stackless.exp
index 78084682d51c..eff840886079 100644
--- a/gdb/testsuite/gdb.arch/powerpc-stackless.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-stackless.exp
@@ -20,7 +20,7 @@ require {istarget "powerpc*-*-*"}
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Run until SIGSEGV.
diff --git a/gdb/testsuite/gdb.arch/powerpc-tar.exp b/gdb/testsuite/gdb.arch/powerpc-tar.exp
index dadafdfcebc9..0bda11caf9ca 100644
--- a/gdb/testsuite/gdb.arch/powerpc-tar.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-tar.exp
@@ -27,7 +27,7 @@ require {istarget "powerpc*-*-linux*"}
standard_testfile .c
if {[build_executable "compile" $binfile $srcfile {debug}] == -1} {
- return -1
+ return
}
proc check_register_access { regname } {
diff --git a/gdb/testsuite/gdb.arch/powerpc-trap.exp b/gdb/testsuite/gdb.arch/powerpc-trap.exp
index 5d94efa9db41..099ae8da0a9d 100644
--- a/gdb/testsuite/gdb.arch/powerpc-trap.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-trap.exp
@@ -34,12 +34,12 @@ if { [istarget powerpc-*] } {
}
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto_main]} {
untested "could not run to main"
- return -1
+ return
}
set keep_going 1
diff --git a/gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp b/gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp
index b0c197f6a95f..3f51b0f7fff5 100644
--- a/gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-vsx-gcore.exp
@@ -31,13 +31,13 @@ gdb_produce_source $gen_src {
}
if {[build_executable "compile" $binfile $gen_src] == -1} {
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
# Check if VSX register access through gdb is supported
@@ -59,7 +59,7 @@ proc check_vsx_access {} {
}
if { ![check_vsx_access] } {
- return -1
+ return
}
for {set i 0} {$i < 64} {incr i 1} {
@@ -70,7 +70,7 @@ set core_filename [standard_output_file "$testfile.core"]
set core_generated [gdb_gcore_cmd "$core_filename" "generate core file"]
if { !$core_generated } {
- return -1
+ return
}
clean_restart
@@ -78,7 +78,7 @@ clean_restart
set core_loaded [gdb_core_cmd "$core_filename" "load core file"]
if { $core_loaded != 1 } {
- return -1
+ return
}
for {set i 0} {$i < 64} {incr i 1} {
diff --git a/gdb/testsuite/gdb.arch/powerpc-vsx.exp b/gdb/testsuite/gdb.arch/powerpc-vsx.exp
index aeefe3df0746..c53502ce332c 100644
--- a/gdb/testsuite/gdb.arch/powerpc-vsx.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-vsx.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-vsx2.exp b/gdb/testsuite/gdb.arch/powerpc-vsx2.exp
index eb27085d7339..23ff53d855a3 100644
--- a/gdb/testsuite/gdb.arch/powerpc-vsx2.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-vsx2.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc-vsx3.exp b/gdb/testsuite/gdb.arch/powerpc-vsx3.exp
index 9e9661b39df1..89e9775962bd 100644
--- a/gdb/testsuite/gdb.arch/powerpc-vsx3.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-vsx3.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*-*-*"}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } {
untested "PowerPC instructions disassembly"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/powerpc64-prologue.exp b/gdb/testsuite/gdb.arch/powerpc64-prologue.exp
index 1add4a4d2929..c62be8d03940 100644
--- a/gdb/testsuite/gdb.arch/powerpc64-prologue.exp
+++ b/gdb/testsuite/gdb.arch/powerpc64-prologue.exp
@@ -25,12 +25,12 @@ standard_testfile .c
# fragments.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
untested "PowerPC prologue tests"
- return -1
+ return
}
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile" \
{}] } {
- return -1
+ return
}
# Run to `main' where we begin our tests.
diff --git a/gdb/testsuite/gdb.arch/ppc-dfp.exp b/gdb/testsuite/gdb.arch/ppc-dfp.exp
index 08c732774df1..becfc8206ca9 100644
--- a/gdb/testsuite/gdb.arch/ppc-dfp.exp
+++ b/gdb/testsuite/gdb.arch/ppc-dfp.exp
@@ -23,12 +23,12 @@ standard_testfile
if {![test_compiler_info gcc*]} {
# We use GCC's extended asm syntax
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
unsupported "this machine doesn't support Decimal Floating Point."
- return -1
+ return
}
clean_restart $::testfile
@@ -42,7 +42,7 @@ gdb_run_cmd
gdb_expect {
-re "$inferior_exited_re with code 01.\[\r\n\]+$gdb_prompt $" {
unsupported "this machine doesn't support Decimal Floating Point."
- return -1
+ return
}
-re ".*$gdb_prompt $" {}
diff --git a/gdb/testsuite/gdb.arch/ppc-fp.exp b/gdb/testsuite/gdb.arch/ppc-fp.exp
index e935b5ab1882..f17e37102ad5 100644
--- a/gdb/testsuite/gdb.arch/ppc-fp.exp
+++ b/gdb/testsuite/gdb.arch/ppc-fp.exp
@@ -23,12 +23,12 @@ standard_testfile
if {![test_compiler_info gcc*]} {
# We use GCC's extended asm syntax
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
verbose "Skipping FPSCR tests."
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
index c020df807f44..56854c75394d 100644
--- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
@@ -24,7 +24,7 @@ require {istarget "powerpc*"} is_lp64_target
standard_testfile .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug quiet}] } {
- return -1
+ return
}
# The test proper. DISPLACED is true if we should try with displaced
diff --git a/gdb/testsuite/gdb.arch/ppc64-break-on-_exit.exp b/gdb/testsuite/gdb.arch/ppc64-break-on-_exit.exp
index fd8eae300c34..f080cb89017a 100644
--- a/gdb/testsuite/gdb.arch/ppc64-break-on-_exit.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-break-on-_exit.exp
@@ -39,7 +39,7 @@ if {[info exists COMPILE]} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $srcfile2] $flags] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp
index 482dbb4d04fd..db8c7582d0c3 100644
--- a/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp
@@ -27,7 +27,7 @@ standard_testfile .c .S
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \
{debug quiet}] } {
- return -1
+ return
}
# The test proper. DISPLACED is true if we should try with displaced
diff --git a/gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp b/gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp
index 9a804591514d..c418435921b6 100644
--- a/gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp
@@ -29,13 +29,13 @@ set kodebugbz2file ${srcdir}/${subdir}/cordic.ko.debug.bz2
set kofile [decompress_bz2 $kobz2file]
if { $kofile == "" } {
untested "failed bzip2 for [file tail $kobz2file]"
- return -1
+ return
}
set kodebugfile [decompress_bz2 $kodebugbz2file]
if { $kodebugfile == "" } {
untested "failed bzip2 for [file tail $kodebugbz2file]"
- return -1
+ return
}
# This test won't work properly if system debuginfo is installed.
diff --git a/gdb/testsuite/gdb.arch/vsx-regs.exp b/gdb/testsuite/gdb.arch/vsx-regs.exp
index cac7be5ee09e..2c31935135da 100644
--- a/gdb/testsuite/gdb.arch/vsx-regs.exp
+++ b/gdb/testsuite/gdb.arch/vsx-regs.exp
@@ -30,7 +30,7 @@ if {[test_compiler_info gcc*]} {
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
diff --git a/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp b/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
index 9c44cdd61637..ad6050bd4c8c 100644
--- a/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
+++ b/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
@@ -29,7 +29,7 @@ if {[test_compiler_info gcc*]} {
set compile_flags "$compile_flags additional_flags=-qaltivec"
} else {
warning "unknown compiler"
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 06/36] GDB: testsuite: powerpc: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (4 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 05/36] GDB: testsuite: powerpc: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 07/36] GDB: testsuite: riscv: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (29 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- misaligned line, which is then fixed by this patch;
- procedure whose callers don't use the return value;
There were also a few top-level "return 0" fixed opportunistically.
---
gdb/testsuite/gdb.arch/altivec-abi.exp | 4 ++--
gdb/testsuite/gdb.arch/altivec-regs.exp | 6 +++---
gdb/testsuite/gdb.arch/e500-abi.exp | 6 +++---
gdb/testsuite/gdb.arch/e500-regs.exp | 8 ++++----
gdb/testsuite/gdb.arch/powerpc-d128-regs.exp | 4 ++--
gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp | 4 ++--
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 2 +-
gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp | 4 ++--
gdb/testsuite/gdb.arch/vsx-regs.exp | 8 ++++----
gdb/testsuite/gdb.arch/vsx-vsr-float28.exp | 6 +++---
10 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/altivec-abi.exp b/gdb/testsuite/gdb.arch/altivec-abi.exp
index f7bea3de4ced..1c2da2791083 100644
--- a/gdb/testsuite/gdb.arch/altivec-abi.exp
+++ b/gdb/testsuite/gdb.arch/altivec-abi.exp
@@ -33,7 +33,7 @@ proc altivec_abi_tests { extra_flags force_abi } {
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
untested "failed to compile"
- return -1
+ return
}
if { "$force_abi" == "auto" } {
@@ -52,7 +52,7 @@ proc altivec_abi_tests { extra_flags force_abi } {
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return -1
+ return
}
gdb_test "set print frame-arguments all"
diff --git a/gdb/testsuite/gdb.arch/altivec-regs.exp b/gdb/testsuite/gdb.arch/altivec-regs.exp
index 55d245d92981..04dc342de6d4 100644
--- a/gdb/testsuite/gdb.arch/altivec-regs.exp
+++ b/gdb/testsuite/gdb.arch/altivec-regs.exp
@@ -36,8 +36,8 @@ if {[test_compiler_info gcc*]} {
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
gdb_start
@@ -49,7 +49,7 @@ gdb_load ${binfile}
#
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "start here"]
diff --git a/gdb/testsuite/gdb.arch/e500-abi.exp b/gdb/testsuite/gdb.arch/e500-abi.exp
index 1c074f10aa7e..e0223fd67888 100644
--- a/gdb/testsuite/gdb.arch/e500-abi.exp
+++ b/gdb/testsuite/gdb.arch/e500-abi.exp
@@ -29,8 +29,8 @@ set binfile ${objdir}/${subdir}/${testfile}
set src1 ${srcdir}/${subdir}/${testfile}.c
if { [gdb_compile ${src1} ${binfile} executable {debug nowarnings}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
gdb_start
@@ -42,7 +42,7 @@ gdb_load ${binfile}
#
if {![runto_main]} {
- return 0
+ return
}
gdb_test "b marker" "Breakpoint 2 at.*file.*e500-abi.c, line ${::decimal}." "break marker"
diff --git a/gdb/testsuite/gdb.arch/e500-regs.exp b/gdb/testsuite/gdb.arch/e500-regs.exp
index 2dc1ade4b448..03d6f42b5332 100644
--- a/gdb/testsuite/gdb.arch/e500-regs.exp
+++ b/gdb/testsuite/gdb.arch/e500-regs.exp
@@ -28,8 +28,8 @@ set binfile ${objdir}/${subdir}/${testfile}
set src1 ${srcdir}/${subdir}/${testfile}.c
if { [gdb_compile ${src1} ${binfile} executable {debug nowarnings}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
gdb_start
@@ -41,7 +41,7 @@ gdb_load ${binfile}
#
if {![runto_main]} {
- return 0
+ return
}
# set all the registers integer portions to 1
@@ -139,7 +139,7 @@ gdb_expect_list "info vector" ".*$gdb_prompt $" {
clean_restart
gdb_load $binfile
if {![runto_main]} {
- return 0
+ return
}
gdb_test "break vector_fun" \
diff --git a/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp b/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp
index 10c77ef29489..7043fac5e568 100644
--- a/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-d128-regs.exp
@@ -25,8 +25,8 @@ require {istarget "powerpc64*-*"}
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp b/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp
index 1f41f3aaaa3f..3899121f9341 100644
--- a/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp
+++ b/gdb/testsuite/gdb.arch/powerpc-prologue-frame.exp
@@ -29,8 +29,8 @@ if {[gdb_compile \
clean_restart $testfile
if {![runto bar]} {
- untested "could not run to bar"
- return -1
+ untested "could not run to bar"
+ return
}
gdb_test "bt" \
diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
index 56854c75394d..2bd631429c0a 100644
--- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
@@ -33,7 +33,7 @@ proc do_test { displaced } {
global decimal hex
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set displaced-stepping $displaced"
diff --git a/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp
index db8c7582d0c3..7f7c9a01fc9c 100644
--- a/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-isa207-atomic-inst.exp
@@ -38,7 +38,7 @@ proc do_test { displaced } {
global gdb_prompt inferior_exited_re srcfile srcfile2
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set displaced-stepping $displaced"
@@ -49,7 +49,7 @@ proc do_test { displaced } {
gdb_test_multiple "continue" "Continue until lbarx/stbcx start breakpoint" {
-re "$inferior_exited_re with code 01.\[\r\n\]+$gdb_prompt $" {
unsupported "POWER8/ISA 2.07 atomic instructions not supported."
- return -1
+ return
}
-re "Continuing.*Breakpoint $decimal.*$gdb_prompt $" {
pass "continue until test_atomic_sequences function"
diff --git a/gdb/testsuite/gdb.arch/vsx-regs.exp b/gdb/testsuite/gdb.arch/vsx-regs.exp
index 2c31935135da..87f749f93b12 100644
--- a/gdb/testsuite/gdb.arch/vsx-regs.exp
+++ b/gdb/testsuite/gdb.arch/vsx-regs.exp
@@ -34,8 +34,8 @@ if {[test_compiler_info gcc*]} {
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
gdb_start
@@ -45,7 +45,7 @@ gdb_load ${binfile}
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
set endianness [get_endianness]
@@ -181,7 +181,7 @@ for {set i 0} {$i < 32} {incr i 1} {
# Test reading the core file.
if {!$core_supported} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp b/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
index ad6050bd4c8c..436076f10038 100644
--- a/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
+++ b/gdb/testsuite/gdb.arch/vsx-vsr-float28.exp
@@ -33,8 +33,8 @@ if {[test_compiler_info gcc*]} {
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
gdb_start
@@ -44,7 +44,7 @@ gdb_load ${binfile}
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
set endianness [get_endianness]
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 07/36] GDB: testsuite: riscv: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (5 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 06/36] GDB: testsuite: powerpc: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 08/36] GDB: testsuite: riscv: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (28 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' riscv*.exp*
inside gdb/testsuite/gdb.arch.
---
gdb/testsuite/gdb.arch/riscv-bp-infcall.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-info-fcsr.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-reg-aliases.exp | 2 +-
gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp | 8 ++++----
.../gdb.arch/riscv64-unwind-prologue-with-c_li.exp | 2 +-
.../gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp | 2 +-
.../gdb.arch/riscv64-unwind-prologue-with-mv.exp | 2 +-
7 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp
index adb937e9fea4..7d5e27debda6 100644
--- a/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp
+++ b/gdb/testsuite/gdb.arch/riscv-bp-infcall.exp
@@ -21,7 +21,7 @@ require {istarget "riscv*-*-*"}
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp b/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp
index 5d252beca305..930f1b24c4e7 100644
--- a/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp
+++ b/gdb/testsuite/gdb.arch/riscv-info-fcsr.exp
@@ -21,7 +21,7 @@ require {istarget "riscv*-*-*"} allow_float_test
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp
index eb1caf879224..998f4f485d37 100644
--- a/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp
+++ b/gdb/testsuite/gdb.arch/riscv-reg-aliases.exp
@@ -18,7 +18,7 @@ require {istarget "riscv*-*-*"}
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp b/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp
index 707777cb0df1..10415fccd040 100644
--- a/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp
+++ b/gdb/testsuite/gdb.arch/riscv-tdesc-regs.exp
@@ -24,11 +24,11 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug quiet}] } {
unsupported "failed to compile"
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
# First, figure out if we are 32-bit or 64-bit.
@@ -40,7 +40,7 @@ gdb_assert { $xlen != 0 && $flen != 0 } "read xlen and flen"
# We only handle 32-bit or 64-bit x-registers.
if { $xlen != 4 && $xlen != 8 } {
unsupported "unknown x-register size"
- return -1
+ return
}
# If FLEN is 1 then the target doesn't have floating point support
@@ -49,7 +49,7 @@ if { $xlen != 4 && $xlen != 8 } {
# files.
if { $flen != 1 && $flen != $xlen } {
unsupport "unknown xlen/flen combination"
- return -1
+ return
}
if { $xlen == 4 } {
diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp
index c175f0934b3c..88289922e410 100644
--- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp
+++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-c_li.exp
@@ -23,7 +23,7 @@ standard_testfile .c -foo.s
if {[prepare_for_testing "failed to prepare" $testfile \
"$srcfile $srcfile2" nodebug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp
index dff317bd6155..4d67a760c1df 100644
--- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp
+++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp
@@ -22,7 +22,7 @@ standard_testfile riscv64-unwind-prologue-with-ld-lw.c \
riscv64-unwind-prologue-with-ld-lw-foo.s
if {[prepare_for_testing "failed to prepare" $testfile \
"$srcfile $srcfile2" nodebug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp
index 2afe1723a6e2..e8fa0af47759 100644
--- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp
+++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-mv.exp
@@ -21,7 +21,7 @@ require {istarget "riscv64-*-*"}
standard_testfile .c .s
if {[prepare_for_testing "failed to prepare" $testfile \
"$srcfile $srcfile2" nodebug]} {
- return -1
+ return
}
if {![runto_main]} {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 08/36] GDB: testsuite: riscv: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (6 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 07/36] GDB: testsuite: riscv: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 09/36] GDB: testsuite: s390: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (27 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes the "return -1" statements that weren't
caught by the sed command.
This happened only in one testcase, due to the statements being inside a
foreach_with_prefix block.
---
gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp
index 7be5316bcfb0..b49d466b15f2 100644
--- a/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp
+++ b/gdb/testsuite/gdb.arch/riscv-unwind-long-insn.exp
@@ -33,11 +33,11 @@ foreach_with_prefix {insn_size} {6 8} {
set testfile "${testfile}-${insn_size}"
if {[prepare_for_testing "failed to prepare" $testfile \
"$srcfile $srcfile2" $flags]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "bar"
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 09/36] GDB: testsuite: s390: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (7 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 08/36] GDB: testsuite: riscv: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 10/36] GDB: testsuite: sparc: " Thiago Jung Bauermann
` (26 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' s390*.exp*
inside gdb/testsuite/gdb.arch.
---
gdb/testsuite/gdb.arch/s390-stackless.exp | 2 +-
gdb/testsuite/gdb.arch/s390-tdbregs.exp | 2 +-
gdb/testsuite/gdb.arch/s390-vregs.exp | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/s390-stackless.exp b/gdb/testsuite/gdb.arch/s390-stackless.exp
index ba7e70faf95d..567f37c41abd 100644
--- a/gdb/testsuite/gdb.arch/s390-stackless.exp
+++ b/gdb/testsuite/gdb.arch/s390-stackless.exp
@@ -18,7 +18,7 @@ require {istarget "s390*-*-*"}
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Run until SIGSEGV.
diff --git a/gdb/testsuite/gdb.arch/s390-tdbregs.exp b/gdb/testsuite/gdb.arch/s390-tdbregs.exp
index e0b9284874f4..5d894f1a309f 100644
--- a/gdb/testsuite/gdb.arch/s390-tdbregs.exp
+++ b/gdb/testsuite/gdb.arch/s390-tdbregs.exp
@@ -28,7 +28,7 @@ standard_testfile .c
# endless loop would result.
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
[list "debug" "additional_flags=-msoft-float"]] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/s390-vregs.exp b/gdb/testsuite/gdb.arch/s390-vregs.exp
index 99dd3b219750..33da5f340f97 100644
--- a/gdb/testsuite/gdb.arch/s390-vregs.exp
+++ b/gdb/testsuite/gdb.arch/s390-vregs.exp
@@ -28,11 +28,11 @@ if {[isnative]} {
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
[list "additional_flags=-mzarch"]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Run to the first vector instruction and step it. If the inferior
@@ -185,7 +185,7 @@ set cores [glob -nocomplain -directory $coredir *core*]
if {[llength $cores] != 1} {
untested "core file not found"
remote_exec build "rm -rf $coredir"
- return -1
+ return
}
set destcore [standard_output_file ${testfile}.core]
remote_exec build "mv [file join $coredir [lindex $cores 0]] $destcore"
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 10/36] GDB: testsuite: sparc: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (8 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 09/36] GDB: testsuite: s390: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 11/36] GDB: testsuite: Don't return -1 from top-level in tests of various arches Thiago Jung Bauermann
` (25 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' sparc*.exp*
inside gdb/testsuite/gdb.arch.
---
gdb/testsuite/gdb.arch/sparc-sysstep.exp | 4 ++--
gdb/testsuite/gdb.arch/sparc64-adi.exp | 4 ++--
gdb/testsuite/gdb.arch/sparc64-regs.exp | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/sparc-sysstep.exp b/gdb/testsuite/gdb.arch/sparc-sysstep.exp
index 2ae7719ae39d..9a8c292611af 100644
--- a/gdb/testsuite/gdb.arch/sparc-sysstep.exp
+++ b/gdb/testsuite/gdb.arch/sparc-sysstep.exp
@@ -29,11 +29,11 @@ set binfile ${objdir}/${subdir}/${testfile}
set opts {}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {additional_flags=-g}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Watching the global variable will guarantee that gdb will
diff --git a/gdb/testsuite/gdb.arch/sparc64-adi.exp b/gdb/testsuite/gdb.arch/sparc64-adi.exp
index 3024527d48d9..9fc7084e4a12 100644
--- a/gdb/testsuite/gdb.arch/sparc64-adi.exp
+++ b/gdb/testsuite/gdb.arch/sparc64-adi.exp
@@ -24,11 +24,11 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug libs=-ladi]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "break [gdb_get_line_number "line breakpoint here"]" \
diff --git a/gdb/testsuite/gdb.arch/sparc64-regs.exp b/gdb/testsuite/gdb.arch/sparc64-regs.exp
index 28948aec966c..df476293a482 100644
--- a/gdb/testsuite/gdb.arch/sparc64-regs.exp
+++ b/gdb/testsuite/gdb.arch/sparc64-regs.exp
@@ -23,7 +23,7 @@ require {istarget "sparc64*-*-linux*"}
standard_testfile .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 11/36] GDB: testsuite: Don't return -1 from top-level in tests of various arches
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (9 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 10/36] GDB: testsuite: sparc: " Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 12/36] GDB: testsuite: Don't return -1 from top-level in multi-arch tests Thiago Jung Bauermann
` (24 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch contains fixes for alpha, arc, avr, hppa and sh architectures.
Some changes are the result of running:
$ sed -i 's/^ return -1/ return/' *.exp
inside gdb/testsuite/gdb.arch and some are manual changes.
---
gdb/testsuite/gdb.arch/alpha-step.exp | 4 ++--
gdb/testsuite/gdb.arch/arc-analyze-prologue.exp | 2 +-
gdb/testsuite/gdb.arch/arc-dbnz.exp | 2 +-
gdb/testsuite/gdb.arch/arc-decode-insn.exp | 2 +-
gdb/testsuite/gdb.arch/avr-flash-qualifier.exp | 10 +++++-----
gdb/testsuite/gdb.arch/gdb1291.exp | 4 ++--
gdb/testsuite/gdb.arch/gdb1431.exp | 4 ++--
gdb/testsuite/gdb.arch/gdb1558.exp | 2 +-
gdb/testsuite/gdb.arch/pa-nullify.exp | 8 ++++----
9 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/alpha-step.exp b/gdb/testsuite/gdb.arch/alpha-step.exp
index a15f86ea6567..9d94daa0e64b 100644
--- a/gdb/testsuite/gdb.arch/alpha-step.exp
+++ b/gdb/testsuite/gdb.arch/alpha-step.exp
@@ -22,7 +22,7 @@ set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart
@@ -33,7 +33,7 @@ proc test_stepi {function } {
# of the previous tests, this makes sure that it doesn't affect
# this series of tests.
if {![runto_main]} {
- return 0
+ return
}
# Insert a breakpoint on the FP branch instruction inside FUNCTION.
diff --git a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
index 01699016dd67..fe6db11472cc 100644
--- a/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
+++ b/gdb/testsuite/gdb.arch/arc-analyze-prologue.exp
@@ -26,7 +26,7 @@ standard_testfile .S
set options {}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $options] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/arc-dbnz.exp b/gdb/testsuite/gdb.arch/arc-dbnz.exp
index ce93a6202933..e50bf7a4b187 100644
--- a/gdb/testsuite/gdb.arch/arc-dbnz.exp
+++ b/gdb/testsuite/gdb.arch/arc-dbnz.exp
@@ -34,7 +34,7 @@ require {istarget "arc*-*-*"}
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/arc-decode-insn.exp b/gdb/testsuite/gdb.arch/arc-decode-insn.exp
index 0a7582d03a2a..c23204aa1660 100644
--- a/gdb/testsuite/gdb.arch/arc-decode-insn.exp
+++ b/gdb/testsuite/gdb.arch/arc-decode-insn.exp
@@ -36,7 +36,7 @@ require {istarget "arc*-*-*"}
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.arch/avr-flash-qualifier.exp b/gdb/testsuite/gdb.arch/avr-flash-qualifier.exp
index a62e629f9209..e9a523a5d05a 100644
--- a/gdb/testsuite/gdb.arch/avr-flash-qualifier.exp
+++ b/gdb/testsuite/gdb.arch/avr-flash-qualifier.exp
@@ -22,18 +22,18 @@ require {istarget "avr*"}
# The __flash qualifier was added in GCC 4.7.
if {[test_compiler_info {gcc-[0-4]-[0-6]}]} {
- verbose "Skipping ${gdb_test_file_name}."
- return
+ verbose "Skipping ${gdb_test_file_name}."
+ return
}
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto [gdb_get_line_number "break here."]]} {
- untested "could not run to \"break here.\""
- return -1
+ untested "could not run to \"break here.\""
+ return
}
gdb_test "print pointer_to_flash" \
diff --git a/gdb/testsuite/gdb.arch/gdb1291.exp b/gdb/testsuite/gdb.arch/gdb1291.exp
index 82f9d52e08ba..ba4b88d75112 100644
--- a/gdb/testsuite/gdb.arch/gdb1291.exp
+++ b/gdb/testsuite/gdb.arch/gdb1291.exp
@@ -30,7 +30,7 @@ set srcfile ${testfile}.s
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable ""] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
@@ -41,7 +41,7 @@ gdb_load $binfile
#
if {![runto_main]} {
- return 0
+ return
}
gdb_test "b sub1" "Breakpoint 2.*" "set breakpoint"
diff --git a/gdb/testsuite/gdb.arch/gdb1431.exp b/gdb/testsuite/gdb.arch/gdb1431.exp
index 89952275d193..aedf66183186 100644
--- a/gdb/testsuite/gdb.arch/gdb1431.exp
+++ b/gdb/testsuite/gdb.arch/gdb1431.exp
@@ -32,7 +32,7 @@ set srcfile ${testfile}.s
set binfile ${objdir}/${subdir}/${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable ""] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
@@ -43,7 +43,7 @@ gdb_load $binfile
#
if {![runto_main]} {
- return 0
+ return
}
gdb_test "advance sub1" "hello world\r\n$hex in sub1 \\(\\)" "get to sub1"
diff --git a/gdb/testsuite/gdb.arch/gdb1558.exp b/gdb/testsuite/gdb.arch/gdb1558.exp
index 5fbf86f5889a..7a3f44756452 100644
--- a/gdb/testsuite/gdb.arch/gdb1558.exp
+++ b/gdb/testsuite/gdb.arch/gdb1558.exp
@@ -29,7 +29,7 @@ set binfile ${objdir}/${subdir}/${testfile}
# Note we have to compile WITH optimization and WITHOUT debugging information to expose the bug.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {"additional_flags=-O2"}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.arch/pa-nullify.exp b/gdb/testsuite/gdb.arch/pa-nullify.exp
index 1606d44afbf1..e527fe0955d8 100644
--- a/gdb/testsuite/gdb.arch/pa-nullify.exp
+++ b/gdb/testsuite/gdb.arch/pa-nullify.exp
@@ -37,7 +37,7 @@ set gcorefile ${objdir}/${subdir}/${testfile}.gcore
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {}] != "" } {
unsupported "failed to compile"
- return -1
+ return
}
clean_restart
@@ -87,7 +87,7 @@ proc get_addr_of_sym { sym } {
}
if {![runto_main]} {
- return 0
+ return
}
set foo [get_addr_of_sym "foo"]
@@ -123,7 +123,7 @@ proc test_core_bt { test } {
set test "core at last insn in foo"
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "*$foo_last"
gdb_test "continue" "Breakpoint \[0-9\]*,.* in foo.*" "$test: continue to breakpoint"
@@ -133,7 +133,7 @@ if {[gen_core $test]} {
set test "core at nullified insn"
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "*$foo_last"
gdb_test "continue" "Breakpoint \[0-9\]*,.* in foo.*" "$test: continue to breakpoint"
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 12/36] GDB: testsuite: Don't return -1 from top-level in multi-arch tests
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (10 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 11/36] GDB: testsuite: Don't return -1 from top-level in tests of various arches Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 13/36] GDB: testsuite: base: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (23 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
Oddly enough, there are multi-arch arch tests. This patch contains
fixes for them.
Some changes are the result of running:
$ sed -i 's/^ return -1/ return/' *.exp
inside gdb/testsuite/gdb.arch and some are manual changes.
---
gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp | 6 +++---
gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp | 14 +++++++-------
gdb/testsuite/gdb.arch/skip-prologue.exp | 2 +-
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp b/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp
index 7d26244129ce..87440a1b28e8 100644
--- a/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp
+++ b/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp
@@ -23,11 +23,11 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $executable $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Read function name from testcases[N].
@@ -49,7 +49,7 @@ proc read_testcase { n } {
set n_testcases [get_integer_valueof "n_testcases" 0]
if { ${n_testcases} == 0 } {
untested "no instruction relocation to test"
- return 1
+ return
}
# Set a fast tracepoint on each set_point${i} symbol. There is one for
diff --git a/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp b/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp
index 0846e0365d42..06eb5a691bdf 100644
--- a/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp
+++ b/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp
@@ -21,16 +21,16 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile-no-ipa $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
if {![gdb_target_supports_trace]} {
unsupported "target does not support trace"
- return -1
+ return
}
require allow_in_proc_agent
@@ -43,20 +43,20 @@ set libipa [get_in_proc_agent]
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable [list debug $additional_flags shlib=$libipa] ] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile
set remote_libipa [gdb_load_shlib $libipa]
if {![runto_main]} {
- return 0
+ return
}
gdb_reinitialize_dir $srcdir/$subdir
if { [gdb_test "info sharedlibrary" ".*[file tail $libipa].*" "IPA loaded"] != 0 } {
untested "could not find IPA lib loaded"
- return 1
+ return
}
# Read function name from testcases[N].
@@ -79,7 +79,7 @@ set n_testcases [gdb_readexpr "n_testcases"]
if { ${n_testcases} == 0 } {
untested "no instruction relocation to test"
- return 1
+ return
}
# Set a fast tracepoint on each set_point${i} symbol. There is one for
diff --git a/gdb/testsuite/gdb.arch/skip-prologue.exp b/gdb/testsuite/gdb.arch/skip-prologue.exp
index c805356d8746..c53f86250c84 100644
--- a/gdb/testsuite/gdb.arch/skip-prologue.exp
+++ b/gdb/testsuite/gdb.arch/skip-prologue.exp
@@ -19,7 +19,7 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
{nodebug}] } {
- return -1
+ return
}
proc do_test { f } {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 13/36] GDB: testsuite: base: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (11 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 12/36] GDB: testsuite: Don't return -1 from top-level in multi-arch tests Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 14/36] GDB: testsuite: base: Don't return 0 " Thiago Jung Bauermann
` (22 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.base.
There was one one change made by the command above in async.exp where
the return statement is inside a procedure whose result is tested in an
if condition so I didn't add it to this patch.
---
gdb/testsuite/gdb.base/a2-run.exp | 2 +-
gdb/testsuite/gdb.base/access-mem-running.exp | 2 +-
.../gdb.base/add-symbol-file-attach.exp | 2 +-
.../advance-until-multiple-locations.exp | 2 +-
gdb/testsuite/gdb.base/advance.exp | 2 +-
gdb/testsuite/gdb.base/all-bin.exp | 2 +-
.../gdb.base/annota-input-while-running.exp | 2 +-
gdb/testsuite/gdb.base/annota1.exp | 2 +-
gdb/testsuite/gdb.base/annota3.exp | 2 +-
gdb/testsuite/gdb.base/annotate-symlink.exp | 6 +++---
gdb/testsuite/gdb.base/anon.exp | 2 +-
gdb/testsuite/gdb.base/args.exp | 2 +-
gdb/testsuite/gdb.base/argv0-symlink.exp | 2 +-
gdb/testsuite/gdb.base/arithmet.exp | 2 +-
gdb/testsuite/gdb.base/array-indices.exp.tcl | 2 +-
gdb/testsuite/gdb.base/array-repeat.exp.tcl | 2 +-
gdb/testsuite/gdb.base/asmlabel.exp | 2 +-
gdb/testsuite/gdb.base/async.exp | 2 +-
.../gdb.base/attach-deleted-exec.exp | 2 +-
gdb/testsuite/gdb.base/attach-fail-twice.exp | 2 +-
.../gdb.base/attach-non-pgrp-leader.exp | 2 +-
gdb/testsuite/gdb.base/attach-pie-misread.exp | 4 ++--
gdb/testsuite/gdb.base/attach-pie-noexec.exp | 2 +-
gdb/testsuite/gdb.base/attach-twice.exp | 2 +-
gdb/testsuite/gdb.base/attach-wait-input.exp | 2 +-
gdb/testsuite/gdb.base/attach.exp | 6 +++---
.../gdb.base/auto-connect-native-target.exp | 2 +-
gdb/testsuite/gdb.base/auto-load.exp | 2 +-
gdb/testsuite/gdb.base/auxv.exp | 2 +-
gdb/testsuite/gdb.base/backtrace.exp | 2 +-
gdb/testsuite/gdb.base/bang.exp | 2 +-
.../gdb.base/batch-preserve-term-settings.exp | 2 +-
gdb/testsuite/gdb.base/bfd-errors.exp | 8 ++++----
.../gdb.base/bg-exec-sigint-bp-cond.exp | 2 +-
.../gdb.base/bg-execution-repeat.exp | 2 +-
gdb/testsuite/gdb.base/bitfields.exp | 2 +-
gdb/testsuite/gdb.base/bitfields2.exp | 2 +-
.../gdb.base/bp-cmds-continue-ctrl-c.exp | 2 +-
.../gdb.base/bp-cmds-execution-x-script.exp | 2 +-
.../gdb.base/bp-cmds-run-with-ex.exp | 2 +-
.../gdb.base/bp-cmds-sourced-script.exp | 2 +-
gdb/testsuite/gdb.base/bp-cond-failure.exp | 2 +-
gdb/testsuite/gdb.base/bp-permanent.exp | 2 +-
gdb/testsuite/gdb.base/branch-to-self.exp | 2 +-
gdb/testsuite/gdb.base/break-always.exp | 2 +-
gdb/testsuite/gdb.base/break-caller-line.exp | 2 +-
gdb/testsuite/gdb.base/break-entry.exp | 2 +-
gdb/testsuite/gdb.base/break-include.exp | 2 +-
gdb/testsuite/gdb.base/break-inline.exp | 2 +-
gdb/testsuite/gdb.base/break-interp.exp | 4 ++--
.../gdb.base/break-main-file-remove-fail.exp | 2 +-
.../gdb.base/break-on-linker-gcd-function.exp | 2 +-
gdb/testsuite/gdb.base/break-probes.exp | 8 ++++----
gdb/testsuite/gdb.base/break-unload-file.exp | 2 +-
gdb/testsuite/gdb.base/break.exp | 4 ++--
.../gdb.base/breakpoint-in-ro-region.exp | 6 +++---
gdb/testsuite/gdb.base/breakpoint-shadow.exp | 4 ++--
.../gdb.base/bt-on-error-and-warning.exp | 4 ++--
gdb/testsuite/gdb.base/bt-on-fatal-signal.exp | 4 ++--
gdb/testsuite/gdb.base/bt-selected-frame.exp | 2 +-
gdb/testsuite/gdb.base/build-id-seqno.exp | 4 ++--
gdb/testsuite/gdb.base/c-linkage-name.exp | 2 +-
gdb/testsuite/gdb.base/cached-source-file.exp | 6 +++---
gdb/testsuite/gdb.base/call-ar-st.exp | 2 +-
gdb/testsuite/gdb.base/call-strs.exp | 2 +-
gdb/testsuite/gdb.base/cast-call.exp | 4 ++--
gdb/testsuite/gdb.base/cast-indirection.exp | 4 ++--
gdb/testsuite/gdb.base/catch-fork-static.exp | 2 +-
.../gdb.base/catch-gdb-caused-signals.exp | 4 ++--
gdb/testsuite/gdb.base/catch-load.exp | 4 ++--
gdb/testsuite/gdb.base/catch-signal-fork.exp | 4 ++--
.../gdb.base/catch-signal-siginfo-cond.exp | 4 ++--
gdb/testsuite/gdb.base/catch-signal.exp | 2 +-
gdb/testsuite/gdb.base/catch-syscall.exp | 2 +-
gdb/testsuite/gdb.base/charset.exp | 4 ++--
gdb/testsuite/gdb.base/commands.exp | 2 +-
gdb/testsuite/gdb.base/compare-sections.exp | 2 +-
gdb/testsuite/gdb.base/complete-empty.exp | 2 +-
gdb/testsuite/gdb.base/completion.exp | 4 ++--
gdb/testsuite/gdb.base/complex-parts.exp | 2 +-
gdb/testsuite/gdb.base/complex.exp | 2 +-
gdb/testsuite/gdb.base/cond-eval-mode.exp | 2 +-
.../gdb.base/condbreak-call-false.exp | 2 +-
gdb/testsuite/gdb.base/condbreak.exp | 2 +-
.../gdb.base/consecutive-step-over.exp | 2 +-
gdb/testsuite/gdb.base/consecutive.exp | 2 +-
.../continue-after-aborted-step-over.exp | 2 +-
.../gdb.base/coredump-filter-build-id.exp | 8 ++++----
gdb/testsuite/gdb.base/coredump-filter.exp | 8 ++++----
.../gdb.base/corefile-exec-context.exp | 4 ++--
gdb/testsuite/gdb.base/corefile-find-exec.exp | 2 +-
gdb/testsuite/gdb.base/corefile.exp | 2 +-
gdb/testsuite/gdb.base/corefile2.exp | 2 +-
gdb/testsuite/gdb.base/ctf-ptype.exp | 8 ++++----
gdb/testsuite/gdb.base/ctxobj.exp | 8 ++++----
gdb/testsuite/gdb.base/cursal.exp | 8 ++++----
gdb/testsuite/gdb.base/dcache-flush.exp | 4 ++--
.../gdb.base/dcache-line-read-error.exp | 4 ++--
gdb/testsuite/gdb.base/debug-expr.exp | 4 ++--
gdb/testsuite/gdb.base/debug-frame.exp | 4 ++--
gdb/testsuite/gdb.base/decl-before-def.exp | 2 +-
gdb/testsuite/gdb.base/default-args.exp | 2 +-
gdb/testsuite/gdb.base/define.exp | 2 +-
gdb/testsuite/gdb.base/del.exp | 2 +-
gdb/testsuite/gdb.base/disabled-location.exp | 2 +-
gdb/testsuite/gdb.base/disasm-end-cu.exp | 6 +++---
gdb/testsuite/gdb.base/disasm-optim.exp | 4 ++--
.../gdb.base/displaced-step-closure.exp | 4 ++--
gdb/testsuite/gdb.base/display.exp | 2 +-
gdb/testsuite/gdb.base/dmsym.exp | 2 +-
gdb/testsuite/gdb.base/document.exp | 2 +-
.../gdb.base/dprintf-bp-same-addr.exp | 2 +-
gdb/testsuite/gdb.base/dprintf-detach.exp | 2 +-
.../gdb.base/dprintf-execution-x-script.exp | 4 ++--
gdb/testsuite/gdb.base/dprintf-next.exp | 4 ++--
gdb/testsuite/gdb.base/dprintf-non-stop.exp | 4 ++--
gdb/testsuite/gdb.base/dprintf-pending.exp | 2 +-
gdb/testsuite/gdb.base/dprintf.exp | 4 ++--
gdb/testsuite/gdb.base/dump.exp | 2 +-
gdb/testsuite/gdb.base/dup-sect.exp | 2 +-
gdb/testsuite/gdb.base/duplicate-bp.exp | 2 +-
gdb/testsuite/gdb.base/early-init-file.exp | 2 +-
gdb/testsuite/gdb.base/eh_return.exp | 2 +-
gdb/testsuite/gdb.base/ena-dis-br.exp | 2 +-
gdb/testsuite/gdb.base/endianity.exp | 2 +-
gdb/testsuite/gdb.base/ending-run.exp | 2 +-
gdb/testsuite/gdb.base/enum_cond.exp | 2 +-
gdb/testsuite/gdb.base/enumval.exp | 2 +-
gdb/testsuite/gdb.base/eu-strip-infcall.exp | 4 ++--
.../gdb.base/eval-avoid-side-effects.exp | 4 ++--
gdb/testsuite/gdb.base/examine-backward.exp | 4 ++--
gdb/testsuite/gdb.base/exe-lock.exp | 2 +-
.../gdb.base/execl-update-breakpoints.exp | 8 ++++----
gdb/testsuite/gdb.base/execution-termios.exp | 2 +-
gdb/testsuite/gdb.base/exitsignal.exp | 8 ++++----
gdb/testsuite/gdb.base/expand-psymtabs.exp | 2 +-
gdb/testsuite/gdb.base/fileio.exp | 2 +-
gdb/testsuite/gdb.base/filesym.exp | 4 ++--
gdb/testsuite/gdb.base/find-unmapped.exp | 4 ++--
gdb/testsuite/gdb.base/finish-pretty.exp | 2 +-
gdb/testsuite/gdb.base/finish.exp | 2 +-
gdb/testsuite/gdb.base/float.exp | 2 +-
gdb/testsuite/gdb.base/float128.exp | 2 +-
gdb/testsuite/gdb.base/floatn.exp | 2 +-
gdb/testsuite/gdb.base/foll-fork-syscall.exp | 2 +-
gdb/testsuite/gdb.base/foll-fork.exp | 2 +-
gdb/testsuite/gdb.base/foll-vfork.exp | 6 +++---
.../gdb.base/fork-print-inferior-events.exp | 2 +-
gdb/testsuite/gdb.base/fortran-sym-case.exp | 4 ++--
.../gdb.base/frame-info-consistent.exp | 2 +-
gdb/testsuite/gdb.base/frame-selection.exp | 2 +-
.../gdb.base/frame-unwind-disable.exp | 2 +-
gdb/testsuite/gdb.base/frameapply.exp | 2 +-
gdb/testsuite/gdb.base/freebpcmd.exp | 2 +-
gdb/testsuite/gdb.base/fullname.exp | 6 +++---
gdb/testsuite/gdb.base/fullpath-expand.exp | 4 ++--
gdb/testsuite/gdb.base/func-ptr.exp | 2 +-
gdb/testsuite/gdb.base/func-ptrs.exp | 4 ++--
gdb/testsuite/gdb.base/funcargs.exp | 2 +-
.../gdb.base/gcore-buffer-overflow.exp | 2 +-
gdb/testsuite/gdb.base/gcore-memory-usage.exp | 2 +-
gdb/testsuite/gdb.base/gcore-relro-pie.exp | 8 ++++----
gdb/testsuite/gdb.base/gcore-tls-pie.exp | 10 +++++-----
gdb/testsuite/gdb.base/gcore.exp | 4 ++--
gdb/testsuite/gdb.base/gdb-index-err.exp | 4 ++--
gdb/testsuite/gdb.base/gdb-sigterm.exp | 2 +-
gdb/testsuite/gdb.base/gdb1090.exp | 2 +-
gdb/testsuite/gdb.base/gdb11530.exp | 2 +-
gdb/testsuite/gdb.base/gdb11531.exp | 2 +-
gdb/testsuite/gdb.base/gdb1821.exp | 2 +-
gdb/testsuite/gdb.base/gdbvars.exp | 2 +-
gdb/testsuite/gdb.base/gnu-debugdata.exp | 20 +++++++++----------
gdb/testsuite/gdb.base/gnu_vector.exp | 2 +-
gdb/testsuite/gdb.base/gstack.exp | 2 +-
gdb/testsuite/gdb.base/hashline1.exp | 2 +-
gdb/testsuite/gdb.base/hashline2.exp | 2 +-
gdb/testsuite/gdb.base/hashline3.exp | 2 +-
.../gdb.base/hbreak-in-shr-unsupported.exp | 2 +-
gdb/testsuite/gdb.base/hbreak-unmapped.exp | 4 ++--
gdb/testsuite/gdb.base/hbreak.exp | 4 ++--
gdb/testsuite/gdb.base/hbreak2.exp | 4 ++--
gdb/testsuite/gdb.base/history-duplicates.exp | 2 +-
gdb/testsuite/gdb.base/hook-stop.exp | 2 +-
.../gdb.base/hw-sw-break-same-address.exp | 4 ++--
gdb/testsuite/gdb.base/include-main.exp | 2 +-
gdb/testsuite/gdb.base/included.exp | 2 +-
gdb/testsuite/gdb.base/infcall-exec.exp | 6 +++---
gdb/testsuite/gdb.base/infcall-input.exp | 4 ++--
gdb/testsuite/gdb.base/inferior-died.exp | 2 +-
gdb/testsuite/gdb.base/infnan.exp | 2 +-
.../info-locals-unused-static-var.exp | 2 +-
gdb/testsuite/gdb.base/info-macros.exp | 4 ++--
gdb/testsuite/gdb.base/info-os.exp | 6 +++---
gdb/testsuite/gdb.base/info-proc.exp | 2 +-
gdb/testsuite/gdb.base/info-shared.exp | 6 +++---
gdb/testsuite/gdb.base/info-target.exp | 2 +-
gdb/testsuite/gdb.base/info-var.exp | 2 +-
gdb/testsuite/gdb.base/info_minsym.exp | 2 +-
gdb/testsuite/gdb.base/info_qt.exp | 2 +-
gdb/testsuite/gdb.base/info_sources.exp | 4 ++--
gdb/testsuite/gdb.base/info_sources_2.exp | 2 +-
.../infoline-reloc-main-from-zero.exp | 2 +-
gdb/testsuite/gdb.base/infoline.exp | 2 +-
.../gdb.base/inline-frame-cycle-unwind.exp | 2 +-
gdb/testsuite/gdb.base/interp.exp | 2 +-
gdb/testsuite/gdb.base/interrupt-a.exp | 4 ++--
.../gdb.base/interrupt-daemon-attach.exp | 2 +-
gdb/testsuite/gdb.base/interrupt-daemon.exp | 2 +-
gdb/testsuite/gdb.base/interrupt-noterm.exp | 4 ++--
gdb/testsuite/gdb.base/interrupt.exp | 2 +-
gdb/testsuite/gdb.base/jit-attach-pie.exp | 2 +-
gdb/testsuite/gdb.base/jit-reader-simple.exp | 4 ++--
gdb/testsuite/gdb.base/jit-reader.exp | 4 ++--
gdb/testsuite/gdb.base/jump-inline.exp | 4 ++--
gdb/testsuite/gdb.base/jump.exp | 4 ++--
.../gdb.base/jump_multiple_objfiles.exp | 4 ++--
gdb/testsuite/gdb.base/kill-after-signal.exp | 4 ++--
.../gdb.base/kill-detach-inferiors-cmd.exp | 2 +-
gdb/testsuite/gdb.base/kill-during-detach.exp | 2 +-
gdb/testsuite/gdb.base/killed-outside.exp | 2 +-
.../gdb.base/label-without-address.exp | 4 ++--
gdb/testsuite/gdb.base/label.exp | 2 +-
gdb/testsuite/gdb.base/langs.exp | 2 +-
gdb/testsuite/gdb.base/ldbl_e308.exp | 4 ++--
gdb/testsuite/gdb.base/limited-length.exp | 2 +-
gdb/testsuite/gdb.base/line-symtabs.exp | 4 ++--
gdb/testsuite/gdb.base/line65535.exp | 2 +-
gdb/testsuite/gdb.base/list-ambiguous.exp | 2 +-
gdb/testsuite/gdb.base/list-before-start.exp | 2 +-
.../gdb.base/list-missing-source.exp | 2 +-
gdb/testsuite/gdb.base/list-nodebug.exp | 2 +-
gdb/testsuite/gdb.base/list.exp | 2 +-
gdb/testsuite/gdb.base/load-command.exp | 4 ++--
.../gdb.base/long-inferior-output.exp | 2 +-
gdb/testsuite/gdb.base/longest-types.exp | 2 +-
gdb/testsuite/gdb.base/macscp.exp | 2 +-
gdb/testsuite/gdb.base/main-c.exp | 2 +-
.../maint-expand-symbols-header-file.exp | 4 ++--
.../maint-info-inline-frames-and-blocks.exp | 2 +-
.../gdb.base/maint-info-sections.exp | 4 ++--
.../gdb.base/maint-print-frame-id.exp | 4 ++--
gdb/testsuite/gdb.base/maint.exp | 2 +-
gdb/testsuite/gdb.base/many-completions.exp | 2 +-
| 4 ++--
gdb/testsuite/gdb.base/max-value-size.exp | 2 +-
gdb/testsuite/gdb.base/memattr.exp | 2 +-
gdb/testsuite/gdb.base/memops-watchpoint.exp | 4 ++--
gdb/testsuite/gdb.base/memtag.exp | 6 +++---
gdb/testsuite/gdb.base/mips_pro.exp | 2 +-
gdb/testsuite/gdb.base/morestack.exp | 4 ++--
gdb/testsuite/gdb.base/msym-lang.exp | 2 +-
gdb/testsuite/gdb.base/nested-addr.exp | 4 ++--
gdb/testsuite/gdb.base/nested-subp1.exp | 4 ++--
gdb/testsuite/gdb.base/nested-subp2.exp | 4 ++--
gdb/testsuite/gdb.base/nested-subp3.exp | 4 ++--
gdb/testsuite/gdb.base/new-ui-echo.exp | 2 +-
.../gdb.base/new-ui-pending-input.exp | 2 +-
gdb/testsuite/gdb.base/new-ui.exp | 2 +-
gdb/testsuite/gdb.base/nextoverexit.exp | 4 ++--
.../gdb.base/non-lazy-array-index.exp | 4 ++--
gdb/testsuite/gdb.base/noreturn-finish.exp | 2 +-
gdb/testsuite/gdb.base/noreturn-return.exp | 2 +-
gdb/testsuite/gdb.base/offsets.exp | 2 +-
gdb/testsuite/gdb.base/opaque.exp | 2 +-
gdb/testsuite/gdb.base/options.exp | 4 ++--
.../paginate-after-ctrl-c-running.exp | 2 +-
.../gdb.base/paginate-bg-execution.exp | 2 +-
.../gdb.base/paginate-execution-startup.exp | 2 +-
.../gdb.base/paginate-inferior-exit.exp | 2 +-
gdb/testsuite/gdb.base/patch.exp | 2 +-
gdb/testsuite/gdb.base/pc-fp.exp | 2 +-
gdb/testsuite/gdb.base/pending.exp | 2 +-
gdb/testsuite/gdb.base/permissions.exp | 2 +-
gdb/testsuite/gdb.base/persistent-lang.exp | 2 +-
gdb/testsuite/gdb.base/pie-execl.exp | 4 ++--
gdb/testsuite/gdb.base/pr10179.exp | 4 ++--
gdb/testsuite/gdb.base/prelink.exp | 8 ++++----
.../premature-dummy-frame-removal.exp | 2 +-
gdb/testsuite/gdb.base/pretty-array.exp | 4 ++--
gdb/testsuite/gdb.base/pretty-print.exp | 4 ++--
.../gdb.base/print-internal-string.exp | 2 +-
.../gdb.base/print-symbol-loading.exp | 8 ++++----
gdb/testsuite/gdb.base/printf-wchar_t.exp | 4 ++--
gdb/testsuite/gdb.base/prologue-include.exp | 2 +-
gdb/testsuite/gdb.base/psym-external-decl.exp | 4 ++--
gdb/testsuite/gdb.base/psymtab.exp | 2 +-
gdb/testsuite/gdb.base/ptype-offsets-c.exp | 2 +-
gdb/testsuite/gdb.base/ptype-offsets.exp | 2 +-
gdb/testsuite/gdb.base/ptype.exp | 10 +++++-----
gdb/testsuite/gdb.base/random-signal.exp | 2 +-
gdb/testsuite/gdb.base/randomize.exp | 4 ++--
gdb/testsuite/gdb.base/range-stepping.exp | 6 +++---
gdb/testsuite/gdb.base/readline-ask.exp | 4 ++--
.../gdb.base/readline-commands-eof.exp | 4 ++--
gdb/testsuite/gdb.base/readnever.exp | 2 +-
gdb/testsuite/gdb.base/realname-expand.exp | 4 ++--
gdb/testsuite/gdb.base/recpar.exp | 4 ++--
gdb/testsuite/gdb.base/recurse.exp | 2 +-
gdb/testsuite/gdb.base/reggroups.exp | 2 +-
gdb/testsuite/gdb.base/relational.exp | 2 +-
gdb/testsuite/gdb.base/remote.exp | 2 +-
gdb/testsuite/gdb.base/reread-readsym.exp | 2 +-
gdb/testsuite/gdb.base/restore.exp | 4 ++--
gdb/testsuite/gdb.base/return-3.exp | 4 ++--
gdb/testsuite/gdb.base/return.exp | 2 +-
.../gdb.base/retval-large-struct.exp | 4 ++--
gdb/testsuite/gdb.base/rtld-step.exp | 6 +++---
gdb/testsuite/gdb.base/run-after-attach.exp | 2 +-
gdb/testsuite/gdb.base/run-fail-twice.exp | 2 +-
gdb/testsuite/gdb.base/save-bp.exp | 6 +++---
.../gdb.base/scope-hw-watch-disable.exp | 4 ++--
gdb/testsuite/gdb.base/scope.exp | 2 +-
gdb/testsuite/gdb.base/sect-cmd.exp | 2 +-
gdb/testsuite/gdb.base/sepdebug.exp | 4 ++--
gdb/testsuite/gdb.base/sepsymtab.exp | 4 ++--
gdb/testsuite/gdb.base/server-del-break.exp | 2 +-
gdb/testsuite/gdb.base/set-cwd.exp | 2 +-
gdb/testsuite/gdb.base/set-inferior-tty.exp | 2 +-
gdb/testsuite/gdb.base/set-lang-auto.exp | 2 +-
gdb/testsuite/gdb.base/set-noassign.exp | 2 +-
gdb/testsuite/gdb.base/settings.exp | 4 ++--
gdb/testsuite/gdb.base/setvar.exp | 2 +-
.../gdb.base/share-env-with-gdbserver.exp | 2 +-
gdb/testsuite/gdb.base/share-psymtabs-bt.exp | 6 +++---
gdb/testsuite/gdb.base/sigall.exp | 2 +-
gdb/testsuite/gdb.base/sigbpt.exp | 2 +-
gdb/testsuite/gdb.base/siginfo-addr.exp | 2 +-
gdb/testsuite/gdb.base/siginfo-infcall.exp | 4 ++--
gdb/testsuite/gdb.base/siginfo-obj.exp | 2 +-
gdb/testsuite/gdb.base/siginfo.exp | 2 +-
.../gdb.base/signals-state-child.exp | 8 ++++----
gdb/testsuite/gdb.base/signals.exp | 2 +-
.../gdb.base/signed-builtin-types.exp | 8 ++++----
gdb/testsuite/gdb.base/signest.exp | 6 +++---
gdb/testsuite/gdb.base/sigstep.exp | 2 +-
gdb/testsuite/gdb.base/sizeof.exp | 2 +-
gdb/testsuite/gdb.base/skip-inline.exp | 2 +-
gdb/testsuite/gdb.base/skip-solib.exp | 6 +++---
gdb/testsuite/gdb.base/skip.exp | 2 +-
gdb/testsuite/gdb.base/skipcxx.exp | 2 +-
gdb/testsuite/gdb.base/solib-corrupted.exp | 2 +-
gdb/testsuite/gdb.base/solib-nodir.exp | 2 +-
.../gdb.base/solib-probes-nosharedlibrary.exp | 2 +-
gdb/testsuite/gdb.base/solib-search.exp | 4 ++--
gdb/testsuite/gdb.base/solib-vanish.exp | 4 ++--
gdb/testsuite/gdb.base/source-execution.exp | 2 +-
gdb/testsuite/gdb.base/source-open.exp | 2 +-
.../gdb.base/sss-bp-on-user-bp-2.exp | 2 +-
gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp | 4 ++--
gdb/testsuite/gdb.base/stale-infcall.exp | 4 ++--
gdb/testsuite/gdb.base/start-cpp.exp | 4 ++--
gdb/testsuite/gdb.base/start.exp | 4 ++--
gdb/testsuite/gdb.base/starti.exp | 4 ++--
gdb/testsuite/gdb.base/startup-with-shell.exp | 2 +-
gdb/testsuite/gdb.base/step-bt.exp | 2 +-
.../gdb.base/step-indirect-call-thunk.exp | 4 ++--
.../gdb.base/step-into-other-file.exp | 4 ++--
gdb/testsuite/gdb.base/step-line.exp | 2 +-
gdb/testsuite/gdb.base/step-over-exit.exp | 6 +++---
.../gdb.base/step-over-no-symbols.exp | 2 +-
gdb/testsuite/gdb.base/step-over-syscall.exp | 4 ++--
.../gdb.base/step-resume-infcall.exp | 6 +++---
.../gdb.base/step-sw-breakpoint-adjust-pc.exp | 2 +-
gdb/testsuite/gdb.base/step-symless.exp | 4 ++--
gdb/testsuite/gdb.base/store.exp | 2 +-
gdb/testsuite/gdb.base/structs2.exp | 2 +-
gdb/testsuite/gdb.base/structs3.exp | 4 ++--
gdb/testsuite/gdb.base/style.exp | 2 +-
gdb/testsuite/gdb.base/symbol-alias.exp | 2 +-
.../symbol-without-target_section.exp | 4 ++--
gdb/testsuite/gdb.base/symfile-warn.exp | 2 +-
gdb/testsuite/gdb.base/symlink-sourcefile.exp | 4 ++--
.../gdb.base/symtab-search-order.exp | 2 +-
gdb/testsuite/gdb.base/term.exp | 2 +-
.../gdb.base/thread-bp-multi-loc.exp | 6 +++---
gdb/testsuite/gdb.base/tls-dlobj.exp | 12 +++++------
gdb/testsuite/gdb.base/tls-multiobj.exp | 6 +++---
gdb/testsuite/gdb.base/traced-thread.exp | 2 +-
gdb/testsuite/gdb.base/ui-redirect.exp | 4 ++--
gdb/testsuite/gdb.base/until-nodebug.exp | 2 +-
.../gdb.base/until-trailing-insns.exp | 6 +++---
gdb/testsuite/gdb.base/until.exp | 2 +-
.../gdb.base/unwind-on-each-insn.exp.tcl | 2 +-
gdb/testsuite/gdb.base/unwindonsignal.exp | 2 +-
gdb/testsuite/gdb.base/utf8-identifiers.exp | 4 ++--
gdb/testsuite/gdb.base/valgrind-bt.exp | 4 ++--
gdb/testsuite/gdb.base/valgrind-disp-step.exp | 4 ++--
gdb/testsuite/gdb.base/valgrind-infcall-2.exp | 4 ++--
gdb/testsuite/gdb.base/valgrind-infcall.exp | 4 ++--
gdb/testsuite/gdb.base/value-double-free.exp | 4 ++--
.../gdb.base/value-history-unavailable.exp | 2 +-
gdb/testsuite/gdb.base/vdso-warning.exp | 2 +-
.../gdb.base/vfork-follow-parent.exp | 2 +-
gdb/testsuite/gdb.base/vla-datatypes.exp | 4 ++--
gdb/testsuite/gdb.base/vla-ptr.exp | 4 ++--
gdb/testsuite/gdb.base/vla-sideeffect.exp | 4 ++--
gdb/testsuite/gdb.base/vla-struct-fields.exp | 4 ++--
gdb/testsuite/gdb.base/vla-stub.exp | 2 +-
gdb/testsuite/gdb.base/volatile.exp | 2 +-
gdb/testsuite/gdb.base/watch-bitfields.exp | 2 +-
gdb/testsuite/gdb.base/watch-cond-infcall.exp | 2 +-
gdb/testsuite/gdb.base/watch-cond.exp | 2 +-
gdb/testsuite/gdb.base/watch-non-mem.exp | 2 +-
gdb/testsuite/gdb.base/watch-read.exp | 2 +-
gdb/testsuite/gdb.base/watch-vfork.exp | 2 +-
.../gdb.base/watchpoint-cond-gone.exp | 4 ++--
gdb/testsuite/gdb.base/watchpoint-delete.exp | 4 ++--
.../gdb.base/watchpoint-hw-attach.exp | 2 +-
.../gdb.base/watchpoint-hw-hit-once.exp | 4 ++--
gdb/testsuite/gdb.base/watchpoint-hw.exp | 4 ++--
.../gdb.base/watchpoint-reuse-slot.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint-running.exp | 2 +-
.../watchpoint-stops-at-right-insn.exp | 2 +-
.../gdb.base/watchpoint-unaligned.exp | 4 ++--
gdb/testsuite/gdb.base/watchpoints.exp | 2 +-
gdb/testsuite/gdb.base/wchar.exp | 2 +-
gdb/testsuite/gdb.base/whatis-exp.exp | 2 +-
gdb/testsuite/gdb.base/with-mf.exp | 4 ++--
gdb/testsuite/gdb.base/with.exp | 2 +-
gdb/testsuite/gdb.base/write_mem.exp | 2 +-
.../gdb.base/wrong_frame_bt_full.exp | 4 ++--
421 files changed, 648 insertions(+), 648 deletions(-)
diff --git a/gdb/testsuite/gdb.base/a2-run.exp b/gdb/testsuite/gdb.base/a2-run.exp
index c5df2cce4695..725f8fac5349 100644
--- a/gdb/testsuite/gdb.base/a2-run.exp
+++ b/gdb/testsuite/gdb.base/a2-run.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/access-mem-running.exp b/gdb/testsuite/gdb.base/access-mem-running.exp
index 7a5468d5307f..11dea64a6338 100644
--- a/gdb/testsuite/gdb.base/access-mem-running.exp
+++ b/gdb/testsuite/gdb.base/access-mem-running.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/add-symbol-file-attach.exp b/gdb/testsuite/gdb.base/add-symbol-file-attach.exp
index 44faa8dbd3cf..b76c4d588d95 100644
--- a/gdb/testsuite/gdb.base/add-symbol-file-attach.exp
+++ b/gdb/testsuite/gdb.base/add-symbol-file-attach.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp b/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp
index 85fd20ae6984..102c68bf9f53 100644
--- a/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp
+++ b/gdb/testsuite/gdb.base/advance-until-multiple-locations.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/advance.exp b/gdb/testsuite/gdb.base/advance.exp
index dda32c05c830..fe05dd3a3c37 100644
--- a/gdb/testsuite/gdb.base/advance.exp
+++ b/gdb/testsuite/gdb.base/advance.exp
@@ -18,7 +18,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/all-bin.exp b/gdb/testsuite/gdb.base/all-bin.exp
index 9c8345218d14..12b530be77d8 100644
--- a/gdb/testsuite/gdb.base/all-bin.exp
+++ b/gdb/testsuite/gdb.base/all-bin.exp
@@ -30,7 +30,7 @@
standard_testfile all-types.c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/annota-input-while-running.exp b/gdb/testsuite/gdb.base/annota-input-while-running.exp
index a1908d449605..747175f0ab5f 100644
--- a/gdb/testsuite/gdb.base/annota-input-while-running.exp
+++ b/gdb/testsuite/gdb.base/annota-input-while-running.exp
@@ -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,
diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp
index d8c8abcbf569..35eaf26103e2 100644
--- a/gdb/testsuite/gdb.base/annota1.exp
+++ b/gdb/testsuite/gdb.base/annota1.exp
@@ -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
}
#
diff --git a/gdb/testsuite/gdb.base/annota3.exp b/gdb/testsuite/gdb.base/annota3.exp
index 6824e4d70980..8a69350f1d5d 100644
--- a/gdb/testsuite/gdb.base/annota3.exp
+++ b/gdb/testsuite/gdb.base/annota3.exp
@@ -29,7 +29,7 @@ require target_can_use_run_cmd
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.base/annotate-symlink.exp b/gdb/testsuite/gdb.base/annotate-symlink.exp
index acf4b540e804..9d6f8fe3a680 100644
--- a/gdb/testsuite/gdb.base/annotate-symlink.exp
+++ b/gdb/testsuite/gdb.base/annotate-symlink.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/anon.exp b/gdb/testsuite/gdb.base/anon.exp
index 700744e6631b..6a077aa267cb 100644
--- a/gdb/testsuite/gdb.base/anon.exp
+++ b/gdb/testsuite/gdb.base/anon.exp
@@ -17,7 +17,7 @@
standard_testfile .c
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/args.exp b/gdb/testsuite/gdb.base/args.exp
index bd10c90b6cd7..d2d5a601b1ee 100644
--- a/gdb/testsuite/gdb.base/args.exp
+++ b/gdb/testsuite/gdb.base/args.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/argv0-symlink.exp b/gdb/testsuite/gdb.base/argv0-symlink.exp
index 3ddc1f7356d4..6b05bba205d6 100644
--- a/gdb/testsuite/gdb.base/argv0-symlink.exp
+++ b/gdb/testsuite/gdb.base/argv0-symlink.exp
@@ -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" {
diff --git a/gdb/testsuite/gdb.base/arithmet.exp b/gdb/testsuite/gdb.base/arithmet.exp
index 2d03a62c5306..2911d70afdb3 100644
--- a/gdb/testsuite/gdb.base/arithmet.exp
+++ b/gdb/testsuite/gdb.base/arithmet.exp
@@ -29,7 +29,7 @@
standard_testfile int-type.c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings}]} {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.base/array-indices.exp.tcl b/gdb/testsuite/gdb.base/array-indices.exp.tcl
index 8f3c0ad03d4e..82f1d2918992 100644
--- a/gdb/testsuite/gdb.base/array-indices.exp.tcl
+++ b/gdb/testsuite/gdb.base/array-indices.exp.tcl
@@ -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"
diff --git a/gdb/testsuite/gdb.base/array-repeat.exp.tcl b/gdb/testsuite/gdb.base/array-repeat.exp.tcl
index d10d441325b5..e4c19ac205c3 100644
--- a/gdb/testsuite/gdb.base/array-repeat.exp.tcl
+++ b/gdb/testsuite/gdb.base/array-repeat.exp.tcl
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/asmlabel.exp b/gdb/testsuite/gdb.base/asmlabel.exp
index 163ef2dc5c8d..15f3695d796c 100644
--- a/gdb/testsuite/gdb.base/asmlabel.exp
+++ b/gdb/testsuite/gdb.base/asmlabel.exp
@@ -34,7 +34,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/async.exp b/gdb/testsuite/gdb.base/async.exp
index c9318b9b2487..a3b40882f9b8 100644
--- a/gdb/testsuite/gdb.base/async.exp
+++ b/gdb/testsuite/gdb.base/async.exp
@@ -21,7 +21,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/attach-deleted-exec.exp b/gdb/testsuite/gdb.base/attach-deleted-exec.exp
index 7bd8db07ca49..61ee8647c9c4 100644
--- a/gdb/testsuite/gdb.base/attach-deleted-exec.exp
+++ b/gdb/testsuite/gdb.base/attach-deleted-exec.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/attach-fail-twice.exp b/gdb/testsuite/gdb.base/attach-fail-twice.exp
index 226ade56f7dc..b3a40ca9a7d6 100644
--- a/gdb/testsuite/gdb.base/attach-fail-twice.exp
+++ b/gdb/testsuite/gdb.base/attach-fail-twice.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp b/gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp
index 3a9730d99c7c..ded09db5d137 100644
--- a/gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp
+++ b/gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp
@@ -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 {} {
diff --git a/gdb/testsuite/gdb.base/attach-pie-misread.exp b/gdb/testsuite/gdb.base/attach-pie-misread.exp
index be10db7e3a1e..a8002119d962 100644
--- a/gdb/testsuite/gdb.base/attach-pie-misread.exp
+++ b/gdb/testsuite/gdb.base/attach-pie-misread.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/attach-pie-noexec.exp b/gdb/testsuite/gdb.base/attach-pie-noexec.exp
index ab613d2543ad..54a4b0bffae7 100644
--- a/gdb/testsuite/gdb.base/attach-pie-noexec.exp
+++ b/gdb/testsuite/gdb.base/attach-pie-noexec.exp
@@ -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 ""
diff --git a/gdb/testsuite/gdb.base/attach-twice.exp b/gdb/testsuite/gdb.base/attach-twice.exp
index 96292d12818a..a3677f2fad92 100644
--- a/gdb/testsuite/gdb.base/attach-twice.exp
+++ b/gdb/testsuite/gdb.base/attach-twice.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/attach-wait-input.exp b/gdb/testsuite/gdb.base/attach-wait-input.exp
index f7651abdcfd8..68979b3c9f97 100644
--- a/gdb/testsuite/gdb.base/attach-wait-input.exp
+++ b/gdb/testsuite/gdb.base/attach-wait-input.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/attach.exp b/gdb/testsuite/gdb.base/attach.exp
index bffdfd9b1aa9..9b7814b40baf 100644
--- a/gdb/testsuite/gdb.base/attach.exp
+++ b/gdb/testsuite/gdb.base/attach.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/auto-connect-native-target.exp b/gdb/testsuite/gdb.base/auto-connect-native-target.exp
index 26434396cc6a..4529d68e16c6 100644
--- a/gdb/testsuite/gdb.base/auto-connect-native-target.exp
+++ b/gdb/testsuite/gdb.base/auto-connect-native-target.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
require have_native_target
diff --git a/gdb/testsuite/gdb.base/auto-load.exp b/gdb/testsuite/gdb.base/auto-load.exp
index c890117bd951..0b974d43d6d9 100644
--- a/gdb/testsuite/gdb.base/auto-load.exp
+++ b/gdb/testsuite/gdb.base/auto-load.exp
@@ -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}"
diff --git a/gdb/testsuite/gdb.base/auxv.exp b/gdb/testsuite/gdb.base/auxv.exp
index ec0172c88bb7..79e897078e5d 100644
--- a/gdb/testsuite/gdb.base/auxv.exp
+++ b/gdb/testsuite/gdb.base/auxv.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/backtrace.exp b/gdb/testsuite/gdb.base/backtrace.exp
index 00e4681b93aa..612dd2ad6a87 100644
--- a/gdb/testsuite/gdb.base/backtrace.exp
+++ b/gdb/testsuite/gdb.base/backtrace.exp
@@ -18,7 +18,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/bang.exp b/gdb/testsuite/gdb.base/bang.exp
index d6d7adf9d8e7..8a341d95fe56 100644
--- a/gdb/testsuite/gdb.base/bang.exp
+++ b/gdb/testsuite/gdb.base/bang.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp b/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp
index 6587e71fd7ed..2aae194e1187 100644
--- a/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp
+++ b/gdb/testsuite/gdb.base/batch-preserve-term-settings.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile debug] == -1} {
- return -1
+ return
}
set file_arg $binfile
diff --git a/gdb/testsuite/gdb.base/bfd-errors.exp b/gdb/testsuite/gdb.base/bfd-errors.exp
index 93d108cc1488..d4e12f78d99e 100644
--- a/gdb/testsuite/gdb.base/bfd-errors.exp
+++ b/gdb/testsuite/gdb.base/bfd-errors.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.exp b/gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.exp
index 43ef98e16da6..44b84b3755dc 100644
--- a/gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.exp
+++ b/gdb/testsuite/gdb.base/bg-exec-sigint-bp-cond.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/bg-execution-repeat.exp b/gdb/testsuite/gdb.base/bg-execution-repeat.exp
index 7567a0fbba55..48d650c02533 100644
--- a/gdb/testsuite/gdb.base/bg-execution-repeat.exp
+++ b/gdb/testsuite/gdb.base/bg-execution-repeat.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/bitfields.exp b/gdb/testsuite/gdb.base/bitfields.exp
index 6f4ace22371a..8ec8e00393c7 100644
--- a/gdb/testsuite/gdb.base/bitfields.exp
+++ b/gdb/testsuite/gdb.base/bitfields.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/bitfields2.exp b/gdb/testsuite/gdb.base/bitfields2.exp
index 0f86a56db97b..dac6a32fc9fe 100644
--- a/gdb/testsuite/gdb.base/bitfields2.exp
+++ b/gdb/testsuite/gdb.base/bitfields2.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp b/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp
index 4163c4c32b3d..368507b2409c 100644
--- a/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp
+++ b/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp b/gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp
index 491f1e2609f6..7204a3736c09 100644
--- a/gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp
+++ b/gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp b/gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp
index 698c85c3e409..95c2811a3e03 100644
--- a/gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp
+++ b/gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp
@@ -22,7 +22,7 @@
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
set script_file $srcdir/$subdir/$testfile.gdb
diff --git a/gdb/testsuite/gdb.base/bp-cmds-sourced-script.exp b/gdb/testsuite/gdb.base/bp-cmds-sourced-script.exp
index e12016f2fc5e..2fa46d5bc093 100644
--- a/gdb/testsuite/gdb.base/bp-cmds-sourced-script.exp
+++ b/gdb/testsuite/gdb.base/bp-cmds-sourced-script.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/bp-cond-failure.exp b/gdb/testsuite/gdb.base/bp-cond-failure.exp
index bde1eab21bd8..f6ca85027e4c 100644
--- a/gdb/testsuite/gdb.base/bp-cond-failure.exp
+++ b/gdb/testsuite/gdb.base/bp-cond-failure.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/bp-permanent.exp b/gdb/testsuite/gdb.base/bp-permanent.exp
index eb716cac6b5b..dac54fadef1c 100644
--- a/gdb/testsuite/gdb.base/bp-permanent.exp
+++ b/gdb/testsuite/gdb.base/bp-permanent.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/branch-to-self.exp b/gdb/testsuite/gdb.base/branch-to-self.exp
index 03758ebb9427..ffd15780d724 100644
--- a/gdb/testsuite/gdb.base/branch-to-self.exp
+++ b/gdb/testsuite/gdb.base/branch-to-self.exp
@@ -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" {
diff --git a/gdb/testsuite/gdb.base/break-always.exp b/gdb/testsuite/gdb.base/break-always.exp
index 050eac05942a..f2eb1a3ba8b9 100644
--- a/gdb/testsuite/gdb.base/break-always.exp
+++ b/gdb/testsuite/gdb.base/break-always.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/break-caller-line.exp b/gdb/testsuite/gdb.base/break-caller-line.exp
index 0bdda52caab8..7fdef95cc607 100644
--- a/gdb/testsuite/gdb.base/break-caller-line.exp
+++ b/gdb/testsuite/gdb.base/break-caller-line.exp
@@ -16,7 +16,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile}] } {
- return -1
+ return
}
if {![runto callee]} {
diff --git a/gdb/testsuite/gdb.base/break-entry.exp b/gdb/testsuite/gdb.base/break-entry.exp
index 2b51c822c0c4..2629d99c7ef0 100644
--- a/gdb/testsuite/gdb.base/break-entry.exp
+++ b/gdb/testsuite/gdb.base/break-entry.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/break-include.exp b/gdb/testsuite/gdb.base/break-include.exp
index d9b0a6b64413..5a66dbf1fced 100644
--- a/gdb/testsuite/gdb.base/break-include.exp
+++ b/gdb/testsuite/gdb.base/break-include.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/break-inline.exp b/gdb/testsuite/gdb.base/break-inline.exp
index 99f55f64f837..057dd3b03b91 100644
--- a/gdb/testsuite/gdb.base/break-inline.exp
+++ b/gdb/testsuite/gdb.base/break-inline.exp
@@ -15,7 +15,7 @@
if { [prepare_for_testing "failed to prepare" "break-inline" {} {debug nowarnings optimize=-O2}] } {
- return -1
+ return
}
gdb_breakpoint "main" "temporary"
diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp
index 2b9a66d9aa1c..527eece5d867 100644
--- a/gdb/testsuite/gdb.base/break-interp.exp
+++ b/gdb/testsuite/gdb.base/break-interp.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/break-main-file-remove-fail.exp b/gdb/testsuite/gdb.base/break-main-file-remove-fail.exp
index face6205da77..b0a22962bba8 100644
--- a/gdb/testsuite/gdb.base/break-main-file-remove-fail.exp
+++ b/gdb/testsuite/gdb.base/break-main-file-remove-fail.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp b/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp
index 780b226a3731..f430c51f946e 100644
--- a/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp
+++ b/gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/break-probes.exp b/gdb/testsuite/gdb.base/break-probes.exp
index 81ceb99d9836..12a3c55b081f 100644
--- a/gdb/testsuite/gdb.base/break-probes.exp
+++ b/gdb/testsuite/gdb.base/break-probes.exp
@@ -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 ""
diff --git a/gdb/testsuite/gdb.base/break-unload-file.exp b/gdb/testsuite/gdb.base/break-unload-file.exp
index 63e0c9462a15..1b7e8b0a5b01 100644
--- a/gdb/testsuite/gdb.base/break-unload-file.exp
+++ b/gdb/testsuite/gdb.base/break-unload-file.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp
index d5f92e469ac9..2f5fa3d8e59a 100644
--- a/gdb/testsuite/gdb.base/break.exp
+++ b/gdb/testsuite/gdb.base/break.exp
@@ -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 {} {
diff --git a/gdb/testsuite/gdb.base/breakpoint-in-ro-region.exp b/gdb/testsuite/gdb.base/breakpoint-in-ro-region.exp
index 2ab0354ee8c2..b7ae91155d4b 100644
--- a/gdb/testsuite/gdb.base/breakpoint-in-ro-region.exp
+++ b/gdb/testsuite/gdb.base/breakpoint-in-ro-region.exp
@@ -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'.
diff --git a/gdb/testsuite/gdb.base/breakpoint-shadow.exp b/gdb/testsuite/gdb.base/breakpoint-shadow.exp
index 9d270e8b148f..1be637848eb5 100644
--- a/gdb/testsuite/gdb.base/breakpoint-shadow.exp
+++ b/gdb/testsuite/gdb.base/breakpoint-shadow.exp
@@ -16,12 +16,12 @@
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
diff --git a/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp b/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp
index a710b9c5908a..a9a1db344d21 100644
--- a/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp
+++ b/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp
@@ -20,13 +20,13 @@
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
diff --git a/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp b/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
index ae9463f2369c..9bf5f09c566f 100644
--- a/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
+++ b/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/bt-selected-frame.exp b/gdb/testsuite/gdb.base/bt-selected-frame.exp
index f6c34b1a1815..0bd1024e9874 100644
--- a/gdb/testsuite/gdb.base/bt-selected-frame.exp
+++ b/gdb/testsuite/gdb.base/bt-selected-frame.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/build-id-seqno.exp b/gdb/testsuite/gdb.base/build-id-seqno.exp
index 907c4b74cafc..68ac4208f1d8 100644
--- a/gdb/testsuite/gdb.base/build-id-seqno.exp
+++ b/gdb/testsuite/gdb.base/build-id-seqno.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/c-linkage-name.exp b/gdb/testsuite/gdb.base/c-linkage-name.exp
index f0c0f6e87ecb..70115709e3dd 100644
--- a/gdb/testsuite/gdb.base/c-linkage-name.exp
+++ b/gdb/testsuite/gdb.base/c-linkage-name.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/cached-source-file.exp b/gdb/testsuite/gdb.base/cached-source-file.exp
index 19b62a4a3760..ec523b298305 100644
--- a/gdb/testsuite/gdb.base/cached-source-file.exp
+++ b/gdb/testsuite/gdb.base/cached-source-file.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/call-ar-st.exp b/gdb/testsuite/gdb.base/call-ar-st.exp
index 9337c2433c9b..0f8d65d2eaa4 100644
--- a/gdb/testsuite/gdb.base/call-ar-st.exp
+++ b/gdb/testsuite/gdb.base/call-ar-st.exp
@@ -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
}
diff --git a/gdb/testsuite/gdb.base/call-strs.exp b/gdb/testsuite/gdb.base/call-strs.exp
index dff0e95be11d..d9d011ed8113 100644
--- a/gdb/testsuite/gdb.base/call-strs.exp
+++ b/gdb/testsuite/gdb.base/call-strs.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/cast-call.exp b/gdb/testsuite/gdb.base/cast-call.exp
index de2f77da19cf..9f6d526f6a0c 100644
--- a/gdb/testsuite/gdb.base/cast-call.exp
+++ b/gdb/testsuite/gdb.base/cast-call.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/cast-indirection.exp b/gdb/testsuite/gdb.base/cast-indirection.exp
index c446a54021bc..193c02a66253 100644
--- a/gdb/testsuite/gdb.base/cast-indirection.exp
+++ b/gdb/testsuite/gdb.base/cast-indirection.exp
@@ -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 ()" \
diff --git a/gdb/testsuite/gdb.base/catch-fork-static.exp b/gdb/testsuite/gdb.base/catch-fork-static.exp
index cad0cf885328..1b4a6b860080 100644
--- a/gdb/testsuite/gdb.base/catch-fork-static.exp
+++ b/gdb/testsuite/gdb.base/catch-fork-static.exp
@@ -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\\)"
diff --git a/gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp b/gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp
index 1fa567ad3ca7..21f0e9bc98cc 100644
--- a/gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp
+++ b/gdb/testsuite/gdb.base/catch-gdb-caused-signals.exp
@@ -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" \
diff --git a/gdb/testsuite/gdb.base/catch-load.exp b/gdb/testsuite/gdb.base/catch-load.exp
index dbf45941f5e7..eac42ba9f0af 100644
--- a/gdb/testsuite/gdb.base/catch-load.exp
+++ b/gdb/testsuite/gdb.base/catch-load.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/catch-signal-fork.exp b/gdb/testsuite/gdb.base/catch-signal-fork.exp
index 2ed6929848d4..fd872ecb3186 100644
--- a/gdb/testsuite/gdb.base/catch-signal-fork.exp
+++ b/gdb/testsuite/gdb.base/catch-signal-fork.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp b/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
index 0cca484dd574..dc0e77076df0 100644
--- a/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
+++ b/gdb/testsuite/gdb.base/catch-signal-siginfo-cond.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/catch-signal.exp b/gdb/testsuite/gdb.base/catch-signal.exp
index 7b46d8bbe387..6da1b6aeda79 100644
--- a/gdb/testsuite/gdb.base/catch-signal.exp
+++ b/gdb/testsuite/gdb.base/catch-signal.exp
@@ -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} {
diff --git a/gdb/testsuite/gdb.base/catch-syscall.exp b/gdb/testsuite/gdb.base/catch-syscall.exp
index 31a42e33b5ff..673fca4a9984 100644
--- a/gdb/testsuite/gdb.base/catch-syscall.exp
+++ b/gdb/testsuite/gdb.base/catch-syscall.exp
@@ -795,7 +795,7 @@ proc setup_all_syscalls {} {
}
if { ![setup_all_syscalls] } {
- return -1
+ return
}
# Fill all the syscalls numbers before starting anything.
diff --git a/gdb/testsuite/gdb.base/charset.exp b/gdb/testsuite/gdb.base/charset.exp
index f7ee7a76bb7b..13e874ec9553 100644
--- a/gdb/testsuite/gdb.base/charset.exp
+++ b/gdb/testsuite/gdb.base/charset.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/commands.exp b/gdb/testsuite/gdb.base/commands.exp
index b8b44d8f874f..c64c5fa31356 100644
--- a/gdb/testsuite/gdb.base/commands.exp
+++ b/gdb/testsuite/gdb.base/commands.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/compare-sections.exp b/gdb/testsuite/gdb.base/compare-sections.exp
index 56f0b2a6ca80..f647cc5a8491 100644
--- a/gdb/testsuite/gdb.base/compare-sections.exp
+++ b/gdb/testsuite/gdb.base/compare-sections.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/complete-empty.exp b/gdb/testsuite/gdb.base/complete-empty.exp
index 7a77224857cb..295f44591ad9 100644
--- a/gdb/testsuite/gdb.base/complete-empty.exp
+++ b/gdb/testsuite/gdb.base/complete-empty.exp
@@ -25,7 +25,7 @@ gdb_start
if { ![readline_is_used] } {
untested "no tab completion support without readline"
- return -1
+ return
}
# Start of tests.
diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp
index 4469f0dbbc35..e7407e75ee09 100644
--- a/gdb/testsuite/gdb.base/completion.exp
+++ b/gdb/testsuite/gdb.base/completion.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/complex-parts.exp b/gdb/testsuite/gdb.base/complex-parts.exp
index c010ffee1ca1..56260996bdb6 100644
--- a/gdb/testsuite/gdb.base/complex-parts.exp
+++ b/gdb/testsuite/gdb.base/complex-parts.exp
@@ -16,7 +16,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/complex.exp b/gdb/testsuite/gdb.base/complex.exp
index c4be874e3767..0d7a83fb667e 100644
--- a/gdb/testsuite/gdb.base/complex.exp
+++ b/gdb/testsuite/gdb.base/complex.exp
@@ -17,7 +17,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {[runto f2]} {
diff --git a/gdb/testsuite/gdb.base/cond-eval-mode.exp b/gdb/testsuite/gdb.base/cond-eval-mode.exp
index b963ae45a750..e2afc3a95939 100644
--- a/gdb/testsuite/gdb.base/cond-eval-mode.exp
+++ b/gdb/testsuite/gdb.base/cond-eval-mode.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/condbreak-call-false.exp b/gdb/testsuite/gdb.base/condbreak-call-false.exp
index 767d6d181e7c..32113e3b9501 100644
--- a/gdb/testsuite/gdb.base/condbreak-call-false.exp
+++ b/gdb/testsuite/gdb.base/condbreak-call-false.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/condbreak.exp b/gdb/testsuite/gdb.base/condbreak.exp
index ed76c261dbe5..6a6c9c1d4f8d 100644
--- a/gdb/testsuite/gdb.base/condbreak.exp
+++ b/gdb/testsuite/gdb.base/condbreak.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/consecutive-step-over.exp b/gdb/testsuite/gdb.base/consecutive-step-over.exp
index 9a10f19c0400..d7efec8f418d 100644
--- a/gdb/testsuite/gdb.base/consecutive-step-over.exp
+++ b/gdb/testsuite/gdb.base/consecutive-step-over.exp
@@ -21,7 +21,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/consecutive.exp b/gdb/testsuite/gdb.base/consecutive.exp
index 71d207c95bf3..4c657a8f897c 100644
--- a/gdb/testsuite/gdb.base/consecutive.exp
+++ b/gdb/testsuite/gdb.base/consecutive.exp
@@ -23,7 +23,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp b/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp
index 488677413862..1285c4f14158 100644
--- a/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp
+++ b/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/coredump-filter-build-id.exp b/gdb/testsuite/gdb.base/coredump-filter-build-id.exp
index 1eba93c0f6ad..d267221e1bfe 100644
--- a/gdb/testsuite/gdb.base/coredump-filter-build-id.exp
+++ b/gdb/testsuite/gdb.base/coredump-filter-build-id.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/coredump-filter.exp b/gdb/testsuite/gdb.base/coredump-filter.exp
index e2ce86d48e8a..6bf26f1643ab 100644
--- a/gdb/testsuite/gdb.base/coredump-filter.exp
+++ b/gdb/testsuite/gdb.base/coredump-filter.exp
@@ -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" {
diff --git a/gdb/testsuite/gdb.base/corefile-exec-context.exp b/gdb/testsuite/gdb.base/corefile-exec-context.exp
index 17d7e23f333a..bf935a795e7d 100644
--- a/gdb/testsuite/gdb.base/corefile-exec-context.exp
+++ b/gdb/testsuite/gdb.base/corefile-exec-context.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/corefile-find-exec.exp b/gdb/testsuite/gdb.base/corefile-find-exec.exp
index d766aa69f1bc..7d79b70c41b7 100644
--- a/gdb/testsuite/gdb.base/corefile-find-exec.exp
+++ b/gdb/testsuite/gdb.base/corefile-find-exec.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/corefile.exp b/gdb/testsuite/gdb.base/corefile.exp
index f6a0a7a1ecad..31249355353f 100644
--- a/gdb/testsuite/gdb.base/corefile.exp
+++ b/gdb/testsuite/gdb.base/corefile.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/corefile2.exp b/gdb/testsuite/gdb.base/corefile2.exp
index 4ad218b34627..805e08973f6b 100644
--- a/gdb/testsuite/gdb.base/corefile2.exp
+++ b/gdb/testsuite/gdb.base/corefile2.exp
@@ -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 {}]
diff --git a/gdb/testsuite/gdb.base/ctf-ptype.exp b/gdb/testsuite/gdb.base/ctf-ptype.exp
index e6bae63562b5..d3c3b46140c5 100644
--- a/gdb/testsuite/gdb.base/ctf-ptype.exp
+++ b/gdb/testsuite/gdb.base/ctf-ptype.exp
@@ -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" \
diff --git a/gdb/testsuite/gdb.base/ctxobj.exp b/gdb/testsuite/gdb.base/ctxobj.exp
index 567c4292aafb..3b1b12a9b186 100644
--- a/gdb/testsuite/gdb.base/ctxobj.exp
+++ b/gdb/testsuite/gdb.base/ctxobj.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/cursal.exp b/gdb/testsuite/gdb.base/cursal.exp
index 1385a30632b6..a52ec3f844e7 100644
--- a/gdb/testsuite/gdb.base/cursal.exp
+++ b/gdb/testsuite/gdb.base/cursal.exp
@@ -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 \\(\\);" \
diff --git a/gdb/testsuite/gdb.base/dcache-flush.exp b/gdb/testsuite/gdb.base/dcache-flush.exp
index 7ed60e3e913a..df05ab554b66 100644
--- a/gdb/testsuite/gdb.base/dcache-flush.exp
+++ b/gdb/testsuite/gdb.base/dcache-flush.exp
@@ -18,11 +18,11 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile}] } {
- return -1
+ return
}
if {![runto func]} {
- return -1
+ return
}
gdb_test "up" ".* main .*"
diff --git a/gdb/testsuite/gdb.base/dcache-line-read-error.exp b/gdb/testsuite/gdb.base/dcache-line-read-error.exp
index 207724af756e..98095c188663 100644
--- a/gdb/testsuite/gdb.base/dcache-line-read-error.exp
+++ b/gdb/testsuite/gdb.base/dcache-line-read-error.exp
@@ -18,11 +18,11 @@
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
diff --git a/gdb/testsuite/gdb.base/debug-expr.exp b/gdb/testsuite/gdb.base/debug-expr.exp
index 80f6d5a968b1..b9377541847e 100644
--- a/gdb/testsuite/gdb.base/debug-expr.exp
+++ b/gdb/testsuite/gdb.base/debug-expr.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/debug-frame.exp b/gdb/testsuite/gdb.base/debug-frame.exp
index 1f5f015f5ddb..2038fa992d23 100644
--- a/gdb/testsuite/gdb.base/debug-frame.exp
+++ b/gdb/testsuite/gdb.base/debug-frame.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/decl-before-def.exp b/gdb/testsuite/gdb.base/decl-before-def.exp
index 2c4de8f42f9f..66083d2aa710 100644
--- a/gdb/testsuite/gdb.base/decl-before-def.exp
+++ b/gdb/testsuite/gdb.base/decl-before-def.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/default-args.exp b/gdb/testsuite/gdb.base/default-args.exp
index edd3bea3c33b..3046aaf7c5f8 100644
--- a/gdb/testsuite/gdb.base/default-args.exp
+++ b/gdb/testsuite/gdb.base/default-args.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/define.exp b/gdb/testsuite/gdb.base/define.exp
index 33aee1d46cf0..e0e440e455c6 100644
--- a/gdb/testsuite/gdb.base/define.exp
+++ b/gdb/testsuite/gdb.base/define.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/del.exp b/gdb/testsuite/gdb.base/del.exp
index ea3c639e0dda..a34dba5845ea 100644
--- a/gdb/testsuite/gdb.base/del.exp
+++ b/gdb/testsuite/gdb.base/del.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/disabled-location.exp b/gdb/testsuite/gdb.base/disabled-location.exp
index 300f73cd0c7d..17e8987ded18 100644
--- a/gdb/testsuite/gdb.base/disabled-location.exp
+++ b/gdb/testsuite/gdb.base/disabled-location.exp
@@ -16,7 +16,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/disasm-end-cu.exp b/gdb/testsuite/gdb.base/disasm-end-cu.exp
index dc0dc25882aa..66cd2f92d871 100644
--- a/gdb/testsuite/gdb.base/disasm-end-cu.exp
+++ b/gdb/testsuite/gdb.base/disasm-end-cu.exp
@@ -18,11 +18,11 @@
# 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" {
diff --git a/gdb/testsuite/gdb.base/disasm-optim.exp b/gdb/testsuite/gdb.base/disasm-optim.exp
index 70841ac2723d..c926a0200759 100644
--- a/gdb/testsuite/gdb.base/disasm-optim.exp
+++ b/gdb/testsuite/gdb.base/disasm-optim.exp
@@ -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" \
diff --git a/gdb/testsuite/gdb.base/displaced-step-closure.exp b/gdb/testsuite/gdb.base/displaced-step-closure.exp
index 358020fed85f..6d0521d3141a 100644
--- a/gdb/testsuite/gdb.base/displaced-step-closure.exp
+++ b/gdb/testsuite/gdb.base/displaced-step-closure.exp
@@ -21,11 +21,11 @@
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
diff --git a/gdb/testsuite/gdb.base/display.exp b/gdb/testsuite/gdb.base/display.exp
index 1eae678111b5..3acc512de0e0 100644
--- a/gdb/testsuite/gdb.base/display.exp
+++ b/gdb/testsuite/gdb.base/display.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/dmsym.exp b/gdb/testsuite/gdb.base/dmsym.exp
index 89e38a29d453..3820b13bfdc7 100644
--- a/gdb/testsuite/gdb.base/dmsym.exp
+++ b/gdb/testsuite/gdb.base/dmsym.exp
@@ -35,7 +35,7 @@ if {[gdb_compile \
[standard_output_file ${testfile}] \
executable {debug}] != ""} {
untested "failed to compile"
- return -1
+ return
}
clean_restart ${testfile}
diff --git a/gdb/testsuite/gdb.base/document.exp b/gdb/testsuite/gdb.base/document.exp
index a7d685e5f35f..905ce59af97b 100644
--- a/gdb/testsuite/gdb.base/document.exp
+++ b/gdb/testsuite/gdb.base/document.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp b/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
index 6fc9ec99ebcb..b2cc3ddb144c 100644
--- a/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
+++ b/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/dprintf-detach.exp b/gdb/testsuite/gdb.base/dprintf-detach.exp
index 4aad0158291b..dd9bfde8f47c 100644
--- a/gdb/testsuite/gdb.base/dprintf-detach.exp
+++ b/gdb/testsuite/gdb.base/dprintf-detach.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp b/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp
index 3f149381f4f5..5263d15a83de 100644
--- a/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp
+++ b/gdb/testsuite/gdb.base/dprintf-execution-x-script.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/dprintf-next.exp b/gdb/testsuite/gdb.base/dprintf-next.exp
index 6ddf949c531d..325478fb4717 100644
--- a/gdb/testsuite/gdb.base/dprintf-next.exp
+++ b/gdb/testsuite/gdb.base/dprintf-next.exp
@@ -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" \
diff --git a/gdb/testsuite/gdb.base/dprintf-non-stop.exp b/gdb/testsuite/gdb.base/dprintf-non-stop.exp
index 3807a7b6623f..89b1c894c04b 100644
--- a/gdb/testsuite/gdb.base/dprintf-non-stop.exp
+++ b/gdb/testsuite/gdb.base/dprintf-non-stop.exp
@@ -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 .*"
diff --git a/gdb/testsuite/gdb.base/dprintf-pending.exp b/gdb/testsuite/gdb.base/dprintf-pending.exp
index ec101f2bdc77..5b13cfda595a 100644
--- a/gdb/testsuite/gdb.base/dprintf-pending.exp
+++ b/gdb/testsuite/gdb.base/dprintf-pending.exp
@@ -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" {
diff --git a/gdb/testsuite/gdb.base/dprintf.exp b/gdb/testsuite/gdb.base/dprintf.exp
index ef1f09443c1e..9896f2c19246 100644
--- a/gdb/testsuite/gdb.base/dprintf.exp
+++ b/gdb/testsuite/gdb.base/dprintf.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp
index 84be9df6d6ef..798cca9a6b0a 100644
--- a/gdb/testsuite/gdb.base/dump.exp
+++ b/gdb/testsuite/gdb.base/dump.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/dup-sect.exp b/gdb/testsuite/gdb.base/dup-sect.exp
index a2c74f51a6cd..ef9ba340ae24 100644
--- a/gdb/testsuite/gdb.base/dup-sect.exp
+++ b/gdb/testsuite/gdb.base/dup-sect.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/duplicate-bp.exp b/gdb/testsuite/gdb.base/duplicate-bp.exp
index 959eb7697d93..5fd96928e2e9 100644
--- a/gdb/testsuite/gdb.base/duplicate-bp.exp
+++ b/gdb/testsuite/gdb.base/duplicate-bp.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/early-init-file.exp b/gdb/testsuite/gdb.base/early-init-file.exp
index b609e2c19920..cbbfefa6912f 100644
--- a/gdb/testsuite/gdb.base/early-init-file.exp
+++ b/gdb/testsuite/gdb.base/early-init-file.exp
@@ -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 \
diff --git a/gdb/testsuite/gdb.base/eh_return.exp b/gdb/testsuite/gdb.base/eh_return.exp
index 55cca9362d38..c6f1d7375c58 100644
--- a/gdb/testsuite/gdb.base/eh_return.exp
+++ b/gdb/testsuite/gdb.base/eh_return.exp
@@ -54,7 +54,7 @@ if {[istarget "powerpc*"]} {
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
$compile_flags]} {
- return -1
+ return
}
set address -1
diff --git a/gdb/testsuite/gdb.base/ena-dis-br.exp b/gdb/testsuite/gdb.base/ena-dis-br.exp
index bdf54d083f08..5f208644a366 100644
--- a/gdb/testsuite/gdb.base/ena-dis-br.exp
+++ b/gdb/testsuite/gdb.base/ena-dis-br.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/endianity.exp b/gdb/testsuite/gdb.base/endianity.exp
index 661a83d5e543..0da319a824cd 100644
--- a/gdb/testsuite/gdb.base/endianity.exp
+++ b/gdb/testsuite/gdb.base/endianity.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp
index 4dac31eb0596..c8d3672cd87d 100644
--- a/gdb/testsuite/gdb.base/ending-run.exp
+++ b/gdb/testsuite/gdb.base/ending-run.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/enum_cond.exp b/gdb/testsuite/gdb.base/enum_cond.exp
index 9d660fe05576..0421ea37d8f7 100644
--- a/gdb/testsuite/gdb.base/enum_cond.exp
+++ b/gdb/testsuite/gdb.base/enum_cond.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/enumval.exp b/gdb/testsuite/gdb.base/enumval.exp
index aab68ba07304..6942d0265b5b 100644
--- a/gdb/testsuite/gdb.base/enumval.exp
+++ b/gdb/testsuite/gdb.base/enumval.exp
@@ -18,7 +18,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Check the real contents.
diff --git a/gdb/testsuite/gdb.base/eu-strip-infcall.exp b/gdb/testsuite/gdb.base/eu-strip-infcall.exp
index be1793305dcc..73df0e5650bb 100644
--- a/gdb/testsuite/gdb.base/eu-strip-infcall.exp
+++ b/gdb/testsuite/gdb.base/eu-strip-infcall.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/eval-avoid-side-effects.exp b/gdb/testsuite/gdb.base/eval-avoid-side-effects.exp
index ce0e1cfa8738..1a6d76cad8d2 100644
--- a/gdb/testsuite/gdb.base/eval-avoid-side-effects.exp
+++ b/gdb/testsuite/gdb.base/eval-avoid-side-effects.exp
@@ -19,11 +19,11 @@
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]
diff --git a/gdb/testsuite/gdb.base/examine-backward.exp b/gdb/testsuite/gdb.base/examine-backward.exp
index 76a904ad7a47..9f986374ebc8 100644
--- a/gdb/testsuite/gdb.base/examine-backward.exp
+++ b/gdb/testsuite/gdb.base/examine-backward.exp
@@ -19,11 +19,11 @@
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 {} {
diff --git a/gdb/testsuite/gdb.base/exe-lock.exp b/gdb/testsuite/gdb.base/exe-lock.exp
index d6ad59172f3e..c4c6585cf7f8 100644
--- a/gdb/testsuite/gdb.base/exe-lock.exp
+++ b/gdb/testsuite/gdb.base/exe-lock.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/execl-update-breakpoints.exp b/gdb/testsuite/gdb.base/execl-update-breakpoints.exp
index 5f96b7039978..98d38c9ccefa 100644
--- a/gdb/testsuite/gdb.base/execl-update-breakpoints.exp
+++ b/gdb/testsuite/gdb.base/execl-update-breakpoints.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/execution-termios.exp b/gdb/testsuite/gdb.base/execution-termios.exp
index f82b62afc985..c448b1e29139 100644
--- a/gdb/testsuite/gdb.base/execution-termios.exp
+++ b/gdb/testsuite/gdb.base/execution-termios.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/exitsignal.exp b/gdb/testsuite/gdb.base/exitsignal.exp
index 7bbf82db79c4..aa2710450b50 100644
--- a/gdb/testsuite/gdb.base/exitsignal.exp
+++ b/gdb/testsuite/gdb.base/exitsignal.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/expand-psymtabs.exp b/gdb/testsuite/gdb.base/expand-psymtabs.exp
index cd29d1098f4b..fb670204dcb1 100644
--- a/gdb/testsuite/gdb.base/expand-psymtabs.exp
+++ b/gdb/testsuite/gdb.base/expand-psymtabs.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp
index d33c8224a10f..b68645e8bb64 100644
--- a/gdb/testsuite/gdb.base/fileio.exp
+++ b/gdb/testsuite/gdb.base/fileio.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/filesym.exp b/gdb/testsuite/gdb.base/filesym.exp
index 50018b6ae5a5..0ec92c2686d5 100644
--- a/gdb/testsuite/gdb.base/filesym.exp
+++ b/gdb/testsuite/gdb.base/filesym.exp
@@ -19,12 +19,12 @@
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
}
diff --git a/gdb/testsuite/gdb.base/find-unmapped.exp b/gdb/testsuite/gdb.base/find-unmapped.exp
index 3e67b4dd83e1..5c75db1680af 100644
--- a/gdb/testsuite/gdb.base/find-unmapped.exp
+++ b/gdb/testsuite/gdb.base/find-unmapped.exp
@@ -16,11 +16,11 @@
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.
diff --git a/gdb/testsuite/gdb.base/finish-pretty.exp b/gdb/testsuite/gdb.base/finish-pretty.exp
index ee87380a6706..6b79add3a204 100644
--- a/gdb/testsuite/gdb.base/finish-pretty.exp
+++ b/gdb/testsuite/gdb.base/finish-pretty.exp
@@ -25,7 +25,7 @@ if { [have_fvar_tracking] } {
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
- return -1
+ return
}
proc finish_pretty { } {
diff --git a/gdb/testsuite/gdb.base/finish.exp b/gdb/testsuite/gdb.base/finish.exp
index f15106f1fd0f..973f4cf3f742 100644
--- a/gdb/testsuite/gdb.base/finish.exp
+++ b/gdb/testsuite/gdb.base/finish.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp
index 87e522c0983a..5777cbc3a310 100644
--- a/gdb/testsuite/gdb.base/float.exp
+++ b/gdb/testsuite/gdb.base/float.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/float128.exp b/gdb/testsuite/gdb.base/float128.exp
index a02ae20f29c2..37aa51364161 100644
--- a/gdb/testsuite/gdb.base/float128.exp
+++ b/gdb/testsuite/gdb.base/float128.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/floatn.exp b/gdb/testsuite/gdb.base/floatn.exp
index d086fcb9185b..8f6d4f03bafc 100644
--- a/gdb/testsuite/gdb.base/floatn.exp
+++ b/gdb/testsuite/gdb.base/floatn.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/foll-fork-syscall.exp b/gdb/testsuite/gdb.base/foll-fork-syscall.exp
index 580a130bc520..0452d403c62a 100644
--- a/gdb/testsuite/gdb.base/foll-fork-syscall.exp
+++ b/gdb/testsuite/gdb.base/foll-fork-syscall.exp
@@ -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 {} {
diff --git a/gdb/testsuite/gdb.base/foll-fork.exp b/gdb/testsuite/gdb.base/foll-fork.exp
index 671bcf385431..0cd16001c336 100644
--- a/gdb/testsuite/gdb.base/foll-fork.exp
+++ b/gdb/testsuite/gdb.base/foll-fork.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp
index 1a387772c4cc..d58b64095f7c 100644
--- a/gdb/testsuite/gdb.base/foll-vfork.exp
+++ b/gdb/testsuite/gdb.base/foll-vfork.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/fork-print-inferior-events.exp b/gdb/testsuite/gdb.base/fork-print-inferior-events.exp
index 1bb5d70d714f..27b71e7e9772 100644
--- a/gdb/testsuite/gdb.base/fork-print-inferior-events.exp
+++ b/gdb/testsuite/gdb.base/fork-print-inferior-events.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/fortran-sym-case.exp b/gdb/testsuite/gdb.base/fortran-sym-case.exp
index 403ea46d75e2..2ebb358c82d5 100644
--- a/gdb/testsuite/gdb.base/fortran-sym-case.exp
+++ b/gdb/testsuite/gdb.base/fortran-sym-case.exp
@@ -16,11 +16,11 @@
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\.}
diff --git a/gdb/testsuite/gdb.base/frame-info-consistent.exp b/gdb/testsuite/gdb.base/frame-info-consistent.exp
index 5ad825c33e2b..f1ab8b0cc550 100644
--- a/gdb/testsuite/gdb.base/frame-info-consistent.exp
+++ b/gdb/testsuite/gdb.base/frame-info-consistent.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/frame-selection.exp b/gdb/testsuite/gdb.base/frame-selection.exp
index a7e99a4dffd8..b3fb5e13d251 100644
--- a/gdb/testsuite/gdb.base/frame-selection.exp
+++ b/gdb/testsuite/gdb.base/frame-selection.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug}]} {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.base/frame-unwind-disable.exp b/gdb/testsuite/gdb.base/frame-unwind-disable.exp
index e483b9e9904a..3d6e098abfdd 100644
--- a/gdb/testsuite/gdb.base/frame-unwind-disable.exp
+++ b/gdb/testsuite/gdb.base/frame-unwind-disable.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/frameapply.exp b/gdb/testsuite/gdb.base/frameapply.exp
index 73650052ad9e..7525ba5085c5 100644
--- a/gdb/testsuite/gdb.base/frameapply.exp
+++ b/gdb/testsuite/gdb.base/frameapply.exp
@@ -21,7 +21,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile}] } {
- return -1
+ return
}
if {![runto setup_done]} {
diff --git a/gdb/testsuite/gdb.base/freebpcmd.exp b/gdb/testsuite/gdb.base/freebpcmd.exp
index 0c545b671678..8fe8dab13e95 100644
--- a/gdb/testsuite/gdb.base/freebpcmd.exp
+++ b/gdb/testsuite/gdb.base/freebpcmd.exp
@@ -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"]" ".*" \
diff --git a/gdb/testsuite/gdb.base/fullname.exp b/gdb/testsuite/gdb.base/fullname.exp
index 8572eeaf5ab1..7f46cb56d858 100644
--- a/gdb/testsuite/gdb.base/fullname.exp
+++ b/gdb/testsuite/gdb.base/fullname.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/fullpath-expand.exp b/gdb/testsuite/gdb.base/fullpath-expand.exp
index a470c1e2e978..053eb9b59f0a 100644
--- a/gdb/testsuite/gdb.base/fullpath-expand.exp
+++ b/gdb/testsuite/gdb.base/fullpath-expand.exp
@@ -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}
diff --git a/gdb/testsuite/gdb.base/func-ptr.exp b/gdb/testsuite/gdb.base/func-ptr.exp
index 8cc148ded9d3..0f656d127807 100644
--- a/gdb/testsuite/gdb.base/func-ptr.exp
+++ b/gdb/testsuite/gdb.base/func-ptr.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/func-ptrs.exp b/gdb/testsuite/gdb.base/func-ptrs.exp
index 66c3daac7a91..a36bc2559c04 100644
--- a/gdb/testsuite/gdb.base/func-ptrs.exp
+++ b/gdb/testsuite/gdb.base/func-ptrs.exp
@@ -16,11 +16,11 @@
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
}
diff --git a/gdb/testsuite/gdb.base/funcargs.exp b/gdb/testsuite/gdb.base/funcargs.exp
index 4a2d96e1b3e4..fdfdf07b78c6 100644
--- a/gdb/testsuite/gdb.base/funcargs.exp
+++ b/gdb/testsuite/gdb.base/funcargs.exp
@@ -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
}
#
diff --git a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp
index 3dcc4f00d0a6..ad9bd89226df 100644
--- a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp
+++ b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp
@@ -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] \
diff --git a/gdb/testsuite/gdb.base/gcore-memory-usage.exp b/gdb/testsuite/gdb.base/gcore-memory-usage.exp
index fc57d1604e29..e9a0f2a69e4b 100644
--- a/gdb/testsuite/gdb.base/gcore-memory-usage.exp
+++ b/gdb/testsuite/gdb.base/gcore-memory-usage.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/gcore-relro-pie.exp b/gdb/testsuite/gdb.base/gcore-relro-pie.exp
index 5730f89eadf6..85abc100dff6 100644
--- a/gdb/testsuite/gdb.base/gcore-relro-pie.exp
+++ b/gdb/testsuite/gdb.base/gcore-relro-pie.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/gcore-tls-pie.exp b/gdb/testsuite/gdb.base/gcore-tls-pie.exp
index fa3cda88c3f4..8306142cc807 100644
--- a/gdb/testsuite/gdb.base/gcore-tls-pie.exp
+++ b/gdb/testsuite/gdb.base/gcore-tls-pie.exp
@@ -20,12 +20,12 @@
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.
diff --git a/gdb/testsuite/gdb.base/gcore.exp b/gdb/testsuite/gdb.base/gcore.exp
index fa30f50a63c6..aa887b0da14d 100644
--- a/gdb/testsuite/gdb.base/gcore.exp
+++ b/gdb/testsuite/gdb.base/gcore.exp
@@ -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 .*" \
diff --git a/gdb/testsuite/gdb.base/gdb-index-err.exp b/gdb/testsuite/gdb.base/gdb-index-err.exp
index 6fcc8b6526de..4e6f15d5d9f1 100644
--- a/gdb/testsuite/gdb.base/gdb-index-err.exp
+++ b/gdb/testsuite/gdb.base/gdb-index-err.exp
@@ -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
}
diff --git a/gdb/testsuite/gdb.base/gdb-sigterm.exp b/gdb/testsuite/gdb.base/gdb-sigterm.exp
index ca3622d3462b..7c5b43de0855 100644
--- a/gdb/testsuite/gdb.base/gdb-sigterm.exp
+++ b/gdb/testsuite/gdb.base/gdb-sigterm.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/gdb1090.exp b/gdb/testsuite/gdb.base/gdb1090.exp
index 5e0e6e1047bc..2a2ff1a5ada2 100644
--- a/gdb/testsuite/gdb.base/gdb1090.exp
+++ b/gdb/testsuite/gdb.base/gdb1090.exp
@@ -25,7 +25,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/gdb11530.exp b/gdb/testsuite/gdb.base/gdb11530.exp
index d27fde87d63e..fb293b986c7d 100644
--- a/gdb/testsuite/gdb.base/gdb11530.exp
+++ b/gdb/testsuite/gdb.base/gdb11530.exp
@@ -27,7 +27,7 @@ if { ![test_compiler_info gcc*] } {
}
if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug}] } {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.base/gdb11531.exp b/gdb/testsuite/gdb.base/gdb11531.exp
index bbff1d2cea74..6ed23921f23e 100644
--- a/gdb/testsuite/gdb.base/gdb11531.exp
+++ b/gdb/testsuite/gdb.base/gdb11531.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/gdb1821.exp b/gdb/testsuite/gdb.base/gdb1821.exp
index 1e79c0752dfb..a89fe9390ecb 100644
--- a/gdb/testsuite/gdb.base/gdb1821.exp
+++ b/gdb/testsuite/gdb.base/gdb1821.exp
@@ -25,7 +25,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/gdbvars.exp b/gdb/testsuite/gdb.base/gdbvars.exp
index 1768b36c8b64..9522d5f2f39b 100644
--- a/gdb/testsuite/gdb.base/gdbvars.exp
+++ b/gdb/testsuite/gdb.base/gdbvars.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
proc test_convenience_variables {} {
diff --git a/gdb/testsuite/gdb.base/gnu-debugdata.exp b/gdb/testsuite/gdb.base/gnu-debugdata.exp
index e2addf418c9f..9bac264fce7c 100644
--- a/gdb/testsuite/gdb.base/gnu-debugdata.exp
+++ b/gdb/testsuite/gdb.base/gnu-debugdata.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/gnu_vector.exp b/gdb/testsuite/gdb.base/gnu_vector.exp
index c1616fd32750..b92d82c3428c 100644
--- a/gdb/testsuite/gdb.base/gnu_vector.exp
+++ b/gdb/testsuite/gdb.base/gnu_vector.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/gstack.exp b/gdb/testsuite/gdb.base/gstack.exp
index 4297b5b4efac..bc524215d50b 100644
--- a/gdb/testsuite/gdb.base/gstack.exp
+++ b/gdb/testsuite/gdb.base/gstack.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/hashline1.exp b/gdb/testsuite/gdb.base/hashline1.exp
index 9e4b73654580..238f90f8c9df 100644
--- a/gdb/testsuite/gdb.base/hashline1.exp
+++ b/gdb/testsuite/gdb.base/hashline1.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/hashline2.exp b/gdb/testsuite/gdb.base/hashline2.exp
index 4881f33d8373..400c0cfcf8ac 100644
--- a/gdb/testsuite/gdb.base/hashline2.exp
+++ b/gdb/testsuite/gdb.base/hashline2.exp
@@ -31,7 +31,7 @@ close $fd
if { [gdb_compile $new_srcfile "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.base/hashline3.exp b/gdb/testsuite/gdb.base/hashline3.exp
index 08c9184526a6..e5c44041937f 100644
--- a/gdb/testsuite/gdb.base/hashline3.exp
+++ b/gdb/testsuite/gdb.base/hashline3.exp
@@ -32,7 +32,7 @@ close $fd
if { [gdb_compile $new_srcfile "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp b/gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp
index c4e6a9282d2c..9a0d84536982 100644
--- a/gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp
+++ b/gdb/testsuite/gdb.base/hbreak-in-shr-unsupported.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/hbreak-unmapped.exp b/gdb/testsuite/gdb.base/hbreak-unmapped.exp
index 43e62f4a1f71..f8bfcdaafdf2 100644
--- a/gdb/testsuite/gdb.base/hbreak-unmapped.exp
+++ b/gdb/testsuite/gdb.base/hbreak-unmapped.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/hbreak.exp b/gdb/testsuite/gdb.base/hbreak.exp
index 87a4f40defe4..09947f7c7248 100644
--- a/gdb/testsuite/gdb.base/hbreak.exp
+++ b/gdb/testsuite/gdb.base/hbreak.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/hbreak2.exp b/gdb/testsuite/gdb.base/hbreak2.exp
index 4d18a4f0cee1..f090aeefee9c 100644
--- a/gdb/testsuite/gdb.base/hbreak2.exp
+++ b/gdb/testsuite/gdb.base/hbreak2.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/history-duplicates.exp b/gdb/testsuite/gdb.base/history-duplicates.exp
index 58684fb5d431..ab51e0d1519b 100644
--- a/gdb/testsuite/gdb.base/history-duplicates.exp
+++ b/gdb/testsuite/gdb.base/history-duplicates.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/hook-stop.exp b/gdb/testsuite/gdb.base/hook-stop.exp
index 70cef1be92d7..de2fd14c7035 100644
--- a/gdb/testsuite/gdb.base/hook-stop.exp
+++ b/gdb/testsuite/gdb.base/hook-stop.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp b/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp
index 3fdb5d16fb2a..08d894e8f424 100644
--- a/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp
+++ b/gdb/testsuite/gdb.base/hw-sw-break-same-address.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/include-main.exp b/gdb/testsuite/gdb.base/include-main.exp
index a3972675f7de..b78dd51cd62a 100644
--- a/gdb/testsuite/gdb.base/include-main.exp
+++ b/gdb/testsuite/gdb.base/include-main.exp
@@ -18,7 +18,7 @@
standard_testfile .c main.c
if { [build_executable "failed to prepare" $testfile $srcfile {debug}] } {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.base/included.exp b/gdb/testsuite/gdb.base/included.exp
index 0b5dd2a1ed23..23bfd96c8404 100644
--- a/gdb/testsuite/gdb.base/included.exp
+++ b/gdb/testsuite/gdb.base/included.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/infcall-exec.exp b/gdb/testsuite/gdb.base/infcall-exec.exp
index 6b8bd605c090..1b47c6f5d6f9 100644
--- a/gdb/testsuite/gdb.base/infcall-exec.exp
+++ b/gdb/testsuite/gdb.base/infcall-exec.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/infcall-input.exp b/gdb/testsuite/gdb.base/infcall-input.exp
index c60e65bb4c52..a0b6ab28df3a 100644
--- a/gdb/testsuite/gdb.base/infcall-input.exp
+++ b/gdb/testsuite/gdb.base/infcall-input.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/inferior-died.exp b/gdb/testsuite/gdb.base/inferior-died.exp
index a5006b363f5a..34434c82c20a 100644
--- a/gdb/testsuite/gdb.base/inferior-died.exp
+++ b/gdb/testsuite/gdb.base/inferior-died.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/infnan.exp b/gdb/testsuite/gdb.base/infnan.exp
index 18a0d235525d..6d635f268779 100644
--- a/gdb/testsuite/gdb.base/infnan.exp
+++ b/gdb/testsuite/gdb.base/infnan.exp
@@ -18,7 +18,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp b/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp
index 674e48e3ee92..a1fffc51ea2b 100644
--- a/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp
+++ b/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp
@@ -29,7 +29,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/info-macros.exp b/gdb/testsuite/gdb.base/info-macros.exp
index 0b1e4a9ffdb6..1c2fcfb26641 100644
--- a/gdb/testsuite/gdb.base/info-macros.exp
+++ b/gdb/testsuite/gdb.base/info-macros.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/info-os.exp b/gdb/testsuite/gdb.base/info-os.exp
index 632fa314cde8..0f14202ca0ea 100644
--- a/gdb/testsuite/gdb.base/info-os.exp
+++ b/gdb/testsuite/gdb.base/info-os.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/info-proc.exp b/gdb/testsuite/gdb.base/info-proc.exp
index 1210bcb9af1e..f1b435e249f3 100644
--- a/gdb/testsuite/gdb.base/info-proc.exp
+++ b/gdb/testsuite/gdb.base/info-proc.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/info-shared.exp b/gdb/testsuite/gdb.base/info-shared.exp
index e792b4f98210..41a47a30d7d6 100644
--- a/gdb/testsuite/gdb.base/info-shared.exp
+++ b/gdb/testsuite/gdb.base/info-shared.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/info-target.exp b/gdb/testsuite/gdb.base/info-target.exp
index 3427f175dd0e..91c89cbc4f8f 100644
--- a/gdb/testsuite/gdb.base/info-target.exp
+++ b/gdb/testsuite/gdb.base/info-target.exp
@@ -17,7 +17,7 @@
standard_testfile start.c
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
set eol "\r\n"
diff --git a/gdb/testsuite/gdb.base/info-var.exp b/gdb/testsuite/gdb.base/info-var.exp
index 4b3abcf04fcb..a112a30092f2 100644
--- a/gdb/testsuite/gdb.base/info-var.exp
+++ b/gdb/testsuite/gdb.base/info-var.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/info_minsym.exp b/gdb/testsuite/gdb.base/info_minsym.exp
index d99b1ada0ae9..43e3fd14eb0e 100644
--- a/gdb/testsuite/gdb.base/info_minsym.exp
+++ b/gdb/testsuite/gdb.base/info_minsym.exp
@@ -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" \
diff --git a/gdb/testsuite/gdb.base/info_qt.exp b/gdb/testsuite/gdb.base/info_qt.exp
index 471f12235885..40cd9547bae8 100644
--- a/gdb/testsuite/gdb.base/info_qt.exp
+++ b/gdb/testsuite/gdb.base/info_qt.exp
@@ -24,7 +24,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile}] } {
- return -1
+ return
}
if {![runto setup_done]} {
diff --git a/gdb/testsuite/gdb.base/info_sources.exp b/gdb/testsuite/gdb.base/info_sources.exp
index ddf6e254a5b9..e661b0fc49ff 100644
--- a/gdb/testsuite/gdb.base/info_sources.exp
+++ b/gdb/testsuite/gdb.base/info_sources.exp
@@ -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:
diff --git a/gdb/testsuite/gdb.base/info_sources_2.exp b/gdb/testsuite/gdb.base/info_sources_2.exp
index 8af48eeb3c49..3c8df2edc9d6 100644
--- a/gdb/testsuite/gdb.base/info_sources_2.exp
+++ b/gdb/testsuite/gdb.base/info_sources_2.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/infoline-reloc-main-from-zero.exp b/gdb/testsuite/gdb.base/infoline-reloc-main-from-zero.exp
index 02fc1dd89b0c..85bbe06c15fb 100644
--- a/gdb/testsuite/gdb.base/infoline-reloc-main-from-zero.exp
+++ b/gdb/testsuite/gdb.base/infoline-reloc-main-from-zero.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/infoline.exp b/gdb/testsuite/gdb.base/infoline.exp
index 111e96e65603..3795f741cbcc 100644
--- a/gdb/testsuite/gdb.base/infoline.exp
+++ b/gdb/testsuite/gdb.base/infoline.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp b/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
index fd9cba78f9ab..4bda78dd27d6 100644
--- a/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
+++ b/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/interp.exp b/gdb/testsuite/gdb.base/interp.exp
index b47e717b0f73..d19d0e3ceca6 100644
--- a/gdb/testsuite/gdb.base/interp.exp
+++ b/gdb/testsuite/gdb.base/interp.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/interrupt-a.exp b/gdb/testsuite/gdb.base/interrupt-a.exp
index fa5f5a281ab8..4599aa5eb5a1 100644
--- a/gdb/testsuite/gdb.base/interrupt-a.exp
+++ b/gdb/testsuite/gdb.base/interrupt-a.exp
@@ -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 &" "" {
diff --git a/gdb/testsuite/gdb.base/interrupt-daemon-attach.exp b/gdb/testsuite/gdb.base/interrupt-daemon-attach.exp
index d8411593e306..d6b241ea57a6 100644
--- a/gdb/testsuite/gdb.base/interrupt-daemon-attach.exp
+++ b/gdb/testsuite/gdb.base/interrupt-daemon-attach.exp
@@ -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 {} {
diff --git a/gdb/testsuite/gdb.base/interrupt-daemon.exp b/gdb/testsuite/gdb.base/interrupt-daemon.exp
index 7b6276556c2b..fd9f2f8eefb8 100644
--- a/gdb/testsuite/gdb.base/interrupt-daemon.exp
+++ b/gdb/testsuite/gdb.base/interrupt-daemon.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/interrupt-noterm.exp b/gdb/testsuite/gdb.base/interrupt-noterm.exp
index f4252cc90a72..afdb317964f0 100644
--- a/gdb/testsuite/gdb.base/interrupt-noterm.exp
+++ b/gdb/testsuite/gdb.base/interrupt-noterm.exp
@@ -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,
diff --git a/gdb/testsuite/gdb.base/interrupt.exp b/gdb/testsuite/gdb.base/interrupt.exp
index 9d1264843a8f..44a27434bc2b 100644
--- a/gdb/testsuite/gdb.base/interrupt.exp
+++ b/gdb/testsuite/gdb.base/interrupt.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/jit-attach-pie.exp b/gdb/testsuite/gdb.base/jit-attach-pie.exp
index 4c1e854f1c34..c47535c79145 100644
--- a/gdb/testsuite/gdb.base/jit-attach-pie.exp
+++ b/gdb/testsuite/gdb.base/jit-attach-pie.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/jit-reader-simple.exp b/gdb/testsuite/gdb.base/jit-reader-simple.exp
index c97009857220..445e2b053fd2 100644
--- a/gdb/testsuite/gdb.base/jit-reader-simple.exp
+++ b/gdb/testsuite/gdb.base/jit-reader-simple.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/jit-reader.exp b/gdb/testsuite/gdb.base/jit-reader.exp
index 26656549e31a..e9b3f2672ae9 100644
--- a/gdb/testsuite/gdb.base/jit-reader.exp
+++ b/gdb/testsuite/gdb.base/jit-reader.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/jump-inline.exp b/gdb/testsuite/gdb.base/jump-inline.exp
index 07853ffcb82f..15bc6fa70d7a 100644
--- a/gdb/testsuite/gdb.base/jump-inline.exp
+++ b/gdb/testsuite/gdb.base/jump-inline.exp
@@ -18,11 +18,11 @@
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"]
diff --git a/gdb/testsuite/gdb.base/jump.exp b/gdb/testsuite/gdb.base/jump.exp
index 15900520214c..3139b081aa25 100644
--- a/gdb/testsuite/gdb.base/jump.exp
+++ b/gdb/testsuite/gdb.base/jump.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/jump_multiple_objfiles.exp b/gdb/testsuite/gdb.base/jump_multiple_objfiles.exp
index 5345f256118e..ddc34b6ff3b5 100755
--- a/gdb/testsuite/gdb.base/jump_multiple_objfiles.exp
+++ b/gdb/testsuite/gdb.base/jump_multiple_objfiles.exp
@@ -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
}
diff --git a/gdb/testsuite/gdb.base/kill-after-signal.exp b/gdb/testsuite/gdb.base/kill-after-signal.exp
index 58f9c395bb96..f55aa8b81f3c 100644
--- a/gdb/testsuite/gdb.base/kill-after-signal.exp
+++ b/gdb/testsuite/gdb.base/kill-after-signal.exp
@@ -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, .*"
diff --git a/gdb/testsuite/gdb.base/kill-detach-inferiors-cmd.exp b/gdb/testsuite/gdb.base/kill-detach-inferiors-cmd.exp
index 80fd913ddab4..ec086b785f14 100644
--- a/gdb/testsuite/gdb.base/kill-detach-inferiors-cmd.exp
+++ b/gdb/testsuite/gdb.base/kill-detach-inferiors-cmd.exp
@@ -25,7 +25,7 @@ standard_testfile
set executable $testfile
if {[prepare_for_testing "failed to prepare" $executable]} {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.base/kill-during-detach.exp b/gdb/testsuite/gdb.base/kill-during-detach.exp
index 20a4f3481c42..f5e3a9022112 100644
--- a/gdb/testsuite/gdb.base/kill-during-detach.exp
+++ b/gdb/testsuite/gdb.base/kill-during-detach.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/killed-outside.exp b/gdb/testsuite/gdb.base/killed-outside.exp
index e48137d4bd43..5fb818ec076b 100644
--- a/gdb/testsuite/gdb.base/killed-outside.exp
+++ b/gdb/testsuite/gdb.base/killed-outside.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/label-without-address.exp b/gdb/testsuite/gdb.base/label-without-address.exp
index dbd590362d22..7796de94c078 100644
--- a/gdb/testsuite/gdb.base/label-without-address.exp
+++ b/gdb/testsuite/gdb.base/label-without-address.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/label.exp b/gdb/testsuite/gdb.base/label.exp
index da4a369caf6a..418841961c8d 100644
--- a/gdb/testsuite/gdb.base/label.exp
+++ b/gdb/testsuite/gdb.base/label.exp
@@ -20,7 +20,7 @@
standard_testfile .c
if { [prepare_for_testing "failed to prepare" $testfile ${srcfile} debug] } {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.base/langs.exp b/gdb/testsuite/gdb.base/langs.exp
index 8bfe377c60ce..5705446f2580 100644
--- a/gdb/testsuite/gdb.base/langs.exp
+++ b/gdb/testsuite/gdb.base/langs.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/ldbl_e308.exp b/gdb/testsuite/gdb.base/ldbl_e308.exp
index 2f70dba56246..6351f5ffa7c3 100644
--- a/gdb/testsuite/gdb.base/ldbl_e308.exp
+++ b/gdb/testsuite/gdb.base/ldbl_e308.exp
@@ -16,11 +16,11 @@
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"
diff --git a/gdb/testsuite/gdb.base/limited-length.exp b/gdb/testsuite/gdb.base/limited-length.exp
index 8a55dd2540b4..e5f894cd2c57 100644
--- a/gdb/testsuite/gdb.base/limited-length.exp
+++ b/gdb/testsuite/gdb.base/limited-length.exp
@@ -18,7 +18,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/line-symtabs.exp b/gdb/testsuite/gdb.base/line-symtabs.exp
index 856d00de99c9..02265a5dfc89 100644
--- a/gdb/testsuite/gdb.base/line-symtabs.exp
+++ b/gdb/testsuite/gdb.base/line-symtabs.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/line65535.exp b/gdb/testsuite/gdb.base/line65535.exp
index c01d9bc1526c..b62355b8a608 100644
--- a/gdb/testsuite/gdb.base/line65535.exp
+++ b/gdb/testsuite/gdb.base/line65535.exp
@@ -20,7 +20,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
gdb_test "break $srcfile:65535" \
diff --git a/gdb/testsuite/gdb.base/list-ambiguous.exp b/gdb/testsuite/gdb.base/list-ambiguous.exp
index 00e5e114978b..45bc479c1c4c 100644
--- a/gdb/testsuite/gdb.base/list-ambiguous.exp
+++ b/gdb/testsuite/gdb.base/list-ambiguous.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/list-before-start.exp b/gdb/testsuite/gdb.base/list-before-start.exp
index 4ed3856904c0..d332d41b2d73 100644
--- a/gdb/testsuite/gdb.base/list-before-start.exp
+++ b/gdb/testsuite/gdb.base/list-before-start.exp
@@ -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\]+"
diff --git a/gdb/testsuite/gdb.base/list-missing-source.exp b/gdb/testsuite/gdb.base/list-missing-source.exp
index ac053a6b3ba8..fb78c85ffb08 100644
--- a/gdb/testsuite/gdb.base/list-missing-source.exp
+++ b/gdb/testsuite/gdb.base/list-missing-source.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/list-nodebug.exp b/gdb/testsuite/gdb.base/list-nodebug.exp
index e0ba56db4855..53c31ca08916 100644
--- a/gdb/testsuite/gdb.base/list-nodebug.exp
+++ b/gdb/testsuite/gdb.base/list-nodebug.exp
@@ -23,7 +23,7 @@ if { [prepare_for_testing_full "failed to prepare" \
$testfile {} \
$srcfile {nodebug} \
$srcfile2 {debug}]] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/list.exp b/gdb/testsuite/gdb.base/list.exp
index 71419acfcf7e..77161305e04d 100644
--- a/gdb/testsuite/gdb.base/list.exp
+++ b/gdb/testsuite/gdb.base/list.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/load-command.exp b/gdb/testsuite/gdb.base/load-command.exp
index f20de4d07fd4..0329b33137de 100644
--- a/gdb/testsuite/gdb.base/load-command.exp
+++ b/gdb/testsuite/gdb.base/load-command.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/long-inferior-output.exp b/gdb/testsuite/gdb.base/long-inferior-output.exp
index 70fe78486183..f2de534ec208 100644
--- a/gdb/testsuite/gdb.base/long-inferior-output.exp
+++ b/gdb/testsuite/gdb.base/long-inferior-output.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/longest-types.exp b/gdb/testsuite/gdb.base/longest-types.exp
index a21c65157524..42bec222ed6e 100644
--- a/gdb/testsuite/gdb.base/longest-types.exp
+++ b/gdb/testsuite/gdb.base/longest-types.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp
index 26ca0ce578d1..44debe1e7f87 100644
--- a/gdb/testsuite/gdb.base/macscp.exp
+++ b/gdb/testsuite/gdb.base/macscp.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/main-c.exp b/gdb/testsuite/gdb.base/main-c.exp
index 1ae8a44a64e4..46e80b056796 100644
--- a/gdb/testsuite/gdb.base/main-c.exp
+++ b/gdb/testsuite/gdb.base/main-c.exp
@@ -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] ""}
diff --git a/gdb/testsuite/gdb.base/maint-expand-symbols-header-file.exp b/gdb/testsuite/gdb.base/maint-expand-symbols-header-file.exp
index 96c2575bd9b9..55ab4c7e1da8 100644
--- a/gdb/testsuite/gdb.base/maint-expand-symbols-header-file.exp
+++ b/gdb/testsuite/gdb.base/maint-expand-symbols-header-file.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp b/gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp
index e672e0b67bf4..b123162d6e5b 100644
--- a/gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp
+++ b/gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp
@@ -20,7 +20,7 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug nopie}]} {
- return -1
+ return
}
if {![runto normal_func]} {
diff --git a/gdb/testsuite/gdb.base/maint-info-sections.exp b/gdb/testsuite/gdb.base/maint-info-sections.exp
index 65a761c6cb98..ac712137cc63 100644
--- a/gdb/testsuite/gdb.base/maint-info-sections.exp
+++ b/gdb/testsuite/gdb.base/maint-info-sections.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/maint-print-frame-id.exp b/gdb/testsuite/gdb.base/maint-print-frame-id.exp
index 18f9a6b3a166..9d857c8b45a7 100644
--- a/gdb/testsuite/gdb.base/maint-print-frame-id.exp
+++ b/gdb/testsuite/gdb.base/maint-print-frame-id.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp
index 87216181382f..0099eb672dcb 100644
--- a/gdb/testsuite/gdb.base/maint.exp
+++ b/gdb/testsuite/gdb.base/maint.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/many-completions.exp b/gdb/testsuite/gdb.base/many-completions.exp
index eb2736a9564b..edb61c2d7f48 100644
--- a/gdb/testsuite/gdb.base/many-completions.exp
+++ b/gdb/testsuite/gdb.base/many-completions.exp
@@ -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.
--git a/gdb/testsuite/gdb.base/many-headers.exp b/gdb/testsuite/gdb.base/many-headers.exp
index 72a9e07a3e55..6b13db61e740 100644
--- a/gdb/testsuite/gdb.base/many-headers.exp
+++ b/gdb/testsuite/gdb.base/many-headers.exp
@@ -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 \
diff --git a/gdb/testsuite/gdb.base/max-value-size.exp b/gdb/testsuite/gdb.base/max-value-size.exp
index f10e39d51065..ba5266401ee8 100644
--- a/gdb/testsuite/gdb.base/max-value-size.exp
+++ b/gdb/testsuite/gdb.base/max-value-size.exp
@@ -16,7 +16,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/memattr.exp b/gdb/testsuite/gdb.base/memattr.exp
index e333f37c668b..a399111cd34f 100644
--- a/gdb/testsuite/gdb.base/memattr.exp
+++ b/gdb/testsuite/gdb.base/memattr.exp
@@ -20,7 +20,7 @@
standard_testfile .c
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.base/memops-watchpoint.exp b/gdb/testsuite/gdb.base/memops-watchpoint.exp
index faa4f6e1c4a0..17c14fdee065 100644
--- a/gdb/testsuite/gdb.base/memops-watchpoint.exp
+++ b/gdb/testsuite/gdb.base/memops-watchpoint.exp
@@ -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\]" \
diff --git a/gdb/testsuite/gdb.base/memtag.exp b/gdb/testsuite/gdb.base/memtag.exp
index 0e032bb61fd9..f630615ebac2 100644
--- a/gdb/testsuite/gdb.base/memtag.exp
+++ b/gdb/testsuite/gdb.base/memtag.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/mips_pro.exp b/gdb/testsuite/gdb.base/mips_pro.exp
index 411457a8f765..4000a06d51a6 100644
--- a/gdb/testsuite/gdb.base/mips_pro.exp
+++ b/gdb/testsuite/gdb.base/mips_pro.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/morestack.exp b/gdb/testsuite/gdb.base/morestack.exp
index 979500a4370c..9b5ad1456598 100644
--- a/gdb/testsuite/gdb.base/morestack.exp
+++ b/gdb/testsuite/gdb.base/morestack.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/msym-lang.exp b/gdb/testsuite/gdb.base/msym-lang.exp
index 15e40105110e..d0beddea4175 100644
--- a/gdb/testsuite/gdb.base/msym-lang.exp
+++ b/gdb/testsuite/gdb.base/msym-lang.exp
@@ -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\\(\\).*"
diff --git a/gdb/testsuite/gdb.base/nested-addr.exp b/gdb/testsuite/gdb.base/nested-addr.exp
index f20d7df1613a..6701aba3eacf 100644
--- a/gdb/testsuite/gdb.base/nested-addr.exp
+++ b/gdb/testsuite/gdb.base/nested-addr.exp
@@ -16,11 +16,11 @@
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"]
diff --git a/gdb/testsuite/gdb.base/nested-subp1.exp b/gdb/testsuite/gdb.base/nested-subp1.exp
index 22ecb8f1f21c..ed783aa0e7d3 100644
--- a/gdb/testsuite/gdb.base/nested-subp1.exp
+++ b/gdb/testsuite/gdb.base/nested-subp1.exp
@@ -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
}
diff --git a/gdb/testsuite/gdb.base/nested-subp2.exp b/gdb/testsuite/gdb.base/nested-subp2.exp
index 23d36e77efc1..7a5ff89a4187 100644
--- a/gdb/testsuite/gdb.base/nested-subp2.exp
+++ b/gdb/testsuite/gdb.base/nested-subp2.exp
@@ -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
}
diff --git a/gdb/testsuite/gdb.base/nested-subp3.exp b/gdb/testsuite/gdb.base/nested-subp3.exp
index 8e145bee7650..5cb49b8dbce9 100644
--- a/gdb/testsuite/gdb.base/nested-subp3.exp
+++ b/gdb/testsuite/gdb.base/nested-subp3.exp
@@ -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
}
diff --git a/gdb/testsuite/gdb.base/new-ui-echo.exp b/gdb/testsuite/gdb.base/new-ui-echo.exp
index a57225add133..2dfbf66c81a4 100644
--- a/gdb/testsuite/gdb.base/new-ui-echo.exp
+++ b/gdb/testsuite/gdb.base/new-ui-echo.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/new-ui-pending-input.exp b/gdb/testsuite/gdb.base/new-ui-pending-input.exp
index 5d147bcfe1c7..cbc2c6d3b706 100644
--- a/gdb/testsuite/gdb.base/new-ui-pending-input.exp
+++ b/gdb/testsuite/gdb.base/new-ui-pending-input.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/new-ui.exp b/gdb/testsuite/gdb.base/new-ui.exp
index 6bc45392733c..b5ee322dc04f 100644
--- a/gdb/testsuite/gdb.base/new-ui.exp
+++ b/gdb/testsuite/gdb.base/new-ui.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/nextoverexit.exp b/gdb/testsuite/gdb.base/nextoverexit.exp
index 5fbb4efa51b5..91c78ba60e37 100644
--- a/gdb/testsuite/gdb.base/nextoverexit.exp
+++ b/gdb/testsuite/gdb.base/nextoverexit.exp
@@ -15,11 +15,11 @@
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.
diff --git a/gdb/testsuite/gdb.base/non-lazy-array-index.exp b/gdb/testsuite/gdb.base/non-lazy-array-index.exp
index 48eb7db77c11..0de2e59a9b92 100644
--- a/gdb/testsuite/gdb.base/non-lazy-array-index.exp
+++ b/gdb/testsuite/gdb.base/non-lazy-array-index.exp
@@ -19,11 +19,11 @@
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.
diff --git a/gdb/testsuite/gdb.base/noreturn-finish.exp b/gdb/testsuite/gdb.base/noreturn-finish.exp
index 3894b3e770ef..0574733cde74 100644
--- a/gdb/testsuite/gdb.base/noreturn-finish.exp
+++ b/gdb/testsuite/gdb.base/noreturn-finish.exp
@@ -16,7 +16,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}]} {
- return -1
+ return
}
proc noreturn_finish_test { } {
diff --git a/gdb/testsuite/gdb.base/noreturn-return.exp b/gdb/testsuite/gdb.base/noreturn-return.exp
index e2ea8690771d..c761f141cddb 100644
--- a/gdb/testsuite/gdb.base/noreturn-return.exp
+++ b/gdb/testsuite/gdb.base/noreturn-return.exp
@@ -16,7 +16,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}]} {
- return -1
+ return
}
proc noreturn_test { } {
diff --git a/gdb/testsuite/gdb.base/offsets.exp b/gdb/testsuite/gdb.base/offsets.exp
index 2286f0c2276a..a7480f692d5f 100644
--- a/gdb/testsuite/gdb.base/offsets.exp
+++ b/gdb/testsuite/gdb.base/offsets.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/opaque.exp b/gdb/testsuite/gdb.base/opaque.exp
index 489b0e451ee6..ded6f8c88e30 100644
--- a/gdb/testsuite/gdb.base/opaque.exp
+++ b/gdb/testsuite/gdb.base/opaque.exp
@@ -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
}
#
diff --git a/gdb/testsuite/gdb.base/options.exp b/gdb/testsuite/gdb.base/options.exp
index 0b8dda51d4d0..35487ead6a77 100644
--- a/gdb/testsuite/gdb.base/options.exp
+++ b/gdb/testsuite/gdb.base/options.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp b/gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp
index 3ab1e06c6e31..54a922187b84 100644
--- a/gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp
+++ b/gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/paginate-bg-execution.exp b/gdb/testsuite/gdb.base/paginate-bg-execution.exp
index e369fa7ad046..9f9e44fb4dc7 100644
--- a/gdb/testsuite/gdb.base/paginate-bg-execution.exp
+++ b/gdb/testsuite/gdb.base/paginate-bg-execution.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/paginate-execution-startup.exp b/gdb/testsuite/gdb.base/paginate-execution-startup.exp
index e1de36ca022f..03647520c157 100644
--- a/gdb/testsuite/gdb.base/paginate-execution-startup.exp
+++ b/gdb/testsuite/gdb.base/paginate-execution-startup.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile debug] == -1} {
- return -1
+ return
}
set file_arg $binfile
diff --git a/gdb/testsuite/gdb.base/paginate-inferior-exit.exp b/gdb/testsuite/gdb.base/paginate-inferior-exit.exp
index e6557f947a76..eb274b091f99 100644
--- a/gdb/testsuite/gdb.base/paginate-inferior-exit.exp
+++ b/gdb/testsuite/gdb.base/paginate-inferior-exit.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/patch.exp b/gdb/testsuite/gdb.base/patch.exp
index ed6d268f6bd0..e998ef4334c0 100644
--- a/gdb/testsuite/gdb.base/patch.exp
+++ b/gdb/testsuite/gdb.base/patch.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/pc-fp.exp b/gdb/testsuite/gdb.base/pc-fp.exp
index 3f4fafee237f..fd44942bfe87 100644
--- a/gdb/testsuite/gdb.base/pc-fp.exp
+++ b/gdb/testsuite/gdb.base/pc-fp.exp
@@ -27,7 +27,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug nowarnings}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/pending.exp b/gdb/testsuite/gdb.base/pending.exp
index 62894063ee6b..161287226f86 100644
--- a/gdb/testsuite/gdb.base/pending.exp
+++ b/gdb/testsuite/gdb.base/pending.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/permissions.exp b/gdb/testsuite/gdb.base/permissions.exp
index 6835ed5a4c68..4db6521bea1a 100644
--- a/gdb/testsuite/gdb.base/permissions.exp
+++ b/gdb/testsuite/gdb.base/permissions.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/persistent-lang.exp b/gdb/testsuite/gdb.base/persistent-lang.exp
index 880dbb2d9eea..4099459ca383 100644
--- a/gdb/testsuite/gdb.base/persistent-lang.exp
+++ b/gdb/testsuite/gdb.base/persistent-lang.exp
@@ -20,7 +20,7 @@ lappend flags debug
lappend flags c++
if {[build_executable "failed to prepare" $testfile $srcfile $flags]} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.base/pie-execl.exp b/gdb/testsuite/gdb.base/pie-execl.exp
index 60d2270f8873..62f3bc100921 100644
--- a/gdb/testsuite/gdb.base/pie-execl.exp
+++ b/gdb/testsuite/gdb.base/pie-execl.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/pr10179.exp b/gdb/testsuite/gdb.base/pr10179.exp
index 55808e42285f..b3129d43ef91 100644
--- a/gdb/testsuite/gdb.base/pr10179.exp
+++ b/gdb/testsuite/gdb.base/pr10179.exp
@@ -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\].*"
diff --git a/gdb/testsuite/gdb.base/prelink.exp b/gdb/testsuite/gdb.base/prelink.exp
index cfbb511c7d97..4f18af4739c2 100644
--- a/gdb/testsuite/gdb.base/prelink.exp
+++ b/gdb/testsuite/gdb.base/prelink.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp b/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
index 079f5c83e3a5..c3e9fdbc6b9e 100644
--- a/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
+++ b/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/pretty-array.exp b/gdb/testsuite/gdb.base/pretty-array.exp
index f484286f931e..e1a8428d842a 100644
--- a/gdb/testsuite/gdb.base/pretty-array.exp
+++ b/gdb/testsuite/gdb.base/pretty-array.exp
@@ -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" \
diff --git a/gdb/testsuite/gdb.base/pretty-print.exp b/gdb/testsuite/gdb.base/pretty-print.exp
index 5aaa4cafaff7..efe9cbae11d6 100644
--- a/gdb/testsuite/gdb.base/pretty-print.exp
+++ b/gdb/testsuite/gdb.base/pretty-print.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/print-internal-string.exp b/gdb/testsuite/gdb.base/print-internal-string.exp
index 3ff2a6708fa5..7ebf8ed9b4d4 100644
--- a/gdb/testsuite/gdb.base/print-internal-string.exp
+++ b/gdb/testsuite/gdb.base/print-internal-string.exp
@@ -20,7 +20,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/print-symbol-loading.exp b/gdb/testsuite/gdb.base/print-symbol-loading.exp
index c4cb501932d2..77c6145201e9 100644
--- a/gdb/testsuite/gdb.base/print-symbol-loading.exp
+++ b/gdb/testsuite/gdb.base/print-symbol-loading.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/printf-wchar_t.exp b/gdb/testsuite/gdb.base/printf-wchar_t.exp
index db331a3e3280..37fee25996a6 100644
--- a/gdb/testsuite/gdb.base/printf-wchar_t.exp
+++ b/gdb/testsuite/gdb.base/printf-wchar_t.exp
@@ -16,11 +16,11 @@
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"
diff --git a/gdb/testsuite/gdb.base/prologue-include.exp b/gdb/testsuite/gdb.base/prologue-include.exp
index 9e92221b3a7a..d25df5953cc1 100644
--- a/gdb/testsuite/gdb.base/prologue-include.exp
+++ b/gdb/testsuite/gdb.base/prologue-include.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/psym-external-decl.exp b/gdb/testsuite/gdb.base/psym-external-decl.exp
index b4b62f21b13e..bbe8a043fabf 100644
--- a/gdb/testsuite/gdb.base/psym-external-decl.exp
+++ b/gdb/testsuite/gdb.base/psym-external-decl.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/psymtab.exp b/gdb/testsuite/gdb.base/psymtab.exp
index 9a979cdce971..2103ace870e6 100644
--- a/gdb/testsuite/gdb.base/psymtab.exp
+++ b/gdb/testsuite/gdb.base/psymtab.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/ptype-offsets-c.exp b/gdb/testsuite/gdb.base/ptype-offsets-c.exp
index cffcbbeb2f7a..fd88514f5f6b 100644
--- a/gdb/testsuite/gdb.base/ptype-offsets-c.exp
+++ b/gdb/testsuite/gdb.base/ptype-offsets-c.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/ptype-offsets.exp b/gdb/testsuite/gdb.base/ptype-offsets.exp
index 2ee3470ba10f..56dca939fb33 100644
--- a/gdb/testsuite/gdb.base/ptype-offsets.exp
+++ b/gdb/testsuite/gdb.base/ptype-offsets.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/ptype.exp b/gdb/testsuite/gdb.base/ptype.exp
index 5602defba64e..0539b87ddfea 100644
--- a/gdb/testsuite/gdb.base/ptype.exp
+++ b/gdb/testsuite/gdb.base/ptype.exp
@@ -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
}
diff --git a/gdb/testsuite/gdb.base/random-signal.exp b/gdb/testsuite/gdb.base/random-signal.exp
index 77d106477209..e0c5e669c2f2 100644
--- a/gdb/testsuite/gdb.base/random-signal.exp
+++ b/gdb/testsuite/gdb.base/random-signal.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/randomize.exp b/gdb/testsuite/gdb.base/randomize.exp
index 52c2ff71ab12..58c2c78ee26a 100644
--- a/gdb/testsuite/gdb.base/randomize.exp
+++ b/gdb/testsuite/gdb.base/randomize.exp
@@ -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
}
diff --git a/gdb/testsuite/gdb.base/range-stepping.exp b/gdb/testsuite/gdb.base/range-stepping.exp
index 53083f066c35..06d976bdf255 100644
--- a/gdb/testsuite/gdb.base/range-stepping.exp
+++ b/gdb/testsuite/gdb.base/range-stepping.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/readline-ask.exp b/gdb/testsuite/gdb.base/readline-ask.exp
index 0981860eacff..bee3fbba4e78 100644
--- a/gdb/testsuite/gdb.base/readline-ask.exp
+++ b/gdb/testsuite/gdb.base/readline-ask.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/readline-commands-eof.exp b/gdb/testsuite/gdb.base/readline-commands-eof.exp
index 6fa6cf96e656..7da5f08fc7b5 100644
--- a/gdb/testsuite/gdb.base/readline-commands-eof.exp
+++ b/gdb/testsuite/gdb.base/readline-commands-eof.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/readnever.exp b/gdb/testsuite/gdb.base/readnever.exp
index 427b9a82c85d..9f74b8b005d5 100644
--- a/gdb/testsuite/gdb.base/readnever.exp
+++ b/gdb/testsuite/gdb.base/readnever.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/realname-expand.exp b/gdb/testsuite/gdb.base/realname-expand.exp
index 5c8e8acb1298..5817cd57d9db 100644
--- a/gdb/testsuite/gdb.base/realname-expand.exp
+++ b/gdb/testsuite/gdb.base/realname-expand.exp
@@ -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}
diff --git a/gdb/testsuite/gdb.base/recpar.exp b/gdb/testsuite/gdb.base/recpar.exp
index b325002b2d38..3812884dc468 100644
--- a/gdb/testsuite/gdb.base/recpar.exp
+++ b/gdb/testsuite/gdb.base/recpar.exp
@@ -16,11 +16,11 @@
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" \
diff --git a/gdb/testsuite/gdb.base/recurse.exp b/gdb/testsuite/gdb.base/recurse.exp
index f96e1e3072a3..4a59cecf8fba 100644
--- a/gdb/testsuite/gdb.base/recurse.exp
+++ b/gdb/testsuite/gdb.base/recurse.exp
@@ -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 {} {
diff --git a/gdb/testsuite/gdb.base/reggroups.exp b/gdb/testsuite/gdb.base/reggroups.exp
index ce5cb50d85c7..f3866ec51cf4 100644
--- a/gdb/testsuite/gdb.base/reggroups.exp
+++ b/gdb/testsuite/gdb.base/reggroups.exp
@@ -20,7 +20,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/relational.exp b/gdb/testsuite/gdb.base/relational.exp
index 01b635f9694a..f75043643ec2 100644
--- a/gdb/testsuite/gdb.base/relational.exp
+++ b/gdb/testsuite/gdb.base/relational.exp
@@ -26,7 +26,7 @@
#
if { [prepare_for_testing "failed to prepare" relational int-type.c {debug nowarnings}] } {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/remote.exp b/gdb/testsuite/gdb.base/remote.exp
index 9fa50611ed5b..da13e9f13fe7 100644
--- a/gdb/testsuite/gdb.base/remote.exp
+++ b/gdb/testsuite/gdb.base/remote.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/reread-readsym.exp b/gdb/testsuite/gdb.base/reread-readsym.exp
index 6db4eacc1b92..8457d2e4fbba 100644
--- a/gdb/testsuite/gdb.base/reread-readsym.exp
+++ b/gdb/testsuite/gdb.base/reread-readsym.exp
@@ -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,
diff --git a/gdb/testsuite/gdb.base/restore.exp b/gdb/testsuite/gdb.base/restore.exp
index d5e78238575c..ce7fe5b3ca11 100644
--- a/gdb/testsuite/gdb.base/restore.exp
+++ b/gdb/testsuite/gdb.base/restore.exp
@@ -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: .*"
diff --git a/gdb/testsuite/gdb.base/return-3.exp b/gdb/testsuite/gdb.base/return-3.exp
index d2f7739b1e3c..8c958a2245ac 100644
--- a/gdb/testsuite/gdb.base/return-3.exp
+++ b/gdb/testsuite/gdb.base/return-3.exp
@@ -16,11 +16,11 @@
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" {
diff --git a/gdb/testsuite/gdb.base/return.exp b/gdb/testsuite/gdb.base/return.exp
index 2899ce9dbbbb..7b4f6fea320d 100644
--- a/gdb/testsuite/gdb.base/return.exp
+++ b/gdb/testsuite/gdb.base/return.exp
@@ -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 { } {
diff --git a/gdb/testsuite/gdb.base/retval-large-struct.exp b/gdb/testsuite/gdb.base/retval-large-struct.exp
index 0ba13810cd6e..7bdc8af2a0f4 100644
--- a/gdb/testsuite/gdb.base/retval-large-struct.exp
+++ b/gdb/testsuite/gdb.base/retval-large-struct.exp
@@ -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\"\\}"
diff --git a/gdb/testsuite/gdb.base/rtld-step.exp b/gdb/testsuite/gdb.base/rtld-step.exp
index 3beab5ee334e..57f878dfb395 100644
--- a/gdb/testsuite/gdb.base/rtld-step.exp
+++ b/gdb/testsuite/gdb.base/rtld-step.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/run-after-attach.exp b/gdb/testsuite/gdb.base/run-after-attach.exp
index 4a170b88c71d..256f2fbcdd1a 100644
--- a/gdb/testsuite/gdb.base/run-after-attach.exp
+++ b/gdb/testsuite/gdb.base/run-after-attach.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/run-fail-twice.exp b/gdb/testsuite/gdb.base/run-fail-twice.exp
index 57a7c437e40b..8fcfee9eee00 100644
--- a/gdb/testsuite/gdb.base/run-fail-twice.exp
+++ b/gdb/testsuite/gdb.base/run-fail-twice.exp
@@ -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} {
diff --git a/gdb/testsuite/gdb.base/save-bp.exp b/gdb/testsuite/gdb.base/save-bp.exp
index 2e27f9ebbf8a..0c0eb860d286 100644
--- a/gdb/testsuite/gdb.base/save-bp.exp
+++ b/gdb/testsuite/gdb.base/save-bp.exp
@@ -16,11 +16,11 @@
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.
diff --git a/gdb/testsuite/gdb.base/scope-hw-watch-disable.exp b/gdb/testsuite/gdb.base/scope-hw-watch-disable.exp
index 67305ebb87b7..e45d10dc7b00 100644
--- a/gdb/testsuite/gdb.base/scope-hw-watch-disable.exp
+++ b/gdb/testsuite/gdb.base/scope-hw-watch-disable.exp
@@ -20,13 +20,13 @@
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" {
diff --git a/gdb/testsuite/gdb.base/scope.exp b/gdb/testsuite/gdb.base/scope.exp
index b82465a1184d..338e4a4b4467 100644
--- a/gdb/testsuite/gdb.base/scope.exp
+++ b/gdb/testsuite/gdb.base/scope.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/sect-cmd.exp b/gdb/testsuite/gdb.base/sect-cmd.exp
index 0c2a413b6943..c6300aa52992 100644
--- a/gdb/testsuite/gdb.base/sect-cmd.exp
+++ b/gdb/testsuite/gdb.base/sect-cmd.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/sepdebug.exp b/gdb/testsuite/gdb.base/sepdebug.exp
index bbb9eb7cd16b..1ada019ea434 100644
--- a/gdb/testsuite/gdb.base/sepdebug.exp
+++ b/gdb/testsuite/gdb.base/sepdebug.exp
@@ -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
}
#
diff --git a/gdb/testsuite/gdb.base/sepsymtab.exp b/gdb/testsuite/gdb.base/sepsymtab.exp
index 0677ef57b4fb..aecb1b93f32f 100644
--- a/gdb/testsuite/gdb.base/sepsymtab.exp
+++ b/gdb/testsuite/gdb.base/sepsymtab.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/server-del-break.exp b/gdb/testsuite/gdb.base/server-del-break.exp
index 6bc95d5bd7f0..4401a848589f 100644
--- a/gdb/testsuite/gdb.base/server-del-break.exp
+++ b/gdb/testsuite/gdb.base/server-del-break.exp
@@ -21,7 +21,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
gdb_test "break -q main" \
diff --git a/gdb/testsuite/gdb.base/set-cwd.exp b/gdb/testsuite/gdb.base/set-cwd.exp
index 3fbffdc6136f..279004596a1e 100644
--- a/gdb/testsuite/gdb.base/set-cwd.exp
+++ b/gdb/testsuite/gdb.base/set-cwd.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/set-inferior-tty.exp b/gdb/testsuite/gdb.base/set-inferior-tty.exp
index 1d0ee21b4cba..be82eeed6b18 100644
--- a/gdb/testsuite/gdb.base/set-inferior-tty.exp
+++ b/gdb/testsuite/gdb.base/set-inferior-tty.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/set-lang-auto.exp b/gdb/testsuite/gdb.base/set-lang-auto.exp
index 2cbc5930f6de..f003c2307e9b 100644
--- a/gdb/testsuite/gdb.base/set-lang-auto.exp
+++ b/gdb/testsuite/gdb.base/set-lang-auto.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/set-noassign.exp b/gdb/testsuite/gdb.base/set-noassign.exp
index 41a3f096cafa..0f3b843cd1fe 100644
--- a/gdb/testsuite/gdb.base/set-noassign.exp
+++ b/gdb/testsuite/gdb.base/set-noassign.exp
@@ -15,7 +15,7 @@
if { [prepare_for_testing "failed to prepare" "set-noassign" start.c {debug nowarnings}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/settings.exp b/gdb/testsuite/gdb.base/settings.exp
index 48c015a3552a..2da8d47405bb 100644
--- a/gdb/testsuite/gdb.base/settings.exp
+++ b/gdb/testsuite/gdb.base/settings.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/setvar.exp b/gdb/testsuite/gdb.base/setvar.exp
index 8a3b88631d01..14fba5497a87 100644
--- a/gdb/testsuite/gdb.base/setvar.exp
+++ b/gdb/testsuite/gdb.base/setvar.exp
@@ -27,7 +27,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/share-env-with-gdbserver.exp b/gdb/testsuite/gdb.base/share-env-with-gdbserver.exp
index e1b3540d5d7e..60875224de2f 100644
--- a/gdb/testsuite/gdb.base/share-env-with-gdbserver.exp
+++ b/gdb/testsuite/gdb.base/share-env-with-gdbserver.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/share-psymtabs-bt.exp b/gdb/testsuite/gdb.base/share-psymtabs-bt.exp
index 8fd40cdaecd7..6984e70354e4 100644
--- a/gdb/testsuite/gdb.base/share-psymtabs-bt.exp
+++ b/gdb/testsuite/gdb.base/share-psymtabs-bt.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/sigall.exp b/gdb/testsuite/gdb.base/sigall.exp
index 51cd91ed41ef..a550d1f71dda 100644
--- a/gdb/testsuite/gdb.base/sigall.exp
+++ b/gdb/testsuite/gdb.base/sigall.exp
@@ -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} {
diff --git a/gdb/testsuite/gdb.base/sigbpt.exp b/gdb/testsuite/gdb.base/sigbpt.exp
index 02f907bdea6d..c3f17e0e9707 100644
--- a/gdb/testsuite/gdb.base/sigbpt.exp
+++ b/gdb/testsuite/gdb.base/sigbpt.exp
@@ -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
}
#
diff --git a/gdb/testsuite/gdb.base/siginfo-addr.exp b/gdb/testsuite/gdb.base/siginfo-addr.exp
index 0f7026d4a93c..93ce7a227909 100644
--- a/gdb/testsuite/gdb.base/siginfo-addr.exp
+++ b/gdb/testsuite/gdb.base/siginfo-addr.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/siginfo-infcall.exp b/gdb/testsuite/gdb.base/siginfo-infcall.exp
index f581989caaff..caf43d1ac4c3 100644
--- a/gdb/testsuite/gdb.base/siginfo-infcall.exp
+++ b/gdb/testsuite/gdb.base/siginfo-infcall.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/siginfo-obj.exp b/gdb/testsuite/gdb.base/siginfo-obj.exp
index bf59dd937946..daf160bc162b 100644
--- a/gdb/testsuite/gdb.base/siginfo-obj.exp
+++ b/gdb/testsuite/gdb.base/siginfo-obj.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/siginfo.exp b/gdb/testsuite/gdb.base/siginfo.exp
index 92d712053f05..f5a00220f12a 100644
--- a/gdb/testsuite/gdb.base/siginfo.exp
+++ b/gdb/testsuite/gdb.base/siginfo.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/signals-state-child.exp b/gdb/testsuite/gdb.base/signals-state-child.exp
index 0c3da466af45..5c0be259c00a 100644
--- a/gdb/testsuite/gdb.base/signals-state-child.exp
+++ b/gdb/testsuite/gdb.base/signals-state-child.exp
@@ -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} {
diff --git a/gdb/testsuite/gdb.base/signals.exp b/gdb/testsuite/gdb.base/signals.exp
index 56aa73aa5500..da3eb6dae5ba 100644
--- a/gdb/testsuite/gdb.base/signals.exp
+++ b/gdb/testsuite/gdb.base/signals.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/signed-builtin-types.exp b/gdb/testsuite/gdb.base/signed-builtin-types.exp
index 29e2f9853532..abe4a9c4cbad 100644
--- a/gdb/testsuite/gdb.base/signed-builtin-types.exp
+++ b/gdb/testsuite/gdb.base/signed-builtin-types.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/signest.exp b/gdb/testsuite/gdb.base/signest.exp
index 920cdb907e74..465c8452d62d 100644
--- a/gdb/testsuite/gdb.base/signest.exp
+++ b/gdb/testsuite/gdb.base/signest.exp
@@ -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).
diff --git a/gdb/testsuite/gdb.base/sigstep.exp b/gdb/testsuite/gdb.base/sigstep.exp
index 2507504c5ccb..9199216b051b 100644
--- a/gdb/testsuite/gdb.base/sigstep.exp
+++ b/gdb/testsuite/gdb.base/sigstep.exp
@@ -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}]
diff --git a/gdb/testsuite/gdb.base/sizeof.exp b/gdb/testsuite/gdb.base/sizeof.exp
index 50930c82c6a4..48caebe2f16d 100644
--- a/gdb/testsuite/gdb.base/sizeof.exp
+++ b/gdb/testsuite/gdb.base/sizeof.exp
@@ -22,7 +22,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/skip-inline.exp b/gdb/testsuite/gdb.base/skip-inline.exp
index c2fd05808bd6..a0223efa2eb5 100644
--- a/gdb/testsuite/gdb.base/skip-inline.exp
+++ b/gdb/testsuite/gdb.base/skip-inline.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/skip-solib.exp b/gdb/testsuite/gdb.base/skip-solib.exp
index e8890288fa3c..1382c7ce831c 100644
--- a/gdb/testsuite/gdb.base/skip-solib.exp
+++ b/gdb/testsuite/gdb.base/skip-solib.exp
@@ -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
}
#
diff --git a/gdb/testsuite/gdb.base/skip.exp b/gdb/testsuite/gdb.base/skip.exp
index 3807fb333255..8ba6e8cda569 100644
--- a/gdb/testsuite/gdb.base/skip.exp
+++ b/gdb/testsuite/gdb.base/skip.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/skipcxx.exp b/gdb/testsuite/gdb.base/skipcxx.exp
index 06f9912d763e..9e1c0f293c8d 100644
--- a/gdb/testsuite/gdb.base/skipcxx.exp
+++ b/gdb/testsuite/gdb.base/skipcxx.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/solib-corrupted.exp b/gdb/testsuite/gdb.base/solib-corrupted.exp
index 19be38f77388..f733579809f6 100644
--- a/gdb/testsuite/gdb.base/solib-corrupted.exp
+++ b/gdb/testsuite/gdb.base/solib-corrupted.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/solib-nodir.exp b/gdb/testsuite/gdb.base/solib-nodir.exp
index 29b641b43e2b..4189e1abd5b3 100644
--- a/gdb/testsuite/gdb.base/solib-nodir.exp
+++ b/gdb/testsuite/gdb.base/solib-nodir.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/solib-probes-nosharedlibrary.exp b/gdb/testsuite/gdb.base/solib-probes-nosharedlibrary.exp
index 44617f42a8b1..9b4c339cb92d 100644
--- a/gdb/testsuite/gdb.base/solib-probes-nosharedlibrary.exp
+++ b/gdb/testsuite/gdb.base/solib-probes-nosharedlibrary.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/solib-search.exp b/gdb/testsuite/gdb.base/solib-search.exp
index c4b2730e8f2d..43f54b41df0e 100644
--- a/gdb/testsuite/gdb.base/solib-search.exp
+++ b/gdb/testsuite/gdb.base/solib-search.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/solib-vanish.exp b/gdb/testsuite/gdb.base/solib-vanish.exp
index 152e41760a02..80e28638b2d2 100644
--- a/gdb/testsuite/gdb.base/solib-vanish.exp
+++ b/gdb/testsuite/gdb.base/solib-vanish.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/source-execution.exp b/gdb/testsuite/gdb.base/source-execution.exp
index 8f5e88540d93..a16535e97e4c 100644
--- a/gdb/testsuite/gdb.base/source-execution.exp
+++ b/gdb/testsuite/gdb.base/source-execution.exp
@@ -20,7 +20,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/source-open.exp b/gdb/testsuite/gdb.base/source-open.exp
index e222c6420638..38802489247c 100644
--- a/gdb/testsuite/gdb.base/source-open.exp
+++ b/gdb/testsuite/gdb.base/source-open.exp
@@ -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\"\\." \
diff --git a/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp b/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp
index 691946d35f5f..6b299b3bc05a 100644
--- a/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp
+++ b/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp b/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
index 89fdb486a9c0..042caf6c27bb 100644
--- a/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
+++ b/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/stale-infcall.exp b/gdb/testsuite/gdb.base/stale-infcall.exp
index b602bea56cfc..cb7c09972032 100644
--- a/gdb/testsuite/gdb.base/stale-infcall.exp
+++ b/gdb/testsuite/gdb.base/stale-infcall.exp
@@ -16,11 +16,11 @@
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
diff --git a/gdb/testsuite/gdb.base/start-cpp.exp b/gdb/testsuite/gdb.base/start-cpp.exp
index 58269005e517..3dbd860a0b9d 100644
--- a/gdb/testsuite/gdb.base/start-cpp.exp
+++ b/gdb/testsuite/gdb.base/start-cpp.exp
@@ -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 "" \
diff --git a/gdb/testsuite/gdb.base/start.exp b/gdb/testsuite/gdb.base/start.exp
index b747e42efc6a..546926d32262 100644
--- a/gdb/testsuite/gdb.base/start.exp
+++ b/gdb/testsuite/gdb.base/start.exp
@@ -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 "" \
diff --git a/gdb/testsuite/gdb.base/starti.exp b/gdb/testsuite/gdb.base/starti.exp
index 302be7aea6ee..ab0cfc2e9378 100644
--- a/gdb/testsuite/gdb.base/starti.exp
+++ b/gdb/testsuite/gdb.base/starti.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/startup-with-shell.exp b/gdb/testsuite/gdb.base/startup-with-shell.exp
index b27cdce63d73..6f30841bdb8d 100644
--- a/gdb/testsuite/gdb.base/startup-with-shell.exp
+++ b/gdb/testsuite/gdb.base/startup-with-shell.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/step-bt.exp b/gdb/testsuite/gdb.base/step-bt.exp
index 5273234a7515..f7be4c2bec91 100644
--- a/gdb/testsuite/gdb.base/step-bt.exp
+++ b/gdb/testsuite/gdb.base/step-bt.exp
@@ -20,7 +20,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
gdb_test "break *hello" \
diff --git a/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp b/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp
index 877a0a61dbb2..30d0e6932a5d 100644
--- a/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp
+++ b/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/step-into-other-file.exp b/gdb/testsuite/gdb.base/step-into-other-file.exp
index 775ab991d6ef..178224a1bed3 100644
--- a/gdb/testsuite/gdb.base/step-into-other-file.exp
+++ b/gdb/testsuite/gdb.base/step-into-other-file.exp
@@ -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.*
diff --git a/gdb/testsuite/gdb.base/step-line.exp b/gdb/testsuite/gdb.base/step-line.exp
index a1bcc7522e6a..e0a758357384 100644
--- a/gdb/testsuite/gdb.base/step-line.exp
+++ b/gdb/testsuite/gdb.base/step-line.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/step-over-exit.exp b/gdb/testsuite/gdb.base/step-over-exit.exp
index 263c640e876f..427ada57c90d 100644
--- a/gdb/testsuite/gdb.base/step-over-exit.exp
+++ b/gdb/testsuite/gdb.base/step-over-exit.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/step-over-no-symbols.exp b/gdb/testsuite/gdb.base/step-over-no-symbols.exp
index 18df1786039f..655b7a062d81 100644
--- a/gdb/testsuite/gdb.base/step-over-no-symbols.exp
+++ b/gdb/testsuite/gdb.base/step-over-no-symbols.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/step-over-syscall.exp b/gdb/testsuite/gdb.base/step-over-syscall.exp
index 335736f56850..12eff194efc4 100644
--- a/gdb/testsuite/gdb.base/step-over-syscall.exp
+++ b/gdb/testsuite/gdb.base/step-over-syscall.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/step-resume-infcall.exp b/gdb/testsuite/gdb.base/step-resume-infcall.exp
index 9c7c9fbde65a..90ff43539f3f 100644
--- a/gdb/testsuite/gdb.base/step-resume-infcall.exp
+++ b/gdb/testsuite/gdb.base/step-resume-infcall.exp
@@ -16,11 +16,11 @@
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 ()}
diff --git a/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp b/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp
index af825c1ffe83..d8cf9da97f71 100644
--- a/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp
+++ b/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/step-symless.exp b/gdb/testsuite/gdb.base/step-symless.exp
index 0dcfec7da5ca..1f4dd88a103e 100644
--- a/gdb/testsuite/gdb.base/step-symless.exp
+++ b/gdb/testsuite/gdb.base/step-symless.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/store.exp b/gdb/testsuite/gdb.base/store.exp
index bc8b11760020..d4165baed384 100644
--- a/gdb/testsuite/gdb.base/store.exp
+++ b/gdb/testsuite/gdb.base/store.exp
@@ -19,7 +19,7 @@ standard_testfile
set executable $testfile
if { [prepare_for_testing "failed to prepare" $executable $srcfile] } {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/structs2.exp b/gdb/testsuite/gdb.base/structs2.exp
index 65655c70fb4a..76deeae53839 100644
--- a/gdb/testsuite/gdb.base/structs2.exp
+++ b/gdb/testsuite/gdb.base/structs2.exp
@@ -16,7 +16,7 @@
standard_testfile .c
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/structs3.exp b/gdb/testsuite/gdb.base/structs3.exp
index bdcf19a9932b..a7e0ede2e2a0 100644
--- a/gdb/testsuite/gdb.base/structs3.exp
+++ b/gdb/testsuite/gdb.base/structs3.exp
@@ -18,11 +18,11 @@
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}"
diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp
index a12f61884798..8b9512e1e4f7 100644
--- a/gdb/testsuite/gdb.base/style.exp
+++ b/gdb/testsuite/gdb.base/style.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/symbol-alias.exp b/gdb/testsuite/gdb.base/symbol-alias.exp
index 624422bb2f35..0d9192730f0f 100644
--- a/gdb/testsuite/gdb.base/symbol-alias.exp
+++ b/gdb/testsuite/gdb.base/symbol-alias.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/symbol-without-target_section.exp b/gdb/testsuite/gdb.base/symbol-without-target_section.exp
index 420f5eeabf04..c61ccebc3162 100644
--- a/gdb/testsuite/gdb.base/symbol-without-target_section.exp
+++ b/gdb/testsuite/gdb.base/symbol-without-target_section.exp
@@ -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}
diff --git a/gdb/testsuite/gdb.base/symfile-warn.exp b/gdb/testsuite/gdb.base/symfile-warn.exp
index 17f51071cb6d..1dc5e6aee4ad 100644
--- a/gdb/testsuite/gdb.base/symfile-warn.exp
+++ b/gdb/testsuite/gdb.base/symfile-warn.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/symlink-sourcefile.exp b/gdb/testsuite/gdb.base/symlink-sourcefile.exp
index 7870e16acc91..bc2249071eb5 100644
--- a/gdb/testsuite/gdb.base/symlink-sourcefile.exp
+++ b/gdb/testsuite/gdb.base/symlink-sourcefile.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/symtab-search-order.exp b/gdb/testsuite/gdb.base/symtab-search-order.exp
index 5ea8c18e3f3a..9709548b1297 100644
--- a/gdb/testsuite/gdb.base/symtab-search-order.exp
+++ b/gdb/testsuite/gdb.base/symtab-search-order.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/term.exp b/gdb/testsuite/gdb.base/term.exp
index 320bf6f496a8..b615d9a410e9 100644
--- a/gdb/testsuite/gdb.base/term.exp
+++ b/gdb/testsuite/gdb.base/term.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/thread-bp-multi-loc.exp b/gdb/testsuite/gdb.base/thread-bp-multi-loc.exp
index ce8d6737b92b..91c0f320935b 100644
--- a/gdb/testsuite/gdb.base/thread-bp-multi-loc.exp
+++ b/gdb/testsuite/gdb.base/thread-bp-multi-loc.exp
@@ -20,11 +20,11 @@
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
diff --git a/gdb/testsuite/gdb.base/tls-dlobj.exp b/gdb/testsuite/gdb.base/tls-dlobj.exp
index 2e1b50145413..2136af0fe7bc 100644
--- a/gdb/testsuite/gdb.base/tls-dlobj.exp
+++ b/gdb/testsuite/gdb.base/tls-dlobj.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/tls-multiobj.exp b/gdb/testsuite/gdb.base/tls-multiobj.exp
index 56318b934382..c0ad83c1db90 100644
--- a/gdb/testsuite/gdb.base/tls-multiobj.exp
+++ b/gdb/testsuite/gdb.base/tls-multiobj.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/traced-thread.exp b/gdb/testsuite/gdb.base/traced-thread.exp
index 9bf4ea131d1d..b6d354907225 100644
--- a/gdb/testsuite/gdb.base/traced-thread.exp
+++ b/gdb/testsuite/gdb.base/traced-thread.exp
@@ -22,7 +22,7 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug pthreads}]} {
- return -1
+ return
}
if {![runto "parent_stop"]} {
diff --git a/gdb/testsuite/gdb.base/ui-redirect.exp b/gdb/testsuite/gdb.base/ui-redirect.exp
index 5a37f485e74c..c1cb461496b8 100644
--- a/gdb/testsuite/gdb.base/ui-redirect.exp
+++ b/gdb/testsuite/gdb.base/ui-redirect.exp
@@ -17,11 +17,11 @@
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"
diff --git a/gdb/testsuite/gdb.base/until-nodebug.exp b/gdb/testsuite/gdb.base/until-nodebug.exp
index e23a0c915da6..5980bc435ced 100644
--- a/gdb/testsuite/gdb.base/until-nodebug.exp
+++ b/gdb/testsuite/gdb.base/until-nodebug.exp
@@ -19,7 +19,7 @@
standard_testfile advance.c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile nodebug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/until-trailing-insns.exp b/gdb/testsuite/gdb.base/until-trailing-insns.exp
index 531bc46aefa2..86909aa6dc41 100644
--- a/gdb/testsuite/gdb.base/until-trailing-insns.exp
+++ b/gdb/testsuite/gdb.base/until-trailing-insns.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/until.exp b/gdb/testsuite/gdb.base/until.exp
index 7c16592fe6ae..58f9174af988 100644
--- a/gdb/testsuite/gdb.base/until.exp
+++ b/gdb/testsuite/gdb.base/until.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl b/gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl
index c037ff2071af..471342684aec 100644
--- a/gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl
+++ b/gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/unwindonsignal.exp b/gdb/testsuite/gdb.base/unwindonsignal.exp
index 64f86bfd2820..cd98b9fdd02f 100644
--- a/gdb/testsuite/gdb.base/unwindonsignal.exp
+++ b/gdb/testsuite/gdb.base/unwindonsignal.exp
@@ -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] } {
diff --git a/gdb/testsuite/gdb.base/utf8-identifiers.exp b/gdb/testsuite/gdb.base/utf8-identifiers.exp
index 95311b5494af..676cb2904c9e 100644
--- a/gdb/testsuite/gdb.base/utf8-identifiers.exp
+++ b/gdb/testsuite/gdb.base/utf8-identifiers.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/valgrind-bt.exp b/gdb/testsuite/gdb.base/valgrind-bt.exp
index dd2b1ed83940..36614427cf9b 100644
--- a/gdb/testsuite/gdb.base/valgrind-bt.exp
+++ b/gdb/testsuite/gdb.base/valgrind-bt.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/valgrind-disp-step.exp b/gdb/testsuite/gdb.base/valgrind-disp-step.exp
index 13f36837d5e2..2b2d5b5b8e6e 100644
--- a/gdb/testsuite/gdb.base/valgrind-disp-step.exp
+++ b/gdb/testsuite/gdb.base/valgrind-disp-step.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/valgrind-infcall-2.exp b/gdb/testsuite/gdb.base/valgrind-infcall-2.exp
index 28fa2b78022f..77e92ce81f9d 100644
--- a/gdb/testsuite/gdb.base/valgrind-infcall-2.exp
+++ b/gdb/testsuite/gdb.base/valgrind-infcall-2.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/valgrind-infcall.exp b/gdb/testsuite/gdb.base/valgrind-infcall.exp
index 0bd6c837a28c..c39d31819837 100644
--- a/gdb/testsuite/gdb.base/valgrind-infcall.exp
+++ b/gdb/testsuite/gdb.base/valgrind-infcall.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/value-double-free.exp b/gdb/testsuite/gdb.base/value-double-free.exp
index 1b566b5fdd51..277d9bfd096e 100644
--- a/gdb/testsuite/gdb.base/value-double-free.exp
+++ b/gdb/testsuite/gdb.base/value-double-free.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/value-history-unavailable.exp b/gdb/testsuite/gdb.base/value-history-unavailable.exp
index 347271c22118..6e87bee29952 100644
--- a/gdb/testsuite/gdb.base/value-history-unavailable.exp
+++ b/gdb/testsuite/gdb.base/value-history-unavailable.exp
@@ -18,7 +18,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/vdso-warning.exp b/gdb/testsuite/gdb.base/vdso-warning.exp
index 37c481054e9d..4f61554dc68a 100644
--- a/gdb/testsuite/gdb.base/vdso-warning.exp
+++ b/gdb/testsuite/gdb.base/vdso-warning.exp
@@ -20,7 +20,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
- return -1
+ return
}
with_test_prefix "setup" {
diff --git a/gdb/testsuite/gdb.base/vfork-follow-parent.exp b/gdb/testsuite/gdb.base/vfork-follow-parent.exp
index 9e082ac91e49..40fd11ca8921 100644
--- a/gdb/testsuite/gdb.base/vfork-follow-parent.exp
+++ b/gdb/testsuite/gdb.base/vfork-follow-parent.exp
@@ -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] } {
diff --git a/gdb/testsuite/gdb.base/vla-datatypes.exp b/gdb/testsuite/gdb.base/vla-datatypes.exp
index ffc25bfa36b5..7453132bc6af 100644
--- a/gdb/testsuite/gdb.base/vla-datatypes.exp
+++ b/gdb/testsuite/gdb.base/vla-datatypes.exp
@@ -16,11 +16,11 @@
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"]
diff --git a/gdb/testsuite/gdb.base/vla-ptr.exp b/gdb/testsuite/gdb.base/vla-ptr.exp
index 74a1dc098163..33e29d5c2d9a 100644
--- a/gdb/testsuite/gdb.base/vla-ptr.exp
+++ b/gdb/testsuite/gdb.base/vla-ptr.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/vla-sideeffect.exp b/gdb/testsuite/gdb.base/vla-sideeffect.exp
index 02a8db210927..34756b36feb9 100644
--- a/gdb/testsuite/gdb.base/vla-sideeffect.exp
+++ b/gdb/testsuite/gdb.base/vla-sideeffect.exp
@@ -19,11 +19,11 @@
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"]
diff --git a/gdb/testsuite/gdb.base/vla-struct-fields.exp b/gdb/testsuite/gdb.base/vla-struct-fields.exp
index 9ed7762b8dc1..514ec9edff53 100644
--- a/gdb/testsuite/gdb.base/vla-struct-fields.exp
+++ b/gdb/testsuite/gdb.base/vla-struct-fields.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/vla-stub.exp b/gdb/testsuite/gdb.base/vla-stub.exp
index 0258a629c9ed..6759a2655bce 100644
--- a/gdb/testsuite/gdb.base/vla-stub.exp
+++ b/gdb/testsuite/gdb.base/vla-stub.exp
@@ -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}}
diff --git a/gdb/testsuite/gdb.base/volatile.exp b/gdb/testsuite/gdb.base/volatile.exp
index f244303a3de1..38b4588d568d 100644
--- a/gdb/testsuite/gdb.base/volatile.exp
+++ b/gdb/testsuite/gdb.base/volatile.exp
@@ -36,7 +36,7 @@
# Use the same test program constvars.c.
if { [prepare_for_testing "failed to prepare" volatile constvars.c] } {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/watch-bitfields.exp b/gdb/testsuite/gdb.base/watch-bitfields.exp
index 83f33de12e4a..30e90fecf6b8 100644
--- a/gdb/testsuite/gdb.base/watch-bitfields.exp
+++ b/gdb/testsuite/gdb.base/watch-bitfields.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/watch-cond-infcall.exp b/gdb/testsuite/gdb.base/watch-cond-infcall.exp
index 32a0632eae14..ed62a39926d3 100644
--- a/gdb/testsuite/gdb.base/watch-cond-infcall.exp
+++ b/gdb/testsuite/gdb.base/watch-cond-infcall.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/watch-cond.exp b/gdb/testsuite/gdb.base/watch-cond.exp
index 4b0a93be2075..0d283ad90582 100644
--- a/gdb/testsuite/gdb.base/watch-cond.exp
+++ b/gdb/testsuite/gdb.base/watch-cond.exp
@@ -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.
diff --git a/gdb/testsuite/gdb.base/watch-non-mem.exp b/gdb/testsuite/gdb.base/watch-non-mem.exp
index 95591301287b..42dc3c8a80ff 100644
--- a/gdb/testsuite/gdb.base/watch-non-mem.exp
+++ b/gdb/testsuite/gdb.base/watch-non-mem.exp
@@ -20,7 +20,7 @@
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/watch-read.exp b/gdb/testsuite/gdb.base/watch-read.exp
index 49eb787347ec..378bae067752 100644
--- a/gdb/testsuite/gdb.base/watch-read.exp
+++ b/gdb/testsuite/gdb.base/watch-read.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/watch-vfork.exp b/gdb/testsuite/gdb.base/watch-vfork.exp
index 588a94c8218a..6df3a7ddbacc 100644
--- a/gdb/testsuite/gdb.base/watch-vfork.exp
+++ b/gdb/testsuite/gdb.base/watch-vfork.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/watchpoint-cond-gone.exp b/gdb/testsuite/gdb.base/watchpoint-cond-gone.exp
index 546c2b4349f7..823334ec5034 100644
--- a/gdb/testsuite/gdb.base/watchpoint-cond-gone.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-cond-gone.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/watchpoint-delete.exp b/gdb/testsuite/gdb.base/watchpoint-delete.exp
index 91d28d705389..f410298a5ece 100644
--- a/gdb/testsuite/gdb.base/watchpoint-delete.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-delete.exp
@@ -16,14 +16,14 @@
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.
diff --git a/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp b/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp
index e87cc72dfc0e..2962f6964bf1 100644
--- a/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp
@@ -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]
diff --git a/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp b/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
index 60b8ed826404..c8723e9dafe0 100644
--- a/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-hw-hit-once.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/watchpoint-hw.exp b/gdb/testsuite/gdb.base/watchpoint-hw.exp
index af5c6712b93b..537fceec9142 100644
--- a/gdb/testsuite/gdb.base/watchpoint-hw.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-hw.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp b/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp
index 44ede1e46546..85494e5463ed 100644
--- a/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/watchpoint-running.exp b/gdb/testsuite/gdb.base/watchpoint-running.exp
index 95b506a80b61..232ecf5721c2 100644
--- a/gdb/testsuite/gdb.base/watchpoint-running.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-running.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp b/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp
index bf4851ca6c82..53d1064c76de 100644
--- a/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-stops-at-right-insn.exp
@@ -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]} {
diff --git a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp
index 8b929e5de4e6..e19a5c189c50 100644
--- a/gdb/testsuite/gdb.base/watchpoint-unaligned.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-unaligned.exp
@@ -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"
diff --git a/gdb/testsuite/gdb.base/watchpoints.exp b/gdb/testsuite/gdb.base/watchpoints.exp
index 89a7075f5f5e..969210ad625b 100644
--- a/gdb/testsuite/gdb.base/watchpoints.exp
+++ b/gdb/testsuite/gdb.base/watchpoints.exp
@@ -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" {
diff --git a/gdb/testsuite/gdb.base/wchar.exp b/gdb/testsuite/gdb.base/wchar.exp
index e05cb4b0b03a..d3cfd09d5de4 100644
--- a/gdb/testsuite/gdb.base/wchar.exp
+++ b/gdb/testsuite/gdb.base/wchar.exp
@@ -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"]
diff --git a/gdb/testsuite/gdb.base/whatis-exp.exp b/gdb/testsuite/gdb.base/whatis-exp.exp
index 7ee69c3b2463..34652005a4f6 100644
--- a/gdb/testsuite/gdb.base/whatis-exp.exp
+++ b/gdb/testsuite/gdb.base/whatis-exp.exp
@@ -30,7 +30,7 @@
#
if { [prepare_for_testing "failed to prepare" whatis-exp int-type.c {debug nowarnings}] } {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/with-mf.exp b/gdb/testsuite/gdb.base/with-mf.exp
index 44c331102e6a..5a6e43e85d11 100644
--- a/gdb/testsuite/gdb.base/with-mf.exp
+++ b/gdb/testsuite/gdb.base/with-mf.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/with.exp b/gdb/testsuite/gdb.base/with.exp
index c01804d5ea65..101c6dcccf93 100644
--- a/gdb/testsuite/gdb.base/with.exp
+++ b/gdb/testsuite/gdb.base/with.exp
@@ -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
diff --git a/gdb/testsuite/gdb.base/write_mem.exp b/gdb/testsuite/gdb.base/write_mem.exp
index 6881211692a3..2c9509dd6583 100644
--- a/gdb/testsuite/gdb.base/write_mem.exp
+++ b/gdb/testsuite/gdb.base/write_mem.exp
@@ -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 } {
diff --git a/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp b/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp
index 3087466c82aa..98680e5c5a32 100644
--- a/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp
+++ b/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp
@@ -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
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 14/36] GDB: testsuite: base: Don't return 0 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (12 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 13/36] GDB: testsuite: base: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 15/36] GDB: testsuite: base: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (21 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is a bit different than the others. I noticed that gdb.base
has many cases of "return 0" from the top level, so this patch is purely
the result of running:
$ sed -i 's/^ return 0/ return/' *.exp*
inside gdb/testsuite/gdb.base.
There were a number of false positives so not all sed changes were
incorporated.
---
gdb/testsuite/gdb.base/advance.exp | 2 +-
gdb/testsuite/gdb.base/asmlabel.exp | 2 +-
gdb/testsuite/gdb.base/attach-pie-noexec.exp | 4 ++--
gdb/testsuite/gdb.base/auto-connect-native-target.exp | 2 +-
gdb/testsuite/gdb.base/auxv.exp | 2 +-
gdb/testsuite/gdb.base/backtrace.exp | 2 +-
gdb/testsuite/gdb.base/break-caller-line.exp | 4 ++--
gdb/testsuite/gdb.base/call-signal-resume.exp | 4 ++--
gdb/testsuite/gdb.base/callexit.exp | 2 +-
gdb/testsuite/gdb.base/clear_non_user_bp.exp | 2 +-
gdb/testsuite/gdb.base/compare-sections.exp | 2 +-
gdb/testsuite/gdb.base/complex-parts.exp | 2 +-
gdb/testsuite/gdb.base/condbreak-call-false.exp | 2 +-
gdb/testsuite/gdb.base/consecutive-step-over.exp | 2 +-
gdb/testsuite/gdb.base/corefile-exec-context.exp | 4 ++--
gdb/testsuite/gdb.base/corefile.exp | 2 +-
gdb/testsuite/gdb.base/corefile2.exp | 2 +-
gdb/testsuite/gdb.base/ctf-constvars.exp | 2 +-
gdb/testsuite/gdb.base/ctf-ptype.exp | 2 +-
gdb/testsuite/gdb.base/decl-before-def.exp | 2 +-
gdb/testsuite/gdb.base/dup-sect.exp | 2 +-
gdb/testsuite/gdb.base/eh_return.exp | 2 +-
gdb/testsuite/gdb.base/eu-strip-infcall.exp | 2 +-
gdb/testsuite/gdb.base/frameapply.exp | 2 +-
gdb/testsuite/gdb.base/func-ptr.exp | 2 +-
gdb/testsuite/gdb.base/gdb11530.exp | 2 +-
gdb/testsuite/gdb.base/gdb1555.exp | 2 +-
gdb/testsuite/gdb.base/info-locals-unused-static-var.exp | 2 +-
gdb/testsuite/gdb.base/info-shared.exp | 2 +-
gdb/testsuite/gdb.base/info_qt.exp | 2 +-
gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp | 2 +-
gdb/testsuite/gdb.base/interrupt.exp | 2 +-
gdb/testsuite/gdb.base/label-without-address.exp | 2 +-
gdb/testsuite/gdb.base/list-missing-source.exp | 2 +-
gdb/testsuite/gdb.base/macscp.exp | 4 ++--
.../gdb.base/maint-info-inline-frames-and-blocks.exp | 2 +-
| 2 +-
gdb/testsuite/gdb.base/max-value-size.exp | 2 +-
gdb/testsuite/gdb.base/pr11022.exp | 2 +-
gdb/testsuite/gdb.base/prelink.exp | 2 +-
gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp | 2 +-
gdb/testsuite/gdb.base/print-internal-string.exp | 2 +-
gdb/testsuite/gdb.base/ptype-offsets-c.exp | 2 +-
gdb/testsuite/gdb.base/ptype-offsets.exp | 2 +-
gdb/testsuite/gdb.base/reggroups.exp | 2 +-
gdb/testsuite/gdb.base/rtld-step.exp | 2 +-
gdb/testsuite/gdb.base/savedregs.exp | 2 +-
gdb/testsuite/gdb.base/set-noassign.exp | 2 +-
gdb/testsuite/gdb.base/shreloc.exp | 2 +-
gdb/testsuite/gdb.base/sigaltstack.exp | 2 +-
gdb/testsuite/gdb.base/sigbpt.exp | 2 +-
gdb/testsuite/gdb.base/siginfo-addr.exp | 2 +-
gdb/testsuite/gdb.base/siginfo-obj.exp | 4 ++--
gdb/testsuite/gdb.base/siginfo-thread.exp | 2 +-
gdb/testsuite/gdb.base/siginfo.exp | 2 +-
gdb/testsuite/gdb.base/signull.exp | 2 +-
gdb/testsuite/gdb.base/sigrepeat.exp | 2 +-
gdb/testsuite/gdb.base/solib-disc.exp | 8 ++++----
gdb/testsuite/gdb.base/source-execution.exp | 2 +-
gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp | 2 +-
gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp | 2 +-
gdb/testsuite/gdb.base/stack-checking.exp | 2 +-
gdb/testsuite/gdb.base/stack-protector.exp | 2 +-
gdb/testsuite/gdb.base/structs2.exp | 2 +-
gdb/testsuite/gdb.base/sym-file.exp | 2 +-
gdb/testsuite/gdb.base/symlink-sourcefile.exp | 2 +-
gdb/testsuite/gdb.base/term.exp | 2 +-
gdb/testsuite/gdb.base/type-opaque.exp | 2 +-
gdb/testsuite/gdb.base/until-nodebug.exp | 2 +-
gdb/testsuite/gdb.base/until.exp | 2 +-
gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl | 2 +-
gdb/testsuite/gdb.base/unwindonsignal.exp | 2 +-
gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp | 2 +-
73 files changed, 82 insertions(+), 82 deletions(-)
diff --git a/gdb/testsuite/gdb.base/advance.exp b/gdb/testsuite/gdb.base/advance.exp
index fe05dd3a3c37..9cde2de12b48 100644
--- a/gdb/testsuite/gdb.base/advance.exp
+++ b/gdb/testsuite/gdb.base/advance.exp
@@ -22,7 +22,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
# Verify that "advance <location>" works. (This is really just syntactic
diff --git a/gdb/testsuite/gdb.base/asmlabel.exp b/gdb/testsuite/gdb.base/asmlabel.exp
index 15f3695d796c..cfda30085737 100644
--- a/gdb/testsuite/gdb.base/asmlabel.exp
+++ b/gdb/testsuite/gdb.base/asmlabel.exp
@@ -38,7 +38,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
set L1_bploc [gdb_get_line_number "set L1 breakpoint here" $srcfile]
diff --git a/gdb/testsuite/gdb.base/attach-pie-noexec.exp b/gdb/testsuite/gdb.base/attach-pie-noexec.exp
index 54a4b0bffae7..b332a092544c 100644
--- a/gdb/testsuite/gdb.base/attach-pie-noexec.exp
+++ b/gdb/testsuite/gdb.base/attach-pie-noexec.exp
@@ -31,7 +31,7 @@ gdb_test_multiple $test $test {
}
}
if {![runto_main]} {
- return 0
+ return
}
set test "sanity check info shared"
gdb_test_multiple "info shared" $test {
@@ -46,7 +46,7 @@ gdb_exit
if {$arch == ""} {
untested "no architecture set"
- return 0
+ return
}
# Start the program running and then wait for a bit, to be sure
diff --git a/gdb/testsuite/gdb.base/auto-connect-native-target.exp b/gdb/testsuite/gdb.base/auto-connect-native-target.exp
index 4529d68e16c6..a5a95b8b5a0a 100644
--- a/gdb/testsuite/gdb.base/auto-connect-native-target.exp
+++ b/gdb/testsuite/gdb.base/auto-connect-native-target.exp
@@ -53,7 +53,7 @@ if { $topmost != "exec" } {
# Check which target this board connects to. If testing with a native
# target board, this should cause the native target to auto connect.
if {![runto_main]} {
- return 0
+ return
}
# Returns true if the native target is pushed on the target stack.
diff --git a/gdb/testsuite/gdb.base/auxv.exp b/gdb/testsuite/gdb.base/auxv.exp
index 79e897078e5d..9d32cee85522 100644
--- a/gdb/testsuite/gdb.base/auxv.exp
+++ b/gdb/testsuite/gdb.base/auxv.exp
@@ -53,7 +53,7 @@ if {$core_works} {
}
if {![runto_main]} {
- return 0
+ return
}
set print_core_line [gdb_get_line_number "ABORT;"]
gdb_test "tbreak $print_core_line"
diff --git a/gdb/testsuite/gdb.base/backtrace.exp b/gdb/testsuite/gdb.base/backtrace.exp
index 612dd2ad6a87..7aee6b1cebc3 100644
--- a/gdb/testsuite/gdb.base/backtrace.exp
+++ b/gdb/testsuite/gdb.base/backtrace.exp
@@ -22,7 +22,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
}
if {![runto_main]} {
- return 0
+ return
}
# Run to the breakpoint at return.
diff --git a/gdb/testsuite/gdb.base/break-caller-line.exp b/gdb/testsuite/gdb.base/break-caller-line.exp
index 7fdef95cc607..c7a136a6663e 100644
--- a/gdb/testsuite/gdb.base/break-caller-line.exp
+++ b/gdb/testsuite/gdb.base/break-caller-line.exp
@@ -20,7 +20,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile}] } {
}
if {![runto callee]} {
- return 0
+ return
}
set test "up"
@@ -41,7 +41,7 @@ gdb_test_multiple $test $test {
if {$notcurrent == $current} {
untested "target arch has an instruction after call as part of the caller line"
- return 0
+ return
}
set test "break"
diff --git a/gdb/testsuite/gdb.base/call-signal-resume.exp b/gdb/testsuite/gdb.base/call-signal-resume.exp
index 8f12b1618be1..4ade8c2d245a 100644
--- a/gdb/testsuite/gdb.base/call-signal-resume.exp
+++ b/gdb/testsuite/gdb.base/call-signal-resume.exp
@@ -45,7 +45,7 @@ proc get_dummy_frame_number { } {
}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break stop_one" "Breakpoint \[0-9\]* at .*"
@@ -57,7 +57,7 @@ gdb_test "continue" "Continuing.*Breakpoint \[0-9\]*, stop_one.*" \
if {[gdb_test "call gen_signal ()" \
"\[\r\n\]*The program being debugged was signaled.*" \
"inferior function call signaled"] != 0} {
- return 0
+ return
}
set frame_number [get_dummy_frame_number]
diff --git a/gdb/testsuite/gdb.base/callexit.exp b/gdb/testsuite/gdb.base/callexit.exp
index 986d225d3aad..376d1f0c14cb 100644
--- a/gdb/testsuite/gdb.base/callexit.exp
+++ b/gdb/testsuite/gdb.base/callexit.exp
@@ -24,7 +24,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile] != 0 } {
}
if { ![runto_main] } {
- return 0
+ return
}
# Verify set may-call-functions behavior.
diff --git a/gdb/testsuite/gdb.base/clear_non_user_bp.exp b/gdb/testsuite/gdb.base/clear_non_user_bp.exp
index ead811f68546..22e67c935cd7 100644
--- a/gdb/testsuite/gdb.base/clear_non_user_bp.exp
+++ b/gdb/testsuite/gdb.base/clear_non_user_bp.exp
@@ -46,7 +46,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile] != 0 } {
}
if {![runto_main]} {
- return 0
+ return
}
set bp_num [get_first_maint_bp_num]
diff --git a/gdb/testsuite/gdb.base/compare-sections.exp b/gdb/testsuite/gdb.base/compare-sections.exp
index f647cc5a8491..bf6207061778 100644
--- a/gdb/testsuite/gdb.base/compare-sections.exp
+++ b/gdb/testsuite/gdb.base/compare-sections.exp
@@ -80,7 +80,7 @@ gdb_test_multiple $command $test {
# Now get past startup code.
if {![runto_main]} {
- return 0
+ return
}
with_test_prefix "after run to main" {
diff --git a/gdb/testsuite/gdb.base/complex-parts.exp b/gdb/testsuite/gdb.base/complex-parts.exp
index 56260996bdb6..b156dcb2646c 100644
--- a/gdb/testsuite/gdb.base/complex-parts.exp
+++ b/gdb/testsuite/gdb.base/complex-parts.exp
@@ -20,7 +20,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
set marker " Break Here. "
diff --git a/gdb/testsuite/gdb.base/condbreak-call-false.exp b/gdb/testsuite/gdb.base/condbreak-call-false.exp
index 32113e3b9501..0a240601b348 100644
--- a/gdb/testsuite/gdb.base/condbreak-call-false.exp
+++ b/gdb/testsuite/gdb.base/condbreak-call-false.exp
@@ -23,7 +23,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "break foo if zero()" "Breakpoint .*"
diff --git a/gdb/testsuite/gdb.base/consecutive-step-over.exp b/gdb/testsuite/gdb.base/consecutive-step-over.exp
index d7efec8f418d..12ef2dcc4d4f 100644
--- a/gdb/testsuite/gdb.base/consecutive-step-over.exp
+++ b/gdb/testsuite/gdb.base/consecutive-step-over.exp
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
# Make sure the target doesn't hide the breakpoint hits (that don't
diff --git a/gdb/testsuite/gdb.base/corefile-exec-context.exp b/gdb/testsuite/gdb.base/corefile-exec-context.exp
index bf935a795e7d..8c342171cecf 100644
--- a/gdb/testsuite/gdb.base/corefile-exec-context.exp
+++ b/gdb/testsuite/gdb.base/corefile-exec-context.exp
@@ -44,7 +44,7 @@ if { $binfile_len <= 80 } {
set corefile [core_find $binfile {}]
if {$corefile == ""} {
untested "unable to create corefile"
- return 0
+ return
}
set corefile_1 "$binfile.1.core"
remote_exec build "mv $corefile $corefile_1"
@@ -73,7 +73,7 @@ set args "aaaaa bbbbb ccccc ddddd e\\\\ e\\\\ e\\\\ e\\\\ e"
set corefile [core_find $binfile {} $args]
if {$corefile == ""} {
untested "unable to create corefile"
- return 0
+ return
}
set corefile_2 "$binfile.2.core"
remote_exec build "mv $corefile $corefile_2"
diff --git a/gdb/testsuite/gdb.base/corefile.exp b/gdb/testsuite/gdb.base/corefile.exp
index 31249355353f..4f36dc58b29c 100644
--- a/gdb/testsuite/gdb.base/corefile.exp
+++ b/gdb/testsuite/gdb.base/corefile.exp
@@ -32,7 +32,7 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
set corefile [core_find $binfile {}]
if {$corefile == ""} {
untested "unable to create or find corefile"
- return 0
+ return
}
# Start GDB with COREFILE passed as a command line argument. COREOPT
diff --git a/gdb/testsuite/gdb.base/corefile2.exp b/gdb/testsuite/gdb.base/corefile2.exp
index 805e08973f6b..d98e8b0bd301 100644
--- a/gdb/testsuite/gdb.base/corefile2.exp
+++ b/gdb/testsuite/gdb.base/corefile2.exp
@@ -41,7 +41,7 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
set corefile [core_find $binfile {}]
if {$corefile == ""} {
untested "unable to create or find corefile"
- return 0
+ return
}
gdb_start
diff --git a/gdb/testsuite/gdb.base/ctf-constvars.exp b/gdb/testsuite/gdb.base/ctf-constvars.exp
index 0fc59f226e45..9a98aaebe68a 100644
--- a/gdb/testsuite/gdb.base/ctf-constvars.exp
+++ b/gdb/testsuite/gdb.base/ctf-constvars.exp
@@ -36,7 +36,7 @@ lappend opts nowarnings
if { [build_executable "failed to prepare" ${testfile} \
[list $srcfile] $opts] } {
- return 0
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.base/ctf-ptype.exp b/gdb/testsuite/gdb.base/ctf-ptype.exp
index d3c3b46140c5..aabe3c9187d5 100644
--- a/gdb/testsuite/gdb.base/ctf-ptype.exp
+++ b/gdb/testsuite/gdb.base/ctf-ptype.exp
@@ -30,7 +30,7 @@ lappend opts nowarnings
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile] $opts] } {
- return 0
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.base/decl-before-def.exp b/gdb/testsuite/gdb.base/decl-before-def.exp
index 66083d2aa710..396fd31bb850 100644
--- a/gdb/testsuite/gdb.base/decl-before-def.exp
+++ b/gdb/testsuite/gdb.base/decl-before-def.exp
@@ -26,7 +26,7 @@ gdb_test "maint expand-symtabs"
gdb_test "p a" { = \{1, 2\}} "no running process: p a"
if {![runto_main]} {
- return 0
+ return
}
gdb_test "p a" { = \{1, 2\}} "running process: p a"
diff --git a/gdb/testsuite/gdb.base/dup-sect.exp b/gdb/testsuite/gdb.base/dup-sect.exp
index ef9ba340ae24..b20c0e8ca731 100644
--- a/gdb/testsuite/gdb.base/dup-sect.exp
+++ b/gdb/testsuite/gdb.base/dup-sect.exp
@@ -29,7 +29,7 @@ if {![istarget *-*-linux*]
&& ![istarget *-*-elf*]
&& ![istarget arm*-*-eabi*]
&& ![istarget powerpc-*-eabi*]} {
- return 0
+ return
}
standard_testfile .S
diff --git a/gdb/testsuite/gdb.base/eh_return.exp b/gdb/testsuite/gdb.base/eh_return.exp
index c6f1d7375c58..5a32ab0d2b89 100644
--- a/gdb/testsuite/gdb.base/eh_return.exp
+++ b/gdb/testsuite/gdb.base/eh_return.exp
@@ -68,7 +68,7 @@ gdb_test_multiple "disassemble eh2" "" {
}
if { $address == -1 } {
- return 0
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.base/eu-strip-infcall.exp b/gdb/testsuite/gdb.base/eu-strip-infcall.exp
index 73df0e5650bb..6cc079e81688 100644
--- a/gdb/testsuite/gdb.base/eu-strip-infcall.exp
+++ b/gdb/testsuite/gdb.base/eu-strip-infcall.exp
@@ -23,7 +23,7 @@ set test "eu-strip"
set status [remote_exec build "eu-strip -f ${binfile}.debug $binfile"]
if {[lindex $status 0] != 0} {
untested "failed to compile"
- return 0
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.base/frameapply.exp b/gdb/testsuite/gdb.base/frameapply.exp
index 7525ba5085c5..2ca2ce0461ff 100644
--- a/gdb/testsuite/gdb.base/frameapply.exp
+++ b/gdb/testsuite/gdb.base/frameapply.exp
@@ -25,7 +25,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile}] } {
}
if {![runto setup_done]} {
- return 0
+ return
}
set any "\[^\r\n\]*"
diff --git a/gdb/testsuite/gdb.base/func-ptr.exp b/gdb/testsuite/gdb.base/func-ptr.exp
index 0f656d127807..ba2807704aba 100644
--- a/gdb/testsuite/gdb.base/func-ptr.exp
+++ b/gdb/testsuite/gdb.base/func-ptr.exp
@@ -22,7 +22,7 @@ if { [prepare_for_testing "failed to prepare" "func-ptr" {func-ptr.c} {debug}] }
}
if {![runto_main]} {
- return 0
+ return
}
# This would put gdb into an infinite loop.
diff --git a/gdb/testsuite/gdb.base/gdb11530.exp b/gdb/testsuite/gdb.base/gdb11530.exp
index fb293b986c7d..678b1184d30c 100644
--- a/gdb/testsuite/gdb.base/gdb11530.exp
+++ b/gdb/testsuite/gdb.base/gdb11530.exp
@@ -23,7 +23,7 @@ standard_testfile
# Unnamed union is a GNU extension, thus we restrict the test
# to gcc compiler.
if { ![test_compiler_info gcc*] } {
- return 0
+ return
}
if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug}] } {
diff --git a/gdb/testsuite/gdb.base/gdb1555.exp b/gdb/testsuite/gdb.base/gdb1555.exp
index 9b463b75d541..6402a8f4e291 100644
--- a/gdb/testsuite/gdb.base/gdb1555.exp
+++ b/gdb/testsuite/gdb.base/gdb1555.exp
@@ -40,7 +40,7 @@ if { [prepare_for_testing "prepare" $testfile $execsrc\
gdb_load_shlib $libobj
if {![runto_main]} {
- return 0
+ return
}
# PR/1555 (was shlib 1280)
diff --git a/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp b/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp
index a1fffc51ea2b..8834b73fdf6d 100644
--- a/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp
+++ b/gdb/testsuite/gdb.base/info-locals-unused-static-var.exp
@@ -33,7 +33,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "info locals" "\r\nb = .*"
diff --git a/gdb/testsuite/gdb.base/info-shared.exp b/gdb/testsuite/gdb.base/info-shared.exp
index 41a47a30d7d6..993e64f64a27 100644
--- a/gdb/testsuite/gdb.base/info-shared.exp
+++ b/gdb/testsuite/gdb.base/info-shared.exp
@@ -85,7 +85,7 @@ check_info_shared "info sharedlibrary before running" 0 0
# Start the inferior, and check neither of the libraries are loaded at
# the start.
if {![runto_main]} {
- return 0
+ return
}
check_info_shared "info sharedlibrary #1" 0 0
diff --git a/gdb/testsuite/gdb.base/info_qt.exp b/gdb/testsuite/gdb.base/info_qt.exp
index 40cd9547bae8..6ae4fc3bf7ac 100644
--- a/gdb/testsuite/gdb.base/info_qt.exp
+++ b/gdb/testsuite/gdb.base/info_qt.exp
@@ -28,7 +28,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile}] } {
}
if {![runto setup_done]} {
- return 0
+ return
}
set any "\[^\r\n\]*"
diff --git a/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp b/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
index 4bda78dd27d6..3a378cd69601 100644
--- a/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
+++ b/gdb/testsuite/gdb.base/inline-frame-cycle-unwind.exp
@@ -58,7 +58,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
}
if {![runto_main]} {
- return 0
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
diff --git a/gdb/testsuite/gdb.base/interrupt.exp b/gdb/testsuite/gdb.base/interrupt.exp
index 44a27434bc2b..884a66a0d561 100644
--- a/gdb/testsuite/gdb.base/interrupt.exp
+++ b/gdb/testsuite/gdb.base/interrupt.exp
@@ -36,7 +36,7 @@ gdb_start
if {![file exists $binfile]} {
- return 0
+ return
} else {
gdb_reinitialize_dir $srcdir/$subdir
gdb_load $binfile
diff --git a/gdb/testsuite/gdb.base/label-without-address.exp b/gdb/testsuite/gdb.base/label-without-address.exp
index 7796de94c078..1a6a5f611426 100644
--- a/gdb/testsuite/gdb.base/label-without-address.exp
+++ b/gdb/testsuite/gdb.base/label-without-address.exp
@@ -20,7 +20,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
set supported 0
diff --git a/gdb/testsuite/gdb.base/list-missing-source.exp b/gdb/testsuite/gdb.base/list-missing-source.exp
index fb78c85ffb08..b5b1919073fd 100644
--- a/gdb/testsuite/gdb.base/list-missing-source.exp
+++ b/gdb/testsuite/gdb.base/list-missing-source.exp
@@ -46,7 +46,7 @@ remote_file host delete $srcfile
clean_restart $testfile
if {![runto_main]} {
- return 0
+ return
}
gdb_test "list" "1\[ \t\]+in\[ \t\]+$srcfile"
diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp
index 44debe1e7f87..e40bfb633378 100644
--- a/gdb/testsuite/gdb.base/macscp.exp
+++ b/gdb/testsuite/gdb.base/macscp.exp
@@ -205,7 +205,7 @@ gdb_test_multiple "info source" "test macro information" {
}
if {$macro_support == 0} {
unsupported "skipping test because debug information does not include macro information."
- return 0
+ return
}
list_and_check_macro main WHERE {macscp1.c {before macscp1_3}}
@@ -334,7 +334,7 @@ proc maybe_kfail { func test_name } {
# Start the program running.
if {! [runto_main]} {
- return 0
+ return
}
# Set a breakpoint on each of the functions.
diff --git a/gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp b/gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp
index b123162d6e5b..f6e4c27e4581 100644
--- a/gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp
+++ b/gdb/testsuite/gdb.base/maint-info-inline-frames-and-blocks.exp
@@ -24,7 +24,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
}
if {![runto normal_func]} {
- return 0
+ return
}
# Make a pattern to match 'maint info blocks' output. ARGS is the
--git a/gdb/testsuite/gdb.base/many-headers.exp b/gdb/testsuite/gdb.base/many-headers.exp
index 6b13db61e740..049c601cf675 100644
--- a/gdb/testsuite/gdb.base/many-headers.exp
+++ b/gdb/testsuite/gdb.base/many-headers.exp
@@ -34,7 +34,7 @@ if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
set corefile [core_find $binfile]
if {$corefile == ""} {
untested "unable to create or find corefile"
- return 0
+ return
}
# Limit is in kb, so this is 4MB.
diff --git a/gdb/testsuite/gdb.base/max-value-size.exp b/gdb/testsuite/gdb.base/max-value-size.exp
index ba5266401ee8..ddd38d84004e 100644
--- a/gdb/testsuite/gdb.base/max-value-size.exp
+++ b/gdb/testsuite/gdb.base/max-value-size.exp
@@ -20,7 +20,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
# Run "show max-value-size" and return the interesting bit of the
diff --git a/gdb/testsuite/gdb.base/pr11022.exp b/gdb/testsuite/gdb.base/pr11022.exp
index 524d6901c94a..4d85a8ad28a2 100644
--- a/gdb/testsuite/gdb.base/pr11022.exp
+++ b/gdb/testsuite/gdb.base/pr11022.exp
@@ -22,7 +22,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile] != 0 } {
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "break [gdb_get_line_number "break here"]" \
diff --git a/gdb/testsuite/gdb.base/prelink.exp b/gdb/testsuite/gdb.base/prelink.exp
index 4f18af4739c2..e05bc55d6070 100644
--- a/gdb/testsuite/gdb.base/prelink.exp
+++ b/gdb/testsuite/gdb.base/prelink.exp
@@ -81,7 +81,7 @@ remote_exec build "rmdir $coredir"
if { $found == 0 } {
warning "can't generate a core file - prelink tests suppressed - check ulimit -c"
- return 0
+ return
}
# Relink $libfile to a different address.
diff --git a/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp b/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
index c3e9fdbc6b9e..9f16d5db42c9 100644
--- a/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
+++ b/gdb/testsuite/gdb.base/premature-dummy-frame-removal.exp
@@ -43,7 +43,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
}
if {![runto_main]} {
- return 0
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
diff --git a/gdb/testsuite/gdb.base/print-internal-string.exp b/gdb/testsuite/gdb.base/print-internal-string.exp
index 7ebf8ed9b4d4..d3d694480955 100644
--- a/gdb/testsuite/gdb.base/print-internal-string.exp
+++ b/gdb/testsuite/gdb.base/print-internal-string.exp
@@ -24,7 +24,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
}
if {![runto_main]} {
- return 0
+ return
}
if {[allow_python_tests]} {
diff --git a/gdb/testsuite/gdb.base/ptype-offsets-c.exp b/gdb/testsuite/gdb.base/ptype-offsets-c.exp
index fd88514f5f6b..9bee7b3f65b9 100644
--- a/gdb/testsuite/gdb.base/ptype-offsets-c.exp
+++ b/gdb/testsuite/gdb.base/ptype-offsets-c.exp
@@ -26,7 +26,7 @@ standard_testfile .c
# expected holes will be present in the struct.
if { ![is_lp64_target] } {
untested "test work only on lp64 targets"
- return 0
+ return
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
diff --git a/gdb/testsuite/gdb.base/ptype-offsets.exp b/gdb/testsuite/gdb.base/ptype-offsets.exp
index 56dca939fb33..bfee676e112f 100644
--- a/gdb/testsuite/gdb.base/ptype-offsets.exp
+++ b/gdb/testsuite/gdb.base/ptype-offsets.exp
@@ -24,7 +24,7 @@ standard_testfile .cc
# expected holes will be present in the struct.
if { ![is_lp64_target] } {
untested "test work only on lp64 targets"
- return 0
+ return
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
diff --git a/gdb/testsuite/gdb.base/reggroups.exp b/gdb/testsuite/gdb.base/reggroups.exp
index f3866ec51cf4..2ff8d0940998 100644
--- a/gdb/testsuite/gdb.base/reggroups.exp
+++ b/gdb/testsuite/gdb.base/reggroups.exp
@@ -24,7 +24,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
set invalid_register_re "Invalid register \[^\r\n\]*"
diff --git a/gdb/testsuite/gdb.base/rtld-step.exp b/gdb/testsuite/gdb.base/rtld-step.exp
index 57f878dfb395..12e1cabc44db 100644
--- a/gdb/testsuite/gdb.base/rtld-step.exp
+++ b/gdb/testsuite/gdb.base/rtld-step.exp
@@ -121,7 +121,7 @@ clean_restart
gdb_load $binfile_main
if {![runto_main]} {
- return 0
+ return
}
# Running the command 'info sharedlibrary' should output a path to
diff --git a/gdb/testsuite/gdb.base/savedregs.exp b/gdb/testsuite/gdb.base/savedregs.exp
index 35dc10acae19..985500bb62f4 100644
--- a/gdb/testsuite/gdb.base/savedregs.exp
+++ b/gdb/testsuite/gdb.base/savedregs.exp
@@ -35,7 +35,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile] != 0 } {
# Advance to main
if {![runto_main]} {
- return 0
+ return
}
proc process_saved_regs { current inner outer } {
diff --git a/gdb/testsuite/gdb.base/set-noassign.exp b/gdb/testsuite/gdb.base/set-noassign.exp
index 0f3b843cd1fe..621769ea9c30 100644
--- a/gdb/testsuite/gdb.base/set-noassign.exp
+++ b/gdb/testsuite/gdb.base/set-noassign.exp
@@ -19,7 +19,7 @@ if { [prepare_for_testing "failed to prepare" "set-noassign" start.c {debug nowa
}
if {![runto_main]} {
- return 0
+ return
}
# Verify that set command without assignment emits a warning.
diff --git a/gdb/testsuite/gdb.base/shreloc.exp b/gdb/testsuite/gdb.base/shreloc.exp
index 5e3b60b27ee6..e0efd61bcdf9 100644
--- a/gdb/testsuite/gdb.base/shreloc.exp
+++ b/gdb/testsuite/gdb.base/shreloc.exp
@@ -69,7 +69,7 @@ gdb_load_shlib $lib2_sl
# Load up the shared objects
if {![runto_main]} {
- return 0
+ return
}
#
diff --git a/gdb/testsuite/gdb.base/sigaltstack.exp b/gdb/testsuite/gdb.base/sigaltstack.exp
index 354643f237a8..c9105342fa29 100644
--- a/gdb/testsuite/gdb.base/sigaltstack.exp
+++ b/gdb/testsuite/gdb.base/sigaltstack.exp
@@ -38,7 +38,7 @@ gdb_test "handle SIGPROF print pass nostop"
# Advance to main
if {![runto_main]} {
- return 0
+ return
}
# Stop in handle, when at the inner most level
diff --git a/gdb/testsuite/gdb.base/sigbpt.exp b/gdb/testsuite/gdb.base/sigbpt.exp
index c3f17e0e9707..8237b555d46e 100644
--- a/gdb/testsuite/gdb.base/sigbpt.exp
+++ b/gdb/testsuite/gdb.base/sigbpt.exp
@@ -42,7 +42,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
#
if {![runto_main]} {
- return 0
+ return
}
# If we can examine what's at memory address 0, it is possible that we
diff --git a/gdb/testsuite/gdb.base/siginfo-addr.exp b/gdb/testsuite/gdb.base/siginfo-addr.exp
index 93ce7a227909..a33d9bbe4999 100644
--- a/gdb/testsuite/gdb.base/siginfo-addr.exp
+++ b/gdb/testsuite/gdb.base/siginfo-addr.exp
@@ -32,7 +32,7 @@ gdb_test "display/i \$pc"
# Advance to main
if {![runto_main]} {
- return 0
+ return
}
# Run to the signal.
diff --git a/gdb/testsuite/gdb.base/siginfo-obj.exp b/gdb/testsuite/gdb.base/siginfo-obj.exp
index daf160bc162b..a94bf0e33bae 100644
--- a/gdb/testsuite/gdb.base/siginfo-obj.exp
+++ b/gdb/testsuite/gdb.base/siginfo-obj.exp
@@ -34,7 +34,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
# Advance to main
if {![runto_main]} {
- return 0
+ return
}
# Run to the signal.
@@ -94,7 +94,7 @@ with_test_prefix "validate siginfo fields" {
# Advance to main
if {![runto_main]} {
- return 0
+ return
}
# Run to the signal.
diff --git a/gdb/testsuite/gdb.base/siginfo-thread.exp b/gdb/testsuite/gdb.base/siginfo-thread.exp
index 14f4ac06141b..40004234138e 100644
--- a/gdb/testsuite/gdb.base/siginfo-thread.exp
+++ b/gdb/testsuite/gdb.base/siginfo-thread.exp
@@ -28,7 +28,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile {debug pthreads}] != 0 }
# Advance to main
if {![runto_main]} {
- return 0
+ return
}
# Run to the signal.
diff --git a/gdb/testsuite/gdb.base/siginfo.exp b/gdb/testsuite/gdb.base/siginfo.exp
index f5a00220f12a..21de03ed3f14 100644
--- a/gdb/testsuite/gdb.base/siginfo.exp
+++ b/gdb/testsuite/gdb.base/siginfo.exp
@@ -36,7 +36,7 @@ gdb_test "display/i \$pc"
# Advance to main
if {![runto_main]} {
- return 0
+ return
}
# Pass all the alarms straight through (but verbosely)
diff --git a/gdb/testsuite/gdb.base/signull.exp b/gdb/testsuite/gdb.base/signull.exp
index 6927dac2fafc..93cc5a0301b3 100644
--- a/gdb/testsuite/gdb.base/signull.exp
+++ b/gdb/testsuite/gdb.base/signull.exp
@@ -41,7 +41,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile] != 0 } {
#
if {![runto_main]} {
- return 0
+ return
}
# If we can examine what's at memory address 0, it is possible that we
diff --git a/gdb/testsuite/gdb.base/sigrepeat.exp b/gdb/testsuite/gdb.base/sigrepeat.exp
index f14030b6f91d..d48aee2ff507 100644
--- a/gdb/testsuite/gdb.base/sigrepeat.exp
+++ b/gdb/testsuite/gdb.base/sigrepeat.exp
@@ -30,7 +30,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile] != 0 } {
# Advance to main
if {![runto_main]} {
- return 0
+ return
}
# Run to the signal handler wait loop.
diff --git a/gdb/testsuite/gdb.base/solib-disc.exp b/gdb/testsuite/gdb.base/solib-disc.exp
index a9b2bd471eea..6fc5bfee0083 100644
--- a/gdb/testsuite/gdb.base/solib-disc.exp
+++ b/gdb/testsuite/gdb.base/solib-disc.exp
@@ -20,7 +20,7 @@ require allow_shlib_tests
set gdbserver_reconnect_p 1
if { [info proc gdb_reconnect] == "" } {
unsupported "requires gdbserver reconnect"
- return 0
+ return
}
set testfile solib-disc
@@ -50,7 +50,7 @@ if { [prepare_for_testing "prepare" $testfile $execsrc $exec_opts] != 0 } {
gdb_load_shlib $libobj
if {![runto_main]} {
- return 0
+ return
}
gdb_test_no_output "set stop-on-solib-events 1"
@@ -71,7 +71,7 @@ if { [gdb_reconnect] == 0 } {
pass "reconnect after load"
} else {
fail "reconnect after load"
- return 0
+ return
}
gdb_test "print/x \$pc" "${::valnum_re} = $saved_pc" "check \$pc after load"
@@ -93,7 +93,7 @@ if { [gdb_reconnect] == 0 } {
pass "reconnect after unload"
} else {
fail "reconnect after unload"
- return 0
+ return
}
gdb_test "print/x \$pc" "${::valnum_re} = $saved_pc" "check \$pc after unload"
diff --git a/gdb/testsuite/gdb.base/source-execution.exp b/gdb/testsuite/gdb.base/source-execution.exp
index a16535e97e4c..9c5b4d611498 100644
--- a/gdb/testsuite/gdb.base/source-execution.exp
+++ b/gdb/testsuite/gdb.base/source-execution.exp
@@ -24,7 +24,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "source ${srcdir}/${subdir}/source-execution.gdb" \
diff --git a/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp b/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp
index 6b299b3bc05a..be2150450485 100644
--- a/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp
+++ b/gdb/testsuite/gdb.base/sss-bp-on-user-bp-2.exp
@@ -42,7 +42,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
delete_breakpoints
diff --git a/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp b/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
index 042caf6c27bb..0bc6ff83fe87 100644
--- a/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
+++ b/gdb/testsuite/gdb.base/sss-bp-on-user-bp.exp
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "set foo break here"]
diff --git a/gdb/testsuite/gdb.base/stack-checking.exp b/gdb/testsuite/gdb.base/stack-checking.exp
index 72b3ad1cc0cc..7e6789b7c04f 100644
--- a/gdb/testsuite/gdb.base/stack-checking.exp
+++ b/gdb/testsuite/gdb.base/stack-checking.exp
@@ -22,7 +22,7 @@ if { [prepare_for_testing "prepare" $testfile $srcfile \
}
if {![runto_main]} {
- return 0
+ return
}
diff --git a/gdb/testsuite/gdb.base/stack-protector.exp b/gdb/testsuite/gdb.base/stack-protector.exp
index 249baad8ac8e..b2d1e6000e8c 100644
--- a/gdb/testsuite/gdb.base/stack-protector.exp
+++ b/gdb/testsuite/gdb.base/stack-protector.exp
@@ -24,7 +24,7 @@ if { !([test_compiler_info "gcc-*"] || [test_compiler_info "clang-*"])
|| [test_compiler_info {gcc-[0-3]-*}]
|| [test_compiler_info {gcc-4-0-*}]
|| [test_compiler_info {clang-[0-4]=*}] } {
- return 0
+ return
}
standard_testfile
diff --git a/gdb/testsuite/gdb.base/structs2.exp b/gdb/testsuite/gdb.base/structs2.exp
index 76deeae53839..ce8b0c00769f 100644
--- a/gdb/testsuite/gdb.base/structs2.exp
+++ b/gdb/testsuite/gdb.base/structs2.exp
@@ -20,7 +20,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "f" \
diff --git a/gdb/testsuite/gdb.base/sym-file.exp b/gdb/testsuite/gdb.base/sym-file.exp
index fe7b5ad13fa0..022c1eedbd9e 100644
--- a/gdb/testsuite/gdb.base/sym-file.exp
+++ b/gdb/testsuite/gdb.base/sym-file.exp
@@ -39,7 +39,7 @@ if {[is_lp64_target]} {
} elseif {[is_ilp32_target]} {
set target_size TARGET_ILP32
} else {
- return 0
+ return
}
set main_basename sym-file-main
diff --git a/gdb/testsuite/gdb.base/symlink-sourcefile.exp b/gdb/testsuite/gdb.base/symlink-sourcefile.exp
index bc2249071eb5..fc6a0c08b2d5 100644
--- a/gdb/testsuite/gdb.base/symlink-sourcefile.exp
+++ b/gdb/testsuite/gdb.base/symlink-sourcefile.exp
@@ -28,7 +28,7 @@ set status [remote_exec host \
"ln -sf $srcdir/$subdir/$srcfile $srcfilelink"]
if {[lindex $status 0] != 0} {
unsupported "$test (host does not support symbolic links)"
- return 0
+ return
}
if {[prepare_for_testing $testfile $testfile $srcfilelink]} {
diff --git a/gdb/testsuite/gdb.base/term.exp b/gdb/testsuite/gdb.base/term.exp
index b615d9a410e9..8612a04e57b9 100644
--- a/gdb/testsuite/gdb.base/term.exp
+++ b/gdb/testsuite/gdb.base/term.exp
@@ -26,7 +26,7 @@ gdb_test "info terminal" \
"test info terminal pre-execution"
if {![runto break_here]} {
- return 0
+ return
}
# Read the inferior's terminal settings, saved in the T global variable.
diff --git a/gdb/testsuite/gdb.base/type-opaque.exp b/gdb/testsuite/gdb.base/type-opaque.exp
index 7c4d24eccb9b..f173639a02ac 100644
--- a/gdb/testsuite/gdb.base/type-opaque.exp
+++ b/gdb/testsuite/gdb.base/type-opaque.exp
@@ -38,7 +38,7 @@ if { [prepare_for_testing "prepare" $testfile $execsrc \
gdb_load_shlib ${libobj}
if {![runto_main]} {
- return 0
+ return
}
diff --git a/gdb/testsuite/gdb.base/until-nodebug.exp b/gdb/testsuite/gdb.base/until-nodebug.exp
index 5980bc435ced..01be462bb86f 100644
--- a/gdb/testsuite/gdb.base/until-nodebug.exp
+++ b/gdb/testsuite/gdb.base/until-nodebug.exp
@@ -23,7 +23,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile nodebug]} {
}
if {![runto_main]} {
- return 0
+ return
}
# Without debug information, the program stops at the next
diff --git a/gdb/testsuite/gdb.base/until.exp b/gdb/testsuite/gdb.base/until.exp
index 58f9174af988..5aeb896e3118 100644
--- a/gdb/testsuite/gdb.base/until.exp
+++ b/gdb/testsuite/gdb.base/until.exp
@@ -26,7 +26,7 @@ set bp_location20 [gdb_get_line_number "set breakpoint 20 here"]
set bp_location21 [gdb_get_line_number "set breakpoint 21 here"]
if {![runto_main]} {
- return 0
+ return
}
# Verify that "until <location>" works. (This is really just syntactic
diff --git a/gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl b/gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl
index 471342684aec..ed7bf83752fd 100644
--- a/gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl
+++ b/gdb/testsuite/gdb.base/unwind-on-each-insn.exp.tcl
@@ -30,7 +30,7 @@ if {[prepare_for_testing_full "failed to prepare" \
}
if {![runto_main]} {
- return 0
+ return
}
# Return a two element list, the first element is the stack-pointer
diff --git a/gdb/testsuite/gdb.base/unwindonsignal.exp b/gdb/testsuite/gdb.base/unwindonsignal.exp
index cd98b9fdd02f..1b1552361d82 100644
--- a/gdb/testsuite/gdb.base/unwindonsignal.exp
+++ b/gdb/testsuite/gdb.base/unwindonsignal.exp
@@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break stop_here" "Breakpoint \[0-9\]* at .*"
diff --git a/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp b/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp
index 85494e5463ed..3f853b51527f 100644
--- a/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp
+++ b/gdb/testsuite/gdb.base/watchpoint-reuse-slot.exp
@@ -39,7 +39,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
# The line we'll be stepping.
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 15/36] GDB: testsuite: base: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (13 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 14/36] GDB: testsuite: base: Don't return 0 " Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 16/36] GDB: testsuite: C++: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (20 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- misaligned line, which is then fixed by this patch;
- return at top level but inside block such as save_vars,
with_test_prefix, foreach, gdb_test_multiple.
- procedure whose callers don't use the return value;
Some weren't changed because they didn't meet the criteria above, or
weren't trivial to check.
There were also a few "return 0" statements which also meet the criteria
above and were opportunistically fixed. There were also a few return
statements with an unnecessary semi-colon at the end, which was removed.
---
gdb/testsuite/gdb.base/access-mem-running.exp | 4 ++--
gdb/testsuite/gdb.base/argv0-symlink.exp | 8 ++++----
gdb/testsuite/gdb.base/async-shell.exp | 2 +-
gdb/testsuite/gdb.base/attach-pie-misread.exp | 2 +-
gdb/testsuite/gdb.base/bigcore.exp | 6 +++---
.../gdb.base/bp-cmds-continue-ctrl-c.exp | 2 +-
.../gdb.base/bp-cmds-execution-x-script.exp | 2 +-
gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp | 2 +-
gdb/testsuite/gdb.base/bp-cond-failure.exp | 2 +-
gdb/testsuite/gdb.base/bp-permanent.exp | 2 +-
gdb/testsuite/gdb.base/branch-to-self.exp | 4 ++--
gdb/testsuite/gdb.base/break-always.exp | 2 +-
.../gdb.base/bt-on-error-and-warning.exp | 2 +-
gdb/testsuite/gdb.base/bt-on-fatal-signal.exp | 2 +-
gdb/testsuite/gdb.base/catch-follow-exec.exp | 2 +-
gdb/testsuite/gdb.base/catch-fork-kill.exp | 4 ++--
gdb/testsuite/gdb.base/catch-signal.exp | 2 +-
gdb/testsuite/gdb.base/catch-syscall.exp | 2 +-
gdb/testsuite/gdb.base/checkpoint.exp | 2 +-
gdb/testsuite/gdb.base/code_elim.exp | 4 ++--
gdb/testsuite/gdb.base/compare-sections.exp | 6 +++---
gdb/testsuite/gdb.base/cond-eval-mode.exp | 4 ++--
gdb/testsuite/gdb.base/condbreak-bad.exp | 6 +++---
.../continue-after-aborted-step-over.exp | 2 +-
.../gdb.base/continue-all-already-running.exp | 2 +-
gdb/testsuite/gdb.base/coredump-filter.exp | 2 +-
gdb/testsuite/gdb.base/corefile-buildid.exp | 4 ++--
gdb/testsuite/gdb.base/dmsym.exp | 4 ++--
gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp | 2 +-
gdb/testsuite/gdb.base/dprintf-detach.exp | 2 +-
gdb/testsuite/gdb.base/dprintf.exp | 2 +-
gdb/testsuite/gdb.base/dso2dso.exp | 4 ++--
gdb/testsuite/gdb.base/dtrace-probe.exp | 8 ++++----
gdb/testsuite/gdb.base/endianity.exp | 4 ++--
.../gdb.base/execl-update-breakpoints.exp | 2 +-
gdb/testsuite/gdb.base/finish.exp | 4 ++--
gdb/testsuite/gdb.base/fission-macro.exp | 4 ++--
gdb/testsuite/gdb.base/foll-exec-mode.exp | 8 ++++----
gdb/testsuite/gdb.base/fork-running-state.exp | 6 +++---
gdb/testsuite/gdb.base/fullname.exp | 2 +-
gdb/testsuite/gdb.base/fullpath-expand.exp | 2 +-
gdb/testsuite/gdb.base/gcore-relro.exp | 12 ++++++------
gdb/testsuite/gdb.base/gcore.exp | 2 +-
gdb/testsuite/gdb.base/gcorebg.exp | 2 +-
gdb/testsuite/gdb.base/gdbvars.exp | 2 +-
.../gdb.base/global-var-nested-by-dso.exp | 2 +-
gdb/testsuite/gdb.base/gnu-ifunc.exp | 2 +-
gdb/testsuite/gdb.base/gnu_vector.exp | 4 ++--
gdb/testsuite/gdb.base/huge.exp | 2 +-
gdb/testsuite/gdb.base/inferior-args.exp | 16 ++++++++--------
gdb/testsuite/gdb.base/info-fun.exp | 4 ++--
gdb/testsuite/gdb.base/info-proc.exp | 4 ++--
gdb/testsuite/gdb.base/info-program.exp | 4 ++--
gdb/testsuite/gdb.base/interp.exp | 2 +-
gdb/testsuite/gdb.base/jit-elf-fork.exp | 8 ++++----
gdb/testsuite/gdb.base/jit-reader-simple.exp | 2 +-
gdb/testsuite/gdb.base/jump.exp | 2 +-
gdb/testsuite/gdb.base/kill-during-detach.exp | 2 +-
gdb/testsuite/gdb.base/killed-outside.exp | 2 +-
gdb/testsuite/gdb.base/label.exp | 2 +-
gdb/testsuite/gdb.base/list-dot-nodebug.exp | 6 +++---
gdb/testsuite/gdb.base/longjmp.exp | 6 +++---
gdb/testsuite/gdb.base/moribund-step.exp | 2 +-
gdb/testsuite/gdb.base/msym-bp.exp | 2 +-
gdb/testsuite/gdb.base/new-ui.exp | 2 +-
gdb/testsuite/gdb.base/noreturn-finish.exp | 2 +-
gdb/testsuite/gdb.base/noreturn-return.exp | 2 +-
gdb/testsuite/gdb.base/nostdlib.exp | 2 +-
gdb/testsuite/gdb.base/overlays.exp | 6 +++---
gdb/testsuite/gdb.base/print-file-var.exp | 8 ++++----
gdb/testsuite/gdb.base/print-symbol-loading.exp | 2 +-
gdb/testsuite/gdb.base/printcmds.exp | 6 +++---
gdb/testsuite/gdb.base/random-signal.exp | 2 +-
gdb/testsuite/gdb.base/randomize.exp | 4 ++--
gdb/testsuite/gdb.base/readline.exp | 2 +-
gdb/testsuite/gdb.base/readnever.exp | 2 +-
gdb/testsuite/gdb.base/relocate.exp | 4 ++--
gdb/testsuite/gdb.base/reread.exp | 4 ++--
gdb/testsuite/gdb.base/return2.exp | 6 +++---
gdb/testsuite/gdb.base/set-cwd.exp | 12 ++++++------
gdb/testsuite/gdb.base/setshow.exp | 4 ++--
.../gdb.base/share-env-with-gdbserver.exp | 2 +-
gdb/testsuite/gdb.base/solib-display.exp | 4 ++--
gdb/testsuite/gdb.base/solib-overlap.exp | 6 +++---
gdb/testsuite/gdb.base/solib-search.exp | 2 +-
gdb/testsuite/gdb.base/solib-weak.exp | 6 +++---
gdb/testsuite/gdb.base/source-dir.exp | 4 ++--
gdb/testsuite/gdb.base/stack-protector.exp | 6 +++---
gdb/testsuite/gdb.base/stale-infcall.exp | 2 +-
gdb/testsuite/gdb.base/step-break.exp | 4 ++--
gdb/testsuite/gdb.base/step-over-no-symbols.exp | 2 +-
gdb/testsuite/gdb.base/step-over-syscall.exp | 8 ++++----
.../gdb.base/step-sw-breakpoint-adjust-pc.exp | 2 +-
gdb/testsuite/gdb.base/style-logging.exp | 2 +-
gdb/testsuite/gdb.base/testenv.exp | 2 +-
gdb/testsuite/gdb.base/traced-thread.exp | 2 +-
gdb/testsuite/gdb.base/valgrind-bt.exp | 4 ++--
gdb/testsuite/gdb.base/valgrind-infcall.exp | 4 ++--
gdb/testsuite/gdb.base/vdso-warning.exp | 2 +-
gdb/testsuite/gdb.base/vla-optimized-out.exp | 2 +-
gdb/testsuite/gdb.base/watch-bitfields.exp | 4 ++--
gdb/testsuite/gdb.base/watchpoint.exp | 4 ++--
gdb/testsuite/gdb.base/wchar.exp | 2 +-
gdb/testsuite/gdb.base/wrong_frame_bt_full.exp | 4 ++--
104 files changed, 190 insertions(+), 190 deletions(-)
diff --git a/gdb/testsuite/gdb.base/access-mem-running.exp b/gdb/testsuite/gdb.base/access-mem-running.exp
index 11dea64a6338..97f2641c9cb3 100644
--- a/gdb/testsuite/gdb.base/access-mem-running.exp
+++ b/gdb/testsuite/gdb.base/access-mem-running.exp
@@ -36,7 +36,7 @@ proc test { non_stop } {
}
if {![runto_main]} {
- return -1
+ return
}
# If debugging with target remote, check whether the all-stop variant
@@ -48,7 +48,7 @@ proc test { non_stop } {
if {![is_target_non_stop]} {
unsupported "can't issue commands while target is running"
- return 0
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/argv0-symlink.exp b/gdb/testsuite/gdb.base/argv0-symlink.exp
index 6b05bba205d6..58d5ef98fc44 100644
--- a/gdb/testsuite/gdb.base/argv0-symlink.exp
+++ b/gdb/testsuite/gdb.base/argv0-symlink.exp
@@ -42,13 +42,13 @@ with_test_prefix "file symlink" {
"ln -sf ${testfile} [standard_output_file $filelink]"]
if {[lindex $status 0] != 0} {
unsupported "$test (host does not support symbolic links)"
- return 0
+ return
}
clean_restart "$filelink"
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set print repeats 10000"
@@ -82,13 +82,13 @@ with_test_prefix "dir symlink" {
set status [remote_exec host "ln -sf . [standard_output_file $dirlink]"]
if {[lindex $status 0] != 0} {
unsupported "$test (host does not support symbolic links)"
- return 0
+ return
}
clean_restart "$dirlink/$filelink"
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set print repeats 10000"
diff --git a/gdb/testsuite/gdb.base/async-shell.exp b/gdb/testsuite/gdb.base/async-shell.exp
index 72f3645a757e..28003fa92d3d 100644
--- a/gdb/testsuite/gdb.base/async-shell.exp
+++ b/gdb/testsuite/gdb.base/async-shell.exp
@@ -23,7 +23,7 @@ require !use_gdb_stub
save_vars { GDBFLAGS } {
set GDBFLAGS "$GDBFLAGS -ex \"set non-stop on\""
if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/attach-pie-misread.exp b/gdb/testsuite/gdb.base/attach-pie-misread.exp
index a8002119d962..d2decd801fc3 100644
--- a/gdb/testsuite/gdb.base/attach-pie-misread.exp
+++ b/gdb/testsuite/gdb.base/attach-pie-misread.exp
@@ -99,7 +99,7 @@ with_test_prefix "rebuild with DGEN defined" {
set prelink_args [build_executable_own_libs ${testfile}.exp $executable $srcfile \
[list pie "additional_flags=-DGEN=\"$genfile\""]]
if {$prelink_args == ""} {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/bigcore.exp b/gdb/testsuite/gdb.base/bigcore.exp
index 7dd881082354..aca067c531a1 100644
--- a/gdb/testsuite/gdb.base/bigcore.exp
+++ b/gdb/testsuite/gdb.base/bigcore.exp
@@ -39,8 +39,8 @@ standard_testfile .c
set corefile [standard_output_file ${binfile}.corefile]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# Traverse part of bigcore's linked list of memory chunks (forward or
@@ -209,7 +209,7 @@ proc test {dumper} {
}
if {! $core_ok} {
untested "check core size (system does not support large corefiles)"
- return 0
+ return
}
# Now load up that core file.
diff --git a/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp b/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp
index 368507b2409c..9fac9b551b32 100644
--- a/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp
+++ b/gdb/testsuite/gdb.base/bp-cmds-continue-ctrl-c.exp
@@ -121,7 +121,7 @@ with_test_prefix "run" {
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
do_test
diff --git a/gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp b/gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp
index 7204a3736c09..8b86c53363f6 100644
--- a/gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp
+++ b/gdb/testsuite/gdb.base/bp-cmds-execution-x-script.exp
@@ -45,7 +45,7 @@ proc test {} {
}
if { $res != 0} {
fail $test
- return -1
+ return
}
gdb_test_multiple "" $test {
diff --git a/gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp b/gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp
index 95c2811a3e03..1bdb75f44fd0 100644
--- a/gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp
+++ b/gdb/testsuite/gdb.base/bp-cmds-run-with-ex.exp
@@ -35,7 +35,7 @@ save_vars { GDBFLAGS } {
gdb_exit
if {[gdb_spawn] != 0} {
fail "spawn gdb"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/bp-cond-failure.exp b/gdb/testsuite/gdb.base/bp-cond-failure.exp
index f6ca85027e4c..ae9eb1f8f73c 100644
--- a/gdb/testsuite/gdb.base/bp-cond-failure.exp
+++ b/gdb/testsuite/gdb.base/bp-cond-failure.exp
@@ -48,7 +48,7 @@ proc run_test { cond_eval access_type bpexpr nloc } {
clean_restart $::testfile
if { ![runto_main] } {
- return -1
+ return
}
if { $cond_eval ne "auto" } {
diff --git a/gdb/testsuite/gdb.base/bp-permanent.exp b/gdb/testsuite/gdb.base/bp-permanent.exp
index dac54fadef1c..35a3227d0380 100644
--- a/gdb/testsuite/gdb.base/bp-permanent.exp
+++ b/gdb/testsuite/gdb.base/bp-permanent.exp
@@ -45,7 +45,7 @@ proc test {always_inserted sw_watchpoint} {
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
gdb_test "set breakpoint always-inserted $always_inserted"
diff --git a/gdb/testsuite/gdb.base/branch-to-self.exp b/gdb/testsuite/gdb.base/branch-to-self.exp
index ffd15780d724..2cb388219e01 100644
--- a/gdb/testsuite/gdb.base/branch-to-self.exp
+++ b/gdb/testsuite/gdb.base/branch-to-self.exp
@@ -28,7 +28,7 @@ with_test_prefix "single-step" {
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
set line_num [gdb_get_line_number "loop-line" ${testfile}.c]
@@ -61,7 +61,7 @@ with_test_prefix "break-cond" {
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
set test "set breakpoint condition-evaluation $side"
diff --git a/gdb/testsuite/gdb.base/break-always.exp b/gdb/testsuite/gdb.base/break-always.exp
index f2eb1a3ba8b9..8fe3fb3f863d 100644
--- a/gdb/testsuite/gdb.base/break-always.exp
+++ b/gdb/testsuite/gdb.base/break-always.exp
@@ -78,7 +78,7 @@ foreach test_value {0 1} {
# Some targets do not allow manually writing a breakpoint to a
# certain memory address, like QEMU. In that case, just bail out.
unsupported "cannot write to address $bp_address"
- return -1
+ return
}
-re " = .*$gdb_prompt $" {
pass $write_test
diff --git a/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp b/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp
index a9a1db344d21..0873ce5728c4 100644
--- a/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp
+++ b/gdb/testsuite/gdb.base/bt-on-error-and-warning.exp
@@ -37,7 +37,7 @@ gdb_test_multiple "maint set internal-error backtrace on" \
"check backtrace is supported" {
-re "support for this feature is not compiled into GDB" {
untested "feature not supported"
- return -1
+ return
}
-re "$gdb_prompt $" {
pass $gdb_test_name
diff --git a/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp b/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
index 9bf5f09c566f..67511741d395 100644
--- a/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
+++ b/gdb/testsuite/gdb.base/bt-on-fatal-signal.exp
@@ -42,7 +42,7 @@ if {![runto_main]} {
gdb_test_multiple "maint set backtrace-on-fatal-signal on" "" {
-re "support for this feature is not compiled into GDB" {
untested $testfile
- return -1
+ return
}
-re "$gdb_prompt $" {
pass $gdb_test_name
diff --git a/gdb/testsuite/gdb.base/catch-follow-exec.exp b/gdb/testsuite/gdb.base/catch-follow-exec.exp
index a46611080833..39d8348a1764 100644
--- a/gdb/testsuite/gdb.base/catch-follow-exec.exp
+++ b/gdb/testsuite/gdb.base/catch-follow-exec.exp
@@ -28,7 +28,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
proc catch_follow_exec { } {
if { ![runto_main] } {
- return -1
+ return
}
set bpnum ""
diff --git a/gdb/testsuite/gdb.base/catch-fork-kill.exp b/gdb/testsuite/gdb.base/catch-fork-kill.exp
index 498e34a49bec..17450ffea2cb 100644
--- a/gdb/testsuite/gdb.base/catch-fork-kill.exp
+++ b/gdb/testsuite/gdb.base/catch-fork-kill.exp
@@ -44,7 +44,7 @@ foreach kind {"fork" "vfork"} {
if {[build_executable $testfile.exp $testfile ${srcfile} \
${compile_options}] == -1} {
untested "failed to compile"
- return -1
+ return
}
}
@@ -60,7 +60,7 @@ proc do_test {fork_kind exit_kind} {
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set follow-fork child"
diff --git a/gdb/testsuite/gdb.base/catch-signal.exp b/gdb/testsuite/gdb.base/catch-signal.exp
index 6da1b6aeda79..95ebb58571ac 100644
--- a/gdb/testsuite/gdb.base/catch-signal.exp
+++ b/gdb/testsuite/gdb.base/catch-signal.exp
@@ -26,7 +26,7 @@ proc test_catch_signal {signame} {
with_test_prefix $signame {
if {![runto_main]} {
- return -1
+ return
}
# Test "catch signal" without arguments.
diff --git a/gdb/testsuite/gdb.base/catch-syscall.exp b/gdb/testsuite/gdb.base/catch-syscall.exp
index 673fca4a9984..63abc1aec809 100644
--- a/gdb/testsuite/gdb.base/catch-syscall.exp
+++ b/gdb/testsuite/gdb.base/catch-syscall.exp
@@ -24,7 +24,7 @@ require supports_catch_syscall
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile ${testfile}.c] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/checkpoint.exp b/gdb/testsuite/gdb.base/checkpoint.exp
index b6ea9f63f170..828a633d4a46 100644
--- a/gdb/testsuite/gdb.base/checkpoint.exp
+++ b/gdb/testsuite/gdb.base/checkpoint.exp
@@ -38,7 +38,7 @@ if {[is_remote host]} {
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug "additional_flags=-DPI_TXT=\"$pi_txt\" -DCOPY1_TXT=\"$copy1_txt\""]]} {
- return -1
+ return
}
global gdb_prompt
diff --git a/gdb/testsuite/gdb.base/code_elim.exp b/gdb/testsuite/gdb.base/code_elim.exp
index 15e59b9095bb..7c79ff54f196 100644
--- a/gdb/testsuite/gdb.base/code_elim.exp
+++ b/gdb/testsuite/gdb.base/code_elim.exp
@@ -38,12 +38,12 @@ remote_exec build "rm -f ${binfile2}"
if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" executable $opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable $opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
proc not_null_var_address { var } {
diff --git a/gdb/testsuite/gdb.base/compare-sections.exp b/gdb/testsuite/gdb.base/compare-sections.exp
index bf6207061778..ba2687dbcb84 100644
--- a/gdb/testsuite/gdb.base/compare-sections.exp
+++ b/gdb/testsuite/gdb.base/compare-sections.exp
@@ -117,7 +117,7 @@ with_test_prefix "read-only" {
if {!$has_ro_sections} {
unsupported "no read-only sections"
- return -1;
+ return
}
set orig -1
@@ -132,7 +132,7 @@ with_test_prefix "read-only" {
if {$orig == -1} {
untested "couldn't read address of read-only section"
- return -1
+ return
}
# Come up with different value.
@@ -153,7 +153,7 @@ with_test_prefix "read-only" {
if { $written != $patch } {
unsupported "can't patch read-only section"
- return -1
+ return
}
gdb_test "compare-sections -r" \
diff --git a/gdb/testsuite/gdb.base/cond-eval-mode.exp b/gdb/testsuite/gdb.base/cond-eval-mode.exp
index e2afc3a95939..c2aefc4a93b6 100644
--- a/gdb/testsuite/gdb.base/cond-eval-mode.exp
+++ b/gdb/testsuite/gdb.base/cond-eval-mode.exp
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
}
if {![runto_main]} {
- return 0
+ return
}
set test_host "set breakpoint condition-evaluation host"
@@ -47,7 +47,7 @@ set warning "warning: Target does not support breakpoint condition evaluation.\r
gdb_test_multiple $test_target $test_target {
-re "$warning\r\n$gdb_prompt $" {
unsupported $test_target
- return -1
+ return
}
-re "^$test_target\r\n$gdb_prompt $" {
diff --git a/gdb/testsuite/gdb.base/condbreak-bad.exp b/gdb/testsuite/gdb.base/condbreak-bad.exp
index 216b485b6356..7ee32bdb40bb 100644
--- a/gdb/testsuite/gdb.base/condbreak-bad.exp
+++ b/gdb/testsuite/gdb.base/condbreak-bad.exp
@@ -67,7 +67,7 @@ with_test_prefix "with run" {
# deletes the breakpoints.
with_test_prefix "with continue 1" {
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "$bp_location"
@@ -87,7 +87,7 @@ with_test_prefix "with continue 1" {
# Repeat with a condition that evaluates to false.
with_test_prefix "with continue 2" {
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "$bp_location"
@@ -107,7 +107,7 @@ with_test_prefix "with continue 2" {
# Repeat with a condition that contains junk at the end.
with_test_prefix "with junk" {
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "$bp_location"
diff --git a/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp b/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp
index 1285c4f14158..945d426f6b16 100644
--- a/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp
+++ b/gdb/testsuite/gdb.base/continue-after-aborted-step-over.exp
@@ -51,7 +51,7 @@ proc do_test {displaced breakpoint_always_inserted} {
gdb_test_no_output "set breakpoint always-inserted $breakpoint_always_inserted"
if {![runto_main]} {
- return -1
+ return
}
# We rely on not being able to set a breakpoint at 0, as proxy for
diff --git a/gdb/testsuite/gdb.base/continue-all-already-running.exp b/gdb/testsuite/gdb.base/continue-all-already-running.exp
index 734b5e9681bb..65d9073e74e1 100644
--- a/gdb/testsuite/gdb.base/continue-all-already-running.exp
+++ b/gdb/testsuite/gdb.base/continue-all-already-running.exp
@@ -21,7 +21,7 @@ standard_testfile
save_vars { GDBFLAGS } {
set GDBFLAGS "$GDBFLAGS -ex \"set non-stop on\""
if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/coredump-filter.exp b/gdb/testsuite/gdb.base/coredump-filter.exp
index 6bf26f1643ab..26bf2ebed50e 100644
--- a/gdb/testsuite/gdb.base/coredump-filter.exp
+++ b/gdb/testsuite/gdb.base/coredump-filter.exp
@@ -194,7 +194,7 @@ gdb_test_multiple "info inferiors" "getting inferior pid" {
# If the target does not provide PID information (like usermode QEMU),
# just bail out as the rest of the test may rely on it, giving spurious
# failures.
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/corefile-buildid.exp b/gdb/testsuite/gdb.base/corefile-buildid.exp
index 45c613b528ff..2f5ea644081f 100644
--- a/gdb/testsuite/gdb.base/corefile-buildid.exp
+++ b/gdb/testsuite/gdb.base/corefile-buildid.exp
@@ -217,13 +217,13 @@ foreach_with_prefix mode { exec shared } {
set progname ${binfile}-$mode
set build_proc build_corefile_buildid_${mode}
if { ![$build_proc $progname] } {
- return -1
+ return
}
# Generate a corefile.
set corefile [create_core_file $progname]
if { $corefile eq "" } {
- return -1
+ return
}
# Get the build-id filename without ".debug" on the end. This
diff --git a/gdb/testsuite/gdb.base/dmsym.exp b/gdb/testsuite/gdb.base/dmsym.exp
index 3820b13bfdc7..6b02b97014de 100644
--- a/gdb/testsuite/gdb.base/dmsym.exp
+++ b/gdb/testsuite/gdb.base/dmsym.exp
@@ -26,8 +26,8 @@ set dmsym_o [standard_output_file dmsym.o]
if {[gdb_compile "${srcdir}/${subdir}/dmsym.c" \
$dmsym_o \
object {}] != ""} {
- untested "failed to compile object file"
- return -1
+ untested "failed to compile object file"
+ return
}
if {[gdb_compile \
diff --git a/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp b/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
index b2cc3ddb144c..383176a5a76e 100644
--- a/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
+++ b/gdb/testsuite/gdb.base/dprintf-bp-same-addr.exp
@@ -31,7 +31,7 @@ proc test { style } {
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
delete_breakpoints
diff --git a/gdb/testsuite/gdb.base/dprintf-detach.exp b/gdb/testsuite/gdb.base/dprintf-detach.exp
index dd9bfde8f47c..4f353874a78e 100644
--- a/gdb/testsuite/gdb.base/dprintf-detach.exp
+++ b/gdb/testsuite/gdb.base/dprintf-detach.exp
@@ -44,7 +44,7 @@ proc dprintf_detach_test { breakpoint_always_inserted dprintf_style disconnected
gdb_test_no_output "set disconnected-dprintf ${disconnected_dprintf}"
if {![runto_main]} {
- return -1
+ return
}
# Get PID of test program.
diff --git a/gdb/testsuite/gdb.base/dprintf.exp b/gdb/testsuite/gdb.base/dprintf.exp
index 9896f2c19246..716ec10e7a54 100644
--- a/gdb/testsuite/gdb.base/dprintf.exp
+++ b/gdb/testsuite/gdb.base/dprintf.exp
@@ -76,7 +76,7 @@ proc restart {} {
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
gdb_test "dprintf foo,\"At foo entry\\n\"" \
diff --git a/gdb/testsuite/gdb.base/dso2dso.exp b/gdb/testsuite/gdb.base/dso2dso.exp
index 1e7e633d1827..6f8962b0309a 100644
--- a/gdb/testsuite/gdb.base/dso2dso.exp
+++ b/gdb/testsuite/gdb.base/dso2dso.exp
@@ -49,14 +49,14 @@ if { [build_executable "build shlib 2" $binfile_libdso2 \
if { [prepare_for_testing "prepare" $testfile $srcfile \
[list debug shlib=$binfile_libdso2 shlib=$binfile_libdso1]] != 0 } {
- return
+ return
}
gdb_load_shlib $binfile_libdso2
gdb_load_shlib $binfile_libdso1
if { ![runto_main] } {
- return -1
+ return
}
set bp_location [gdb_get_line_number "STOP HERE" [file tail $srcfile_libdso1]]
diff --git a/gdb/testsuite/gdb.base/dtrace-probe.exp b/gdb/testsuite/gdb.base/dtrace-probe.exp
index dd560d1fcd06..150d088fa4f3 100644
--- a/gdb/testsuite/gdb.base/dtrace-probe.exp
+++ b/gdb/testsuite/gdb.base/dtrace-probe.exp
@@ -24,13 +24,13 @@ proc dtrace_test {} {
if {[dtrace_build_usdt_test_program] == -1} {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print \$_probe_argc" "No probe at PC $hex" \
@@ -71,7 +71,7 @@ proc dtrace_test {} {
# that it gets reached.
if {![runto_main]} {
- return -1
+ return
}
gdb_test "enable probe test progress-counter" \
@@ -96,7 +96,7 @@ proc dtrace_test {} {
"Breakpoint ${::decimal} at $hex.*2 locations.*" \
"set multi-location probe breakpoint (probe two-locations)"
- return 0
+ return
}
dtrace_test
diff --git a/gdb/testsuite/gdb.base/endianity.exp b/gdb/testsuite/gdb.base/endianity.exp
index 0da319a824cd..e82f31f29854 100644
--- a/gdb/testsuite/gdb.base/endianity.exp
+++ b/gdb/testsuite/gdb.base/endianity.exp
@@ -21,12 +21,12 @@ set test_sso [expr \
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug additional_flags=-DTEST_SSO=$test_sso]] } {
- return -1
+ return
}
set bp_location [gdb_get_line_number "START"]
if {![runto "endianity.c:$bp_location"]} {
- return -1
+ return
}
gdb_test "print o" "= {v = 3, w = 2, x = 7, f = 23.5, cplx = 1.25 \\+ 7.25i, d = 75}" \
diff --git a/gdb/testsuite/gdb.base/execl-update-breakpoints.exp b/gdb/testsuite/gdb.base/execl-update-breakpoints.exp
index 98d38c9ccefa..7a68d197a104 100644
--- a/gdb/testsuite/gdb.base/execl-update-breakpoints.exp
+++ b/gdb/testsuite/gdb.base/execl-update-breakpoints.exp
@@ -90,7 +90,7 @@ proc test { always_inserted } {
gdb_test_no_output "set breakpoint always-inserted $always_inserted"
if {![runto_main]} {
- return -1
+ return
}
# Set a second breakpoint (whose original address also ends up
diff --git a/gdb/testsuite/gdb.base/finish.exp b/gdb/testsuite/gdb.base/finish.exp
index 973f4cf3f742..27dd69be2684 100644
--- a/gdb/testsuite/gdb.base/finish.exp
+++ b/gdb/testsuite/gdb.base/finish.exp
@@ -77,7 +77,7 @@ proc finish_void { } {
proc finish_abbreviation { abbrev } {
if {![runto "int_func"]} {
- return -1
+ return
}
gdb_test "$abbrev" \
@@ -103,7 +103,7 @@ proc finish_tests { } {
global gdb_prompt allow_float_test
if {![runto_main]} {
- return -1
+ return
}
finish_void
diff --git a/gdb/testsuite/gdb.base/fission-macro.exp b/gdb/testsuite/gdb.base/fission-macro.exp
index 4482acbf9fa3..9b5d08b80460 100644
--- a/gdb/testsuite/gdb.base/fission-macro.exp
+++ b/gdb/testsuite/gdb.base/fission-macro.exp
@@ -42,7 +42,7 @@ proc do_tests { lang dwarf_version dwarf_bits strict_dwarf } {
set srcfiles [list $::srcfile $::srcfile2]
if { [build_executable "failed to prepare" $::testfile-$id $srcfiles $opts] } {
- return -1
+ return
}
clean_restart
@@ -50,7 +50,7 @@ proc do_tests { lang dwarf_version dwarf_bits strict_dwarf } {
gdb_load_no_complaints $::binfile-$id
if {![runto_main]} {
- return 0
+ return
}
gdb_test "p FIRST" " = 1"
diff --git a/gdb/testsuite/gdb.base/foll-exec-mode.exp b/gdb/testsuite/gdb.base/foll-exec-mode.exp
index c3f5390ca5c2..6fa076ada2a7 100644
--- a/gdb/testsuite/gdb.base/foll-exec-mode.exp
+++ b/gdb/testsuite/gdb.base/foll-exec-mode.exp
@@ -47,13 +47,13 @@ set compile_options debug
# build the first test case
if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable $compile_options] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $compile_options] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# Test exec catchpoints to ensure exec events are supported.
diff --git a/gdb/testsuite/gdb.base/fork-running-state.exp b/gdb/testsuite/gdb.base/fork-running-state.exp
index 11947773b5b3..11a324b19bea 100644
--- a/gdb/testsuite/gdb.base/fork-running-state.exp
+++ b/gdb/testsuite/gdb.base/fork-running-state.exp
@@ -33,12 +33,12 @@ proc do_test { detach_on_fork follow_fork non_stop schedule_multiple } {
if {[prepare_for_testing "failed to prepare" \
$testfile $srcfile {debug}] == -1} {
- return -1
+ return
}
}
if {![runto_main]} {
- return 0
+ return
}
# If debugging with target remote, check whether the all-stop
@@ -50,7 +50,7 @@ proc do_test { detach_on_fork follow_fork non_stop schedule_multiple } {
if {![is_target_non_stop]} {
unsupported "can't issue info threads while target is running"
- return 0
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/fullname.exp b/gdb/testsuite/gdb.base/fullname.exp
index 7f46cb56d858..30969248d56c 100644
--- a/gdb/testsuite/gdb.base/fullname.exp
+++ b/gdb/testsuite/gdb.base/fullname.exp
@@ -95,7 +95,7 @@ if { [gdb_breakpoint [standard_output_file tmp-${srcfile}]:${line} {no-message}]
with_cwd [standard_output_file {}] {
if { [gdb_compile [standard_output_file tmp-${srcfile}] "${testfile}" \
executable {debug}] != "" } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/fullpath-expand.exp b/gdb/testsuite/gdb.base/fullpath-expand.exp
index 053eb9b59f0a..e7f96c1e7a5b 100644
--- a/gdb/testsuite/gdb.base/fullpath-expand.exp
+++ b/gdb/testsuite/gdb.base/fullpath-expand.exp
@@ -29,7 +29,7 @@ with_cwd $srcdir {
if { $err != "" } {
untested "${srcfile} or ${srcfile2} compilation failed"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/gcore-relro.exp b/gdb/testsuite/gdb.base/gcore-relro.exp
index 59bd37f93acc..70b6daff2936 100644
--- a/gdb/testsuite/gdb.base/gcore-relro.exp
+++ b/gdb/testsuite/gdb.base/gcore-relro.exp
@@ -24,13 +24,13 @@ 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
+ untested "failed to compile"
+ return
}
set opts [list debug shlib=${binfile_lib} ldflags=-Wl,-z,relro]
if { [gdb_compile ${objfile} ${binfile} executable $opts] != "" } {
- unsupported "-Wl,-z,relro compilation failed"
- return -1
+ unsupported "-Wl,-z,relro compilation failed"
+ return
}
with_test_prefix "first session" {
@@ -38,11 +38,11 @@ with_test_prefix "first session" {
gdb_load_shlib ${binfile_lib}
if {![runto lib]} {
- return -1
+ return
}
if {![gdb_gcore_cmd $gcorefile "save a corefile"]} {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/gcore.exp b/gdb/testsuite/gdb.base/gcore.exp
index aa887b0da14d..243e0b39082b 100644
--- a/gdb/testsuite/gdb.base/gcore.exp
+++ b/gdb/testsuite/gdb.base/gcore.exp
@@ -54,7 +54,7 @@ set pre_corefile_extern_array \
set corefile [standard_output_file gcore.test]
set core_supported [gdb_gcore_cmd "$corefile" "save a corefile"]
if {!$core_supported} {
- return -1
+ return
}
# Now restart gdb and load the corefile.
diff --git a/gdb/testsuite/gdb.base/gcorebg.exp b/gdb/testsuite/gdb.base/gcorebg.exp
index 8724794b607a..67436dedb43a 100644
--- a/gdb/testsuite/gdb.base/gcorebg.exp
+++ b/gdb/testsuite/gdb.base/gcorebg.exp
@@ -26,7 +26,7 @@ require can_spawn_for_attach
set corefile [standard_output_file ${testfile}.core]
if {[build_executable "failed to build" $testfile ${srcfile}] == -1 } {
- return -1
+ return
}
# Cleanup.
diff --git a/gdb/testsuite/gdb.base/gdbvars.exp b/gdb/testsuite/gdb.base/gdbvars.exp
index 9522d5f2f39b..61185f94408a 100644
--- a/gdb/testsuite/gdb.base/gdbvars.exp
+++ b/gdb/testsuite/gdb.base/gdbvars.exp
@@ -122,7 +122,7 @@ proc test_convenience_functions {} {
# For the next test, we need the inferior to be running.
if { ![runto_main] } {
- return -1
+ return
}
gdb_test "print \$_isvoid (foo_void ())" " = 1" \
diff --git a/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp b/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp
index 5fca2345f6af..164f60b25793 100644
--- a/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp
+++ b/gdb/testsuite/gdb.base/global-var-nested-by-dso.exp
@@ -45,7 +45,7 @@ gdb_load_shlib $binfile_lib1
gdb_load_shlib $binfile_lib2
if { ![runto_main] } {
- return -1
+ return
}
gdb_test "next" "$decimal.*b_main \\(\\);" "step over c_main"
diff --git a/gdb/testsuite/gdb.base/gnu-ifunc.exp b/gdb/testsuite/gdb.base/gnu-ifunc.exp
index 2c1dffeeece1..d6a50a9b6862 100644
--- a/gdb/testsuite/gdb.base/gnu-ifunc.exp
+++ b/gdb/testsuite/gdb.base/gnu-ifunc.exp
@@ -393,7 +393,7 @@ with_test_prefix "static" {
|| [gdb_compile "${srcdir}/${subdir}/$srcfile $lib_o $final_o" \
$staticbinfile executable {debug}] != "" } {
untested "failed to compile second testcase"
- return -1
+ return
}
clean_restart $staticexecutable
diff --git a/gdb/testsuite/gdb.base/gnu_vector.exp b/gdb/testsuite/gdb.base/gnu_vector.exp
index b92d82c3428c..36724d1e9786 100644
--- a/gdb/testsuite/gdb.base/gnu_vector.exp
+++ b/gdb/testsuite/gdb.base/gnu_vector.exp
@@ -36,8 +36,8 @@ if { [do_compile {-mcpu=native}] != ""
&& [do_compile {-mcpu=native -Wno-psabi}] != ""
&& [do_compile {-march=native}] != ""
&& [do_compile] != ""} {
- untested "compiler can't handle vector_size attribute?"
- return -1
+ untested "compiler can't handle vector_size attribute?"
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.base/huge.exp b/gdb/testsuite/gdb.base/huge.exp
index 4ddfceebd9e5..98c081b557ab 100644
--- a/gdb/testsuite/gdb.base/huge.exp
+++ b/gdb/testsuite/gdb.base/huge.exp
@@ -46,7 +46,7 @@ clean_restart $testfile
with_timeout_factor 3 {
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set max-value-size unlimited"
diff --git a/gdb/testsuite/gdb.base/inferior-args.exp b/gdb/testsuite/gdb.base/inferior-args.exp
index eacb93b292e7..58488faff012 100644
--- a/gdb/testsuite/gdb.base/inferior-args.exp
+++ b/gdb/testsuite/gdb.base/inferior-args.exp
@@ -55,7 +55,7 @@ proc do_test { method startup_with_shell inferior_args expected_results \
if { [gdb_start_cmd $inferior_args] < 0 } {
fail "could not issue start command"
- return -1
+ return
}
# Consume up to the GDB prompt after the stop.
@@ -69,7 +69,7 @@ proc do_test { method startup_with_shell inferior_args expected_results \
if { [gdb_starti_cmd $inferior_args] < 0 } {
fail "could not issue start command"
- return -1
+ return
}
# Consume up to the GDB prompt after the stop.
@@ -78,18 +78,18 @@ proc do_test { method startup_with_shell inferior_args expected_results \
# Put a breakpoint and continue until main.
if { ![gdb_breakpoint "main" message] } {
fail "could not set breakpoint on main"
- return -1
+ return
}
if { [gdb_continue "main"] != 0 } {
fail "could not continue to main"
- return -1
+ return
}
} elseif { $method == "run" } {
if { ![gdb_breakpoint "main" message] } {
fail "could not set breakpoint on main"
- return -1
+ return
}
if { [use_gdb_stub] && !$stub_suitable } {
@@ -104,7 +104,7 @@ proc do_test { method startup_with_shell inferior_args expected_results \
# line.
if { [gdb_run_cmd $inferior_args] < 0 } {
fail "could not run"
- return -1
+ return
}
# Consume up to the GDB prompt after the stop.
@@ -113,13 +113,13 @@ proc do_test { method startup_with_shell inferior_args expected_results \
} elseif { $method == "set args" } {
# Using "set args" does not make sense with a stub.
if { [use_gdb_stub] } {
- return;
+ return
}
gdb_test_no_output "set args $inferior_args"
if { ![runto_main] } {
- return -1
+ return
}
} else {
diff --git a/gdb/testsuite/gdb.base/info-fun.exp b/gdb/testsuite/gdb.base/info-fun.exp
index c2f9ae03152a..1465220d3db4 100644
--- a/gdb/testsuite/gdb.base/info-fun.exp
+++ b/gdb/testsuite/gdb.base/info-fun.exp
@@ -38,7 +38,7 @@ foreach_with_prefix n_flag { 0 1 } {
|| [gdb_compile $srcdir/$subdir/${srcfile} ${binfile} \
executable $bin_flags] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {$libsepdebug == "SEP"} {
@@ -53,7 +53,7 @@ foreach_with_prefix n_flag { 0 1 } {
clean_restart $executable
if {![runto_main]} {
- return 0
+ return
}
set match_str {All functions matching regular expression "foo":[\r\n]*}
diff --git a/gdb/testsuite/gdb.base/info-proc.exp b/gdb/testsuite/gdb.base/info-proc.exp
index f1b435e249f3..89eed2ac815a 100644
--- a/gdb/testsuite/gdb.base/info-proc.exp
+++ b/gdb/testsuite/gdb.base/info-proc.exp
@@ -27,7 +27,7 @@ save_vars { env(GDB_INFO_PROC_ENVIRON_1) } {
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug nowarnings}]} {
- return -1
+ return
}
}
@@ -40,7 +40,7 @@ gdb_test_multiple "info proc" "info proc without a process" {
-re "Not supported on this target.*$gdb_prompt $" {
# info proc command not supported -- nothing to test here.
unsupported "gdb does not support info proc on this target"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/info-program.exp b/gdb/testsuite/gdb.base/info-program.exp
index 3b6e7a2afb84..83cca1a24961 100644
--- a/gdb/testsuite/gdb.base/info-program.exp
+++ b/gdb/testsuite/gdb.base/info-program.exp
@@ -43,7 +43,7 @@ proc do_test { threads non-stop } {
"info program before run"
if { ![runto done] } {
- return -1
+ return
}
if {${non-stop} == "on"} {
@@ -102,7 +102,7 @@ proc do_test { threads non-stop } {
"info program, after kill"
if { ![runto done] } {
- return -1
+ return
}
delete_breakpoints
diff --git a/gdb/testsuite/gdb.base/interp.exp b/gdb/testsuite/gdb.base/interp.exp
index d19d0e3ceca6..516c1507657e 100644
--- a/gdb/testsuite/gdb.base/interp.exp
+++ b/gdb/testsuite/gdb.base/interp.exp
@@ -82,7 +82,7 @@ gdb_test "$commands\nend" "" "finish defining hello command"
gdb_test "hello" [string_to_regexp "^done,value=\"23\""]
if {![runto_main]} {
- return -1
+ return
}
gdb_test "list" ".*\[0-9\].*main \\(int argc.*" "can list sources"
diff --git a/gdb/testsuite/gdb.base/jit-elf-fork.exp b/gdb/testsuite/gdb.base/jit-elf-fork.exp
index f9f516c571c4..cc18cf2fa4a5 100644
--- a/gdb/testsuite/gdb.base/jit-elf-fork.exp
+++ b/gdb/testsuite/gdb.base/jit-elf-fork.exp
@@ -102,7 +102,7 @@ proc do_setup { detach-on-fork follow-fork-mode } {
proc_with_prefix test_detach_on_fork_off_follow_fork_mode_parent { } {
if { [do_setup off parent] == -1 } {
- return -1
+ return
}
# We are stopped in the parent.
@@ -135,7 +135,7 @@ proc_with_prefix test_detach_on_fork_off_follow_fork_mode_parent { } {
proc_with_prefix test_detach_on_fork_off_follow_fork_mode_child { } {
if { [do_setup off child] == -1 } {
- return -1
+ return
}
# We are stopped in the child. This is the exact same thing as
@@ -170,7 +170,7 @@ proc_with_prefix test_detach_on_fork_off_follow_fork_mode_child { } {
proc_with_prefix test_detach_on_fork_on_follow_fork_mode_parent { } {
if { [do_setup on parent] == -1 } {
- return -1
+ return
}
# We are stopped in the parent, child is detached.
@@ -184,7 +184,7 @@ proc_with_prefix test_detach_on_fork_on_follow_fork_mode_parent { } {
proc_with_prefix test_detach_on_fork_on_follow_fork_mode_child { } {
if { [do_setup on child] == -1 } {
- return -1
+ return
}
# We are stopped in the child, parent is detached.
diff --git a/gdb/testsuite/gdb.base/jit-reader-simple.exp b/gdb/testsuite/gdb.base/jit-reader-simple.exp
index 445e2b053fd2..a50a92b6c504 100644
--- a/gdb/testsuite/gdb.base/jit-reader-simple.exp
+++ b/gdb/testsuite/gdb.base/jit-reader-simple.exp
@@ -181,7 +181,7 @@ with_test_prefix "two JITers" {
gdb_load $binfile_dl2
if {![runto_main]} {
- return -1
+ return
}
set num_bps 0
diff --git a/gdb/testsuite/gdb.base/jump.exp b/gdb/testsuite/gdb.base/jump.exp
index 3139b081aa25..63b145dbf5e4 100644
--- a/gdb/testsuite/gdb.base/jump.exp
+++ b/gdb/testsuite/gdb.base/jump.exp
@@ -110,7 +110,7 @@ for {set inf 2} {$inf <= $num_inferiors} {incr inf} {
"Switching to inferior ${inf} .*" \
"switch to inferior ${inf}"
if {![runto_main]} {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/kill-during-detach.exp b/gdb/testsuite/gdb.base/kill-during-detach.exp
index f5e3a9022112..08c9bf353a8c 100644
--- a/gdb/testsuite/gdb.base/kill-during-detach.exp
+++ b/gdb/testsuite/gdb.base/kill-during-detach.exp
@@ -80,7 +80,7 @@ proc run_test { exit_p checkpoint_p } {
}
if {![runto_main]} {
- return -1
+ return
}
if { $checkpoint_p } {
diff --git a/gdb/testsuite/gdb.base/killed-outside.exp b/gdb/testsuite/gdb.base/killed-outside.exp
index 5fb818ec076b..d88f97e6fc7d 100644
--- a/gdb/testsuite/gdb.base/killed-outside.exp
+++ b/gdb/testsuite/gdb.base/killed-outside.exp
@@ -56,7 +56,7 @@ proc test {cmds_after_kill} {
set testpid [get_value "pid" "get pid of inferior"]
if { $testpid == -1 } {
- return -1
+ return
}
remote_exec target "kill -9 ${testpid}"
diff --git a/gdb/testsuite/gdb.base/label.exp b/gdb/testsuite/gdb.base/label.exp
index 418841961c8d..647f1551d511 100644
--- a/gdb/testsuite/gdb.base/label.exp
+++ b/gdb/testsuite/gdb.base/label.exp
@@ -25,7 +25,7 @@ if { [prepare_for_testing "failed to prepare" $testfile ${srcfile} debug] } {
if {![runto_main]} {
- return -1
+ return
}
gdb_test "break -q here" \
diff --git a/gdb/testsuite/gdb.base/list-dot-nodebug.exp b/gdb/testsuite/gdb.base/list-dot-nodebug.exp
index 69ffd679e92e..18afe11cead2 100644
--- a/gdb/testsuite/gdb.base/list-dot-nodebug.exp
+++ b/gdb/testsuite/gdb.base/list-dot-nodebug.exp
@@ -33,7 +33,7 @@ proc do_test { debug } {
[list ${::testfile}-${debug} $opts \
$::srcfile [list nodebug] \
$::srcfile2 [list debug]]]} {
- return -1
+ return
}
@@ -58,7 +58,7 @@ proc do_test { debug } {
set executable ${::testfile}-none
if {[build_executable "failed to prepare" ${executable} \
[list $::srcfile $::srcfile2] $opts]} {
- return -1
+ return
}
clean_restart ${executable}
@@ -79,7 +79,7 @@ proc do_test { debug } {
}
if { ![runto bar] } {
- return -1
+ return
}
gdb_test "list ." \
diff --git a/gdb/testsuite/gdb.base/longjmp.exp b/gdb/testsuite/gdb.base/longjmp.exp
index 92b9544021fa..c545db0c32d0 100644
--- a/gdb/testsuite/gdb.base/longjmp.exp
+++ b/gdb/testsuite/gdb.base/longjmp.exp
@@ -21,8 +21,8 @@
standard_testfile .c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nowarnings}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc do_test { with_probes } {
@@ -33,7 +33,7 @@ proc do_test { with_probes } {
}
if {![runto_main]} {
- return 0
+ return
}
# With a libc with probes, all tests should pass.
diff --git a/gdb/testsuite/gdb.base/moribund-step.exp b/gdb/testsuite/gdb.base/moribund-step.exp
index 79acb0a543cc..134a9032192a 100644
--- a/gdb/testsuite/gdb.base/moribund-step.exp
+++ b/gdb/testsuite/gdb.base/moribund-step.exp
@@ -20,7 +20,7 @@ require support_displaced_stepping
save_vars { GDBFLAGS } {
set GDBFLAGS "$GDBFLAGS -ex \"set non-stop on\""
if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile] } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/msym-bp.exp b/gdb/testsuite/gdb.base/msym-bp.exp
index 18e16c581f72..3df65e26b66a 100644
--- a/gdb/testsuite/gdb.base/msym-bp.exp
+++ b/gdb/testsuite/gdb.base/msym-bp.exp
@@ -41,7 +41,7 @@ proc test {debug} {
if { [prepare_for_testing "failed to prepare" $testfile-$debug \
[list $srcfile $srcfile2] $options] } {
- return -1
+ return
}
# Should find two locations: the static foo in the msym-bp.c file,
diff --git a/gdb/testsuite/gdb.base/new-ui.exp b/gdb/testsuite/gdb.base/new-ui.exp
index b5ee322dc04f..7a7fd6a54827 100644
--- a/gdb/testsuite/gdb.base/new-ui.exp
+++ b/gdb/testsuite/gdb.base/new-ui.exp
@@ -82,7 +82,7 @@ proc_with_prefix do_test {} {
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
gdb_test "new-ui" \
diff --git a/gdb/testsuite/gdb.base/noreturn-finish.exp b/gdb/testsuite/gdb.base/noreturn-finish.exp
index 0574733cde74..2ba6097fa772 100644
--- a/gdb/testsuite/gdb.base/noreturn-finish.exp
+++ b/gdb/testsuite/gdb.base/noreturn-finish.exp
@@ -23,7 +23,7 @@ proc noreturn_finish_test { } {
global gdb_prompt
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "noreturn_func"
diff --git a/gdb/testsuite/gdb.base/noreturn-return.exp b/gdb/testsuite/gdb.base/noreturn-return.exp
index c761f141cddb..d4a908cf0cdc 100644
--- a/gdb/testsuite/gdb.base/noreturn-return.exp
+++ b/gdb/testsuite/gdb.base/noreturn-return.exp
@@ -23,7 +23,7 @@ proc noreturn_test { } {
global gdb_prompt
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "noreturn_func"
diff --git a/gdb/testsuite/gdb.base/nostdlib.exp b/gdb/testsuite/gdb.base/nostdlib.exp
index 91a3de3fa235..920f145d6288 100644
--- a/gdb/testsuite/gdb.base/nostdlib.exp
+++ b/gdb/testsuite/gdb.base/nostdlib.exp
@@ -49,7 +49,7 @@ foreach_with_prefix pie { "nopie" "pie" } {
}
if {$err != ""} {
untested "failed to compile"
- return -1
+ return
}
clean_restart $filename
diff --git a/gdb/testsuite/gdb.base/overlays.exp b/gdb/testsuite/gdb.base/overlays.exp
index 3f584ee83c3a..0d11726d4df5 100644
--- a/gdb/testsuite/gdb.base/overlays.exp
+++ b/gdb/testsuite/gdb.base/overlays.exp
@@ -29,8 +29,8 @@ standard_testfile overlays.c ovlymgr.c foo.c bar.c baz.c grbx.c
if {[build_executable $testfile.exp $testfile \
[list $srcfile $srcfile2 $srcfile3 $srcfile4 $srcfile5 $srcfile6] \
"debug ldscript=-Wl,-T$linker_script"] == -1} {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
remote_exec build "mv ${testfile}.o foo.o bar.o baz.o grbx.o ovlymgr.o ${objdir}/${subdir}"
@@ -45,7 +45,7 @@ gdb_load ${binfile}
#
if {![runto_main]} {
- return 0
+ return
}
# couple of convenience variables
diff --git a/gdb/testsuite/gdb.base/print-file-var.exp b/gdb/testsuite/gdb.base/print-file-var.exp
index b9e3cbbc0bc8..150c18a7b3c4 100644
--- a/gdb/testsuite/gdb.base/print-file-var.exp
+++ b/gdb/testsuite/gdb.base/print-file-var.exp
@@ -46,12 +46,12 @@ proc test {hidden dlopen version_id_main lang} {
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib1}.c \
${libobj1} \
${lib_opts} ] != "" } {
- return -1
+ return
}
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib2}.c \
${libobj2} \
${lib_opts} ] != "" } {
- return -1
+ return
}
set main_opts [list debug $lang]
@@ -74,7 +74,7 @@ proc test {hidden dlopen version_id_main lang} {
${main}.c \
$main_opts]
!= 0 } {
- return -1
+ return
}
clean_restart $executable
@@ -82,7 +82,7 @@ proc test {hidden dlopen version_id_main lang} {
gdb_locate_shlib $libobj2
if {![runto_main]} {
- return -1
+ return
}
# Try printing "this_version_num" qualified with the name of the file
diff --git a/gdb/testsuite/gdb.base/print-symbol-loading.exp b/gdb/testsuite/gdb.base/print-symbol-loading.exp
index 77c6145201e9..e3f4b526ac62 100644
--- a/gdb/testsuite/gdb.base/print-symbol-loading.exp
+++ b/gdb/testsuite/gdb.base/print-symbol-loading.exp
@@ -96,7 +96,7 @@ proc test_load_shlib { print_symbol_loading } {
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "nosharedlibrary"
diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp
index 631cfd891fcf..12933d898ed6 100644
--- a/gdb/testsuite/gdb.base/printcmds.exp
+++ b/gdb/testsuite/gdb.base/printcmds.exp
@@ -23,8 +23,8 @@
standard_testfile .c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc test_integer_literals_accepted {} {
@@ -1213,7 +1213,7 @@ gdb_test "p ctable1\[120\]" "120 'x'" "p ctable1\[120\] #1"
gdb_load ${binfile}
if {![runto_main]} {
- return 0
+ return
}
# With a running target, printf convenience vars should of course work.
diff --git a/gdb/testsuite/gdb.base/random-signal.exp b/gdb/testsuite/gdb.base/random-signal.exp
index e0c5e669c2f2..9482b0aee8ed 100644
--- a/gdb/testsuite/gdb.base/random-signal.exp
+++ b/gdb/testsuite/gdb.base/random-signal.exp
@@ -52,7 +52,7 @@ with_test_prefix "run" {
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
do_test
diff --git a/gdb/testsuite/gdb.base/randomize.exp b/gdb/testsuite/gdb.base/randomize.exp
index 58c2c78ee26a..ef358bef88e2 100644
--- a/gdb/testsuite/gdb.base/randomize.exp
+++ b/gdb/testsuite/gdb.base/randomize.exp
@@ -43,11 +43,11 @@ set test "set disable-randomization off"
gdb_test_multiple "${test}" "${test}" {
-re "Disabling randomization .* unsupported .*$gdb_prompt $" {
untested "disabling randomization is not supported on this Linux GDB"
- return -1
+ return
}
-re "No symbol .* in current context.*$gdb_prompt $" {
untested "disabling randomization is not supported on this GDB platform"
- return -1
+ return
}
-re "$gdb_prompt $" {
pass $test
diff --git a/gdb/testsuite/gdb.base/readline.exp b/gdb/testsuite/gdb.base/readline.exp
index f8f9adecf8f7..c9e5830a3220 100644
--- a/gdb/testsuite/gdb.base/readline.exp
+++ b/gdb/testsuite/gdb.base/readline.exp
@@ -154,7 +154,7 @@ save_vars { env(TERM) } {
if { ![readline_is_used] } {
unsupported "readline isn't used."
- return -1
+ return
}
save_vars { timeout env(GDBHISTSIZE) env(GDBHISTFILE) } {
diff --git a/gdb/testsuite/gdb.base/readnever.exp b/gdb/testsuite/gdb.base/readnever.exp
index 9f74b8b005d5..bba1186a3441 100644
--- a/gdb/testsuite/gdb.base/readnever.exp
+++ b/gdb/testsuite/gdb.base/readnever.exp
@@ -27,7 +27,7 @@ if { [build_executable "failed to build" $testfile $srcfile { debug }] == -1 } {
save_vars { GDBFLAGS } {
append GDBFLAGS " --readnever"
if { [clean_restart $testfile] == -1 } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.base/relocate.exp b/gdb/testsuite/gdb.base/relocate.exp
index 8c1ffc52e509..5b5d7cffd726 100644
--- a/gdb/testsuite/gdb.base/relocate.exp
+++ b/gdb/testsuite/gdb.base/relocate.exp
@@ -21,8 +21,8 @@ append binfile .o
remote_exec build "rm -f ${binfile}"
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.base/reread.exp b/gdb/testsuite/gdb.base/reread.exp
index d5373ce3348b..15d1186a40a1 100644
--- a/gdb/testsuite/gdb.base/reread.exp
+++ b/gdb/testsuite/gdb.base/reread.exp
@@ -27,7 +27,7 @@ foreach_with_prefix opts { "" "pie" } {
if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" \
executable ${testfile1_opt}] != "" } {
untested "failed to compile first testcase"
- return -1
+ return
}
# build the second test case
@@ -44,7 +44,7 @@ foreach_with_prefix opts { "" "pie" } {
&& [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" \
executable ${testfile2_opt2}] != ""} {
untested "failed to compile second testcase"
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.base/return2.exp b/gdb/testsuite/gdb.base/return2.exp
index e0aa63b8d5b0..241845d09cf6 100644
--- a/gdb/testsuite/gdb.base/return2.exp
+++ b/gdb/testsuite/gdb.base/return2.exp
@@ -19,8 +19,8 @@
standard_testfile .c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
set allow_float_test [allow_float_test]
@@ -82,7 +82,7 @@ proc return2_tests { } {
global gdb_prompt allow_float_test
if {![runto_main]} {
- return -1
+ return
}
return_void
diff --git a/gdb/testsuite/gdb.base/set-cwd.exp b/gdb/testsuite/gdb.base/set-cwd.exp
index 279004596a1e..81416e9f9653 100644
--- a/gdb/testsuite/gdb.base/set-cwd.exp
+++ b/gdb/testsuite/gdb.base/set-cwd.exp
@@ -31,7 +31,7 @@ proc_with_prefix test_tilde_expansion { } {
gdb_test_no_output "set cwd ~/" "set inferior cwd to ~/ dir"
if { ![runto_main] } {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
@@ -95,13 +95,13 @@ proc_with_prefix test_cd_into_dir { } {
# This test only makes sense if $tmpdir != $gdb_cwd_before_run
if { ![gdb_assert ![string equal $tmpdir $gdb_cwd_before_run] \
"make sure that tmpdir and GDB's cwd are different"] } {
- return -1
+ return
}
gdb_test_no_output "set cwd $tmpdir" "set inferior cwd to temp dir"
if { ![runto_main] } {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
@@ -150,14 +150,14 @@ proc_with_prefix test_cwd_reset { } {
# This test only makes sense if $tmpdir != $gdb_cwd.
if { ![gdb_assert ![string equal $tmpdir $gdb_cwd] \
"make sure that tmpdir and GDB's cwd are different"] } {
- return -1
+ return
}
gdb_test_no_output "set cwd $tmpdir" "set inferior cwd to temp dir"
with_test_prefix "running with set cwd" {
if { ![runto_main] } {
- return -1
+ return
}
}
@@ -172,7 +172,7 @@ proc_with_prefix test_cwd_reset { } {
with_test_prefix "running without set cwd" {
if { ![runto_main] } {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp
index feac4e993ac1..b8923492e4b8 100644
--- a/gdb/testsuite/gdb.base/setshow.exp
+++ b/gdb/testsuite/gdb.base/setshow.exp
@@ -23,8 +23,8 @@
standard_testfile .c
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc_with_prefix test_setshow_annotate {} {
diff --git a/gdb/testsuite/gdb.base/share-env-with-gdbserver.exp b/gdb/testsuite/gdb.base/share-env-with-gdbserver.exp
index 60875224de2f..0624424d1524 100644
--- a/gdb/testsuite/gdb.base/share-env-with-gdbserver.exp
+++ b/gdb/testsuite/gdb.base/share-env-with-gdbserver.exp
@@ -62,7 +62,7 @@ proc do_prepare_inferior { } {
global decimal hex
if { ![runto_main] } {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.base/solib-display.exp b/gdb/testsuite/gdb.base/solib-display.exp
index cda9605b0db0..83afcaba1494 100644
--- a/gdb/testsuite/gdb.base/solib-display.exp
+++ b/gdb/testsuite/gdb.base/solib-display.exp
@@ -67,7 +67,7 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" {
if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $sep_lib_flags] != ""
|| [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {$libsepdebug == "SEP"} {
@@ -82,7 +82,7 @@ foreach libsepdebug {NO IN SEP} { with_test_prefix "$libsepdebug" {
clean_restart $executable
if {![runto_main]} {
- return 0
+ return
}
gdb_test "display (int) a_global" "1: \\(int\\) a_global = 41"
diff --git a/gdb/testsuite/gdb.base/solib-overlap.exp b/gdb/testsuite/gdb.base/solib-overlap.exp
index feb080708b70..3fc92d37e90b 100644
--- a/gdb/testsuite/gdb.base/solib-overlap.exp
+++ b/gdb/testsuite/gdb.base/solib-overlap.exp
@@ -61,7 +61,7 @@ foreach prelink_lib1 {0x40000000 0x50000000} { with_test_prefix "$prelink_lib1"
|| [gdb_compile_shlib ${srcfile_lib} ${binfile_lib2} $lib_flags] != ""
|| [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[catch {exec prelink -N -r ${prelink_lib1} ${binfile_lib1}} output] != 0
@@ -69,7 +69,7 @@ foreach prelink_lib1 {0x40000000 0x50000000} { with_test_prefix "$prelink_lib1"
# Maybe we don't have prelink.
verbose -log "prelink failed: $output"
untested "could not prelink ${binfile_lib1_test_msg} or ${binfile_lib2_test_msg}."
- return -1
+ return
}
set test_spawn_id [spawn_wait_for_attach $binfile]
@@ -85,7 +85,7 @@ foreach prelink_lib1 {0x40000000 0x50000000} { with_test_prefix "$prelink_lib1"
|| [gdb_compile_shlib ${srcfile_lib} ${binfile_lib2} $lib_flags] != ""} {
untested "failed to compile shared library"
kill_wait_spawned_process $test_spawn_id
- return -1
+ return
}
clean_restart ${binfile_base}
diff --git a/gdb/testsuite/gdb.base/solib-search.exp b/gdb/testsuite/gdb.base/solib-search.exp
index 43f54b41df0e..3ae9bc442b2a 100644
--- a/gdb/testsuite/gdb.base/solib-search.exp
+++ b/gdb/testsuite/gdb.base/solib-search.exp
@@ -90,7 +90,7 @@ set corefile [standard_output_file solib-search.core]
set core_supported [gdb_gcore_cmd "$corefile" "save a corefile"]
if {!$core_supported} {
- return -1
+ return
}
# Before we restart gdb, replace the libs with the "wrong" ones.
diff --git a/gdb/testsuite/gdb.base/solib-weak.exp b/gdb/testsuite/gdb.base/solib-weak.exp
index 449d468603fe..79e6a6a46d61 100644
--- a/gdb/testsuite/gdb.base/solib-weak.exp
+++ b/gdb/testsuite/gdb.base/solib-weak.exp
@@ -23,12 +23,12 @@ require allow_shlib_tests
if {([istarget *-*-mingw*]
|| [istarget *-*-cygwin*]
|| [istarget *-*-pe*])} {
- return 0
+ return
}
# This test uses GCC-specific syntax.
if {![test_compiler_info "gcc-*"]} {
- return 0
+ return
}
proc do_test { lib1opts lib2opts lib1first } {
@@ -80,7 +80,7 @@ proc do_test { lib1opts lib2opts lib1first } {
if { [gdb_compile_shlib ${lib1src} ${lib1} ${lib1opts}] != ""
|| [gdb_compile_shlib ${lib2src} ${lib2} ${lib2opts}] != ""
|| [gdb_compile "${srcdir}/${subdir}/${srcfile}" ${binfile} executable $exec_opts] != ""} {
- return -1
+ return
}
with_test_prefix $testopts {
diff --git a/gdb/testsuite/gdb.base/source-dir.exp b/gdb/testsuite/gdb.base/source-dir.exp
index d2589346ed82..25fd006667fa 100644
--- a/gdb/testsuite/gdb.base/source-dir.exp
+++ b/gdb/testsuite/gdb.base/source-dir.exp
@@ -115,7 +115,7 @@ proc test_truncated_comp_dir {} {
if { [gdb_compile "${srcfile}" "${binfile}" \
executable ${options}] != "" } {
untested "failed to compile"
- return -1
+ return
}
}
@@ -130,7 +130,7 @@ proc test_truncated_comp_dir {} {
"\r\nSource directories searched: \\\$cdir\[:;\]\\\$cwd"
if {![runto_main]} {
- return 0
+ return
}
gdb_test "info source" \
diff --git a/gdb/testsuite/gdb.base/stack-protector.exp b/gdb/testsuite/gdb.base/stack-protector.exp
index b2d1e6000e8c..3c61ef500b04 100644
--- a/gdb/testsuite/gdb.base/stack-protector.exp
+++ b/gdb/testsuite/gdb.base/stack-protector.exp
@@ -41,11 +41,11 @@ proc simple_func_break_test { protection } {
lappend options additional_flags=$protection
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Break on function foo and ensure it stops on the first line of code.
@@ -57,7 +57,7 @@ proc simple_func_break_test { protection } {
}
gdb_continue_to_breakpoint "foo" ".*break here.*"
- return 1
+ return
}
foreach_with_prefix protection $protector_options {
diff --git a/gdb/testsuite/gdb.base/stale-infcall.exp b/gdb/testsuite/gdb.base/stale-infcall.exp
index cb7c09972032..ea3db89d2e92 100644
--- a/gdb/testsuite/gdb.base/stale-infcall.exp
+++ b/gdb/testsuite/gdb.base/stale-infcall.exp
@@ -36,7 +36,7 @@ gdb_test_multiple "next" $test {
-re "( test-fail .*|\r\nCannot insert breakpoint 0\\.\r\n.*)\r\n$gdb_prompt $" {
xfail $test
untested "system lacks support for tracking longjmps"
- return -1
+ return
}
}
gdb_test_no_output {delete $test_fail_bpnum}
diff --git a/gdb/testsuite/gdb.base/step-break.exp b/gdb/testsuite/gdb.base/step-break.exp
index a580d7f201b3..e5fe59933bd1 100644
--- a/gdb/testsuite/gdb.base/step-break.exp
+++ b/gdb/testsuite/gdb.base/step-break.exp
@@ -18,11 +18,11 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
set bp_location [gdb_get_line_number "set breakpoint here"]
diff --git a/gdb/testsuite/gdb.base/step-over-no-symbols.exp b/gdb/testsuite/gdb.base/step-over-no-symbols.exp
index 655b7a062d81..5f4b98d6e6ae 100644
--- a/gdb/testsuite/gdb.base/step-over-no-symbols.exp
+++ b/gdb/testsuite/gdb.base/step-over-no-symbols.exp
@@ -49,7 +49,7 @@ proc test_step_over { displaced } {
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
delete_breakpoints
diff --git a/gdb/testsuite/gdb.base/step-over-syscall.exp b/gdb/testsuite/gdb.base/step-over-syscall.exp
index 12eff194efc4..20890e85b3ea 100644
--- a/gdb/testsuite/gdb.base/step-over-syscall.exp
+++ b/gdb/testsuite/gdb.base/step-over-syscall.exp
@@ -229,7 +229,7 @@ proc step_over_syscall { syscall } {
if {[build_executable ${testfile}.exp ${testfile} ${testfile}.c $options]} {
untested "failed to compile"
- return -1
+ return
}
foreach_with_prefix displaced {"off" "on"} {
@@ -242,7 +242,7 @@ proc step_over_syscall { syscall } {
set syscall_insn_addr [lindex $ret 0]
set syscall_insn_next_addr [lindex $ret 1]
if { $syscall_insn_addr == -1 } {
- return -1
+ return
}
gdb_test "continue" "Continuing\\..*Breakpoint ${::decimal}, (.* in )?(__libc_)?$syscall \\(\\).*" \
@@ -271,7 +271,7 @@ proc step_over_syscall { syscall } {
# Check the address of next instruction of syscall.
if {[gdb_test "stepi" "x/i .*=>.*" "single step over $syscall"] != 0} {
- return -1
+ return
}
check_pc_after_cross_syscall $displaced $syscall $syscall_insn_next_addr
@@ -301,7 +301,7 @@ proc break_cond_on_syscall { syscall follow_fork detach_on_fork } {
set syscall_insn_addr [lindex $ret 0]
set syscall_insn_next_addr [lindex $ret 1]
if { $syscall_insn_addr == -1 } {
- return -1
+ return
}
gdb_test "continue" "Continuing\\..*Breakpoint ${::decimal}, (.* in )?(__libc_)?$syscall \\(\\).*" \
diff --git a/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp b/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp
index d8cf9da97f71..c4c12a5c57c9 100644
--- a/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp
+++ b/gdb/testsuite/gdb.base/step-sw-breakpoint-adjust-pc.exp
@@ -42,7 +42,7 @@ proc test {non_stop displaced always_inserted} {
gdb_test_no_output "set breakpoint always-inserted $always_inserted"
if {![runto_main]} {
- return -1
+ return
}
with_test_prefix "user bp" {
diff --git a/gdb/testsuite/gdb.base/style-logging.exp b/gdb/testsuite/gdb.base/style-logging.exp
index 8895e88d4b59..7f56b2d49f2a 100644
--- a/gdb/testsuite/gdb.base/style-logging.exp
+++ b/gdb/testsuite/gdb.base/style-logging.exp
@@ -24,7 +24,7 @@ standard_testfile style.c
with_ansi_styling_terminal {
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.base/testenv.exp b/gdb/testsuite/gdb.base/testenv.exp
index 83de52c510b0..62887ebe7170 100644
--- a/gdb/testsuite/gdb.base/testenv.exp
+++ b/gdb/testsuite/gdb.base/testenv.exp
@@ -28,7 +28,7 @@ standard_testfile .c
# and start with a fresh gdb
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Test that the inferior sees EXPECTED env vars starting with
diff --git a/gdb/testsuite/gdb.base/traced-thread.exp b/gdb/testsuite/gdb.base/traced-thread.exp
index b6d354907225..219e3f900ac5 100644
--- a/gdb/testsuite/gdb.base/traced-thread.exp
+++ b/gdb/testsuite/gdb.base/traced-thread.exp
@@ -26,7 +26,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
}
if {![runto "parent_stop"]} {
- return -1
+ return
}
# We don't want to be bothered.
diff --git a/gdb/testsuite/gdb.base/valgrind-bt.exp b/gdb/testsuite/gdb.base/valgrind-bt.exp
index 36614427cf9b..2fd29e72508d 100644
--- a/gdb/testsuite/gdb.base/valgrind-bt.exp
+++ b/gdb/testsuite/gdb.base/valgrind-bt.exp
@@ -42,13 +42,13 @@ gdb_test_multiple "continue" $test {
fail "$test (remote connection closed)"
# Only if valgrind got stuck.
kill_wait_spawned_process $valgrind_spawn_id
- return -1
+ return
}
-re "The program is not being run\\.\r\n$gdb_prompt $" {
fail "$test (valgrind vgdb has terminated)"
# Only if valgrind got stuck.
kill_wait_spawned_process $valgrind_spawn_id
- return -1
+ return
}
-re "\r\n$gdb_prompt $" {
pass "$test (false warning)"
diff --git a/gdb/testsuite/gdb.base/valgrind-infcall.exp b/gdb/testsuite/gdb.base/valgrind-infcall.exp
index c39d31819837..ca13f42f076b 100644
--- a/gdb/testsuite/gdb.base/valgrind-infcall.exp
+++ b/gdb/testsuite/gdb.base/valgrind-infcall.exp
@@ -42,13 +42,13 @@ while {$loop && $continue_count < 100} {
fail "$test (remote connection closed)"
# Only if valgrind got stuck.
kill_wait_spawned_process $valgrind_spawn_id
- return -1
+ return
}
-re "The program is not being run\\.\r\n$gdb_prompt $" {
fail "$test (valgrind vgdb has terminated)"
# Only if valgrind got stuck.
kill_wait_spawned_process $valgrind_spawn_id
- return -1
+ return
}
-re "\r\n$gdb_prompt $" {
pass "$test (false warning)"
diff --git a/gdb/testsuite/gdb.base/vdso-warning.exp b/gdb/testsuite/gdb.base/vdso-warning.exp
index 4f61554dc68a..358a1dd42d8d 100644
--- a/gdb/testsuite/gdb.base/vdso-warning.exp
+++ b/gdb/testsuite/gdb.base/vdso-warning.exp
@@ -73,7 +73,7 @@ with_test_prefix "core" {
set corefile [standard_output_file $testfile.core]
set core_supported [gdb_gcore_cmd "$corefile" "save a corefile"]
if {!$core_supported} {
- return -1
+ return
}
clean_restart ${testfile}
diff --git a/gdb/testsuite/gdb.base/vla-optimized-out.exp b/gdb/testsuite/gdb.base/vla-optimized-out.exp
index d50804201cd6..7a0af0267c82 100644
--- a/gdb/testsuite/gdb.base/vla-optimized-out.exp
+++ b/gdb/testsuite/gdb.base/vla-optimized-out.exp
@@ -30,7 +30,7 @@ proc vla_optimized_out {exe_suffix options} {
if { [prepare_for_testing "failed to prepare" "$testfile-$exe_suffix" $srcfile \
$compile_flags] } {
- return -1
+ return
}
if {![runto f1]} {
diff --git a/gdb/testsuite/gdb.base/watch-bitfields.exp b/gdb/testsuite/gdb.base/watch-bitfields.exp
index 30e90fecf6b8..30c05ce094c2 100644
--- a/gdb/testsuite/gdb.base/watch-bitfields.exp
+++ b/gdb/testsuite/gdb.base/watch-bitfields.exp
@@ -54,7 +54,7 @@ proc expect_watchpoint { expr old new } {
proc test_watch_location {} {
with_test_prefix "-location watch against bitfields" {
if {![runto_main]} {
- return -1
+ return
}
watch "-location q.a"
@@ -79,7 +79,7 @@ proc test_watch_location {} {
proc test_regular_watch {} {
with_test_prefix "regular watch against bitfields" {
if {![runto_main]} {
- return -1
+ return
}
watch "q.d + q.f + q.g"
diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp
index 29b9c3fd07dd..46eec592402d 100644
--- a/gdb/testsuite/gdb.base/watchpoint.exp
+++ b/gdb/testsuite/gdb.base/watchpoint.exp
@@ -26,8 +26,8 @@ set allow_hw_watchpoint_tests_p [allow_hw_watchpoint_tests]
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# True if we're forcing no hardware watchpoints.
diff --git a/gdb/testsuite/gdb.base/wchar.exp b/gdb/testsuite/gdb.base/wchar.exp
index d3cfd09d5de4..d4c1a5fd87c6 100644
--- a/gdb/testsuite/gdb.base/wchar.exp
+++ b/gdb/testsuite/gdb.base/wchar.exp
@@ -21,7 +21,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
set bp_location [gdb_get_line_number "START"]
if {![runto "wchar.c:$bp_location"]} {
- return -1
+ return
}
gdb_test "print narrow" "= 97 L'a'"
diff --git a/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp b/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp
index 98680e5c5a32..8a381843cffb 100644
--- a/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp
+++ b/gdb/testsuite/gdb.base/wrong_frame_bt_full.exp
@@ -28,8 +28,8 @@ set opaque_objfile [standard_output_file "$opaque_testfile.o"]
if {[gdb_compile "${srcdir}/${subdir}/$opaque_testfile.c" \
$opaque_objfile \
object {}] != ""} {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[gdb_compile \
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 16/36] GDB: testsuite: C++: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (14 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 15/36] GDB: testsuite: base: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 17/36] GDB: testsuite: C++: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (19 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.cp.
---
gdb/testsuite/gdb.cp/abstract-origin.exp | 4 ++--
gdb/testsuite/gdb.cp/align.exp | 2 +-
gdb/testsuite/gdb.cp/ambiguous.exp | 2 +-
gdb/testsuite/gdb.cp/annota2.exp | 2 +-
gdb/testsuite/gdb.cp/annota3.exp | 2 +-
gdb/testsuite/gdb.cp/anon-ns.exp | 2 +-
gdb/testsuite/gdb.cp/anon-union.exp | 2 +-
gdb/testsuite/gdb.cp/arg-reference.exp | 2 +-
gdb/testsuite/gdb.cp/baseenum.exp | 4 ++--
gdb/testsuite/gdb.cp/bool.exp | 2 +-
gdb/testsuite/gdb.cp/break-template-cast.exp | 2 +-
gdb/testsuite/gdb.cp/breakpoint-locs.exp | 2 +-
gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp | 6 +++---
gdb/testsuite/gdb.cp/breakpoint.exp | 2 +-
gdb/testsuite/gdb.cp/bs15503.exp | 2 +-
gdb/testsuite/gdb.cp/call-c.exp | 2 +-
gdb/testsuite/gdb.cp/call-method-register.exp | 6 +++---
gdb/testsuite/gdb.cp/casts.exp | 4 ++--
gdb/testsuite/gdb.cp/chained-calls.exp | 4 ++--
gdb/testsuite/gdb.cp/class2.exp | 2 +-
gdb/testsuite/gdb.cp/classes.exp | 2 +-
gdb/testsuite/gdb.cp/cmpd-minsyms.exp | 2 +-
gdb/testsuite/gdb.cp/cold-clone.exp | 2 +-
gdb/testsuite/gdb.cp/constexpr-field.exp | 2 +-
gdb/testsuite/gdb.cp/cp-relocate.exp | 2 +-
gdb/testsuite/gdb.cp/cpcompletion.exp | 4 ++--
gdb/testsuite/gdb.cp/cpexprs.exp.tcl | 2 +-
gdb/testsuite/gdb.cp/cplabel.exp | 4 ++--
gdb/testsuite/gdb.cp/cplusfuncs.exp | 2 +-
gdb/testsuite/gdb.cp/ctti.exp | 2 +-
gdb/testsuite/gdb.cp/derivation.exp | 2 +-
gdb/testsuite/gdb.cp/destrprint.exp | 4 ++--
gdb/testsuite/gdb.cp/disasm-func-name.exp | 2 +-
gdb/testsuite/gdb.cp/dispcxx.exp | 2 +-
gdb/testsuite/gdb.cp/empty-enum.exp | 4 ++--
gdb/testsuite/gdb.cp/ena-dis-br-range.exp | 4 ++--
gdb/testsuite/gdb.cp/enum-class.exp | 4 ++--
gdb/testsuite/gdb.cp/exception.exp | 2 +-
gdb/testsuite/gdb.cp/exceptprint.exp | 8 ++++----
gdb/testsuite/gdb.cp/expand-sals.exp | 4 ++--
gdb/testsuite/gdb.cp/extern-c.exp | 2 +-
gdb/testsuite/gdb.cp/filename.exp | 2 +-
gdb/testsuite/gdb.cp/formatted-ref.exp | 2 +-
gdb/testsuite/gdb.cp/gdb1355.exp | 2 +-
gdb/testsuite/gdb.cp/gdb2384.exp | 4 ++--
gdb/testsuite/gdb.cp/gdb2495.exp | 2 +-
gdb/testsuite/gdb.cp/hang.exp | 2 +-
gdb/testsuite/gdb.cp/impl-this.exp | 2 +-
gdb/testsuite/gdb.cp/infcall-dlopen.exp | 4 ++--
gdb/testsuite/gdb.cp/inherit.exp | 2 +-
gdb/testsuite/gdb.cp/iostream.exp | 2 +-
gdb/testsuite/gdb.cp/local.exp | 2 +-
gdb/testsuite/gdb.cp/m-data.exp | 2 +-
gdb/testsuite/gdb.cp/m-static.exp | 2 +-
gdb/testsuite/gdb.cp/main-cp.exp | 2 +-
gdb/testsuite/gdb.cp/many-args.exp | 2 +-
gdb/testsuite/gdb.cp/mb-ctor.exp | 2 +-
gdb/testsuite/gdb.cp/mb-inline.exp | 2 +-
gdb/testsuite/gdb.cp/mb-templates.exp | 2 +-
gdb/testsuite/gdb.cp/member-name.exp | 2 +-
gdb/testsuite/gdb.cp/member-ptr.exp | 2 +-
gdb/testsuite/gdb.cp/meth-typedefs.exp | 2 +-
gdb/testsuite/gdb.cp/method-call-in-c.exp | 2 +-
gdb/testsuite/gdb.cp/method-ref-return.exp | 4 ++--
gdb/testsuite/gdb.cp/method.exp | 2 +-
gdb/testsuite/gdb.cp/minsym-fallback.exp | 2 +-
gdb/testsuite/gdb.cp/misc.exp | 2 +-
gdb/testsuite/gdb.cp/namelessclass.exp | 4 ++--
gdb/testsuite/gdb.cp/namespace-enum.exp | 2 +-
gdb/testsuite/gdb.cp/namespace-nested-import.exp | 2 +-
gdb/testsuite/gdb.cp/namespace.exp | 2 +-
gdb/testsuite/gdb.cp/nested-class-func-class.exp | 4 ++--
gdb/testsuite/gdb.cp/nested-types.exp | 2 +-
gdb/testsuite/gdb.cp/nextoverthrow.exp | 4 ++--
gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp | 4 ++--
gdb/testsuite/gdb.cp/non-trivial-retval.exp | 4 ++--
gdb/testsuite/gdb.cp/noparam.exp | 2 +-
gdb/testsuite/gdb.cp/nsalias.exp | 10 +++++-----
gdb/testsuite/gdb.cp/nsdecl.exp | 2 +-
gdb/testsuite/gdb.cp/nsimport.exp | 2 +-
gdb/testsuite/gdb.cp/nsrecurs.exp | 2 +-
gdb/testsuite/gdb.cp/nsstress.exp | 2 +-
gdb/testsuite/gdb.cp/nsusing.exp | 2 +-
gdb/testsuite/gdb.cp/operator.exp | 2 +-
gdb/testsuite/gdb.cp/overload-const.exp | 2 +-
gdb/testsuite/gdb.cp/overload.exp | 2 +-
gdb/testsuite/gdb.cp/ovldbreak.exp | 2 +-
gdb/testsuite/gdb.cp/ovsrch.exp | 2 +-
gdb/testsuite/gdb.cp/paramless.exp | 2 +-
gdb/testsuite/gdb.cp/paren-type.exp | 2 +-
gdb/testsuite/gdb.cp/parse-lang.exp | 2 +-
gdb/testsuite/gdb.cp/pass-by-ref-2.exp | 4 ++--
gdb/testsuite/gdb.cp/pass-by-ref.exp | 4 ++--
gdb/testsuite/gdb.cp/pointer-to-member.exp | 2 +-
gdb/testsuite/gdb.cp/pr-1023.exp | 2 +-
gdb/testsuite/gdb.cp/pr-1210.exp | 2 +-
gdb/testsuite/gdb.cp/pr-574.exp | 2 +-
gdb/testsuite/gdb.cp/pr10687.exp | 2 +-
gdb/testsuite/gdb.cp/pr12028.exp | 2 +-
gdb/testsuite/gdb.cp/pr17132.exp | 4 ++--
gdb/testsuite/gdb.cp/pr17494.exp | 4 ++--
gdb/testsuite/gdb.cp/pr9067.exp | 2 +-
gdb/testsuite/gdb.cp/pr9167.exp | 2 +-
gdb/testsuite/gdb.cp/pr9631.exp | 2 +-
gdb/testsuite/gdb.cp/print-demangle.exp | 2 +-
gdb/testsuite/gdb.cp/print-global-stub.exp | 2 +-
gdb/testsuite/gdb.cp/print-method-args.exp | 2 +-
gdb/testsuite/gdb.cp/printmethod.exp | 2 +-
gdb/testsuite/gdb.cp/psmang.exp | 2 +-
gdb/testsuite/gdb.cp/psymtab-parameter.exp | 2 +-
gdb/testsuite/gdb.cp/ptype-cv-cp.exp | 2 +-
gdb/testsuite/gdb.cp/ptype-flags.exp | 2 +-
gdb/testsuite/gdb.cp/re-set-overloaded.exp | 2 +-
gdb/testsuite/gdb.cp/readnow-language.exp | 2 +-
gdb/testsuite/gdb.cp/ref-params.exp | 2 +-
gdb/testsuite/gdb.cp/ref-types.exp | 2 +-
gdb/testsuite/gdb.cp/rtti.exp | 2 +-
gdb/testsuite/gdb.cp/rvalue-ref-casts.exp | 4 ++--
gdb/testsuite/gdb.cp/rvalue-ref-overload.exp | 4 ++--
gdb/testsuite/gdb.cp/rvalue-ref-params.exp | 2 +-
gdb/testsuite/gdb.cp/rvalue-ref-types.exp | 6 +++---
gdb/testsuite/gdb.cp/save-bp-qualified.exp | 2 +-
gdb/testsuite/gdb.cp/scope-err.exp | 2 +-
gdb/testsuite/gdb.cp/shadow.exp | 2 +-
gdb/testsuite/gdb.cp/static-method.exp | 2 +-
gdb/testsuite/gdb.cp/static-print-quit.exp | 2 +-
gdb/testsuite/gdb.cp/static-typedef-print.exp | 4 ++--
gdb/testsuite/gdb.cp/step-and-next-inline.exp | 2 +-
gdb/testsuite/gdb.cp/stub-array-size.exp | 2 +-
gdb/testsuite/gdb.cp/subtypes.exp | 2 +-
gdb/testsuite/gdb.cp/temargs.exp | 4 ++--
gdb/testsuite/gdb.cp/templates.exp | 2 +-
gdb/testsuite/gdb.cp/try_catch.exp | 2 +-
gdb/testsuite/gdb.cp/typed-enum.exp | 2 +-
gdb/testsuite/gdb.cp/typedef-base.exp | 4 ++--
gdb/testsuite/gdb.cp/typedef-operator.exp | 4 ++--
gdb/testsuite/gdb.cp/typeid.exp | 4 ++--
gdb/testsuite/gdb.cp/userdef.exp | 2 +-
gdb/testsuite/gdb.cp/using-crash.exp | 2 +-
gdb/testsuite/gdb.cp/var-tag.exp | 2 +-
gdb/testsuite/gdb.cp/virtbase.exp | 2 +-
gdb/testsuite/gdb.cp/virtbase2.exp | 2 +-
gdb/testsuite/gdb.cp/virtfunc.exp | 2 +-
gdb/testsuite/gdb.cp/virtfunc2.exp | 2 +-
gdb/testsuite/gdb.cp/vla-cxx.exp | 4 ++--
gdb/testsuite/gdb.cp/watch-cp.exp | 2 +-
146 files changed, 190 insertions(+), 190 deletions(-)
diff --git a/gdb/testsuite/gdb.cp/abstract-origin.exp b/gdb/testsuite/gdb.cp/abstract-origin.exp
index f9df73d5fe85..5b7139527a08 100644
--- a/gdb/testsuite/gdb.cp/abstract-origin.exp
+++ b/gdb/testsuite/gdb.cp/abstract-origin.exp
@@ -16,11 +16,11 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.cp/align.exp b/gdb/testsuite/gdb.cp/align.exp
index 6cf046b0cb72..03b981175194 100644
--- a/gdb/testsuite/gdb.cp/align.exp
+++ b/gdb/testsuite/gdb.cp/align.exp
@@ -139,7 +139,7 @@ standard_testfile $filename
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug nowarnings c++ additional_flags=-std=c++11}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/ambiguous.exp b/gdb/testsuite/gdb.cp/ambiguous.exp
index 838fa95cbb1c..94ba6a6b7cac 100644
--- a/gdb/testsuite/gdb.cp/ambiguous.exp
+++ b/gdb/testsuite/gdb.cp/ambiguous.exp
@@ -33,7 +33,7 @@ if {[test_compiler_info {gcc-[0-9]-*}]} {
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug c++ $additional_flags]]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota2.exp
index b3190fb3e252..466cab05b8ab 100644
--- a/gdb/testsuite/gdb.cp/annota2.exp
+++ b/gdb/testsuite/gdb.cp/annota2.exp
@@ -26,7 +26,7 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug c++ nowarnings}]} {
- return -1
+ return
}
# This testcase cannot use runto_main because of the different prompt
diff --git a/gdb/testsuite/gdb.cp/annota3.exp b/gdb/testsuite/gdb.cp/annota3.exp
index a7016ee76bda..39a1399f95da 100644
--- a/gdb/testsuite/gdb.cp/annota3.exp
+++ b/gdb/testsuite/gdb.cp/annota3.exp
@@ -26,7 +26,7 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug c++ nowarnings}]} {
- return -1
+ return
}
# This testcase cannot use runto_main because of the different prompt
diff --git a/gdb/testsuite/gdb.cp/anon-ns.exp b/gdb/testsuite/gdb.cp/anon-ns.exp
index 99f949cfc96c..50f77952bb3b 100644
--- a/gdb/testsuite/gdb.cp/anon-ns.exp
+++ b/gdb/testsuite/gdb.cp/anon-ns.exp
@@ -22,7 +22,7 @@ require allow_cplus_tests
standard_testfile .cc anon-ns2.cc
if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {c++ debug}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/anon-union.exp b/gdb/testsuite/gdb.cp/anon-union.exp
index 5b26f7a848da..def3c3df1095 100644
--- a/gdb/testsuite/gdb.cp/anon-union.exp
+++ b/gdb/testsuite/gdb.cp/anon-union.exp
@@ -28,7 +28,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/arg-reference.exp b/gdb/testsuite/gdb.cp/arg-reference.exp
index b690c1376e60..1433ec3b3e49 100644
--- a/gdb/testsuite/gdb.cp/arg-reference.exp
+++ b/gdb/testsuite/gdb.cp/arg-reference.exp
@@ -27,7 +27,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
gdb_test "ptype foo" "type = int \\\(Obj\\\)" "no false reference"
diff --git a/gdb/testsuite/gdb.cp/baseenum.exp b/gdb/testsuite/gdb.cp/baseenum.exp
index da7a436026d2..5bf9963645d4 100644
--- a/gdb/testsuite/gdb.cp/baseenum.exp
+++ b/gdb/testsuite/gdb.cp/baseenum.exp
@@ -18,11 +18,11 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "breakpoint 1" $srcfile]
diff --git a/gdb/testsuite/gdb.cp/bool.exp b/gdb/testsuite/gdb.cp/bool.exp
index 1cab03b73d0d..eb2946d8c725 100644
--- a/gdb/testsuite/gdb.cp/bool.exp
+++ b/gdb/testsuite/gdb.cp/bool.exp
@@ -26,7 +26,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.cp/break-template-cast.exp b/gdb/testsuite/gdb.cp/break-template-cast.exp
index 04ebff92489d..26cf9d387f3d 100644
--- a/gdb/testsuite/gdb.cp/break-template-cast.exp
+++ b/gdb/testsuite/gdb.cp/break-template-cast.exp
@@ -22,7 +22,7 @@ standard_testfile .cc
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile"\
{debug c++}] } {
- return -1
+ return
}
gdb_test "break foo" \
diff --git a/gdb/testsuite/gdb.cp/breakpoint-locs.exp b/gdb/testsuite/gdb.cp/breakpoint-locs.exp
index 2ab046d3be89..6a77ef26bdee 100644
--- a/gdb/testsuite/gdb.cp/breakpoint-locs.exp
+++ b/gdb/testsuite/gdb.cp/breakpoint-locs.exp
@@ -23,7 +23,7 @@ include_file breakpoint-locs.h
if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2"\
{debug c++}] } {
- return -1
+ return
}
gdb_test "break N1::C1::baz" "\\(2 locations\\)"
diff --git a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
index aaa2a531c819..5f99ab9a437d 100644
--- a/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
+++ b/gdb/testsuite/gdb.cp/breakpoint-shlib-func.exp
@@ -32,12 +32,12 @@ standard_testfile .cc -lib.cc
set libobj [standard_output_file libfoo.so]
if {[build_executable "build shared library" $libobj $srcfile2 \
{debug c++ shlib}] != 0} {
- return -1
+ return
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug c++ shlib=$libobj]]} {
- return -1
+ return
}
gdb_load_shlib $libobj
@@ -49,7 +49,7 @@ gdb_test "info breakpoints" "<foo\\(\\)@plt>"
# Runto main, but don't delete all the breakpoints.
if {![runto_main no-delete-breakpoints]} {
- return -1
+ return
}
# The breakpoint should now be showing in `foo` for real.
diff --git a/gdb/testsuite/gdb.cp/breakpoint.exp b/gdb/testsuite/gdb.cp/breakpoint.exp
index bb7b8bf5a510..936015e67095 100644
--- a/gdb/testsuite/gdb.cp/breakpoint.exp
+++ b/gdb/testsuite/gdb.cp/breakpoint.exp
@@ -26,7 +26,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
proc test_breakpoint {name} {
diff --git a/gdb/testsuite/gdb.cp/bs15503.exp b/gdb/testsuite/gdb.cp/bs15503.exp
index 3a1ec22b5a43..603cc0f1debb 100644
--- a/gdb/testsuite/gdb.cp/bs15503.exp
+++ b/gdb/testsuite/gdb.cp/bs15503.exp
@@ -22,7 +22,7 @@ require allow_stl_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/call-c.exp b/gdb/testsuite/gdb.cp/call-c.exp
index bdbe42772397..b5f7fdb24bb1 100644
--- a/gdb/testsuite/gdb.cp/call-c.exp
+++ b/gdb/testsuite/gdb.cp/call-c.exp
@@ -24,7 +24,7 @@ if {[gdb_compile "$srcdir/$subdir/${srcfile2}" "${objfilec}" object {debug}] !=
|| [gdb_compile "$srcdir/$subdir/${srcfile}" "${objfilecpp}" object {c++ debug}] != ""
|| [gdb_compile "${objfilecpp} ${objfilec}" "${binfile}" executable {c++ debug}] != ""} {
untested "failed to compile"
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/gdb.cp/call-method-register.exp
index d711cc9bd532..815c0e6a485f 100644
--- a/gdb/testsuite/gdb.cp/call-method-register.exp
+++ b/gdb/testsuite/gdb.cp/call-method-register.exp
@@ -32,7 +32,7 @@ lappend flags_nodebug nodebug
lappend flags_nodebug c++
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags_debug]} {
- return -1
+ return
}
set asm_file [standard_output_file $srcfile2]
@@ -105,11 +105,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] $::flags_nodebug] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print global_var.yyy ()" \
diff --git a/gdb/testsuite/gdb.cp/casts.exp b/gdb/testsuite/gdb.cp/casts.exp
index fd37368e1a88..67246ac7b5ca 100644
--- a/gdb/testsuite/gdb.cp/casts.exp
+++ b/gdb/testsuite/gdb.cp/casts.exp
@@ -35,7 +35,7 @@ lappend opts c++
lappend opts additional_flags=-std=c++11
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
if {![runto_main]} {
@@ -215,7 +215,7 @@ gdb_test "print &dynamic_cast<VirtualRight &> (*vr) == vr" " = true"
if {[prepare_for_testing "failed to prepare" ${testfile}03 $srcfile2 \
{debug c++ additional_flags=-std=c++03}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/chained-calls.exp b/gdb/testsuite/gdb.cp/chained-calls.exp
index 4d7522a0bd1a..5c7b84d50b6e 100644
--- a/gdb/testsuite/gdb.cp/chained-calls.exp
+++ b/gdb/testsuite/gdb.cp/chained-calls.exp
@@ -20,11 +20,11 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here"]
diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.exp
index d8f1e7972250..705f51ac3e07 100644
--- a/gdb/testsuite/gdb.cp/class2.exp
+++ b/gdb/testsuite/gdb.cp/class2.exp
@@ -26,7 +26,7 @@ if { [gcc_major_version "clang-*" "c++"] > 10 } {
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
- return -1
+ return
}
# Start with "set print object off" and "set print symbol off".
diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp
index ea4b2033b830..71ce810adadf 100644
--- a/gdb/testsuite/gdb.cp/classes.exp
+++ b/gdb/testsuite/gdb.cp/classes.exp
@@ -34,7 +34,7 @@ if { [test_compiler_info "clang-*" "c++"] } {
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
- return -1
+ return
}
# Test ptype of class objects.
diff --git a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp
index 7afda5fbe827..19653a4ccc9e 100644
--- a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp
+++ b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp
@@ -24,7 +24,7 @@ standard_testfile .cc
# Do NOT compile with debug flag.
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++}]} {
- return -1
+ return
}
# Before setting the language, try to set a few simple breakpoints
diff --git a/gdb/testsuite/gdb.cp/cold-clone.exp b/gdb/testsuite/gdb.cp/cold-clone.exp
index 1fb7c2449af4..d2c69c504faa 100644
--- a/gdb/testsuite/gdb.cp/cold-clone.exp
+++ b/gdb/testsuite/gdb.cp/cold-clone.exp
@@ -22,7 +22,7 @@ lappend flags optimize=-O2
lappend_include_file flags $srcdir/lib/attributes.h
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
- return -1
+ return
}
gdb_test_multiple "break foo" "" {
diff --git a/gdb/testsuite/gdb.cp/constexpr-field.exp b/gdb/testsuite/gdb.cp/constexpr-field.exp
index 3e8a7b985137..c50ea3ef5d94 100644
--- a/gdb/testsuite/gdb.cp/constexpr-field.exp
+++ b/gdb/testsuite/gdb.cp/constexpr-field.exp
@@ -22,7 +22,7 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{c++ debug additional_flags=-std=c++17}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/cp-relocate.exp b/gdb/testsuite/gdb.cp/cp-relocate.exp
index fb45313466b1..c42c67a95e75 100644
--- a/gdb/testsuite/gdb.cp/cp-relocate.exp
+++ b/gdb/testsuite/gdb.cp/cp-relocate.exp
@@ -112,7 +112,7 @@ gdb_test_multiple "info file" "info file" {
if { $func1_sec == $func2_sec } {
untested "cp-relocate.exp - template functions in same sections"
- return -1
+ return
}
# Now start a clean GDB, for add-symbol-file tests.
diff --git a/gdb/testsuite/gdb.cp/cpcompletion.exp b/gdb/testsuite/gdb.cp/cpcompletion.exp
index 555392b470ab..f767a8b7bc64 100644
--- a/gdb/testsuite/gdb.cp/cpcompletion.exp
+++ b/gdb/testsuite/gdb.cp/cpcompletion.exp
@@ -56,7 +56,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# Tests below are about tab-completion, which doesn't work if readline
@@ -64,7 +64,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
if { ![readline_is_used] } {
untested "no tab completion support without readline"
- return -1
+ return
}
# Test that completion is restricted by class name (all methods)
diff --git a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl
index 085dfdd0678a..c9646755f0ac 100644
--- a/gdb/testsuite/gdb.cp/cpexprs.exp.tcl
+++ b/gdb/testsuite/gdb.cp/cpexprs.exp.tcl
@@ -706,7 +706,7 @@ standard_testfile cpexprs.cc
set flags "$flags debug c++"
if {[prepare_for_testing "failed to prepare" $testfile $srcfile "$flags"]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/cplabel.exp b/gdb/testsuite/gdb.cp/cplabel.exp
index 0bb22cd96ad0..e0301eb3628c 100644
--- a/gdb/testsuite/gdb.cp/cplabel.exp
+++ b/gdb/testsuite/gdb.cp/cplabel.exp
@@ -20,11 +20,11 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set methods {"bar" "baz"}
diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp
index b8ce5d7bdd02..62b149c9f357 100644
--- a/gdb/testsuite/gdb.cp/cplusfuncs.exp
+++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp
@@ -21,7 +21,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.cp/ctti.exp b/gdb/testsuite/gdb.cp/ctti.exp
index e328b7c59c41..5c2be5de57b8 100644
--- a/gdb/testsuite/gdb.cp/ctti.exp
+++ b/gdb/testsuite/gdb.cp/ctti.exp
@@ -27,7 +27,7 @@ standard_testfile cttiadd.cc cttiadd1.cc cttiadd2.cc cttiadd3.cc
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3 $srcfile4] {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/derivation.exp b/gdb/testsuite/gdb.cp/derivation.exp
index 34fbf3c250e1..3b42c85a6272 100644
--- a/gdb/testsuite/gdb.cp/derivation.exp
+++ b/gdb/testsuite/gdb.cp/derivation.exp
@@ -36,7 +36,7 @@ standard_testfile derivation.cc derivation2.cc
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
- return -1
+ return
}
# Check inheritance of typedefs.
diff --git a/gdb/testsuite/gdb.cp/destrprint.exp b/gdb/testsuite/gdb.cp/destrprint.exp
index b0f1087a38df..f20255a4c4f7 100644
--- a/gdb/testsuite/gdb.cp/destrprint.exp
+++ b/gdb/testsuite/gdb.cp/destrprint.exp
@@ -16,11 +16,11 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here"]
diff --git a/gdb/testsuite/gdb.cp/disasm-func-name.exp b/gdb/testsuite/gdb.cp/disasm-func-name.exp
index 77b872fe1ade..d4b6586dbded 100644
--- a/gdb/testsuite/gdb.cp/disasm-func-name.exp
+++ b/gdb/testsuite/gdb.cp/disasm-func-name.exp
@@ -24,7 +24,7 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile \
$srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/dispcxx.exp b/gdb/testsuite/gdb.cp/dispcxx.exp
index 0af655ad0a50..c20dbadd65ce 100644
--- a/gdb/testsuite/gdb.cp/dispcxx.exp
+++ b/gdb/testsuite/gdb.cp/dispcxx.exp
@@ -18,7 +18,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/empty-enum.exp b/gdb/testsuite/gdb.cp/empty-enum.exp
index 437dd0ad0868..e2b82d386f34 100644
--- a/gdb/testsuite/gdb.cp/empty-enum.exp
+++ b/gdb/testsuite/gdb.cp/empty-enum.exp
@@ -35,11 +35,11 @@ lappend opts c++
lappend opts additional_flags=-std=c++11
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "breakpt"
diff --git a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp
index f6d3f0cb9717..36ab2f659697 100644
--- a/gdb/testsuite/gdb.cp/ena-dis-br-range.exp
+++ b/gdb/testsuite/gdb.cp/ena-dis-br-range.exp
@@ -26,11 +26,11 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto 'marker']} {
- return -1
+ return
}
# Returns a buffer corresponding to what GDB replies when asking for
diff --git a/gdb/testsuite/gdb.cp/enum-class.exp b/gdb/testsuite/gdb.cp/enum-class.exp
index b7858719f1e5..26a496972fa6 100644
--- a/gdb/testsuite/gdb.cp/enum-class.exp
+++ b/gdb/testsuite/gdb.cp/enum-class.exp
@@ -21,11 +21,11 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug c++ additional_flags=-std=c++11}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "ptype E1" \
diff --git a/gdb/testsuite/gdb.cp/exception.exp b/gdb/testsuite/gdb.cp/exception.exp
index 987fa799c56f..b7bba4c71d42 100644
--- a/gdb/testsuite/gdb.cp/exception.exp
+++ b/gdb/testsuite/gdb.cp/exception.exp
@@ -35,7 +35,7 @@ require allow_stl_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# Set a catch catchpoint
diff --git a/gdb/testsuite/gdb.cp/exceptprint.exp b/gdb/testsuite/gdb.cp/exceptprint.exp
index b940f66f9a89..d0e0a07bfb90 100644
--- a/gdb/testsuite/gdb.cp/exceptprint.exp
+++ b/gdb/testsuite/gdb.cp/exceptprint.exp
@@ -18,16 +18,16 @@ standard_testfile .cc
require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
if {[skip_libstdcxx_probe_tests]} {
untested "could not find libstdc++ stap probe"
- return -1
+ return
}
proc do_continue_to_catchpoint {name} {
@@ -71,7 +71,7 @@ do_exceptprint_tests "reference to struct" "{mv = 77}"
delete_breakpoints
if {![runto_main]} {
- return -1
+ return
}
with_test_prefix "2nd run" {
diff --git a/gdb/testsuite/gdb.cp/expand-sals.exp b/gdb/testsuite/gdb.cp/expand-sals.exp
index dad11bbd9b0e..187073ec86eb 100644
--- a/gdb/testsuite/gdb.cp/expand-sals.exp
+++ b/gdb/testsuite/gdb.cp/expand-sals.exp
@@ -17,10 +17,10 @@ require allow_cplus_tests
set srcfile expand-sals.cc
if { [prepare_for_testing "failed to prepare" expand-sals $srcfile {debug c++}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "func-line"]
diff --git a/gdb/testsuite/gdb.cp/extern-c.exp b/gdb/testsuite/gdb.cp/extern-c.exp
index 67a2ced08072..ce77afae1e47 100644
--- a/gdb/testsuite/gdb.cp/extern-c.exp
+++ b/gdb/testsuite/gdb.cp/extern-c.exp
@@ -20,7 +20,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.cp/filename.exp b/gdb/testsuite/gdb.cp/filename.exp
index f9f6007ccc79..72fbbcfcebee 100644
--- a/gdb/testsuite/gdb.cp/filename.exp
+++ b/gdb/testsuite/gdb.cp/filename.exp
@@ -20,7 +20,7 @@ standard_testfile .cc
include_file includefile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/formatted-ref.exp b/gdb/testsuite/gdb.cp/formatted-ref.exp
index 354c716a6c07..bc2ac9d36b24 100644
--- a/gdb/testsuite/gdb.cp/formatted-ref.exp
+++ b/gdb/testsuite/gdb.cp/formatted-ref.exp
@@ -33,7 +33,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
proc get_address { var } {
diff --git a/gdb/testsuite/gdb.cp/gdb1355.exp b/gdb/testsuite/gdb.cp/gdb1355.exp
index 900f9029c259..77e845b468d6 100644
--- a/gdb/testsuite/gdb.cp/gdb1355.exp
+++ b/gdb/testsuite/gdb.cp/gdb1355.exp
@@ -30,7 +30,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/gdb2384.exp b/gdb/testsuite/gdb.cp/gdb2384.exp
index 0a5b3088fa0f..d0c96aeaab32 100644
--- a/gdb/testsuite/gdb.cp/gdb2384.exp
+++ b/gdb/testsuite/gdb.cp/gdb2384.exp
@@ -32,7 +32,7 @@ set sofile [standard_output_file gdb2384-base.so]
if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} {
untested "failed to compile"
- return -1
+ return
}
clean_restart ${::testfile}
@@ -40,7 +40,7 @@ gdb_load_shlib ${sofile}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "First breakpoint"]
diff --git a/gdb/testsuite/gdb.cp/gdb2495.exp b/gdb/testsuite/gdb.cp/gdb2495.exp
index c3bac7a9ce46..aa5a2a16e437 100644
--- a/gdb/testsuite/gdb.cp/gdb2495.exp
+++ b/gdb/testsuite/gdb.cp/gdb2495.exp
@@ -42,7 +42,7 @@ standard_testfile .cc
require {!target_info exists gdb,cannot_call_functions}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/hang.exp b/gdb/testsuite/gdb.cp/hang.exp
index f547f1bb1590..bd6fbd24ae7c 100644
--- a/gdb/testsuite/gdb.cp/hang.exp
+++ b/gdb/testsuite/gdb.cp/hang.exp
@@ -22,7 +22,7 @@ include_file hang.H
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3] {debug c++}]} {
- return -1
+ return
}
# As of May 1, 2002, GDB hangs trying to read the debug info for the
diff --git a/gdb/testsuite/gdb.cp/impl-this.exp b/gdb/testsuite/gdb.cp/impl-this.exp
index 213d41e664f7..a8979f383c79 100644
--- a/gdb/testsuite/gdb.cp/impl-this.exp
+++ b/gdb/testsuite/gdb.cp/impl-this.exp
@@ -23,7 +23,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
set gcc_used [test_compiler_info gcc-*-*]
diff --git a/gdb/testsuite/gdb.cp/infcall-dlopen.exp b/gdb/testsuite/gdb.cp/infcall-dlopen.exp
index 50ccf608ef66..b69c9f58cce0 100644
--- a/gdb/testsuite/gdb.cp/infcall-dlopen.exp
+++ b/gdb/testsuite/gdb.cp/infcall-dlopen.exp
@@ -22,13 +22,13 @@ set lib_dlopen [shlib_target_file ${testfile}.so]
# Use completely arbitrary file for $libfile source.
if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile2} ${libfile} {debug c++}] != ""
|| [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++ shlib_load}] } {
- return -1
+ return
}
gdb_load_shlib $libfile
if { ![runto_main] } {
- return -1
+ return
}
for {set i 0} {$i < 10} {incr i} {
diff --git a/gdb/testsuite/gdb.cp/inherit.exp b/gdb/testsuite/gdb.cp/inherit.exp
index 5d7d12c40e9c..dd2ea1a7afcf 100644
--- a/gdb/testsuite/gdb.cp/inherit.exp
+++ b/gdb/testsuite/gdb.cp/inherit.exp
@@ -27,7 +27,7 @@ load_lib "cp-support.exp"
standard_testfile misc.cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# Single inheritance, print type definitions.
diff --git a/gdb/testsuite/gdb.cp/iostream.exp b/gdb/testsuite/gdb.cp/iostream.exp
index 39ccdb4087dc..b23e81115322 100644
--- a/gdb/testsuite/gdb.cp/iostream.exp
+++ b/gdb/testsuite/gdb.cp/iostream.exp
@@ -21,7 +21,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/local.exp b/gdb/testsuite/gdb.cp/local.exp
index 73527687ff85..cf072ba6c722 100644
--- a/gdb/testsuite/gdb.cp/local.exp
+++ b/gdb/testsuite/gdb.cp/local.exp
@@ -32,7 +32,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.cp/m-data.exp b/gdb/testsuite/gdb.cp/m-data.exp
index 1d1c94e107da..125c7e0483ad 100644
--- a/gdb/testsuite/gdb.cp/m-data.exp
+++ b/gdb/testsuite/gdb.cp/m-data.exp
@@ -27,7 +27,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/m-static.exp b/gdb/testsuite/gdb.cp/m-static.exp
index 939e1880d64f..a898bc934e54 100644
--- a/gdb/testsuite/gdb.cp/m-static.exp
+++ b/gdb/testsuite/gdb.cp/m-static.exp
@@ -37,7 +37,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } {
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] $flags]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/main-cp.exp b/gdb/testsuite/gdb.cp/main-cp.exp
index bdca417e0b50..42175cd5ec31 100644
--- a/gdb/testsuite/gdb.cp/main-cp.exp
+++ b/gdb/testsuite/gdb.cp/main-cp.exp
@@ -25,7 +25,7 @@ lappend opts debug
lappend opts c++
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
- return -1
+ return
}
require {string eq [have_index $binfile] ""}
diff --git a/gdb/testsuite/gdb.cp/many-args.exp b/gdb/testsuite/gdb.cp/many-args.exp
index 49b5e28e976f..a2b19b0edf58 100644
--- a/gdb/testsuite/gdb.cp/many-args.exp
+++ b/gdb/testsuite/gdb.cp/many-args.exp
@@ -24,7 +24,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/mb-ctor.exp b/gdb/testsuite/gdb.cp/mb-ctor.exp
index 925c215f9d82..67fb8f1afe40 100644
--- a/gdb/testsuite/gdb.cp/mb-ctor.exp
+++ b/gdb/testsuite/gdb.cp/mb-ctor.exp
@@ -22,7 +22,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {[test_compiler_info {clang-*-*} c++]} {
diff --git a/gdb/testsuite/gdb.cp/mb-inline.exp b/gdb/testsuite/gdb.cp/mb-inline.exp
index 4bb95547ccf2..ff1fb4a28859 100644
--- a/gdb/testsuite/gdb.cp/mb-inline.exp
+++ b/gdb/testsuite/gdb.cp/mb-inline.exp
@@ -26,7 +26,7 @@ include_file $hdrfile
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
- return -1
+ return
}
set bp_location [gdb_get_line_number "set breakpoint here" $hdrfile]
diff --git a/gdb/testsuite/gdb.cp/mb-templates.exp b/gdb/testsuite/gdb.cp/mb-templates.exp
index c9b78e8a16c4..f79b1cc26791 100644
--- a/gdb/testsuite/gdb.cp/mb-templates.exp
+++ b/gdb/testsuite/gdb.cp/mb-templates.exp
@@ -22,7 +22,7 @@ require allow_stl_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
set bp_location [gdb_get_line_number "set breakpoint here"]
diff --git a/gdb/testsuite/gdb.cp/member-name.exp b/gdb/testsuite/gdb.cp/member-name.exp
index ca414c9915f2..95f628076b7b 100644
--- a/gdb/testsuite/gdb.cp/member-name.exp
+++ b/gdb/testsuite/gdb.cp/member-name.exp
@@ -18,7 +18,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/member-ptr.exp b/gdb/testsuite/gdb.cp/member-ptr.exp
index f7aa475d4f81..055b1d4e7095 100644
--- a/gdb/testsuite/gdb.cp/member-ptr.exp
+++ b/gdb/testsuite/gdb.cp/member-ptr.exp
@@ -27,7 +27,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/meth-typedefs.exp b/gdb/testsuite/gdb.cp/meth-typedefs.exp
index 898bdd499e76..ba0fc6d9cbb7 100644
--- a/gdb/testsuite/gdb.cp/meth-typedefs.exp
+++ b/gdb/testsuite/gdb.cp/meth-typedefs.exp
@@ -37,7 +37,7 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{c++ debug additional_flags=-std=c++11}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/method-call-in-c.exp b/gdb/testsuite/gdb.cp/method-call-in-c.exp
index a8e62f816a3b..7b050996d7de 100644
--- a/gdb/testsuite/gdb.cp/method-call-in-c.exp
+++ b/gdb/testsuite/gdb.cp/method-call-in-c.exp
@@ -26,7 +26,7 @@ lappend opts c++
lappend opts additional_flags=-std=c++11
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/method-ref-return.exp b/gdb/testsuite/gdb.cp/method-ref-return.exp
index 8e082f36aa2c..1e5e0619b015 100644
--- a/gdb/testsuite/gdb.cp/method-ref-return.exp
+++ b/gdb/testsuite/gdb.cp/method-ref-return.exp
@@ -20,11 +20,11 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Set a breakpoint after the bar object is created and the reference is obtained.
diff --git a/gdb/testsuite/gdb.cp/method.exp b/gdb/testsuite/gdb.cp/method.exp
index d890be1df9e6..e0946651a6e4 100644
--- a/gdb/testsuite/gdb.cp/method.exp
+++ b/gdb/testsuite/gdb.cp/method.exp
@@ -37,7 +37,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.cp/minsym-fallback.exp b/gdb/testsuite/gdb.cp/minsym-fallback.exp
index 46427d6905c8..b42710278144 100644
--- a/gdb/testsuite/gdb.cp/minsym-fallback.exp
+++ b/gdb/testsuite/gdb.cp/minsym-fallback.exp
@@ -37,7 +37,7 @@ if {[gdb_compile $srcdir/$subdir/$srcfile $objfile object $nodebug_flags] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile2 $objmainfile object $debug_flags] != ""
|| [gdb_compile "$objfile $objmainfile" $binfile executable $debug_flags] != ""} {
untested "failed to compile"
- return -1
+ return
}
clean_restart ${executable}
diff --git a/gdb/testsuite/gdb.cp/misc.exp b/gdb/testsuite/gdb.cp/misc.exp
index 974ad1a550c1..e844ab9244e3 100644
--- a/gdb/testsuite/gdb.cp/misc.exp
+++ b/gdb/testsuite/gdb.cp/misc.exp
@@ -20,7 +20,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.cp/namelessclass.exp b/gdb/testsuite/gdb.cp/namelessclass.exp
index a247fcebb7bc..e3be4cf666c8 100644
--- a/gdb/testsuite/gdb.cp/namelessclass.exp
+++ b/gdb/testsuite/gdb.cp/namelessclass.exp
@@ -28,11 +28,11 @@ standard_testfile .S
set csrcfile "${testfile}.cc"
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Set a breakpoint in the lambda in A::doit (). */
diff --git a/gdb/testsuite/gdb.cp/namespace-enum.exp b/gdb/testsuite/gdb.cp/namespace-enum.exp
index cc9c274ad497..8ccdd320c738 100644
--- a/gdb/testsuite/gdb.cp/namespace-enum.exp
+++ b/gdb/testsuite/gdb.cp/namespace-enum.exp
@@ -17,7 +17,7 @@ standard_testfile .cc namespace-enum-main.cc
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
- return -1
+ return
}
gdb_test "print foo::B::B_B" "`foo::B' is not defined as an aggregate type."
diff --git a/gdb/testsuite/gdb.cp/namespace-nested-import.exp b/gdb/testsuite/gdb.cp/namespace-nested-import.exp
index 1ec31c1903e3..b2fb2d914cbb 100644
--- a/gdb/testsuite/gdb.cp/namespace-nested-import.exp
+++ b/gdb/testsuite/gdb.cp/namespace-nested-import.exp
@@ -17,7 +17,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/namespace.exp b/gdb/testsuite/gdb.cp/namespace.exp
index 6c5dd667060c..b39b2a164fc3 100644
--- a/gdb/testsuite/gdb.cp/namespace.exp
+++ b/gdb/testsuite/gdb.cp/namespace.exp
@@ -38,7 +38,7 @@ if {[test_compiler_info {gcc-[0-3]-*}]
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
- return -1
+ return
}
gdb_test "show lang" "auto; currently c\\+\\+.*"
diff --git a/gdb/testsuite/gdb.cp/nested-class-func-class.exp b/gdb/testsuite/gdb.cp/nested-class-func-class.exp
index f2d6f317b144..64b2ae8343c0 100644
--- a/gdb/testsuite/gdb.cp/nested-class-func-class.exp
+++ b/gdb/testsuite/gdb.cp/nested-class-func-class.exp
@@ -22,11 +22,11 @@ load_lib "cp-support.exp"
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "BP 1"]
diff --git a/gdb/testsuite/gdb.cp/nested-types.exp b/gdb/testsuite/gdb.cp/nested-types.exp
index e0a9d1635824..9806bb6d5c89 100644
--- a/gdb/testsuite/gdb.cp/nested-types.exp
+++ b/gdb/testsuite/gdb.cp/nested-types.exp
@@ -27,7 +27,7 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug c++}]} {
- return -1
+ return
}
# Build the node given by ID (a number representing the struct S[ID] in
diff --git a/gdb/testsuite/gdb.cp/nextoverthrow.exp b/gdb/testsuite/gdb.cp/nextoverthrow.exp
index 2f34795d201b..2dbaae128694 100644
--- a/gdb/testsuite/gdb.cp/nextoverthrow.exp
+++ b/gdb/testsuite/gdb.cp/nextoverthrow.exp
@@ -19,7 +19,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
@@ -28,7 +28,7 @@ if {![runto_main]} {
if {![skip_unwinder_tests]} {
unsupported "nextoverthrow.exp could not find _Unwind_DebugHook"
- return -1
+ return
}
# Set a temporary breakpoint and then continue to it.
diff --git a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp
index 202e1f0d0f1b..14e42a2e361a 100644
--- a/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp
+++ b/gdb/testsuite/gdb.cp/no-libstdcxx-probe.exp
@@ -18,7 +18,7 @@ standard_testfile exceptprint.cc
require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# This tests that $_exception gives an error when the systemtap probes
@@ -26,7 +26,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
gdb_test "maint ignore-probes libstdcxx .*" ".*OBJNAME: ''"
if {![runto_main]} {
- return -1
+ return
}
gdb_test "catch throw" "Catchpoint $decimal \\(throw\\)" \
diff --git a/gdb/testsuite/gdb.cp/non-trivial-retval.exp b/gdb/testsuite/gdb.cp/non-trivial-retval.exp
index 0b70d3546e97..f5c32dca079d 100644
--- a/gdb/testsuite/gdb.cp/non-trivial-retval.exp
+++ b/gdb/testsuite/gdb.cp/non-trivial-retval.exp
@@ -37,11 +37,11 @@ if {[have_fvar_tracking]} {
if {[prepare_for_testing "failed to prepare" $testfile $srcfile [list debug c++ $additional_flags]]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here"]
diff --git a/gdb/testsuite/gdb.cp/noparam.exp b/gdb/testsuite/gdb.cp/noparam.exp
index 1607d64f8eee..8ce8becd91b9 100644
--- a/gdb/testsuite/gdb.cp/noparam.exp
+++ b/gdb/testsuite/gdb.cp/noparam.exp
@@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
if { [prepare_for_testing "failed to prepare" "noparam" "noparam.cc" {debug c++}] } {
- return -1
+ return
}
# Check if GDB does not crash.
diff --git a/gdb/testsuite/gdb.cp/nsalias.exp b/gdb/testsuite/gdb.cp/nsalias.exp
index e384d8d77eb2..459efbf12d08 100644
--- a/gdb/testsuite/gdb.cp/nsalias.exp
+++ b/gdb/testsuite/gdb.cp/nsalias.exp
@@ -170,16 +170,16 @@ Dwarf::assemble $asm_file {
if {[gdb_compile $srcdir/$subdir/$srcfile ${binfile}1.o \
object {c++ debug}] != ""} {
- return -1
+ return
}
if {[gdb_compile $asm_file ${binfile}2.o object {nodebug}] != ""} {
- return -1
+ return
}
if {[gdb_compile [list ${binfile}1.o ${binfile}2.o] \
$binfile executable {c++}] != ""} {
- return -1
+ return
}
clean_restart $testfile
@@ -304,12 +304,12 @@ set the_dwarf [format {
Dwarf::assemble $asm_file $the_dwarf
if {[gdb_compile $asm_file ${binfile}3.o object {nodebug}] != ""} {
- return -1
+ return
}
if {[gdb_compile [list ${binfile}1.o ${binfile}3.o] \
${binfile}-r executable {c++}] != ""} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.cp/nsdecl.exp b/gdb/testsuite/gdb.cp/nsdecl.exp
index 72d20b618dc6..e068f419db89 100644
--- a/gdb/testsuite/gdb.cp/nsdecl.exp
+++ b/gdb/testsuite/gdb.cp/nsdecl.exp
@@ -19,7 +19,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/nsimport.exp b/gdb/testsuite/gdb.cp/nsimport.exp
index bab4701f16fa..2ac4c0b4d5bd 100644
--- a/gdb/testsuite/gdb.cp/nsimport.exp
+++ b/gdb/testsuite/gdb.cp/nsimport.exp
@@ -20,7 +20,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/nsrecurs.exp b/gdb/testsuite/gdb.cp/nsrecurs.exp
index 220fe897387f..58d90420c820 100644
--- a/gdb/testsuite/gdb.cp/nsrecurs.exp
+++ b/gdb/testsuite/gdb.cp/nsrecurs.exp
@@ -17,7 +17,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/nsstress.exp b/gdb/testsuite/gdb.cp/nsstress.exp
index 872bf62fd6e3..eebfaf30fef6 100644
--- a/gdb/testsuite/gdb.cp/nsstress.exp
+++ b/gdb/testsuite/gdb.cp/nsstress.exp
@@ -19,7 +19,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/nsusing.exp b/gdb/testsuite/gdb.cp/nsusing.exp
index d76676fda9e1..7b1d3e5283a9 100644
--- a/gdb/testsuite/gdb.cp/nsusing.exp
+++ b/gdb/testsuite/gdb.cp/nsusing.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/operator.exp b/gdb/testsuite/gdb.cp/operator.exp
index 15dfee5a9fe1..1e22f8f74bff 100644
--- a/gdb/testsuite/gdb.cp/operator.exp
+++ b/gdb/testsuite/gdb.cp/operator.exp
@@ -17,7 +17,7 @@ standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
{debug c++ additional_flags=-Wno-unused-comparison}] } {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/overload-const.exp b/gdb/testsuite/gdb.cp/overload-const.exp
index a036aee6a6c8..442617848587 100644
--- a/gdb/testsuite/gdb.cp/overload-const.exp
+++ b/gdb/testsuite/gdb.cp/overload-const.exp
@@ -20,7 +20,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $testfile.cc {c++ debug}]} {
- return -1
+ return
}
gdb_test_no_output "set language c++"
diff --git a/gdb/testsuite/gdb.cp/overload.exp b/gdb/testsuite/gdb.cp/overload.exp
index 5d586b19e244..9c0149bdfe05 100644
--- a/gdb/testsuite/gdb.cp/overload.exp
+++ b/gdb/testsuite/gdb.cp/overload.exp
@@ -29,7 +29,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# Set it up at a breakpoint so we can play with the variable values.
diff --git a/gdb/testsuite/gdb.cp/ovldbreak.exp b/gdb/testsuite/gdb.cp/ovldbreak.exp
index a4e853e2986e..dce7d3b414b3 100644
--- a/gdb/testsuite/gdb.cp/ovldbreak.exp
+++ b/gdb/testsuite/gdb.cp/ovldbreak.exp
@@ -33,7 +33,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# set it up at a breakpoint so we can play with the variable values
diff --git a/gdb/testsuite/gdb.cp/ovsrch.exp b/gdb/testsuite/gdb.cp/ovsrch.exp
index 4b8392395513..5fccdb43d4db 100644
--- a/gdb/testsuite/gdb.cp/ovsrch.exp
+++ b/gdb/testsuite/gdb.cp/ovsrch.exp
@@ -61,7 +61,7 @@ include_file ovsrch.h
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3 $srcfile4] {c++ debug}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/paramless.exp b/gdb/testsuite/gdb.cp/paramless.exp
index 65f4a461f6b7..4c9b6a8b8bdc 100644
--- a/gdb/testsuite/gdb.cp/paramless.exp
+++ b/gdb/testsuite/gdb.cp/paramless.exp
@@ -27,7 +27,7 @@ lappend opts c++
lappend opts additional_flags=-std=c++11
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
foreach ordinary {"outer<int>::fn" "outer<char>::fn<short>" "toplev<char>"} {
diff --git a/gdb/testsuite/gdb.cp/paren-type.exp b/gdb/testsuite/gdb.cp/paren-type.exp
index fef63979cff7..16df250c61bb 100644
--- a/gdb/testsuite/gdb.cp/paren-type.exp
+++ b/gdb/testsuite/gdb.cp/paren-type.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${testfile}.cc {c++ debug}] } {
- return -1
+ return
}
gdb_test_no_output "set breakpoint pending off"
diff --git a/gdb/testsuite/gdb.cp/parse-lang.exp b/gdb/testsuite/gdb.cp/parse-lang.exp
index 04504a091b0b..0b1d2b6bcf1a 100644
--- a/gdb/testsuite/gdb.cp/parse-lang.exp
+++ b/gdb/testsuite/gdb.cp/parse-lang.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# Place the breakpoint before inferior gets started. Then the breakpoint
diff --git a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp
index e4c56ee2b7ec..3d7046359010 100644
--- a/gdb/testsuite/gdb.cp/pass-by-ref-2.exp
+++ b/gdb/testsuite/gdb.cp/pass-by-ref-2.exp
@@ -31,11 +31,11 @@ standard_testfile .cc
set options {debug c++ additional_flags=-std=c++11}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# GCC version <= 6 and Clang do not emit DW_AT_defaulted and DW_AT_deleted.
diff --git a/gdb/testsuite/gdb.cp/pass-by-ref.exp b/gdb/testsuite/gdb.cp/pass-by-ref.exp
index fde95d4d0a4e..66bc4b356582 100644
--- a/gdb/testsuite/gdb.cp/pass-by-ref.exp
+++ b/gdb/testsuite/gdb.cp/pass-by-ref.exp
@@ -336,11 +336,11 @@ gdb_produce_source $srcfile $program
set options {debug c++ additional_flags=-std=c++11}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set bp_location [gdb_get_line_number "stop here"]
diff --git a/gdb/testsuite/gdb.cp/pointer-to-member.exp b/gdb/testsuite/gdb.cp/pointer-to-member.exp
index 5370cdbed18c..d2d04b27ae27 100644
--- a/gdb/testsuite/gdb.cp/pointer-to-member.exp
+++ b/gdb/testsuite/gdb.cp/pointer-to-member.exp
@@ -22,7 +22,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
gdb_test "print ptm" " = &A::i"
diff --git a/gdb/testsuite/gdb.cp/pr-1023.exp b/gdb/testsuite/gdb.cp/pr-1023.exp
index 5e15b649c777..e524e88bb39c 100644
--- a/gdb/testsuite/gdb.cp/pr-1023.exp
+++ b/gdb/testsuite/gdb.cp/pr-1023.exp
@@ -27,7 +27,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/pr-1210.exp b/gdb/testsuite/gdb.cp/pr-1210.exp
index cf42f58b228e..c215d0f1a918 100644
--- a/gdb/testsuite/gdb.cp/pr-1210.exp
+++ b/gdb/testsuite/gdb.cp/pr-1210.exp
@@ -26,7 +26,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/pr-574.exp b/gdb/testsuite/gdb.cp/pr-574.exp
index 1952463063fe..4312eebb0677 100644
--- a/gdb/testsuite/gdb.cp/pr-574.exp
+++ b/gdb/testsuite/gdb.cp/pr-574.exp
@@ -35,7 +35,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } {
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/pr10687.exp b/gdb/testsuite/gdb.cp/pr10687.exp
index b27de9720887..c2063f975ae3 100644
--- a/gdb/testsuite/gdb.cp/pr10687.exp
+++ b/gdb/testsuite/gdb.cp/pr10687.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/pr12028.exp b/gdb/testsuite/gdb.cp/pr12028.exp
index b656a88975d5..f4e0aefb0d46 100644
--- a/gdb/testsuite/gdb.cp/pr12028.exp
+++ b/gdb/testsuite/gdb.cp/pr12028.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/pr17132.exp b/gdb/testsuite/gdb.cp/pr17132.exp
index 3492425534a4..06d329c81fd7 100644
--- a/gdb/testsuite/gdb.cp/pr17132.exp
+++ b/gdb/testsuite/gdb.cp/pr17132.exp
@@ -20,11 +20,11 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here"]
diff --git a/gdb/testsuite/gdb.cp/pr17494.exp b/gdb/testsuite/gdb.cp/pr17494.exp
index 33bc4831239f..ab23e1133823 100644
--- a/gdb/testsuite/gdb.cp/pr17494.exp
+++ b/gdb/testsuite/gdb.cp/pr17494.exp
@@ -20,11 +20,11 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here"]
diff --git a/gdb/testsuite/gdb.cp/pr9067.exp b/gdb/testsuite/gdb.cp/pr9067.exp
index 43f4aa75796f..043690123f88 100644
--- a/gdb/testsuite/gdb.cp/pr9067.exp
+++ b/gdb/testsuite/gdb.cp/pr9067.exp
@@ -22,7 +22,7 @@ load_lib "cp-support.exp"
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/pr9167.exp b/gdb/testsuite/gdb.cp/pr9167.exp
index d1ceb6a4b9a1..8ae4356a6dad 100644
--- a/gdb/testsuite/gdb.cp/pr9167.exp
+++ b/gdb/testsuite/gdb.cp/pr9167.exp
@@ -22,7 +22,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } {
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/pr9631.exp b/gdb/testsuite/gdb.cp/pr9631.exp
index f0b4fb5dc220..71cdda50d985 100644
--- a/gdb/testsuite/gdb.cp/pr9631.exp
+++ b/gdb/testsuite/gdb.cp/pr9631.exp
@@ -20,7 +20,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/print-demangle.exp b/gdb/testsuite/gdb.cp/print-demangle.exp
index 98c0167d42dd..9065adc3eac4 100644
--- a/gdb/testsuite/gdb.cp/print-demangle.exp
+++ b/gdb/testsuite/gdb.cp/print-demangle.exp
@@ -18,7 +18,7 @@ require allow_cplus_tests
standard_testfile bool.cc
if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.cp/print-global-stub.exp b/gdb/testsuite/gdb.cp/print-global-stub.exp
index df29bb61ee93..f82df5931da3 100644
--- a/gdb/testsuite/gdb.cp/print-global-stub.exp
+++ b/gdb/testsuite/gdb.cp/print-global-stub.exp
@@ -25,7 +25,7 @@ set binfile [standard_output_file $testfile]
if { [gdb_compile $srcdir/$subdir/$srcfile $binfile object \
{c++ debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.cp/print-method-args.exp b/gdb/testsuite/gdb.cp/print-method-args.exp
index dd9cb8be748b..17f4204c44a8 100644
--- a/gdb/testsuite/gdb.cp/print-method-args.exp
+++ b/gdb/testsuite/gdb.cp/print-method-args.exp
@@ -22,7 +22,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
set re \
diff --git a/gdb/testsuite/gdb.cp/printmethod.exp b/gdb/testsuite/gdb.cp/printmethod.exp
index bad147b874d6..fdc1c91bf232 100644
--- a/gdb/testsuite/gdb.cp/printmethod.exp
+++ b/gdb/testsuite/gdb.cp/printmethod.exp
@@ -28,7 +28,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/psmang.exp b/gdb/testsuite/gdb.cp/psmang.exp
index bd51b8b03a34..d29b51f867eb 100644
--- a/gdb/testsuite/gdb.cp/psmang.exp
+++ b/gdb/testsuite/gdb.cp/psmang.exp
@@ -182,7 +182,7 @@ standard_testfile psmang1.cc psmang2.cc
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
- return -1
+ return
}
gdb_test "break s::method1" "Breakpoint .* at .*: file .*psmang1.cc.*"
diff --git a/gdb/testsuite/gdb.cp/psymtab-parameter.exp b/gdb/testsuite/gdb.cp/psymtab-parameter.exp
index 9412945fb099..aac95195922e 100644
--- a/gdb/testsuite/gdb.cp/psymtab-parameter.exp
+++ b/gdb/testsuite/gdb.cp/psymtab-parameter.exp
@@ -19,7 +19,7 @@ standard_testfile .cc
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}.x" object {debug c++}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile.x
diff --git a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp
index c0129a71f55b..bfc6e176cc17 100644
--- a/gdb/testsuite/gdb.cp/ptype-cv-cp.exp
+++ b/gdb/testsuite/gdb.cp/ptype-cv-cp.exp
@@ -20,7 +20,7 @@ require allow_cplus_tests
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
gdb_test "whatis v_my_int" "type = my_int"
diff --git a/gdb/testsuite/gdb.cp/ptype-flags.exp b/gdb/testsuite/gdb.cp/ptype-flags.exp
index c97c8b436de1..4530f99a50cf 100644
--- a/gdb/testsuite/gdb.cp/ptype-flags.exp
+++ b/gdb/testsuite/gdb.cp/ptype-flags.exp
@@ -22,7 +22,7 @@ load_lib "cp-support.exp"
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/re-set-overloaded.exp b/gdb/testsuite/gdb.cp/re-set-overloaded.exp
index d63be344252d..e5492c67c6ed 100644
--- a/gdb/testsuite/gdb.cp/re-set-overloaded.exp
+++ b/gdb/testsuite/gdb.cp/re-set-overloaded.exp
@@ -22,7 +22,7 @@ set sofile [standard_output_file ${testfile}.so]
if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.cp/readnow-language.exp b/gdb/testsuite/gdb.cp/readnow-language.exp
index 73199bf15a15..fb4e62805397 100644
--- a/gdb/testsuite/gdb.cp/readnow-language.exp
+++ b/gdb/testsuite/gdb.cp/readnow-language.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if {[build_executable ${testfile}.exp $testfile ${testfile}.cc {c++ debug}] == -1} {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.cp/ref-params.exp b/gdb/testsuite/gdb.cp/ref-params.exp
index 31144fcba213..0238d938dc14 100644
--- a/gdb/testsuite/gdb.cp/ref-params.exp
+++ b/gdb/testsuite/gdb.cp/ref-params.exp
@@ -25,7 +25,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[build_executable $testfile.exp $testfile $srcfile {debug c++}] == -1} {
- return -1
+ return
}
proc gdb_start_again { text } {
diff --git a/gdb/testsuite/gdb.cp/ref-types.exp b/gdb/testsuite/gdb.cp/ref-types.exp
index d56d10ea4bb4..b55b6ffe7f6f 100644
--- a/gdb/testsuite/gdb.cp/ref-types.exp
+++ b/gdb/testsuite/gdb.cp/ref-types.exp
@@ -25,7 +25,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.cp/rtti.exp b/gdb/testsuite/gdb.cp/rtti.exp
index b694ab935e34..7fe140c5c58e 100644
--- a/gdb/testsuite/gdb.cp/rtti.exp
+++ b/gdb/testsuite/gdb.cp/rtti.exp
@@ -38,7 +38,7 @@ include_file rtti.h
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp
index a73708d92112..360037912186 100644
--- a/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp
+++ b/gdb/testsuite/gdb.cp/rvalue-ref-casts.exp
@@ -23,11 +23,11 @@ standard_testfile .cc
if {[prepare_for_testing $testfile.exp $testfile $srcfile \
{debug c++ additional_flags="-std=gnu++11"}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Prevent symbol on address 0x0 being printed.
diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp
index b9da32c244e4..6083606567a0 100644
--- a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp
+++ b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp
@@ -26,14 +26,14 @@ standard_testfile .cc
if {[prepare_for_testing $testfile.exp $testfile $srcfile \
{debug c++ additional_flags="-std=gnu++11"}]} {
- return -1
+ return
}
# Set it up at a breakpoint so we can play with the variable values.
if {![runto 'marker1']} {
untested "couldn't run to marker1"
- return -1
+ return
}
# Prevent symbol on address 0x0 being printed.
diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-params.exp b/gdb/testsuite/gdb.cp/rvalue-ref-params.exp
index 6b4c891cef3d..a4c7156bda7b 100644
--- a/gdb/testsuite/gdb.cp/rvalue-ref-params.exp
+++ b/gdb/testsuite/gdb.cp/rvalue-ref-params.exp
@@ -22,7 +22,7 @@ standard_testfile .cc
if {[build_executable $testfile.exp $testfile $srcfile \
{debug c++ additional_flags="-std=gnu++11"}] == -1} {
- return -1
+ return
}
proc gdb_start_again {text prefix} {
diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp
index e251efebf35f..af10ce37b7f1 100644
--- a/gdb/testsuite/gdb.cp/rvalue-ref-types.exp
+++ b/gdb/testsuite/gdb.cp/rvalue-ref-types.exp
@@ -22,18 +22,18 @@ standard_testfile .cc
if {[prepare_for_testing $testfile.exp $testfile $srcfile \
{debug c++ additional_flags="-std=gnu++11"}]} {
- return -1
+ return
}
#
# Set it up at a breakpoint so we can play with the variable values.
#
if {![runto_main]} {
- return -1
+ return
}
if {![runto 'marker1']} {
- return -1
+ return
}
gdb_test "up" ".*main.*" "up from marker1 1"
diff --git a/gdb/testsuite/gdb.cp/save-bp-qualified.exp b/gdb/testsuite/gdb.cp/save-bp-qualified.exp
index a6ee09c6cdcb..a6851ba96623 100644
--- a/gdb/testsuite/gdb.cp/save-bp-qualified.exp
+++ b/gdb/testsuite/gdb.cp/save-bp-qualified.exp
@@ -18,7 +18,7 @@
standard_testfile .cc
if { [build_executable "failed to prepare" ${testfile} $srcfile {debug c++}] } {
- return -1
+ return
}
proc restart {} {
diff --git a/gdb/testsuite/gdb.cp/scope-err.exp b/gdb/testsuite/gdb.cp/scope-err.exp
index 3e2591402119..87b1fd4a097f 100644
--- a/gdb/testsuite/gdb.cp/scope-err.exp
+++ b/gdb/testsuite/gdb.cp/scope-err.exp
@@ -22,7 +22,7 @@ standard_testfile .cc
set exefile $testfile
if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/shadow.exp b/gdb/testsuite/gdb.cp/shadow.exp
index 1fed09a366c9..d095f85324ad 100644
--- a/gdb/testsuite/gdb.cp/shadow.exp
+++ b/gdb/testsuite/gdb.cp/shadow.exp
@@ -20,7 +20,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/static-method.exp b/gdb/testsuite/gdb.cp/static-method.exp
index 527352f4ac4a..7ab795d0115d 100644
--- a/gdb/testsuite/gdb.cp/static-method.exp
+++ b/gdb/testsuite/gdb.cp/static-method.exp
@@ -43,7 +43,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} {
- return -1
+ return
}
# The GDB workaround for GCC PR debug/45682 does not apply as it requires
diff --git a/gdb/testsuite/gdb.cp/static-print-quit.exp b/gdb/testsuite/gdb.cp/static-print-quit.exp
index 088abb9b9f8e..19756f64732e 100644
--- a/gdb/testsuite/gdb.cp/static-print-quit.exp
+++ b/gdb/testsuite/gdb.cp/static-print-quit.exp
@@ -19,7 +19,7 @@ standard_testfile .cc
if { [gdb_compile $srcdir/$subdir/$srcfile $binfile.o object {debug c++}] != ""} {
untested "failed to compile"
- return -1
+ return
}
clean_restart $testfile.o
diff --git a/gdb/testsuite/gdb.cp/static-typedef-print.exp b/gdb/testsuite/gdb.cp/static-typedef-print.exp
index 2d0b9869725a..579ddf671688 100644
--- a/gdb/testsuite/gdb.cp/static-typedef-print.exp
+++ b/gdb/testsuite/gdb.cp/static-typedef-print.exp
@@ -18,11 +18,11 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print a" \
diff --git a/gdb/testsuite/gdb.cp/step-and-next-inline.exp b/gdb/testsuite/gdb.cp/step-and-next-inline.exp
index 08694a67afbf..e8bb998231b4 100644
--- a/gdb/testsuite/gdb.cp/step-and-next-inline.exp
+++ b/gdb/testsuite/gdb.cp/step-and-next-inline.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if {[test_compiler_info gcc*] && ![supports_statement_frontiers] } {
- return -1
+ return
}
# Compile the test source with USE_NEXT_INLINE_H defined (when
diff --git a/gdb/testsuite/gdb.cp/stub-array-size.exp b/gdb/testsuite/gdb.cp/stub-array-size.exp
index 527f74fe8e26..fab9754dcc9c 100644
--- a/gdb/testsuite/gdb.cp/stub-array-size.exp
+++ b/gdb/testsuite/gdb.cp/stub-array-size.exp
@@ -26,7 +26,7 @@ include_file stub-array-size.h
if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" \
{c++ debug}]} {
- return -1
+ return
}
gdb_test "print sizeof(a)/sizeof(a\[0\])" "10"
diff --git a/gdb/testsuite/gdb.cp/subtypes.exp b/gdb/testsuite/gdb.cp/subtypes.exp
index 31c8c2264928..187bd494902a 100644
--- a/gdb/testsuite/gdb.cp/subtypes.exp
+++ b/gdb/testsuite/gdb.cp/subtypes.exp
@@ -27,7 +27,7 @@ include_file subtypes.h
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] \
{debug c++ additional_flags=-std=c++11}]} {
- return -1
+ return
}
# Xfail for superfluous DW_TAG_lexical_block, gcc PR debug/55541.
diff --git a/gdb/testsuite/gdb.cp/temargs.exp b/gdb/testsuite/gdb.cp/temargs.exp
index eb1d987c6747..ff4ae3bf5747 100644
--- a/gdb/testsuite/gdb.cp/temargs.exp
+++ b/gdb/testsuite/gdb.cp/temargs.exp
@@ -23,11 +23,11 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug c++ additional_flags=-std=c++11}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# gcc 4.4 and earlier don't emit enough info for some of our template tests.
diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/templates.exp
index 3531b231e5df..044190f1fac0 100644
--- a/gdb/testsuite/gdb.cp/templates.exp
+++ b/gdb/testsuite/gdb.cp/templates.exp
@@ -30,7 +30,7 @@ if { [test_compiler_info gcc-*] && [gcc_major_version] >= 10 } {
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.cp/try_catch.exp b/gdb/testsuite/gdb.cp/try_catch.exp
index 6a8e68834773..663f42a9c0e3 100644
--- a/gdb/testsuite/gdb.cp/try_catch.exp
+++ b/gdb/testsuite/gdb.cp/try_catch.exp
@@ -27,7 +27,7 @@ require allow_stl_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/typed-enum.exp b/gdb/testsuite/gdb.cp/typed-enum.exp
index 7fc3759ef02e..a2021abd64cb 100644
--- a/gdb/testsuite/gdb.cp/typed-enum.exp
+++ b/gdb/testsuite/gdb.cp/typed-enum.exp
@@ -25,7 +25,7 @@ lappend opts c++
lappend opts additional_flags=-std=c++11
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
gdb_test "print (int)byte_val" "= 128"
diff --git a/gdb/testsuite/gdb.cp/typedef-base.exp b/gdb/testsuite/gdb.cp/typedef-base.exp
index 97ce29f2a9c8..358b510e7f13 100644
--- a/gdb/testsuite/gdb.cp/typedef-base.exp
+++ b/gdb/testsuite/gdb.cp/typedef-base.exp
@@ -20,11 +20,11 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "ptype C::x" \
diff --git a/gdb/testsuite/gdb.cp/typedef-operator.exp b/gdb/testsuite/gdb.cp/typedef-operator.exp
index 4e45dd8a4fb4..9513b3725dc7 100644
--- a/gdb/testsuite/gdb.cp/typedef-operator.exp
+++ b/gdb/testsuite/gdb.cp/typedef-operator.exp
@@ -20,7 +20,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} {
- return -1
+ return
}
gdb_test_no_output "set language c++"
@@ -28,7 +28,7 @@ gdb_test_no_output "set language c++"
gdb_test "p *u" {You can't do that without a process to debug.} "test crash"
if {![runto_main]} {
- return -1
+ return
}
gdb_test "p *v" " = 42" "test typedef"
diff --git a/gdb/testsuite/gdb.cp/typeid.exp b/gdb/testsuite/gdb.cp/typeid.exp
index 06ba7468c758..4587ec0199ec 100644
--- a/gdb/testsuite/gdb.cp/typeid.exp
+++ b/gdb/testsuite/gdb.cp/typeid.exp
@@ -18,7 +18,7 @@ standard_testfile .cc
require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
proc do_typeid_tests {started} {
@@ -83,7 +83,7 @@ with_test_prefix "before starting" {
}
if {![runto_main]} {
- return -1
+ return
}
with_test_prefix "after starting" {
diff --git a/gdb/testsuite/gdb.cp/userdef.exp b/gdb/testsuite/gdb.cp/userdef.exp
index 68362fed2b0a..01182c4a9f15 100644
--- a/gdb/testsuite/gdb.cp/userdef.exp
+++ b/gdb/testsuite/gdb.cp/userdef.exp
@@ -24,7 +24,7 @@ require allow_stl_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/using-crash.exp b/gdb/testsuite/gdb.cp/using-crash.exp
index 8334006f7c31..1f5e4ce7eb43 100644
--- a/gdb/testsuite/gdb.cp/using-crash.exp
+++ b/gdb/testsuite/gdb.cp/using-crash.exp
@@ -15,7 +15,7 @@
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
runto "foo"
diff --git a/gdb/testsuite/gdb.cp/var-tag.exp b/gdb/testsuite/gdb.cp/var-tag.exp
index 676b36943d2f..c1b1158a4b57 100644
--- a/gdb/testsuite/gdb.cp/var-tag.exp
+++ b/gdb/testsuite/gdb.cp/var-tag.exp
@@ -23,7 +23,7 @@ standard_testfile var-tag.cc var-tag-2.cc var-tag-3.cc var-tag-4.cc
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3 $srcfile4] {debug c++}]} {
- return -1
+ return
}
proc do_global_tests {lang} {
diff --git a/gdb/testsuite/gdb.cp/virtbase.exp b/gdb/testsuite/gdb.cp/virtbase.exp
index b0c43fa87eaf..530587ac775d 100644
--- a/gdb/testsuite/gdb.cp/virtbase.exp
+++ b/gdb/testsuite/gdb.cp/virtbase.exp
@@ -20,7 +20,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/virtbase2.exp b/gdb/testsuite/gdb.cp/virtbase2.exp
index ae0424142f78..635635a0d282 100644
--- a/gdb/testsuite/gdb.cp/virtbase2.exp
+++ b/gdb/testsuite/gdb.cp/virtbase2.exp
@@ -20,7 +20,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtfunc.exp
index 21e300e4ffc9..eecf4611e233 100644
--- a/gdb/testsuite/gdb.cp/virtfunc.exp
+++ b/gdb/testsuite/gdb.cp/virtfunc.exp
@@ -25,7 +25,7 @@ load_lib "cp-support.exp"
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
proc test_ptype_of_classes {} {
diff --git a/gdb/testsuite/gdb.cp/virtfunc2.exp b/gdb/testsuite/gdb.cp/virtfunc2.exp
index 761453f6227e..6d4b83e7ba42 100644
--- a/gdb/testsuite/gdb.cp/virtfunc2.exp
+++ b/gdb/testsuite/gdb.cp/virtfunc2.exp
@@ -25,7 +25,7 @@ load_lib "cp-support.exp"
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/vla-cxx.exp b/gdb/testsuite/gdb.cp/vla-cxx.exp
index 6fe42422c9fd..3e32cb96538e 100644
--- a/gdb/testsuite/gdb.cp/vla-cxx.exp
+++ b/gdb/testsuite/gdb.cp/vla-cxx.exp
@@ -20,11 +20,11 @@ lappend flags debug
lappend flags c++
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $flags] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Before pointer assignment"]
diff --git a/gdb/testsuite/gdb.cp/watch-cp.exp b/gdb/testsuite/gdb.cp/watch-cp.exp
index 31a66864fe3a..906002b754f6 100644
--- a/gdb/testsuite/gdb.cp/watch-cp.exp
+++ b/gdb/testsuite/gdb.cp/watch-cp.exp
@@ -18,7 +18,7 @@ require allow_cplus_tests allow_hw_watchpoint_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 17/36] GDB: testsuite: C++: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (15 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 16/36] GDB: testsuite: C++: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 18/36] GDB: testsuite: DWARF: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (18 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- misaligned line, which is then fixed by this patch;
- return at top level but inside block such as save_vars,
with_test_prefix, foreach, gdb_test_multiple.
- procedure whose callers don't use the return value;
Some weren't changed because they didn't meet the criteria above, or
weren't trivial to check.
---
gdb/testsuite/gdb.cp/anon-struct.exp | 2 +-
gdb/testsuite/gdb.cp/break-f-std-string.exp | 2 +-
gdb/testsuite/gdb.cp/converts.exp | 2 +-
gdb/testsuite/gdb.cp/cp-relocate.exp | 8 ++++----
gdb/testsuite/gdb.cp/cpsizeof.exp | 2 +-
gdb/testsuite/gdb.cp/except-multi-location.exp | 4 ++--
gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp | 4 ++--
gdb/testsuite/gdb.cp/fpointer.exp | 2 +-
gdb/testsuite/gdb.cp/koenig.exp | 2 +-
gdb/testsuite/gdb.cp/local-static.exp | 2 +-
gdb/testsuite/gdb.cp/method2.exp | 2 +-
gdb/testsuite/gdb.cp/nsnested.exp | 2 +-
gdb/testsuite/gdb.cp/nsnoimports.exp | 2 +-
gdb/testsuite/gdb.cp/oranking.exp | 2 +-
gdb/testsuite/gdb.cp/pr10728.exp | 12 ++++++------
gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp | 2 +-
gdb/testsuite/gdb.cp/save-bp-qualified.exp | 4 ++--
gdb/testsuite/gdb.cp/smartp.exp | 2 +-
gdb/testsuite/gdb.cp/step-and-next-inline.exp | 2 +-
19 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/gdb/testsuite/gdb.cp/anon-struct.exp b/gdb/testsuite/gdb.cp/anon-struct.exp
index e420d75207fd..10b7ce6c7766 100644
--- a/gdb/testsuite/gdb.cp/anon-struct.exp
+++ b/gdb/testsuite/gdb.cp/anon-struct.exp
@@ -20,7 +20,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
# Clang doesn't add any names for functions within anonymous structures,
diff --git a/gdb/testsuite/gdb.cp/break-f-std-string.exp b/gdb/testsuite/gdb.cp/break-f-std-string.exp
index 330dfb24468f..4daca7ea0db0 100644
--- a/gdb/testsuite/gdb.cp/break-f-std-string.exp
+++ b/gdb/testsuite/gdb.cp/break-f-std-string.exp
@@ -71,7 +71,7 @@ proc test {cxx11_abi} {
"${srcdir}/${subdir}/${srcfile}" "${binfile}-${cxx11_abi}.o" \
object $options] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart ${testfile}-${cxx11_abi}.o
diff --git a/gdb/testsuite/gdb.cp/converts.exp b/gdb/testsuite/gdb.cp/converts.exp
index 7d26db9f3022..60a732f87ee0 100644
--- a/gdb/testsuite/gdb.cp/converts.exp
+++ b/gdb/testsuite/gdb.cp/converts.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/cp-relocate.exp b/gdb/testsuite/gdb.cp/cp-relocate.exp
index c42c67a95e75..67a9f21b9646 100644
--- a/gdb/testsuite/gdb.cp/cp-relocate.exp
+++ b/gdb/testsuite/gdb.cp/cp-relocate.exp
@@ -21,8 +21,8 @@ append binfile .o
require allow_cplus_tests
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {c++ debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc get_func_address { func } {
@@ -67,7 +67,7 @@ gdb_test_multiple "info functions func<.>" "info functions" {
pass "info functions"
} else {
fail "info functions"
- return -1
+ return
}
}
}
@@ -105,7 +105,7 @@ gdb_test_multiple "info file" "info file" {
pass "info file"
} else {
fail "info file"
- return -1
+ return
}
}
}
diff --git a/gdb/testsuite/gdb.cp/cpsizeof.exp b/gdb/testsuite/gdb.cp/cpsizeof.exp
index a43ae6431acf..239811855791 100644
--- a/gdb/testsuite/gdb.cp/cpsizeof.exp
+++ b/gdb/testsuite/gdb.cp/cpsizeof.exp
@@ -19,7 +19,7 @@ standard_testfile .cc
require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/except-multi-location.exp b/gdb/testsuite/gdb.cp/except-multi-location.exp
index 88a847b3ab72..52bc7c7dc964 100644
--- a/gdb/testsuite/gdb.cp/except-multi-location.exp
+++ b/gdb/testsuite/gdb.cp/except-multi-location.exp
@@ -49,7 +49,7 @@ proc test_multi_libstdcpp {static_bin static_lib} {
if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
|| [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
@@ -58,7 +58,7 @@ proc test_multi_libstdcpp {static_bin static_lib} {
gdb_load_shlib $binfile_lib
if {![runto_main]} {
- return 0
+ return
}
gdb_test "catch catch" "Catchpoint ${::decimal} \\(catch\\)"
diff --git a/gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp b/gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp
index 110970c89b8b..e0d34c86a11d 100644
--- a/gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp
+++ b/gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp
@@ -19,8 +19,8 @@ standard_testfile .cc
set executable ${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {debug c++} ] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
clean_restart ${executable}
diff --git a/gdb/testsuite/gdb.cp/fpointer.exp b/gdb/testsuite/gdb.cp/fpointer.exp
index a97eef7e55b6..f4f69a0532d6 100644
--- a/gdb/testsuite/gdb.cp/fpointer.exp
+++ b/gdb/testsuite/gdb.cp/fpointer.exp
@@ -19,7 +19,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/koenig.exp b/gdb/testsuite/gdb.cp/koenig.exp
index 474c4a95b41e..4fd755ad7b7c 100644
--- a/gdb/testsuite/gdb.cp/koenig.exp
+++ b/gdb/testsuite/gdb.cp/koenig.exp
@@ -22,7 +22,7 @@ lappend opts additional_flags=-Wno-unused-comparison
lappend opts additional_flags=-std=c++11
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/local-static.exp b/gdb/testsuite/gdb.cp/local-static.exp
index a60412856b1f..9b33dc53ba0b 100644
--- a/gdb/testsuite/gdb.cp/local-static.exp
+++ b/gdb/testsuite/gdb.cp/local-static.exp
@@ -148,7 +148,7 @@ proc do_test {lang} {
if {[prepare_for_testing "failed to prepare" $testfile-$lang \
[list $src] $options]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/method2.exp b/gdb/testsuite/gdb.cp/method2.exp
index 4eed2197c36c..e64853ab7ae8 100644
--- a/gdb/testsuite/gdb.cp/method2.exp
+++ b/gdb/testsuite/gdb.cp/method2.exp
@@ -23,7 +23,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/nsnested.exp b/gdb/testsuite/gdb.cp/nsnested.exp
index 8c1cef585a8d..11b326fa9b9c 100644
--- a/gdb/testsuite/gdb.cp/nsnested.exp
+++ b/gdb/testsuite/gdb.cp/nsnested.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/nsnoimports.exp b/gdb/testsuite/gdb.cp/nsnoimports.exp
index 3077e447c285..7c9e70ac3bf1 100644
--- a/gdb/testsuite/gdb.cp/nsnoimports.exp
+++ b/gdb/testsuite/gdb.cp/nsnoimports.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/oranking.exp b/gdb/testsuite/gdb.cp/oranking.exp
index f7a2f4636227..1f418a96a7db 100644
--- a/gdb/testsuite/gdb.cp/oranking.exp
+++ b/gdb/testsuite/gdb.cp/oranking.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/pr10728.exp b/gdb/testsuite/gdb.cp/pr10728.exp
index 0625d243bd8f..2560325ae727 100644
--- a/gdb/testsuite/gdb.cp/pr10728.exp
+++ b/gdb/testsuite/gdb.cp/pr10728.exp
@@ -28,18 +28,18 @@ set tfx [standard_output_file pr10728-x.o]
set tfy [standard_output_file pr10728-y.o]
if { [gdb_compile "${srcdir}/${subdir}/$srcfile2" "${tfy}.o" object {c++}] != "" } {
- untested "failed to compile second object file"
- return -1
+ untested "failed to compile second object file"
+ return
}
if { [gdb_compile "${srcdir}/${subdir}/$srcfile" "${tfx}.o" object {debug c++}] != "" } {
- untested "failed to compile first object file"
- return -1
+ untested "failed to compile first object file"
+ return
}
if { [gdb_compile "${tfx}.o ${tfy}.o" ${binfile} executable {debug c++}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp b/gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp
index a21485e215cb..ed15018b37ff 100644
--- a/gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp
+++ b/gdb/testsuite/gdb.cp/rvalue-ref-sizeof.exp
@@ -22,7 +22,7 @@ require allow_cplus_tests
if {[prepare_for_testing ${testfile}.exp $testfile $srcfile \
{debug c++ additional_flags="-std=gnu++11"}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.cp/save-bp-qualified.exp b/gdb/testsuite/gdb.cp/save-bp-qualified.exp
index a6851ba96623..345290276628 100644
--- a/gdb/testsuite/gdb.cp/save-bp-qualified.exp
+++ b/gdb/testsuite/gdb.cp/save-bp-qualified.exp
@@ -38,7 +38,7 @@ proc restart {} {
with_test_prefix "save" {
if {![restart]} {
- return -1
+ return
}
gdb_breakpoint "function" qualified
@@ -56,7 +56,7 @@ with_test_prefix "save" {
with_test_prefix "restore" {
if {![restart]} {
- return -1
+ return
}
# Restore the breakpoints.
diff --git a/gdb/testsuite/gdb.cp/smartp.exp b/gdb/testsuite/gdb.cp/smartp.exp
index 8a79f4385a9c..4c04a465e475 100644
--- a/gdb/testsuite/gdb.cp/smartp.exp
+++ b/gdb/testsuite/gdb.cp/smartp.exp
@@ -16,7 +16,7 @@
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}] } {
- return -1
+ return
}
############################################
diff --git a/gdb/testsuite/gdb.cp/step-and-next-inline.exp b/gdb/testsuite/gdb.cp/step-and-next-inline.exp
index e8bb998231b4..d57cbc5a5b47 100644
--- a/gdb/testsuite/gdb.cp/step-and-next-inline.exp
+++ b/gdb/testsuite/gdb.cp/step-and-next-inline.exp
@@ -41,7 +41,7 @@ proc do_test { use_header } {
if { [prepare_for_testing "failed to prepare" $executable \
$srcfile $options] } {
- return -1
+ return
}
with_test_prefix $prefix {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 18/36] GDB: testsuite: DWARF: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (16 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 17/36] GDB: testsuite: C++: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 19/36] GDB: testsuite: DWARF: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (17 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.dwarf2.
---
.../gdb.dwarf2/DW_OP_piece_with_DW_OP_GNU_uninit.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/ada-array-bound.exp | 2 +-
gdb/testsuite/gdb.dwarf2/ada-cold-name.exp | 2 +-
gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp | 2 +-
gdb/testsuite/gdb.dwarf2/ada-thick-pointer.exp | 2 +-
gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp | 2 +-
gdb/testsuite/gdb.dwarf2/arr-opt-out.exp | 2 +-
gdb/testsuite/gdb.dwarf2/arr-stride.exp | 2 +-
gdb/testsuite/gdb.dwarf2/arr-subrange.exp | 2 +-
gdb/testsuite/gdb.dwarf2/atomic-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/bad-regnum.exp | 4 ++--
.../gdb.dwarf2/bitfield-parent-optimized-out.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/callframecfa.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/calling-convention.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/clztest.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/corrupt.exp | 2 +-
gdb/testsuite/gdb.dwarf2/count.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/cpp-linkage-name.exp | 2 +-
gdb/testsuite/gdb.dwarf2/cu-empty-name.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/cu-no-addrs.exp | 2 +-
gdb/testsuite/gdb.dwarf2/data-loc.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp | 2 +-
gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl | 2 +-
gdb/testsuite/gdb.dwarf2/debug-names.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dup-psym.exp | 2 +-
.../gdb.dwarf2/dw-form-ref-addr-with-type-units.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-align.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-aranges.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-bad-mips-linkage-name.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-basic.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-bfloat16.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-common-block.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-complex-parts.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/dw2-compressed.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-const.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/dw2-disasm-over-non-stmt.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-empty-file-name.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/dw2-entry-value-2.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-epilogue-begin.exp.tcl | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-error.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-filename.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-icycle.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp | 2 +-
| 4 ++--
| 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-inline-many-frames.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-inline-stepping.exp | 4 ++--
.../gdb.dwarf2/dw2-inline-with-lexical-scope.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error-2.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp | 2 +-
.../gdb.dwarf2/dw2-inter-cu-forth-and-back.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-inter-cu-symbol.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-intercu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-intermix.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-is-stmt.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-lexical-block-bare.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-main-no-line-number.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-missing-cu-tag.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-multiple-debug-info.exp | 2 +-
.../gdb.dwarf2/dw2-namespaceless-anonymous.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-noloc.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-op-call.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-op-out-param.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp | 2 +-
.../gdb.dwarf2/dw2-out-of-range-end-of-seq.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-param-error.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-producer.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-prologue-end-2.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-ranges-overlap.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-ranges-psym-warning.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/dw2-ranges-psym.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-regno-invalid.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-restore.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-restrict.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp | 2 +-
.../gdb.dwarf2/dw2-single-line-discriminators.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp | 2 +-
.../dw2-step-between-different-inline-functions.exp | 4 ++--
.../gdb.dwarf2/dw2-step-between-inline-func-blocks.exp | 4 ++--
.../gdb.dwarf2/dw2-step-out-of-function-no-stmt.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-strp.exp | 2 +-
.../gdb.dwarf2/dw2-symtab-includes-lookup.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-symtab-includes.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-tu-dwarf-4-5.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-unspecified-type.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-using-debug-str.exp | 10 +++++-----
gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.exp | 2 +-
.../gdb.dwarf2/dw2-vendor-extended-opcode.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-weird-type-len.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-wrong-mangled-name.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw4-toplevel-types.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dwp-sepdebug.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dwp-symlink.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dwz-many.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dwz-unused-pu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dwz.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dwznolink.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dyn-type-unallocated.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/dynamic-bit-offset.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dynarr-ptr.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/enqueued-cu-base-addr.exp | 2 +-
gdb/testsuite/gdb.dwarf2/enum-type-c++.exp | 2 +-
gdb/testsuite/gdb.dwarf2/enum-type.exp | 2 +-
gdb/testsuite/gdb.dwarf2/fission-absolute-dwo.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/fission-base.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/fission-loclists-pie.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/fission-loclists.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/fission-mix.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/fission-multi-cu.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/fission-relative-dwo.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/fission-reread.exp | 2 +-
gdb/testsuite/gdb.dwarf2/fission-type-unit-locexpr.exp | 2 +-
gdb/testsuite/gdb.dwarf2/formdata16.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/fortran-var-string.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp | 2 +-
gdb/testsuite/gdb.dwarf2/forward-spec.exp | 2 +-
gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/gdb-add-index.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp | 2 +-
gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp | 2 +-
gdb/testsuite/gdb.dwarf2/gdb-index-tilde.exp | 8 ++++----
gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/gdb-index.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/implptr.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/implptrconst.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/implptrpiece.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/implref-array.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/implref-const.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/implref-global.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/implref-struct.exp | 6 +++---
.../gdb.dwarf2/imported-unit-abstract-const-value.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl | 2 +-
gdb/testsuite/gdb.dwarf2/imported-unit-c.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/imported-unit.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/info-locals-optimized-out.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/inline.exp | 2 +-
.../gdb.dwarf2/inlined_subroutine-inheritance.exp | 2 +-
gdb/testsuite/gdb.dwarf2/intbits.exp | 6 +++---
gdb/testsuite/gdb.dwarf2/local-var.exp | 2 +-
.../gdb.dwarf2/locexpr-data-member-location.exp | 2 +-
gdb/testsuite/gdb.dwarf2/mac-fileno.exp | 2 +-
gdb/testsuite/gdb.dwarf2/main-subprogram.exp | 4 ++--
| 2 +-
gdb/testsuite/gdb.dwarf2/mega-enum.exp | 2 +-
gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | 2 +-
gdb/testsuite/gdb.dwarf2/method-ptr.exp | 2 +-
gdb/testsuite/gdb.dwarf2/missing-line-table.exp | 2 +-
gdb/testsuite/gdb.dwarf2/missing-sig-type.exp | 2 +-
.../gdb.dwarf2/missing-type-name-for-templates.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/missing-type-name.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/multidictionary.exp | 2 +-
gdb/testsuite/gdb.dwarf2/nameless-enum.exp | 2 +-
gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp | 2 +-
gdb/testsuite/gdb.dwarf2/nonvar-access.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/nostaticblock.exp | 2 +-
gdb/testsuite/gdb.dwarf2/nullptr_t.exp | 2 +-
gdb/testsuite/gdb.dwarf2/opaque-type-lookup.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/pieces.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/pr10770.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/pr11465.exp | 2 +-
gdb/testsuite/gdb.dwarf2/pr13961.exp | 2 +-
gdb/testsuite/gdb.dwarf2/rust-enum.exp | 2 +-
gdb/testsuite/gdb.dwarf2/self-spec.exp | 2 +-
gdb/testsuite/gdb.dwarf2/shortpiece.exp | 2 +-
gdb/testsuite/gdb.dwarf2/static-optimized-out.exp | 2 +-
gdb/testsuite/gdb.dwarf2/staticvirtual.exp | 2 +-
gdb/testsuite/gdb.dwarf2/struct-decl.exp | 2 +-
gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp | 2 +-
gdb/testsuite/gdb.dwarf2/struct-with-sig.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/subrange-enum.exp | 2 +-
gdb/testsuite/gdb.dwarf2/subrange.exp | 2 +-
gdb/testsuite/gdb.dwarf2/symbol_needs_eval_fail.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/symbol_needs_eval_timeout.exp | 4 ++--
.../gdb.dwarf2/template-specification-full-name.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/trace-crash.exp | 2 +-
gdb/testsuite/gdb.dwarf2/typeddwarf.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/typedef-void-finish.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/utf-rust.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/valop.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/var-access.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/variant.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/varval.exp | 10 +++++-----
gdb/testsuite/gdb.dwarf2/void-type.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/watch-notconst.exp | 2 +-
241 files changed, 388 insertions(+), 388 deletions(-)
diff --git a/gdb/testsuite/gdb.dwarf2/DW_OP_piece_with_DW_OP_GNU_uninit.exp b/gdb/testsuite/gdb.dwarf2/DW_OP_piece_with_DW_OP_GNU_uninit.exp
index eb5899661a6f..52599ca3ced9 100644
--- a/gdb/testsuite/gdb.dwarf2/DW_OP_piece_with_DW_OP_GNU_uninit.exp
+++ b/gdb/testsuite/gdb.dwarf2/DW_OP_piece_with_DW_OP_GNU_uninit.exp
@@ -73,13 +73,13 @@ Dwarf::assemble $asm_file {
if {[build_executable ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
set cmd "print i64_var"
diff --git a/gdb/testsuite/gdb.dwarf2/ada-array-bound.exp b/gdb/testsuite/gdb.dwarf2/ada-array-bound.exp
index 90858e26e654..4a5e14e2c2ed 100644
--- a/gdb/testsuite/gdb.dwarf2/ada-array-bound.exp
+++ b/gdb/testsuite/gdb.dwarf2/ada-array-bound.exp
@@ -82,7 +82,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/ada-cold-name.exp b/gdb/testsuite/gdb.dwarf2/ada-cold-name.exp
index f4dc9acf4b1f..144bec7e5325 100644
--- a/gdb/testsuite/gdb.dwarf2/ada-cold-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/ada-cold-name.exp
@@ -59,7 +59,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp b/gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp
index e50763109c48..01c0fbe5e4e2 100644
--- a/gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/ada-linkage-name.exp
@@ -63,7 +63,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
with_test_prefix "first first" {
diff --git a/gdb/testsuite/gdb.dwarf2/ada-thick-pointer.exp b/gdb/testsuite/gdb.dwarf2/ada-thick-pointer.exp
index 526ebaffe682..b53d8a359355 100644
--- a/gdb/testsuite/gdb.dwarf2/ada-thick-pointer.exp
+++ b/gdb/testsuite/gdb.dwarf2/ada-thick-pointer.exp
@@ -86,7 +86,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp b/gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp
index 00e737bcef2b..171e0cbf3aab 100644
--- a/gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp
+++ b/gdb/testsuite/gdb.dwarf2/ada-valprint-error.exp
@@ -28,7 +28,7 @@ standard_testfile .c -dw.S
if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
untested "failed to compile"
- return -1
+ return
}
# Make some DWARF for the test.
@@ -104,7 +104,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# Note: This test may fail with certain clang + linker combinations
diff --git a/gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp b/gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp
index 0f47b7783ed6..1d04ea176d0a 100644
--- a/gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp
+++ b/gdb/testsuite/gdb.dwarf2/anon-ns-fn.exp
@@ -18,7 +18,7 @@ require allow_cplus_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
set cmd "ptype main"
diff --git a/gdb/testsuite/gdb.dwarf2/arr-opt-out.exp b/gdb/testsuite/gdb.dwarf2/arr-opt-out.exp
index bef0d63528e0..8587897ccef1 100644
--- a/gdb/testsuite/gdb.dwarf2/arr-opt-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/arr-opt-out.exp
@@ -81,7 +81,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/arr-stride.exp b/gdb/testsuite/gdb.dwarf2/arr-stride.exp
index f1ef47efd51e..cdec17eed07c 100644
--- a/gdb/testsuite/gdb.dwarf2/arr-stride.exp
+++ b/gdb/testsuite/gdb.dwarf2/arr-stride.exp
@@ -111,7 +111,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/arr-subrange.exp b/gdb/testsuite/gdb.dwarf2/arr-subrange.exp
index c466d1b8257a..ec2640cdb7ac 100644
--- a/gdb/testsuite/gdb.dwarf2/arr-subrange.exp
+++ b/gdb/testsuite/gdb.dwarf2/arr-subrange.exp
@@ -76,7 +76,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/atomic-type.exp b/gdb/testsuite/gdb.dwarf2/atomic-type.exp
index c2f9bfcece41..92865016ea3a 100644
--- a/gdb/testsuite/gdb.dwarf2/atomic-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/atomic-type.exp
@@ -81,7 +81,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "ptype f" "int \\(const _Atomic char \\\* volatile _Atomic\\)"
diff --git a/gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp b/gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp
index c59e0463e290..de76cc8aca22 100644
--- a/gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/backward-spec-inter-cu.exp
@@ -75,7 +75,7 @@ Dwarf::assemble $asm_file {
if {[build_executable "failed to build executable" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
set eol "\r\n"
diff --git a/gdb/testsuite/gdb.dwarf2/bad-regnum.exp b/gdb/testsuite/gdb.dwarf2/bad-regnum.exp
index 84c1895e5d2f..6c9d80b1e048 100644
--- a/gdb/testsuite/gdb.dwarf2/bad-regnum.exp
+++ b/gdb/testsuite/gdb.dwarf2/bad-regnum.exp
@@ -62,11 +62,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "info addr foo1" \
diff --git a/gdb/testsuite/gdb.dwarf2/bitfield-parent-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/bitfield-parent-optimized-out.exp
index 45e66a42f0fd..0e7318bfd644 100644
--- a/gdb/testsuite/gdb.dwarf2/bitfield-parent-optimized-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/bitfield-parent-optimized-out.exp
@@ -70,11 +70,11 @@ Dwarf::assemble $asm_file {
}
if {[prepare_for_testing "failed to prepare" $executable "${asm_file} ${srcfile}" {}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "p var" " = <optimized out>"
diff --git a/gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp b/gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp
index 45213468abb2..3f03bf78df97 100644
--- a/gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp
+++ b/gdb/testsuite/gdb.dwarf2/break-inline-psymtab.exp
@@ -17,16 +17,16 @@ standard_testfile .c -2.c
set sources [list $srcfile $srcfile2]
if { [prepare_for_testing "failed to prepare" ${testfile} $sources] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
get_debug_format
if { [skip_inline_frame_tests] } {
- return -1
+ return
}
# Set a break-point in inline function bar, in a CU for which the partial
diff --git a/gdb/testsuite/gdb.dwarf2/callframecfa.exp b/gdb/testsuite/gdb.dwarf2/callframecfa.exp
index 315ce0a12f6d..91a1be56506d 100644
--- a/gdb/testsuite/gdb.dwarf2/callframecfa.exp
+++ b/gdb/testsuite/gdb.dwarf2/callframecfa.exp
@@ -24,11 +24,11 @@ standard_testfile .S
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list {additional_flags=-nostdlib}]]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "break *func" "Breakpoint 2.*" "set breakpoint for call-frame-cfa"
diff --git a/gdb/testsuite/gdb.dwarf2/calling-convention.exp b/gdb/testsuite/gdb.dwarf2/calling-convention.exp
index 294a250408c3..202371400ea7 100644
--- a/gdb/testsuite/gdb.dwarf2/calling-convention.exp
+++ b/gdb/testsuite/gdb.dwarf2/calling-convention.exp
@@ -34,7 +34,7 @@ standard_testfile .c .S
# First compile the .c file so we can ask GDB what is sizeof(int).
if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
untested "failed to compile"
- return -1
+ return
}
# Make some DWARF for the test.
@@ -69,11 +69,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "call foo ()" \
diff --git a/gdb/testsuite/gdb.dwarf2/clztest.exp b/gdb/testsuite/gdb.dwarf2/clztest.exp
index 43f17889f5a6..c827ae6175c8 100644
--- a/gdb/testsuite/gdb.dwarf2/clztest.exp
+++ b/gdb/testsuite/gdb.dwarf2/clztest.exp
@@ -26,11 +26,11 @@ require is_x86_64_m64_target
if { [prepare_for_testing "failed to prepare" "${test}" ${test}.S \
{nodebug nopie additional_flags=-nostdlib}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Initialize tests to be an empty array.
diff --git a/gdb/testsuite/gdb.dwarf2/corrupt.exp b/gdb/testsuite/gdb.dwarf2/corrupt.exp
index aff411132142..b46f0cb1b434 100644
--- a/gdb/testsuite/gdb.dwarf2/corrupt.exp
+++ b/gdb/testsuite/gdb.dwarf2/corrupt.exp
@@ -69,7 +69,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
gdb_test "print 1" "= 1" "recover from corrupt DWARF"
diff --git a/gdb/testsuite/gdb.dwarf2/count.exp b/gdb/testsuite/gdb.dwarf2/count.exp
index a238c352d97f..8ed443fe7343 100644
--- a/gdb/testsuite/gdb.dwarf2/count.exp
+++ b/gdb/testsuite/gdb.dwarf2/count.exp
@@ -127,11 +127,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "ptype array" "type = char \\\[5\\\]"
diff --git a/gdb/testsuite/gdb.dwarf2/cpp-linkage-name.exp b/gdb/testsuite/gdb.dwarf2/cpp-linkage-name.exp
index bbb3a3765ab4..6a3abaf83a4d 100644
--- a/gdb/testsuite/gdb.dwarf2/cpp-linkage-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/cpp-linkage-name.exp
@@ -82,7 +82,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_assert [runto_main] "run to main"
diff --git a/gdb/testsuite/gdb.dwarf2/cu-empty-name.exp b/gdb/testsuite/gdb.dwarf2/cu-empty-name.exp
index 32f4a4c007fd..d4aa02038071 100644
--- a/gdb/testsuite/gdb.dwarf2/cu-empty-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/cu-empty-name.exp
@@ -38,11 +38,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
gdb_continue_to_end
diff --git a/gdb/testsuite/gdb.dwarf2/cu-no-addrs.exp b/gdb/testsuite/gdb.dwarf2/cu-no-addrs.exp
index 8ff6765d170c..844b01d1b4a5 100644
--- a/gdb/testsuite/gdb.dwarf2/cu-no-addrs.exp
+++ b/gdb/testsuite/gdb.dwarf2/cu-no-addrs.exp
@@ -53,7 +53,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
gdb_test "break *$main_start" ".*Breakpoint $decimal at $hex" \
diff --git a/gdb/testsuite/gdb.dwarf2/data-loc.exp b/gdb/testsuite/gdb.dwarf2/data-loc.exp
index 3a2787e9f268..b78afe257164 100644
--- a/gdb/testsuite/gdb.dwarf2/data-loc.exp
+++ b/gdb/testsuite/gdb.dwarf2/data-loc.exp
@@ -27,7 +27,7 @@ standard_testfile .c -dw.S
# specifically for this testcase, might as well use that.
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# Make some DWARF for the test.
@@ -121,11 +121,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp b/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp
index 00dacb78b817..10e649f06afe 100644
--- a/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp
+++ b/gdb/testsuite/gdb.dwarf2/debug-names-bad-cu-index.exp
@@ -82,7 +82,7 @@ Dwarf::assemble {
if {[build_executable ${testfile}.exp $testfile "${asm_file} ${srcfile}" \
[list ldflags=-nostartfiles]] == -1} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp b/gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp
index b9ad865a79d1..11294ae5a131 100644
--- a/gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/debug-names-duplicate-cu.exp
@@ -62,7 +62,7 @@ Dwarf::assemble {
if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \
[list ldflags=-nostartfiles]]} {
- return -1
+ return
}
# Check for warning.
diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp b/gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp
index 532482318dd1..c5eca54b55cf 100644
--- a/gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/debug-names-missing-cu.exp
@@ -69,7 +69,7 @@ Dwarf::assemble {
if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \
[list ldflags=-nostartfiles]]} {
- return -1
+ return
}
# Verify that .debug_names section is not ignored.
diff --git a/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl b/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
index 4d588ab6cec6..af3f263a2733 100644
--- a/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
+++ b/gdb/testsuite/gdb.dwarf2/debug-names-tu.exp.tcl
@@ -90,7 +90,7 @@ Dwarf::assemble {
if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \
[list ldflags=-nostartfiles]]} {
- return -1
+ return
}
# Verify that .debug_names section is not ignored.
diff --git a/gdb/testsuite/gdb.dwarf2/debug-names.exp b/gdb/testsuite/gdb.dwarf2/debug-names.exp
index 23e8dad4577a..39bdd3d59e82 100644
--- a/gdb/testsuite/gdb.dwarf2/debug-names.exp
+++ b/gdb/testsuite/gdb.dwarf2/debug-names.exp
@@ -65,7 +65,7 @@ Dwarf::assemble {
if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" \
[list ldflags=-nostartfiles]]} {
- return -1
+ return
}
# Verify that .debug_names section is not ignored.
diff --git a/gdb/testsuite/gdb.dwarf2/dup-psym.exp b/gdb/testsuite/gdb.dwarf2/dup-psym.exp
index da3a8947c2fb..b020146e285b 100644
--- a/gdb/testsuite/gdb.dwarf2/dup-psym.exp
+++ b/gdb/testsuite/gdb.dwarf2/dup-psym.exp
@@ -23,7 +23,7 @@ standard_testfile .S
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile {debug} main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
set test "info sources should contain only one reference to file1.txt"
diff --git a/gdb/testsuite/gdb.dwarf2/dw-form-ref-addr-with-type-units.exp b/gdb/testsuite/gdb.dwarf2/dw-form-ref-addr-with-type-units.exp
index 9a8a396375b1..6c3304352988 100644
--- a/gdb/testsuite/gdb.dwarf2/dw-form-ref-addr-with-type-units.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw-form-ref-addr-with-type-units.exp
@@ -100,7 +100,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# Without the corresponding fix, we get an internal error:
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
index 04d8f91be5b8..367871e3094e 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-abs-hi-pc.exp
@@ -50,7 +50,7 @@ lappend flags additional_flags=[quote_for_host -DWORLD_END=$world_start \
set executable ${testfile}
if {[build_executable ${testfile}.exp ${executable} $sources $flags] == -1} {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp b/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp
index 06d4f6930240..1716741c0c14 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ada-ffffffff.exp
@@ -21,7 +21,7 @@ standard_testfile .S
set executable ${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-align.exp b/gdb/testsuite/gdb.dwarf2/dw2-align.exp
index f4e6947f755e..6671dd5a3fd3 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-align.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-align.exp
@@ -68,11 +68,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set lang c++"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp
index 50b949345fcc..bbfdf23168b8 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-anon-mptr.exp
@@ -25,7 +25,7 @@ standard_testfile .S
if {[gdb_compile [file join $srcdir $subdir $srcfile] $binfile \
object {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp b/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp
index 949464bd3c18..a02d580bfd26 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp
@@ -24,7 +24,7 @@ set dwarf_srcfile "file1.txt"
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-aranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-aranges.exp
index d1d2a09c8830..beda49270c74 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-aranges.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-aranges.exp
@@ -36,7 +36,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" $testfile \
[list $asm_file $srcfile ]] } {
- return -1
+ return
}
# Failed gdb_load would abort the testcase execution earlier.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp
index 134397cdfcbe..b148ae0e005c 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp
@@ -36,7 +36,7 @@ standard_testfile main.c -other.S -dwarf.S
if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } {
untested "failed to compile"
- return -1
+ return
}
set int_size [get_sizeof "int" 4]
@@ -160,7 +160,7 @@ Dwarf::assemble $asm_file {
if { [build_executable ${testfile}.exp ${testfile} \
[list $srcfile $srcfile2 $asm_file] {nodebug}] } {
- return -1
+ return
}
# Attempt to place a breakpoint on 'some_func', then check GDB is
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-mips-linkage-name.exp b/gdb/testsuite/gdb.dwarf2/dw2-bad-mips-linkage-name.exp
index 5a8e902b0181..aa7c12c12fab 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bad-mips-linkage-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-mips-linkage-name.exp
@@ -55,7 +55,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# A successful run will have two PASSes. A GDB that's lacking
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp b/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp
index 9bba38c81025..79cd67af65d9 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-parameter-type.exp
@@ -22,7 +22,7 @@ set executable ${testfile}
# First try referencing DW_AT_frame_base which is not defined.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.exp b/gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.exp
index 307fcc1546d2..6f6eb153c3a5 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-unresolved.exp
@@ -52,7 +52,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "ptype var" "type = bool"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-basic.exp b/gdb/testsuite/gdb.dwarf2/dw2-basic.exp
index 305fc7173ab0..f94bb8633ce3 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-basic.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-basic.exp
@@ -24,7 +24,7 @@ set dwarf_srcfile "file1.txt"
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bfloat16.exp b/gdb/testsuite/gdb.dwarf2/dw2-bfloat16.exp
index d7b76eaf6e72..6b71e1e05581 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bfloat16.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bfloat16.exp
@@ -68,11 +68,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Make sure we can print both types correctly.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp
index 4928bcb3e4c2..48206cdc2376 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.exp
@@ -25,7 +25,7 @@ set executable ${testfile}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list nodebug $additional_flags]]} {
- return -1
+ return
}
# The correct new[] and delete[] syntax is probably unsupported by GDB.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-common-block.exp b/gdb/testsuite/gdb.dwarf2/dw2-common-block.exp
index 7c470ff25a0d..38d2652cd3bf 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-common-block.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-common-block.exp
@@ -28,7 +28,7 @@ standard_testfile .S
if { [prepare_for_testing "failed to prepare" "${testfile}" $srcfile \
{nodebug nopie f90}] } {
- return -1
+ return
}
if {![runto MAIN__]} {
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.exp b/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.exp
index b067f3b7f28b..6e729f8c6ec0 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-compdir-oldgcc.exp
@@ -23,7 +23,7 @@ set additional_flags [gdb_target_symbol_prefix_flags_asm]
standard_testfile .S
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
$additional_flags]} {
- return -1
+ return
}
# Here should be GDB-computed "Compilation directory is".
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-complex-parts.exp b/gdb/testsuite/gdb.dwarf2/dw2-complex-parts.exp
index f0a159e4aa4e..f8da14c0a5aa 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-complex-parts.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-complex-parts.exp
@@ -33,7 +33,7 @@ standard_testfile main.c -debug.S
if {[prepare_for_testing "failed to prepare" $testfile \
"${srcfile}" {}]} {
- return -1
+ return
}
set float_size [get_sizeof float 0]
@@ -159,11 +159,11 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" $testfile \
"${asm_file} ${srcfile}" {}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
proc do_test { type {clang 0}} {
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-compressed.exp b/gdb/testsuite/gdb.dwarf2/dw2-compressed.exp
index 5ac342506c95..ff197a4d74fe 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-compressed.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-compressed.exp
@@ -26,7 +26,7 @@ if {[prepare_for_testing_full "failed to prepare" \
[list $testfile \
{debug additional_flags=-static additional_flags=-nostdlib} \
main.c -g0 $srcfile nodebug]]} {
- return -1
+ return
}
gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-const.exp b/gdb/testsuite/gdb.dwarf2/dw2-const.exp
index 41eea8063b1f..93ddfaa0f2ff 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-const.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-const.exp
@@ -21,7 +21,7 @@ standard_testfile .S
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
gdb_test "print twelve" "= 12"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp
index 1ddf32aab571..a659ae7171a9 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp
@@ -27,11 +27,11 @@ standard_testfile .S -main.c
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile2 $srcfile] {}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# main is not provided by DWARF.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp
index db6ad49e9968..ea3842fe7c0a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp
@@ -26,7 +26,7 @@ standard_testfile .S
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
gdb_test "ptype noloc" "type = const int"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp
index a21cc40284b7..6b01e1d28800 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp
@@ -82,7 +82,7 @@ set srctmpfile tmp-${testfile}.c
# $srcdir may be relative.
if {[file pathtype $srcabsdir] != "absolute"} {
untested "objdir pathtype is not absolute"
- return -1
+ return
}
set f [open $asmsrcfile "w"]
@@ -414,7 +414,7 @@ if { [test_compiler_info clang*] } {
if { [gdb_compile "${asmsrcfile} ${srcdir}/${subdir}/$srcfile" "${binfile}" executable $opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
set dirs {}
@@ -450,7 +450,7 @@ remote_exec host "sh -c \"for d in $dircreatelist; do cp ${srcdir}/${subdir}/${s
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "cd ${srcabsdir}/rdir" "Working directory [string_to_regexp ${srcabsdir}]/rdir\\." "cd .../rdir"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-disasm-over-non-stmt.exp b/gdb/testsuite/gdb.dwarf2/dw2-disasm-over-non-stmt.exp
index 1c0d3979ee93..76de1bc46499 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-disasm-over-non-stmt.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-disasm-over-non-stmt.exp
@@ -94,11 +94,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug} ] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Global lines array, maps lines numbers to the list of addresses
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp
index f7ddd2280b93..9ae132fae2f5 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dos-drive.exp
@@ -20,7 +20,7 @@ standard_testfile .S
set executable ${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp
index dc76285c1acc..bd36d62a5d32 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp
@@ -24,7 +24,7 @@ standard_testfile .S
if { [gdb_compile [file join $srcdir $subdir $srcfile] $binfile \
object {nodebug}] != "" } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.exp b/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.exp
index 6bbc25319b9f..2933de412320 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dummy-cu.exp
@@ -22,7 +22,7 @@ standard_testfile .S
set executable ${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp b/gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
index df925a653746..6f3c6a0092e4 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-dup-frame.exp
@@ -23,12 +23,12 @@ require is_x86_64_m64_target
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug nopie}] } {
- return -1
+ return
}
if {![runto stop_frame]} {
perror "Failed to stop in stop_frame"
- return -1
+ return
}
gdb_test "bt" \
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-file-name.exp b/gdb/testsuite/gdb.dwarf2/dw2-empty-file-name.exp
index 91ba571de6ff..15539bad8564 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-empty-file-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-file-name.exp
@@ -52,7 +52,7 @@ Dwarf::assemble $asm_file {
if { [build_executable "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp b/gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp
index 914b9d6f8130..5c6ec7a2d4ec 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-inline-ranges.exp
@@ -60,7 +60,7 @@ get_func_info main
# can't be disabled.
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list ${srcfile}] {debug nopie}] } {
- return -1
+ return
}
# Some addresses that we need when generating the DWARF.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp
index a00eea2a28ec..7b7dd946c009 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp
@@ -23,7 +23,7 @@ standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \
object {nodebug}] != "" } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.exp b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.exp
index 9a8a88a74735..f365866c0960 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.exp
@@ -21,7 +21,7 @@ standard_testfile .S
set executable ${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp b/gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp
index f7cc7f7c0674..9a1f5e101e7a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-pc.exp
@@ -29,7 +29,7 @@ get_func_info foo
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list ${srcfile}] {debug nopie}]} {
- return -1
+ return
}
# Address for the middle of foo. This is used as our entry point when
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp b/gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp
index 33feb375b9d0..fa3bf5f4b3e0 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp
@@ -191,11 +191,11 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Try whether we can set and hit breakpoints at the entry_points.
@@ -220,7 +220,7 @@ gdb_test "bt" [multi_line \
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "*fooso"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-value-2.exp b/gdb/testsuite/gdb.dwarf2/dw2-entry-value-2.exp
index 710b9285cecb..3b48846fb718 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-entry-value-2.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-value-2.exp
@@ -94,7 +94,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if { ![runto *main] } {
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp b/gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp
index 3739dff18cf4..fecb2e9296de 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-value.exp
@@ -18,11 +18,11 @@ load_lib dwarf.exp
require dwarf2_support
if { [prepare_for_testing "failed to prepare" "dw2-entry-value" {dw2-entry-value-main.c dw2-entry-value.S} {nodebug}] } {
- return -1
+ return
}
if {![runto f]} {
- return -1
+ return
}
# FAIL was printing:
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-epilogue-begin.exp.tcl b/gdb/testsuite/gdb.dwarf2/dw2-epilogue-begin.exp.tcl
index 89519f577846..d74a8db0a7bf 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-epilogue-begin.exp.tcl
+++ b/gdb/testsuite/gdb.dwarf2/dw2-epilogue-begin.exp.tcl
@@ -166,11 +166,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Moving to the scope with a local variable.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-error.exp b/gdb/testsuite/gdb.dwarf2/dw2-error.exp
index 6da0949b3829..01d07a4e6ec0 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-error.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-error.exp
@@ -25,7 +25,7 @@ require is_x86_64_m64_target
# We can't use prepare_for_testing here because we need to check the
# 'file' command's output.
if {[build_executable $testfile.exp $testfile $srcfile {nodebug quiet}]} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-filename.exp b/gdb/testsuite/gdb.dwarf2/dw2-filename.exp
index f5e9a4c5bd40..953ad7d8eb5d 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-filename.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-filename.exp
@@ -23,7 +23,7 @@ standard_testfile .S
set dwarf_srcfile "file1.txt"
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {nodebug}] != "" } {
- return -1
+ return
}
gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp b/gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp
index b3009fa3f83e..c52f7302ea60 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp
@@ -114,11 +114,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Do the testing in Ada mode, since this is the language for which
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp b/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp
index 81048e4c2e2a..a6e81e2407d3 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-gas-workaround.exp
@@ -90,7 +90,7 @@ proc create_dwarf_assembly {source_file one_diridx} {
set asm_file [create_dwarf_assembly $srcfile2 false]
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test_no_output "set debug symtab-create 1"
@@ -108,7 +108,7 @@ gdb_test_multiple "ptype bar" "" {
set asm_file [create_dwarf_assembly $srcfile3 true]
if {[prepare_for_testing "failed to prepare" ${testfile}-one-diridx \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "ptype bar" ".*" "do not crash with only one directory table entry"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icycle.exp b/gdb/testsuite/gdb.dwarf2/dw2-icycle.exp
index 79030d01f95a..59a5ff6aaf92 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-icycle.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.exp
@@ -24,7 +24,7 @@ standard_testfile .S main.c
if { [build_executable "failed to prepare" ${testfile} \
[list $srcfile $srcfile2] {nodebug}] } {
- return -1
+ return
}
# We are trying to verify that the partial symtab to symtab expansion
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter.exp b/gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter.exp
index 048ab99f2056..7efeec9b4891 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter.exp
@@ -59,11 +59,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto func]} {
- return -1
+ return
}
gdb_test "p/x param" " = 0xdeadf00d"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp
index a0325cfb71d3..a65a0e702bb9 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp
@@ -24,7 +24,7 @@ standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \
object {nodebug}] != "" } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp
index 7e7223cfcaf3..114252335dea 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp
@@ -29,7 +29,7 @@ set basename "inline-break"
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug}] } {
- return -1
+ return
}
#
--git a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp
index 3b712fb1ab3a..d8e8c0591476 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-2.exp
@@ -142,11 +142,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] $build_options] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
--git a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-3.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-3.exp
index 831ed521fd53..c1faccb883aa 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-3.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-3.exp
@@ -131,11 +131,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] $build_options] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-many-frames.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-many-frames.exp
index 2854e8666184..7709fec14fc6 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-many-frames.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-many-frames.exp
@@ -286,11 +286,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# First we step through all of the functions until we get the 'kkk'.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
index 8e218a9f8d09..7f9f9464aaf5 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
@@ -23,7 +23,7 @@ set binfile_stripped ${binfile}-stripped
if { [prepare_for_testing "failed to prepare" "${testfile}" \
[list $srcfile2 $srcfile] {nodebug nopie}] } {
- return -1
+ return
}
set break_at ""
@@ -52,7 +52,7 @@ if {$result != 0} {
gdb_load ${binfile_stripped}
if {![runto "*${break_at}"]} {
- return -1
+ return
}
set index [have_index $binfile_stripped]
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp
index c6086e39d001..bf372fcd5637 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp
@@ -120,11 +120,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug optimize=-O1}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-stepping.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-stepping.exp
index 320d7188fe2e..07e9ef45be0d 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-stepping.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-stepping.exp
@@ -123,11 +123,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set patterns [list "main call foo" \
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-with-lexical-scope.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-with-lexical-scope.exp
index 8bdd6128eed4..1454b1e14c46 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-with-lexical-scope.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-with-lexical-scope.exp
@@ -132,7 +132,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
runto breakpoint_label
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error-2.exp b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error-2.exp
index 14bcda616e91..b783bf7434e6 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error-2.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error-2.exp
@@ -45,7 +45,7 @@ Dwarf::assemble $asm_file {
if {[build_executable "failed to prepare" $testfile \
[list $asm_file $srcfile] {nodebug}]} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp
index 0919177f313b..2e892350db57 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-error.exp
@@ -47,7 +47,7 @@ Dwarf::assemble $asm_file {
if {[build_executable "failed to prepare" $testfile \
[list $asm_file $srcfile] {nodebug}]} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-forth-and-back.exp b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-forth-and-back.exp
index 577b387d1269..a1aee9b2f473 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-forth-and-back.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-forth-and-back.exp
@@ -57,7 +57,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" $testfile \
[list $asm_file $srcfile] {nodebug}]} {
- return -1
+ return
}
# Regression test for PR32081.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-symbol.exp b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-symbol.exp
index 8f70def01a76..964868f8d3e1 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-symbol.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inter-cu-symbol.exp
@@ -74,11 +74,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto main]} {
- return -1
+ return
}
gdb_test "p var1" " = 1"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-intercu.exp b/gdb/testsuite/gdb.dwarf2/dw2-intercu.exp
index 7f927f11f6e0..99c7cf8c1113 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-intercu.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-intercu.exp
@@ -24,7 +24,7 @@ set dwarf_srcfile "file1.txt"
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
set remote_dwarf_srcfile [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-intermix.exp b/gdb/testsuite/gdb.dwarf2/dw2-intermix.exp
index 66dcdb8f9f91..c94a49f466bf 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-intermix.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-intermix.exp
@@ -24,7 +24,7 @@ set dwarf_srcfile "file1.txt"
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp b/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
index 6791a46386cd..df29523bcaae 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
@@ -145,11 +145,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Check stepping through the out of order lines gives the experience
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-is-stmt.exp b/gdb/testsuite/gdb.dwarf2/dw2-is-stmt.exp
index e20949ffee37..6d0c3795ea34 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-is-stmt.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-is-stmt.exp
@@ -96,11 +96,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# First, break by address at a location we know is marked as not a
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-lexical-block-bare.exp b/gdb/testsuite/gdb.dwarf2/dw2-lexical-block-bare.exp
index feb6245c8c17..eb119d062c0c 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-lexical-block-bare.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-lexical-block-bare.exp
@@ -56,7 +56,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp b/gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp
index 804bc07d640c..edc479134b1e 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-line-number-zero.exp
@@ -110,11 +110,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "$srcfile:27"
@@ -130,7 +130,7 @@ gdb_test "n" "foo \\(2\\);" "bar2, 1st next"
gdb_test "n" "foo \\(4\\);" "bar2, 2nd next"
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "bar1_label_3"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
index a243b6ad01a9..e45ca986c159 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp
@@ -29,11 +29,11 @@ set executable ${testfile}
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile c++ $testfile-main.cc {c++ nodebug} \
$srcfile {}]]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# main is not provided by DWARF.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-main-no-line-number.exp b/gdb/testsuite/gdb.dwarf2/dw2-main-no-line-number.exp
index aaef7478f412..b2f7a42c7302 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-main-no-line-number.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-main-no-line-number.exp
@@ -46,11 +46,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set breakpoint_at_missing_lineno_set [gdb_breakpoint "1" no-message]
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
index fe700ccee8d5..8f582f6e752f 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-minsym-in-cu.exp
@@ -26,7 +26,7 @@ standard_testfile .S
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
${additional_flags}]} {
- return -1
+ return
}
# The "info func" code tries to expand the corresponding symtab when a
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-missing-cu-tag.exp b/gdb/testsuite/gdb.dwarf2/dw2-missing-cu-tag.exp
index 2819895b55ad..74a5ea90b130 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-missing-cu-tag.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-missing-cu-tag.exp
@@ -41,7 +41,7 @@ Dwarf::assemble $asm_file {
# file command (so we can check its output).
if {[build_executable "failed to build executable" $testfile \
[list $srcfile $asm_file] {nodebug quiet}]} {
- return -1
+ return
}
set host_binfile [gdb_remote_download host $binfile]
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp b/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp
index 6624ce4cdfa7..28d16d535a96 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.exp
@@ -21,7 +21,7 @@ standard_testfile .S
# First try referencing DW_AT_frame_base which is not defined.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-multiple-debug-info.exp b/gdb/testsuite/gdb.dwarf2/dw2-multiple-debug-info.exp
index ada547a0440c..d8892be95d0e 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-multiple-debug-info.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-multiple-debug-info.exp
@@ -28,7 +28,7 @@ lappend opts additional_flags=-fdebug-types-section
if { [gdb_compile "$srcdir/$subdir/$srcfile" "$binfile" object \
$opts] != "" } {
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.exp b/gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.exp
index 8722be6bf09d..34f911eca126 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-namespaceless-anonymous.exp
@@ -55,7 +55,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "ptype '(anonymous namespace)::v'" "type = myint"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.exp b/gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.exp
index 53ef496ea4ab..b3b9ea034fe8 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.exp
@@ -16,7 +16,7 @@
standard_testfile .c main.c
if {[prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2"]} {
- return -1
+ return
}
set cmd "p var"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp b/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
index 230d39a7ed51..962e6ba2a512 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-noloc.exp
@@ -211,7 +211,7 @@ Dwarf::assemble $asm_file {
}
if { [prepare_for_testing "failed to prepare" ${testfile} [list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# Symbols have the form: {file,main}_loc{addr,empty,no}_{,un}resolvable
@@ -273,7 +273,7 @@ proc file_symbols {type} {
file_symbols no-run
if {![runto_main]} {
- return -1
+ return
}
file_symbols in-main
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp
index 3cb4cb4107f9..a7d32a63d8b9 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp
@@ -29,7 +29,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile_outer}" "${binfile_outer}" \
object {}] != ""
|| [gdb_compile "${srcdir}/${subdir}/${srcfile_inner}" "${binfile_inner}" \
object {}] != "" } {
- return -1
+ return
}
clean_restart $executable_outer
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-call.exp b/gdb/testsuite/gdb.dwarf2/dw2-op-call.exp
index eb5b67222bb5..852eb5b5e04c 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-op-call.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-op-call.exp
@@ -23,7 +23,7 @@ standard_testfile .S main.c
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $srcfile2] {nodebug}] } {
- return -1
+ return
}
# Additional test to verify the referenced CU is not aged out.
@@ -35,7 +35,7 @@ gdb_test "p array3" " = 3" "array3 using DW_OP_call4"
# Location lists need PC.
if {![runto_main]} {
- return -1
+ return
}
gdb_test "p arraynoloc" " = <optimized out>"
gdb_test "p arraycallnoloc" {Asked for position 0 of stack, stack only has 0 elements on it\.}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.exp b/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.exp
index fa10f6b6c3cc..92fd7f71fb99 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-op-out-param.exp
@@ -24,11 +24,11 @@ require dwarf2_support
require is_x86_64_m64_target
if { [prepare_for_testing "failed to prepare" "${test}" ${test}.S {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "breakpt"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp
index 196dd822cc81..0aa06852ac33 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp
@@ -24,7 +24,7 @@ standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \
object {nodebug}] != "" } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp b/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
index ef5e79dd68fd..7951d2514445 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
@@ -243,7 +243,7 @@ proc do_mi_test {} {
}
if { [build_test_program] == -1 } {
- return -1
+ return
}
do_console_test
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp b/gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp
index 63fe8bfaba72..3d790f1d4af8 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-out-of-range-end-of-seq.exp
@@ -76,11 +76,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set test "END with address 1 eliminated"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-param-error.exp b/gdb/testsuite/gdb.dwarf2/dw2-param-error.exp
index 9e4ea48c2470..cdd3923cb2c1 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-param-error.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-param-error.exp
@@ -21,11 +21,11 @@ standard_testfile .S -main.c
if { [prepare_for_testing "failed to prepare" "${testfile}" \
[list $srcfile2 $srcfile] {nodebug}] } {
- return -1
+ return
}
if {![runto f]} {
- return -1
+ return
}
# FAIL was printing:
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-producer.exp b/gdb/testsuite/gdb.dwarf2/dw2-producer.exp
index 23d233331bfa..8f50ab7b9c2e 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-producer.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-producer.exp
@@ -22,7 +22,7 @@ set dwarf_srcfile "file1.txt"
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-prologue-end-2.exp b/gdb/testsuite/gdb.dwarf2/dw2-prologue-end-2.exp
index 0bd6c0398638..acb9f3bb6006 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-prologue-end-2.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-prologue-end-2.exp
@@ -73,7 +73,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# Don't runto main here, otherwise the following doesn't
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp b/gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp
index 76cf6f3309f9..294e7c8bf45f 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp
@@ -80,11 +80,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set prologue_end_line [gdb_get_line_number "main assign o"]
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
index f2271b54b494..0b792f8e4cf6 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
@@ -118,11 +118,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Make use of the line numbers we faked in the .debug_line table above.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges-overlap.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges-overlap.exp
index cbab1a8ede57..924752ccd65e 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges-overlap.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges-overlap.exp
@@ -67,11 +67,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto foo]} {
- return -1
+ return
}
gdb_test "show language" \
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges-psym-warning.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges-psym-warning.exp
index b6486247620e..ea5ef93c014b 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges-psym-warning.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges-psym-warning.exp
@@ -31,7 +31,7 @@ standard_testfile -main.c .c -dw.S
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list ${srcfile} ${srcfile2}]] } {
- return -1
+ return
}
set asm_file [standard_output_file $srcfile3]
@@ -102,7 +102,7 @@ Dwarf::assemble $asm_file {
if { [build_executable "failed to prepare" ${testfile} \
[list $srcfile $srcfile2 $asm_file] {nodebug}] } {
- return -1
+ return
}
clean_restart
@@ -110,7 +110,7 @@ clean_restart
gdb_load_no_complaints $binfile
if {![runto_main]} {
- return -1
+ return
}
# Generate backtrace from baz, that visits the hole in the addrmap. If
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges-psym.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges-psym.exp
index fa8a0e7d421c..eb4187f151cf 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges-psym.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges-psym.exp
@@ -33,7 +33,7 @@ standard_testfile main.c .c -dw.S
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list ${srcfile} ${srcfile2}]] } {
- return -1
+ return
}
set asm_file [standard_output_file $srcfile3]
@@ -113,14 +113,14 @@ Dwarf::assemble $asm_file {
if { [build_executable "failed to prepare" ${testfile} \
[list $srcfile $srcfile2 $asm_file] {nodebug}] } {
- return -1
+ return
}
clean_restart
gdb_load_no_complaints $binfile
if {![runto_main]} {
- return -1
+ return
}
# "someothername" should be put into the partial symbol table, but
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp
index 3ef8589f7bad..0ff1865da710 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp
@@ -44,7 +44,7 @@ if { [prepare_for_testing_full "failed to prepare" \
$srcfile [concat $flags {nodebug}] \
$srcfile2 {nodebug} \
$srcfile3 {debug}]] == -1 } {
- return -1
+ return
}
# First try referencing DW_AT_frame_base which is not defined.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp b/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp
index 10a801b2b631..b9a8cbbdb311 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp
@@ -23,12 +23,12 @@ require is_x86_64_m64_target
standard_testfile .S
if { [prepare_for_testing "failed to prepare" $testfile $srcfile {nodebug nopie}] } {
- return -1
+ return
}
if {![runto stop_frame]} {
perror "Failed to stop in stop_frame"
- return -1
+ return
}
gdb_test "bt" "#0 (${::hex} in )?stop_frame \[^\r\n\]*\r\n#1 \[^\r\n\]*first_frame \[^\r\n\]*\r\n#2 \[^\r\n\]*main\[^\r\n\]*" \
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-regno-invalid.exp b/gdb/testsuite/gdb.dwarf2/dw2-regno-invalid.exp
index 29693c0c0376..c4aac0b4818b 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-regno-invalid.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-regno-invalid.exp
@@ -56,7 +56,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-restore.exp b/gdb/testsuite/gdb.dwarf2/dw2-restore.exp
index 98d80e7d6376..0e3a33c6e6f4 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-restore.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-restore.exp
@@ -28,7 +28,7 @@ if { [test_compiler_info clang*] } {
if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile] \
$opts]} {
- return -1
+ return
}
if {![runto foo]} {
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp b/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp
index 15b53dc1a1d1..be138b896938 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-restrict.exp
@@ -25,7 +25,7 @@ standard_testfile .S
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{nodebug nopie}]} {
- return -1
+ return
}
gdb_test "ptype f" "int \\(char \\\* restrict\\)"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
index a2864b1b0ce0..541e087c23f2 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp
@@ -20,7 +20,7 @@ require dwarf2_support
standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp b/gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp
index c7ffd9224e9d..6812d5b06b8f 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-single-line-discriminators.exp
@@ -28,7 +28,7 @@ standard_testfile .S
set csrcfile ${testfile}.c
if { [prepare_for_testing "failed to prepare" "${testfile}" $srcfile {nodebug nopie}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.exp b/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.exp
index 582c343ad832..276793325d6d 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-skip-prologue.exp
@@ -47,7 +47,7 @@ if { [build_executable ${testfile}.exp ${executable} \
"${testfile}.c ${testfile}.S" \
[list additional_flags=-DINLINED \
additional_flags=-DPTRBITS=$ptrbits]] == -1 } {
- return -1
+ return
}
# We need those symbols global to access them from the .S file.
@@ -68,7 +68,7 @@ pass $test
clean_restart $executable
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "func"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp b/gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp
index 2ab89b132f39..d3bafd4abf16 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-skipped-line-entries.exp
@@ -152,11 +152,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
# Check the END markers using 'maint info line-table'.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp
index d76dea6f0805..a3bde43c62be 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp
@@ -20,7 +20,7 @@ require dwarf2_support
standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp b/gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp
index 76ca8ddc7f17..9ab8e1c953a9 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-step-between-different-inline-functions.exp
@@ -180,11 +180,11 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" "${::testfile}" \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint bar
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp b/gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp
index 506057df7322..33697ae9e4a3 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-step-between-inline-func-blocks.exp
@@ -163,11 +163,11 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" "${::testfile}" \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint bar
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-step-out-of-function-no-stmt.exp b/gdb/testsuite/gdb.dwarf2/dw2-step-out-of-function-no-stmt.exp
index c381229397be..285cd00bfc53 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-step-out-of-function-no-stmt.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-step-out-of-function-no-stmt.exp
@@ -99,11 +99,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Step into bar.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-strp.exp b/gdb/testsuite/gdb.dwarf2/dw2-strp.exp
index 6f3a867aaf60..7dbc94f57ca6 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-strp.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-strp.exp
@@ -24,7 +24,7 @@ standard_testfile .S
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
gdb_test "p a_string" " = \"hello world!\\\\n\""
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-symtab-includes-lookup.exp b/gdb/testsuite/gdb.dwarf2/dw2-symtab-includes-lookup.exp
index 9b1ccea00f66..0b2d7f64f754 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-symtab-includes-lookup.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-symtab-includes-lookup.exp
@@ -91,7 +91,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" $testfile \
"${asm_file} ${srcfile}" {}] } {
- return -1
+ return
}
# Check that no symtabs are expanded.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-symtab-includes.exp b/gdb/testsuite/gdb.dwarf2/dw2-symtab-includes.exp
index 7a1e4fb35b21..7c7c2a20432c 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-symtab-includes.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-symtab-includes.exp
@@ -63,14 +63,14 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" $testfile \
"${asm_file} ${srcfile}" {}] } {
- return -1
+ return
}
# Check that no symtabs are expanded.
set test "no symtabs expanded"
if { [readnow] } {
unsupported $test
- return -1
+ return
}
gdb_test_no_output "maint info symtabs" $test
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-tu-dwarf-4-5.exp b/gdb/testsuite/gdb.dwarf2/dw2-tu-dwarf-4-5.exp
index 7493b2cbc554..359c8e128339 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-tu-dwarf-4-5.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-tu-dwarf-4-5.exp
@@ -43,7 +43,7 @@ if { [prepare_for_testing_full "failed to prepare" \
[list $testfile $lopts \
$srcfile $opts \
$srcfile2 $opts2]] } {
- return -1
+ return
}
gdb_test_no_output \
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp b/gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp
index 88765d4f513a..8dac3949c5f6 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-undefined-ret-addr.exp
@@ -23,11 +23,11 @@ require dwarf2_support
require is_x86_64_m64_target
if {[prepare_for_testing "failed to prepare" "$testfile" $srcfile {nodebug nopie}]} {
- return -1
+ return
}
if {![runto "stop_frame"]} {
- return -1
+ return
}
# If test is compiled with clang, GDB would display absolute path.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp b/gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp
index 06ce7a764785..1034ab5faf42 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-unresolved.exp
@@ -23,11 +23,11 @@ set additional_flags [gdb_target_symbol_prefix_flags_asm]
if { [prepare_for_testing "failed to prepare" "dw2-unresolved" \
{dw2-unresolved-main.c dw2-unresolved.S} \
[list nodebug $additional_flags]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# This testcase tests LOC_UNRESOLVED works right.
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type.exp b/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type.exp
index 7acfb714f3df..fe0974fd8f4f 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type.exp
@@ -93,11 +93,11 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" $testfile \
"${asm_file} ${srcfile} ${srcfile2}" {}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
foreach f {foo bar foo2} {
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp b/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp
index 43cdfccb1aef..b3bb1ed0f8c9 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp
@@ -42,7 +42,7 @@ set asm_file [standard_output_file $srcfile2]
# would do, but since we already have one specifically for this
# testcase, might as well use that.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
set int_size [get_sizeof "int" -1]
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-using-debug-str.exp b/gdb/testsuite/gdb.dwarf2/dw2-using-debug-str.exp
index 04ea209ddd7f..68d25f70375e 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-using-debug-str.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-using-debug-str.exp
@@ -25,7 +25,7 @@ require dwarf2_support
standard_testfile .c -dw.S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set asm_file [standard_output_file $srcfile2]
@@ -86,11 +86,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Print the type of global_var. This type information is entirely
@@ -122,7 +122,7 @@ set result [remote_exec host "[gdb_find_objcopy] $args"]
set status [lindex $result 0]
set output [lindex $result 1]
if { $status == 0 && ![string equal $output ""] } {
- return -1
+ return
}
# Now copy the executable, and remove the .debug_str section. This
@@ -133,7 +133,7 @@ set binfile_no_debug_str "${host_binfile}-no-debug-str"
set args "--remove-section .debug_str $host_binfile ${binfile_no_debug_str}"
if {[run_on_host "objcopy" [gdb_find_objcopy] "$args"]} {
perror "failed to run objcopy"
- return -1
+ return
}
# Restart GDB, but don't load an executable. When we do load the
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.exp b/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.exp
index bbe74955e44b..04a2aa06ea93 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-var-zero-addr.exp
@@ -21,7 +21,7 @@ standard_testfile .S main.c
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $srcfile2] {nodebug}]} {
- return -1
+ return
}
proc test { } {
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-vendor-extended-opcode.exp b/gdb/testsuite/gdb.dwarf2/dw2-vendor-extended-opcode.exp
index d12b68311071..f02d82c3f220 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-vendor-extended-opcode.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-vendor-extended-opcode.exp
@@ -64,11 +64,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "$srcfile:27" message
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-weird-type-len.exp b/gdb/testsuite/gdb.dwarf2/dw2-weird-type-len.exp
index acc5c115d8e4..5d31a05b06be 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-weird-type-len.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-weird-type-len.exp
@@ -88,11 +88,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# At one point this would trigger a divide by zero inside GDB. Now we
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-wrong-mangled-name.exp b/gdb/testsuite/gdb.dwarf2/dw2-wrong-mangled-name.exp
index 26e8ffaba75e..bec85887e03d 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-wrong-mangled-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-wrong-mangled-name.exp
@@ -54,11 +54,11 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "func_demangled_test"
diff --git a/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.exp b/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.exp
index 15a01b616f32..b02f71422c0a 100644
--- a/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.exp
@@ -21,7 +21,7 @@ standard_testfile .S
set executable ${testfile}
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp b/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp
index cf731e3d1108..bb0769050bcd 100644
--- a/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp
@@ -26,14 +26,14 @@ include_file dw4-sig-types.h
if { [prepare_for_testing "failed to prepare" "${testfile}" \
[list $srcfile $srcfile2] \
{debug c++ additional_flags=-gdwarf-4 additional_flags=-fdebug-types-section}] } {
- return -1
+ return
}
# Stress test gdb's handling of cached comp units, disable the cache.
gdb_test_no_output "maint set dwarf max-cache-age 0"
if {![runto_main]} {
- return -1
+ return
}
# Bring symtab for myset into gdb.
diff --git a/gdb/testsuite/gdb.dwarf2/dw4-toplevel-types.exp b/gdb/testsuite/gdb.dwarf2/dw4-toplevel-types.exp
index 8429af8574d5..0f9b8385bed6 100644
--- a/gdb/testsuite/gdb.dwarf2/dw4-toplevel-types.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw4-toplevel-types.exp
@@ -24,11 +24,11 @@ standard_testfile .cc
if { [prepare_for_testing "failed to prepare" "${testfile}" \
$srcfile {debug c++ additional_flags=-gdwarf-4 \
additional_flags=-fdebug-types-section}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "ptype X" "type = struct X {.*"
diff --git a/gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.exp b/gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.exp
index 9e47cdac5fc1..02f1777bdd58 100644
--- a/gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw5-rnglist-test.exp
@@ -25,11 +25,11 @@ standard_testfile .cc
if { [prepare_for_testing "failed to prepare" "${testfile}" \
$srcfile {debug c++ dwarf5 additional_flags=-O0}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.dwarf2/dwp-sepdebug.exp b/gdb/testsuite/gdb.dwarf2/dwp-sepdebug.exp
index 4ca793059ba3..ac4cb04b94fa 100644
--- a/gdb/testsuite/gdb.dwarf2/dwp-sepdebug.exp
+++ b/gdb/testsuite/gdb.dwarf2/dwp-sepdebug.exp
@@ -16,7 +16,7 @@
standard_testfile
if { [build_executable ${testfile}.exp ${testfile} ${srcfile}] == -1 } {
- return -1
+ return
}
if {![remote_file host exists [standard_output_file ${testfile}.dwp]]} {
unsupported "testsuite run does not produce dwp files"
@@ -32,7 +32,7 @@ if {![remote_file host exists [standard_output_file ${testfile}.dwp]]} {
if {[gdb_gnu_strip_debug $binfile$EXEEXT]} {
# check that you have a recent version of strip and objcopy installed
unsupported "cannot produce separate debug info files"
- return -1
+ return
}
clean_restart "$testfile"
diff --git a/gdb/testsuite/gdb.dwarf2/dwp-symlink.exp b/gdb/testsuite/gdb.dwarf2/dwp-symlink.exp
index fa1ed877d7e7..86c007317247 100644
--- a/gdb/testsuite/gdb.dwarf2/dwp-symlink.exp
+++ b/gdb/testsuite/gdb.dwarf2/dwp-symlink.exp
@@ -21,7 +21,7 @@ if {[remote_file host exists [standard_output_file ${testfile}.dwp]]} {
return 0
}
if { [build_executable ${testfile}.exp ${testfile} ${srcfile}] == -1 } {
- return -1
+ return
}
if {![remote_file host exists [standard_output_file ${testfile}.dwp]]} {
unsupported "testsuite run does not produce dwp files"
@@ -126,7 +126,7 @@ remote_exec host "ln -sf ${dwp_dwp_dir}/${dwp_real_dwp} ${dwp_symlink_dir}/${dwp
clean_restart "${dwp_symlink_dir}/${dwp_symlink_binary}"
if {![runto_main]} {
- return -1
+ return
}
gdb_test {print argv[0]} "/${dwp_symlink_binary}\"" \
diff --git a/gdb/testsuite/gdb.dwarf2/dwz-many.exp b/gdb/testsuite/gdb.dwarf2/dwz-many.exp
index 551dd070958d..f11fd54c5909 100644
--- a/gdb/testsuite/gdb.dwarf2/dwz-many.exp
+++ b/gdb/testsuite/gdb.dwarf2/dwz-many.exp
@@ -42,7 +42,7 @@ if {[prepare_for_testing_full "failed to prepare" \
$srcfile {nodebug} \
$asm_file {nodebug} \
$srcfile3 {debug}]]} {
- return -1
+ return
}
set linenr [gdb_get_line_number "return 0" $srcfile3]
diff --git a/gdb/testsuite/gdb.dwarf2/dwz-unused-pu.exp b/gdb/testsuite/gdb.dwarf2/dwz-unused-pu.exp
index 4d074fb7464f..db497636d64a 100644
--- a/gdb/testsuite/gdb.dwarf2/dwz-unused-pu.exp
+++ b/gdb/testsuite/gdb.dwarf2/dwz-unused-pu.exp
@@ -56,7 +56,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" $testfile \
[list $asm_file $srcfile] {nodebug}] } {
- return -1
+ return
}
set cmd "p the_int"
diff --git a/gdb/testsuite/gdb.dwarf2/dwz.exp b/gdb/testsuite/gdb.dwarf2/dwz.exp
index c907a64f53f8..96dab6cf9309 100644
--- a/gdb/testsuite/gdb.dwarf2/dwz.exp
+++ b/gdb/testsuite/gdb.dwarf2/dwz.exp
@@ -81,11 +81,11 @@ Dwarf::assemble $asm_file {
}
if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" {}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "p other_int" " = 99"
diff --git a/gdb/testsuite/gdb.dwarf2/dwznolink.exp b/gdb/testsuite/gdb.dwarf2/dwznolink.exp
index e6c6ce6005d4..898ae1637f50 100644
--- a/gdb/testsuite/gdb.dwarf2/dwznolink.exp
+++ b/gdb/testsuite/gdb.dwarf2/dwznolink.exp
@@ -46,7 +46,7 @@ Dwarf::assemble $asm_file {
# 'file' command's output.
if {[build_executable $testfile.exp $testfile \
[list $srcfile $asm_file] {nodebug quiet}]} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/dyn-type-unallocated.exp b/gdb/testsuite/gdb.dwarf2/dyn-type-unallocated.exp
index b4ebd7002fc0..75eb35ec9a57 100644
--- a/gdb/testsuite/gdb.dwarf2/dyn-type-unallocated.exp
+++ b/gdb/testsuite/gdb.dwarf2/dyn-type-unallocated.exp
@@ -43,7 +43,7 @@ lappend flags debug
lappend_include_file flags $srcdir/lib/attributes.h
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $flags] } {
- return -1
+ return
}
with_shared_gdb {
@@ -126,11 +126,11 @@ lappend_include_file flags $srcdir/lib/attributes.h
if { [prepare_for_testing "failed to prepare" "${testfile}" \
[list $srcfile $asm_file] $flags] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "marker_label"
diff --git a/gdb/testsuite/gdb.dwarf2/dynamic-bit-offset.exp b/gdb/testsuite/gdb.dwarf2/dynamic-bit-offset.exp
index c87358ae947f..33ad0de8691f 100644
--- a/gdb/testsuite/gdb.dwarf2/dynamic-bit-offset.exp
+++ b/gdb/testsuite/gdb.dwarf2/dynamic-bit-offset.exp
@@ -88,7 +88,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/dynarr-ptr.exp b/gdb/testsuite/gdb.dwarf2/dynarr-ptr.exp
index b7266db2affd..1f759c31dedb 100644
--- a/gdb/testsuite/gdb.dwarf2/dynarr-ptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/dynarr-ptr.exp
@@ -27,7 +27,7 @@ standard_testfile .c -dw.S
# specifically for this testcase, might as well use that.
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# Make some DWARF for the test.
@@ -121,11 +121,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set language ada"
diff --git a/gdb/testsuite/gdb.dwarf2/enqueued-cu-base-addr.exp b/gdb/testsuite/gdb.dwarf2/enqueued-cu-base-addr.exp
index 6cffbd377933..31eb5f6a8396 100644
--- a/gdb/testsuite/gdb.dwarf2/enqueued-cu-base-addr.exp
+++ b/gdb/testsuite/gdb.dwarf2/enqueued-cu-base-addr.exp
@@ -72,7 +72,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# Expand cu1. This will enqueue cu2.
diff --git a/gdb/testsuite/gdb.dwarf2/enum-type-c++.exp b/gdb/testsuite/gdb.dwarf2/enum-type-c++.exp
index 392632545621..827fe67bc08b 100644
--- a/gdb/testsuite/gdb.dwarf2/enum-type-c++.exp
+++ b/gdb/testsuite/gdb.dwarf2/enum-type-c++.exp
@@ -24,7 +24,7 @@ standard_testfile main.c .cc
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] {debug c++}] } {
- return -1
+ return
}
require {string equal [have_index $binfile] ""}
diff --git a/gdb/testsuite/gdb.dwarf2/enum-type.exp b/gdb/testsuite/gdb.dwarf2/enum-type.exp
index 7a37608670ec..5af889a35441 100644
--- a/gdb/testsuite/gdb.dwarf2/enum-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/enum-type.exp
@@ -104,7 +104,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "print sizeof(enum E)" " = 4"
diff --git a/gdb/testsuite/gdb.dwarf2/fission-absolute-dwo.exp b/gdb/testsuite/gdb.dwarf2/fission-absolute-dwo.exp
index 4b87c48ad4a3..e173e728a109 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-absolute-dwo.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-absolute-dwo.exp
@@ -110,14 +110,14 @@ set object_file [standard_output_file ${testfile}.o]
if { [build_executable_and_dwo_files "${testfile}.exp" ${binfile} {nodebug} \
[list $asm_file {nodebug split-dwo} ${object_file}] \
[list $srcfile {nodebug}]] } {
- return -1
+ return
}
# Now we can start GDB.
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
# Print the type of global_var. This type information is entirely
diff --git a/gdb/testsuite/gdb.dwarf2/fission-base.exp b/gdb/testsuite/gdb.dwarf2/fission-base.exp
index d1abf6c9eb7b..28507eac9ba1 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-base.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-base.exp
@@ -32,13 +32,13 @@ if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" {nodebug} \
[list $srcfile \
[list nodebug split-dwo additional_flags=-DDWO=\"$dwo\"] \
$obj]]} {
- return -1
+ return
}
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
# Do a few basic things to verify we're finding the DWO debug info.
diff --git a/gdb/testsuite/gdb.dwarf2/fission-loclists-pie.exp b/gdb/testsuite/gdb.dwarf2/fission-loclists-pie.exp
index 30e7d3913332..04072731754c 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-loclists-pie.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-loclists-pie.exp
@@ -38,13 +38,13 @@ if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" \
[list $srcfile \
[list nodebug split-dwo additional_flags=-DDWO=\"$dwo\"] \
$obj]]} {
- return -1
+ return
}
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
# Verify gdb can find argc.
diff --git a/gdb/testsuite/gdb.dwarf2/fission-loclists.exp b/gdb/testsuite/gdb.dwarf2/fission-loclists.exp
index f081ea007734..6747192b1644 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-loclists.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-loclists.exp
@@ -32,13 +32,13 @@ if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" {nodebug} \
[list $srcfile \
[list nodebug split-dwo additional_flags=-DDWO=\"$dwo\"] \
$obj]]} {
- return -1
+ return
}
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
# Verify gdb can find argc.
diff --git a/gdb/testsuite/gdb.dwarf2/fission-mix.exp b/gdb/testsuite/gdb.dwarf2/fission-mix.exp
index 7a4cfe5b22cc..be7916c558a9 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-mix.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-mix.exp
@@ -26,13 +26,13 @@ set objfile2 [standard_output_file ${testfile}2.o]
# Compile fission-mix.c without Fission and fission-mix-2.c with Fission.
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} $objfile object {debug}] != "" } {
- return -1
+ return
}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile2} $objfile2 object {debug additional_flags=-gsplit-dwarf}] != "" } {
- return -1
+ return
}
if {[gdb_compile "$objfile $objfile2" $binfile executable {debug}] != "" } {
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.dwarf2/fission-multi-cu.exp b/gdb/testsuite/gdb.dwarf2/fission-multi-cu.exp
index f40e2f059465..0621069174bc 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-multi-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-multi-cu.exp
@@ -200,13 +200,13 @@ if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" {nodebug} \
[list $asm_file_1 [list nodebug split-dwo] $obj1] \
[list $asm_file_2 [list nodebug split-dwo] $obj2] \
[list $srcfile [list nodebug]]]} {
- return -1
+ return
}
clean_restart $::testfile
if {![runto_main]} {
- return -1
+ return
}
# Do a few basic things to verify we're finding the DWO debug info.
diff --git a/gdb/testsuite/gdb.dwarf2/fission-relative-dwo.exp b/gdb/testsuite/gdb.dwarf2/fission-relative-dwo.exp
index e246fac17b4c..6fe3e0b216b3 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-relative-dwo.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-relative-dwo.exp
@@ -107,14 +107,14 @@ set object_file [standard_output_file ${testfile}.o]
if { [build_executable_and_dwo_files "${testfile}.exp" ${testfile} {nodebug} \
[list $asm_file {nodebug split-dwo} ${object_file}] \
[list $srcfile {nodebug}]] } {
- return -1
+ return
}
# Now we can start GDB.
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
# Print the type of global_var. This type information is entirely
diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.exp b/gdb/testsuite/gdb.dwarf2/fission-reread.exp
index b7e6cf2de65c..7fa70bcafe92 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-reread.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-reread.exp
@@ -40,7 +40,7 @@ lappend dwo_options additional_flags=-DDWO=\"$dwo\"
if {[build_executable_and_dwo_files "$testfile.exp" "${binfile}" $options \
[list $srcfile $dwo_options $obj]]} {
- return -1
+ return
}
# Load FILENAME, perform some basic tests to confirm that the debug
diff --git a/gdb/testsuite/gdb.dwarf2/fission-type-unit-locexpr.exp b/gdb/testsuite/gdb.dwarf2/fission-type-unit-locexpr.exp
index 5d94473c5ad6..47fc2fbd1dee 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-type-unit-locexpr.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-type-unit-locexpr.exp
@@ -147,7 +147,7 @@ set object_file [standard_output_file ${testfile}.o]
if { [build_executable_and_dwo_files "${testfile}.exp" ${binfile} {nodebug} \
[list $asm_file {nodebug split-dwo} ${object_file}] \
[list $srcfile {nodebug}]] } {
- return -1
+ return
}
proc run_test { testfile } {
diff --git a/gdb/testsuite/gdb.dwarf2/formdata16.exp b/gdb/testsuite/gdb.dwarf2/formdata16.exp
index 8169fa5e2c6b..ee35fdf0f058 100644
--- a/gdb/testsuite/gdb.dwarf2/formdata16.exp
+++ b/gdb/testsuite/gdb.dwarf2/formdata16.exp
@@ -23,7 +23,7 @@ standard_testfile main.c -dw.S
# We need to know the endianess in order
# to write some of the debugging info we'd like to generate.
if {[prepare_for_testing "failed to prepare for endianness test" ${testfile} ${srcfile}]} {
- return -1
+ return
}
set endianness [get_endianness]
@@ -84,7 +84,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "p/x xxx" " = 0x123456789abcdef00fedcba987654321"
diff --git a/gdb/testsuite/gdb.dwarf2/fortran-var-string.exp b/gdb/testsuite/gdb.dwarf2/fortran-var-string.exp
index b96740384fd9..925872bc2c89 100644
--- a/gdb/testsuite/gdb.dwarf2/fortran-var-string.exp
+++ b/gdb/testsuite/gdb.dwarf2/fortran-var-string.exp
@@ -27,7 +27,7 @@ standard_testfile .c -dw.S
# specifically for this testcase, might as well use that.
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# Make some DWARF for the test.
@@ -138,11 +138,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set language fortran"
diff --git a/gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp b/gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp
index ebcf375c5413..eb1d8a2df58f 100644
--- a/gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp
+++ b/gdb/testsuite/gdb.dwarf2/forward-spec-inter-cu.exp
@@ -75,7 +75,7 @@ Dwarf::assemble $asm_file {
if {[build_executable "failed to build executable" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
set eol "\r\n"
diff --git a/gdb/testsuite/gdb.dwarf2/forward-spec.exp b/gdb/testsuite/gdb.dwarf2/forward-spec.exp
index af55d7e2eb77..fd7d008adb34 100644
--- a/gdb/testsuite/gdb.dwarf2/forward-spec.exp
+++ b/gdb/testsuite/gdb.dwarf2/forward-spec.exp
@@ -71,7 +71,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
require {string equal [have_index $binfile] ""}
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp b/gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp
index 6245fbe66bd6..6d3bf29c1b10 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp
@@ -39,7 +39,7 @@ with_test_prefix non-symlink {
# Regenerate exec without index.
if { [prepare_for_testing "failed to prepare" "${testfile}" \
[list ${srcfile}]] } {
- return -1
+ return
}
set symlink [file dirname $binfile]/symlink
@@ -50,7 +50,7 @@ if { ![file exists $symlink] } {
if { [ensure_gdb_index $symlink] == -1 } {
fail "Unable to call gdb-add-index with a symlink to a symfile"
- return -1
+ return
}
# Ok, we have a copy of $binfile with an index.
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-add-index.exp b/gdb/testsuite/gdb.dwarf2/gdb-add-index.exp
index faf1aa7c5a02..4d91987bbb83 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-add-index.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-add-index.exp
@@ -22,12 +22,12 @@ standard_testfile main.c
if { [prepare_for_testing "failed to prepare" "${testfile}" \
[list ${srcfile}]] } {
- return -1
+ return
}
if { [ensure_gdb_index $binfile] == -1 } {
untested "error adding gdb index"
- return -1
+ return
}
# Ok, we have a copy of $binfile with an index.
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp b/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp
index c964988bc88d..351abc225d75 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index-cxx.exp
@@ -24,7 +24,7 @@ lappend opts additional_flags=-std=c++11
if {[prepare_for_testing "failed to prepare" "${testfile}" \
[list ${srcfile}] $opts]} {
- return -1
+ return
}
# The bug was that gdb would crash when saving.
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp b/gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp
index f0d37362bacf..50f08b59e281 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index-nodebug.exp
@@ -19,7 +19,7 @@ standard_testfile main.c
if {[prepare_for_testing "failed to prepare" "${testfile}" \
[list ${srcfile}] {nodebug}]} {
- return -1
+ return
}
set have_index [have_index $binfile]
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index-tilde.exp b/gdb/testsuite/gdb.dwarf2/gdb-index-tilde.exp
index e22fc606ca6f..0930e1010432 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-index-tilde.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index-tilde.exp
@@ -35,7 +35,7 @@ set home $::env(HOME)
# that's fine, but we can't test tilde expansion in this case.
if { [string compare -length [string length $home] $full_dir $home] != 0 } {
unsupported "test not run within home directory"
- return -1
+ return
}
# Convert the $HOME prefix in to ~.
@@ -43,7 +43,7 @@ set dir "~[string range $full_dir [string length $home] end]"
# Build the test executable.
if { [prepare_for_testing "failed to prepare" "${testfile}" ${srcfile}] } {
- return -1
+ return
}
# Start GDB and load in the executable.
@@ -73,12 +73,12 @@ gdb_test_multiple "maint print objfile $binfile" "check we can generate an index
if { $has_index } {
unsupported "already have an index"
- return -1
+ return
}
if { !$can_dump_index } {
unsupported "lacks debug information needed to dump index"
- return -1
+ return
}
# Generate an index file.
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp b/gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp
index 94fc0ade3f18..cf1eff88bffe 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index-types-dwarf5.exp
@@ -25,12 +25,12 @@ lappend flags {dwarf5}
if { [prepare_for_testing "failed to prepare" ${testfile} \
$srcfile $flags] } {
- return -1
+ return
}
if { [ensure_gdb_index $binfile] != 1 } {
untested "error adding gdb index"
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index.exp b/gdb/testsuite/gdb.dwarf2/gdb-index.exp
index 91e7ef5a5e14..456d7266c599 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-index.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index.exp
@@ -25,7 +25,7 @@ standard_testfile main.c
if { [prepare_for_testing "failed to prepare" "${testfile}" \
[list ${srcfile}]] } {
- return -1
+ return
}
# Add a .gdb_index section to PROGRAM.
@@ -141,11 +141,11 @@ gdb_test "mt print objfiles ${testfile}" \
# First make sure enough time has passed, file mtime resolution is seconds.
gdb_test_no_output "shell sleep 1"
if {[run_on_host "touch binary" touch $host_binfile_with_index]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "mt print objfiles ${testfile}" \
"(gdb_index|debug_names).*" \
diff --git a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
index 09fefaed496d..ac4f0491198d 100644
--- a/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/implptr-optimized-out.exp
@@ -77,12 +77,12 @@ Dwarf::assemble $asm_file {
}
if {[prepare_for_testing "failed to prepare" $executable "${asm_file} ${srcfile}" {}]} {
- return -1
+ return
}
# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
if {![runto_main]} {
- return -1
+ return
}
gdb_test "p p->f" " = <optimized out>"
diff --git a/gdb/testsuite/gdb.dwarf2/implptr.exp b/gdb/testsuite/gdb.dwarf2/implptr.exp
index 495c0de0297a..d30951c083de 100644
--- a/gdb/testsuite/gdb.dwarf2/implptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/implptr.exp
@@ -35,14 +35,14 @@ if {[info exists COMPILE]} {
}
if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {
- return -1
+ return
}
# Additional test to verify the referenced CU is not aged out.
gdb_test_no_output "maintenance set dwarf max-cache-age 0"
if {![runto_main]} {
- return -1
+ return
}
# Test various pointer depths in bar.
diff --git a/gdb/testsuite/gdb.dwarf2/implptrconst.exp b/gdb/testsuite/gdb.dwarf2/implptrconst.exp
index 7e1daf02d73c..49684e3ec0cb 100644
--- a/gdb/testsuite/gdb.dwarf2/implptrconst.exp
+++ b/gdb/testsuite/gdb.dwarf2/implptrconst.exp
@@ -85,11 +85,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print *c" " = 114 'r'"
diff --git a/gdb/testsuite/gdb.dwarf2/implptrpiece.exp b/gdb/testsuite/gdb.dwarf2/implptrpiece.exp
index d262f78485f6..9211cf6d24a0 100644
--- a/gdb/testsuite/gdb.dwarf2/implptrpiece.exp
+++ b/gdb/testsuite/gdb.dwarf2/implptrpiece.exp
@@ -103,11 +103,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Determine byte order.
diff --git a/gdb/testsuite/gdb.dwarf2/implref-array.exp b/gdb/testsuite/gdb.dwarf2/implref-array.exp
index a3f5b98768dc..dfa676de6933 100644
--- a/gdb/testsuite/gdb.dwarf2/implref-array.exp
+++ b/gdb/testsuite/gdb.dwarf2/implref-array.exp
@@ -37,7 +37,7 @@ set asm_file [standard_output_file ${srcfile2}]
# Any program would do, but since we already have implref-array
# specifically for this testcase, might as well use that.
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set array_length [get_valueof "/u" "sizeof(array) / sizeof(array\[0\])" -1]
@@ -114,12 +114,12 @@ Dwarf::assemble ${asm_file} {
}
if {[prepare_for_testing "failed to prepare" ${executable} [list ${asm_file} ${srcfile}] {}]} {
- return -1
+ return
}
# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
if {![runto_main]} {
- return -1
+ return
}
# This matches e.g. '(int (&)[5])'
diff --git a/gdb/testsuite/gdb.dwarf2/implref-const.exp b/gdb/testsuite/gdb.dwarf2/implref-const.exp
index 9c30633af036..0d79e05f8ef0 100644
--- a/gdb/testsuite/gdb.dwarf2/implref-const.exp
+++ b/gdb/testsuite/gdb.dwarf2/implref-const.exp
@@ -37,7 +37,7 @@ set asm_file [standard_output_file ${srcfile2}]
# Any program would do, but since we already have implref-const
# specifically for this testcase, might as well use that.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Create the DWARF. We need a regular variable and a reference to it that'll
@@ -93,12 +93,12 @@ Dwarf::assemble ${asm_file} {
}
if {[prepare_for_testing "failed to prepare" ${executable} [list ${asm_file} ${srcfile}] {}]} {
- return -1
+ return
}
# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
if {![runto_main]} {
- return -1
+ return
}
# Doing 'print ref' should show us e.g. '(int &) <synthetic pointer>: 42'.
diff --git a/gdb/testsuite/gdb.dwarf2/implref-global.exp b/gdb/testsuite/gdb.dwarf2/implref-global.exp
index d861c76ec3fc..4c2466756e3c 100644
--- a/gdb/testsuite/gdb.dwarf2/implref-global.exp
+++ b/gdb/testsuite/gdb.dwarf2/implref-global.exp
@@ -37,7 +37,7 @@ set asm_file [standard_output_file ${srcfile2}]
# Any program would do, but since we already have implref-global
# specifically for this testcase, might as well use that.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Create the DWARF. We need a regular variable and a reference to it that'll
@@ -93,12 +93,12 @@ Dwarf::assemble ${asm_file} {
}
if {[prepare_for_testing "failed to prepare" ${executable} [list ${asm_file} ${srcfile}] {}]} {
- return -1
+ return
}
# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
if {![runto_main]} {
- return -1
+ return
}
# Address of the referenced value.
diff --git a/gdb/testsuite/gdb.dwarf2/implref-struct.exp b/gdb/testsuite/gdb.dwarf2/implref-struct.exp
index ce2dea7db3a4..d62f426ed736 100644
--- a/gdb/testsuite/gdb.dwarf2/implref-struct.exp
+++ b/gdb/testsuite/gdb.dwarf2/implref-struct.exp
@@ -37,7 +37,7 @@ set asm_file [standard_output_file ${srcfile2}]
# Any program would do, but since we already have implref-struct
# specifically for this testcase, might as well use that.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}]} {
- return -1
+ return
}
# Create the DWARF. We need a regular variable for the struct and a reference
@@ -130,12 +130,12 @@ Dwarf::assemble ${asm_file} {
}
if {[prepare_for_testing "failed to prepare" ${executable} [list ${asm_file} ${srcfile}] {}]} {
- return -1
+ return
}
# DW_OP_GNU_implicit_pointer implementation requires a valid frame.
if {![runto_main]} {
- return -1
+ return
}
# Returns the struct members, e.g. '{a = 0, b = 1, c = 2}'.
diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit-abstract-const-value.exp b/gdb/testsuite/gdb.dwarf2/imported-unit-abstract-const-value.exp
index 115cb63db9ff..1bd00fc97139 100644
--- a/gdb/testsuite/gdb.dwarf2/imported-unit-abstract-const-value.exp
+++ b/gdb/testsuite/gdb.dwarf2/imported-unit-abstract-const-value.exp
@@ -29,7 +29,7 @@ set asm_file [standard_output_file ${srcfile2}]
# We need to know the size of integer type in order
# to write some of the debugging info we'd like to generate.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Create the DWARF.
@@ -81,7 +81,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "p aaa" "= 1"
diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl b/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
index 0bd1e0d2f91b..f9cc72c71725 100644
--- a/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
+++ b/gdb/testsuite/gdb.dwarf2/imported-unit-bp.exp.tcl
@@ -114,7 +114,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file $srcfile3] $build_options] } {
- return -1
+ return
}
gdb_reinitialize_dir /tmp
diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit-c.exp b/gdb/testsuite/gdb.dwarf2/imported-unit-c.exp
index 1210fff84712..82f4baf5bdcb 100644
--- a/gdb/testsuite/gdb.dwarf2/imported-unit-c.exp
+++ b/gdb/testsuite/gdb.dwarf2/imported-unit-c.exp
@@ -12,7 +12,7 @@ set asm_file [standard_output_file ${srcfile2}]
# We need to know the size of integer and address types in order
# to write some of the debugging info we'd like to generate.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug}]} {
- return -1
+ return
}
# Create the DWARF.
@@ -134,7 +134,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# If Python testing is enabled then try printing the global and static
@@ -153,7 +153,7 @@ proc test_python_block_printing { func } {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "ptype inty" "type = int" "ptype in main"
diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp b/gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp
index 26366d73e3bf..51f26dd6d41d 100644
--- a/gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp
+++ b/gdb/testsuite/gdb.dwarf2/imported-unit-runto-main.exp
@@ -26,7 +26,7 @@ set asm_file [standard_output_file ${srcfile2}]
# We need to know the size of integer types in order to write some of the
# debugging info we'd like to generate.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Create the DWARF.
@@ -69,12 +69,12 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if { [ensure_gdb_index $binfile] == -1 } {
untested "error adding gdb index"
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.dwarf2/imported-unit.exp b/gdb/testsuite/gdb.dwarf2/imported-unit.exp
index 1be9f30a7d99..bd8694a872d6 100644
--- a/gdb/testsuite/gdb.dwarf2/imported-unit.exp
+++ b/gdb/testsuite/gdb.dwarf2/imported-unit.exp
@@ -38,7 +38,7 @@ set asm_file [standard_output_file ${srcfile2}]
# We need to know the size of integer and address types in order
# to write some of the debugging info we'd like to generate.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}]} {
- return -1
+ return
}
# Create the DWARF.
@@ -125,7 +125,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test_no_output "set language c++"
diff --git a/gdb/testsuite/gdb.dwarf2/info-locals-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/info-locals-optimized-out.exp
index 4f783d9bca0d..8932cbf51099 100644
--- a/gdb/testsuite/gdb.dwarf2/info-locals-optimized-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/info-locals-optimized-out.exp
@@ -65,11 +65,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set lines [gdb_get_lines "info locals"]
diff --git a/gdb/testsuite/gdb.dwarf2/inline.exp b/gdb/testsuite/gdb.dwarf2/inline.exp
index 11109f297ccf..138d471acfb4 100644
--- a/gdb/testsuite/gdb.dwarf2/inline.exp
+++ b/gdb/testsuite/gdb.dwarf2/inline.exp
@@ -17,7 +17,7 @@ standard_testfile .c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug nowarnings}]} {
- return -1
+ return
}
set cmd "ptype main"
diff --git a/gdb/testsuite/gdb.dwarf2/inlined_subroutine-inheritance.exp b/gdb/testsuite/gdb.dwarf2/inlined_subroutine-inheritance.exp
index 6a982acbdf6e..607e72bdf83a 100644
--- a/gdb/testsuite/gdb.dwarf2/inlined_subroutine-inheritance.exp
+++ b/gdb/testsuite/gdb.dwarf2/inlined_subroutine-inheritance.exp
@@ -202,7 +202,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" $testfile \
"${asm_file} ${srcfile}" {}]} {
- return -1
+ return
}
# All we need to do is set a breakpoint, which causes the DWARF
diff --git a/gdb/testsuite/gdb.dwarf2/intbits.exp b/gdb/testsuite/gdb.dwarf2/intbits.exp
index 2cf96e63eaa4..46e45aeb861e 100644
--- a/gdb/testsuite/gdb.dwarf2/intbits.exp
+++ b/gdb/testsuite/gdb.dwarf2/intbits.exp
@@ -26,7 +26,7 @@ set executable ${testfile}
set asm_file [standard_output_file ${srcfile2}]
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Create the DWARF.
@@ -196,11 +196,11 @@ Dwarf::assemble ${asm_file} {
if {[prepare_for_testing "failed to prepare" ${executable} \
[list ${asm_file} ${srcfile}] {}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print v_i16_m1" "= -1"
diff --git a/gdb/testsuite/gdb.dwarf2/local-var.exp b/gdb/testsuite/gdb.dwarf2/local-var.exp
index 77561a06d5a5..b3401a002531 100644
--- a/gdb/testsuite/gdb.dwarf2/local-var.exp
+++ b/gdb/testsuite/gdb.dwarf2/local-var.exp
@@ -18,7 +18,7 @@
standard_testfile .f90
if { [prepare_for_testing "failed to prepare" ${testfile} $srcfile {debug f90}] } {
- return -1
+ return
}
# Regression test for PR32276.
diff --git a/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp b/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp
index 4305026089bf..9c0c5a700c2f 100644
--- a/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp
+++ b/gdb/testsuite/gdb.dwarf2/locexpr-data-member-location.exp
@@ -91,7 +91,7 @@ if {[gdb_compile_shlib $libsrc $lib_so \
set exec_options [list debug shlib=$lib_so]
if {[prepare_for_testing "failed to prepare" ${testfile} \
${::srcfile} $exec_options]} {
- return -1
+ return
}
### First GDB session.
diff --git a/gdb/testsuite/gdb.dwarf2/mac-fileno.exp b/gdb/testsuite/gdb.dwarf2/mac-fileno.exp
index eae6600213ec..0e9a4988059d 100644
--- a/gdb/testsuite/gdb.dwarf2/mac-fileno.exp
+++ b/gdb/testsuite/gdb.dwarf2/mac-fileno.exp
@@ -25,7 +25,7 @@ set dwarf_srcfile "file1.txt"
if {[prepare_for_testing_full "failed to prepare" \
[list $testfile debug main.c debug $srcfile nodebug]]} {
- return -1
+ return
}
gdb_remote_download host ${srcdir}/${subdir}/${dwarf_srcfile}
diff --git a/gdb/testsuite/gdb.dwarf2/main-subprogram.exp b/gdb/testsuite/gdb.dwarf2/main-subprogram.exp
index cb01fca6bdf5..bb2219412d6c 100644
--- a/gdb/testsuite/gdb.dwarf2/main-subprogram.exp
+++ b/gdb/testsuite/gdb.dwarf2/main-subprogram.exp
@@ -55,7 +55,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
set have_index [exec_has_index_section $binfile]
@@ -66,7 +66,7 @@ set have_index [exec_has_index_section $binfile]
if {[gdb_start_cmd] < 0} {
fail "could not start ${testfile}"
- return -1
+ return
}
gdb_test_multiple "" "stopped at mymain" {
--git a/gdb/testsuite/gdb.dwarf2/malformed-line-header.exp b/gdb/testsuite/gdb.dwarf2/malformed-line-header.exp
index 04494dc3889b..8b549b2d4471 100644
--- a/gdb/testsuite/gdb.dwarf2/malformed-line-header.exp
+++ b/gdb/testsuite/gdb.dwarf2/malformed-line-header.exp
@@ -48,7 +48,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "info line 1" \
diff --git a/gdb/testsuite/gdb.dwarf2/mega-enum.exp b/gdb/testsuite/gdb.dwarf2/mega-enum.exp
index 3d01db7b6907..d550a2b464a4 100644
--- a/gdb/testsuite/gdb.dwarf2/mega-enum.exp
+++ b/gdb/testsuite/gdb.dwarf2/mega-enum.exp
@@ -59,7 +59,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
# The largest known Fermat prime.
diff --git a/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp b/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp
index eae8723563a2..b08e6c39825d 100644
--- a/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp
+++ b/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp
@@ -23,7 +23,7 @@ standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" ${binfile} object {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/method-ptr.exp b/gdb/testsuite/gdb.dwarf2/method-ptr.exp
index 459302a7994c..42cb93330a55 100644
--- a/gdb/testsuite/gdb.dwarf2/method-ptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/method-ptr.exp
@@ -79,7 +79,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug c++}] } {
- return -1
+ return
}
gdb_test_no_output "set language c++"
diff --git a/gdb/testsuite/gdb.dwarf2/missing-line-table.exp b/gdb/testsuite/gdb.dwarf2/missing-line-table.exp
index 9f32a3663458..40e527b48448 100644
--- a/gdb/testsuite/gdb.dwarf2/missing-line-table.exp
+++ b/gdb/testsuite/gdb.dwarf2/missing-line-table.exp
@@ -80,7 +80,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# Place a breakpoint on FUNC. Check that the address at which the
diff --git a/gdb/testsuite/gdb.dwarf2/missing-sig-type.exp b/gdb/testsuite/gdb.dwarf2/missing-sig-type.exp
index f69ecbb71da4..aa47a704cc32 100644
--- a/gdb/testsuite/gdb.dwarf2/missing-sig-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/missing-sig-type.exp
@@ -49,7 +49,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "ptype foo" "type = <unknown type .*>"
diff --git a/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp b/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp
index 12852a4b33b8..bf9e9258c0a2 100644
--- a/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp
+++ b/gdb/testsuite/gdb.dwarf2/missing-type-name-for-templates.exp
@@ -154,11 +154,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] $nodebug_flags] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "ptype var1" [multi_line \
diff --git a/gdb/testsuite/gdb.dwarf2/missing-type-name.exp b/gdb/testsuite/gdb.dwarf2/missing-type-name.exp
index 770dff4d7f2a..530e0c79b0f3 100644
--- a/gdb/testsuite/gdb.dwarf2/missing-type-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/missing-type-name.exp
@@ -97,11 +97,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Use 'ptype' on two variables that are using DW_TAG_base_type types
diff --git a/gdb/testsuite/gdb.dwarf2/multidictionary.exp b/gdb/testsuite/gdb.dwarf2/multidictionary.exp
index 52975d08a5ce..525967dbd897 100644
--- a/gdb/testsuite/gdb.dwarf2/multidictionary.exp
+++ b/gdb/testsuite/gdb.dwarf2/multidictionary.exp
@@ -141,7 +141,7 @@ Dwarf::assemble $asm_file {
# Build the test executable.
if {[build_executable $testfile.exp $testfile [list $asm_file $srcfile] {}] \
== -1} {
- return -1
+ return
}
# We force the DIEs above to be read in via "-readnow".
diff --git a/gdb/testsuite/gdb.dwarf2/nameless-enum.exp b/gdb/testsuite/gdb.dwarf2/nameless-enum.exp
index 4dbe29b8e03b..b523ae6d6ae2 100644
--- a/gdb/testsuite/gdb.dwarf2/nameless-enum.exp
+++ b/gdb/testsuite/gdb.dwarf2/nameless-enum.exp
@@ -54,7 +54,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
# The bug was a crash, so just do anything here to verify gdb is still
diff --git a/gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp b/gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp
index ae912aa4ace2..817d015a7d50 100644
--- a/gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp
+++ b/gdb/testsuite/gdb.dwarf2/no-gnu-debuglink.exp
@@ -32,7 +32,7 @@ Dwarf::assemble $asm_file {
}
if { [build_executable $testfile.exp $testfile [list $srcfile $asm_file]] } {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.dwarf2/nonvar-access.exp b/gdb/testsuite/gdb.dwarf2/nonvar-access.exp
index c0813ebf5eed..8e673bbade52 100644
--- a/gdb/testsuite/gdb.dwarf2/nonvar-access.exp
+++ b/gdb/testsuite/gdb.dwarf2/nonvar-access.exp
@@ -198,11 +198,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Determine byte order.
diff --git a/gdb/testsuite/gdb.dwarf2/nostaticblock.exp b/gdb/testsuite/gdb.dwarf2/nostaticblock.exp
index 88a2f69689dc..e9be5b8b5558 100644
--- a/gdb/testsuite/gdb.dwarf2/nostaticblock.exp
+++ b/gdb/testsuite/gdb.dwarf2/nostaticblock.exp
@@ -35,7 +35,7 @@ Dwarf::assemble $asm_file {
if { [build_executable ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.dwarf2/nullptr_t.exp b/gdb/testsuite/gdb.dwarf2/nullptr_t.exp
index 4ce5751147a5..f25988fb3015 100644
--- a/gdb/testsuite/gdb.dwarf2/nullptr_t.exp
+++ b/gdb/testsuite/gdb.dwarf2/nullptr_t.exp
@@ -23,7 +23,7 @@ lappend opts c++
lappend opts additional_flags=-std=c++11
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
set cmd "info types -q std::nullptr_t"
diff --git a/gdb/testsuite/gdb.dwarf2/opaque-type-lookup.exp b/gdb/testsuite/gdb.dwarf2/opaque-type-lookup.exp
index bcf833ca2130..119203308a75 100644
--- a/gdb/testsuite/gdb.dwarf2/opaque-type-lookup.exp
+++ b/gdb/testsuite/gdb.dwarf2/opaque-type-lookup.exp
@@ -184,11 +184,11 @@ Dwarf::assemble $asm_file {
}
if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile} ${srcfile3}" {nodebug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "p variable_a" " = {xyz = 97 'a'}"
diff --git a/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp b/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp
index 5bfd0099b114..64a3a1e393ba 100644
--- a/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/opt-out-not-implptr.exp
@@ -88,13 +88,13 @@ Dwarf::assemble $asm_file {
if {[build_executable ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
set cmd "print i64_noptr"
diff --git a/gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
index c9fb5764c28d..94ede63f31a5 100644
--- a/gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
@@ -27,11 +27,11 @@ lappend opts debug
lappend opts nopie
if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {
- return -1
+ return
}
if {![runto foo]} {
- return -1
+ return
}
# Move back up to main.
diff --git a/gdb/testsuite/gdb.dwarf2/pieces.exp b/gdb/testsuite/gdb.dwarf2/pieces.exp
index 10d2f8b965ca..bcae3cfe859d 100644
--- a/gdb/testsuite/gdb.dwarf2/pieces.exp
+++ b/gdb/testsuite/gdb.dwarf2/pieces.exp
@@ -23,11 +23,11 @@ standard_testfile .S
set csrcfile ${testfile}.c
if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Function f1 tests a particular gdb bug involving DW_OP_piece.
diff --git a/gdb/testsuite/gdb.dwarf2/pr10770.exp b/gdb/testsuite/gdb.dwarf2/pr10770.exp
index 6ff1639177eb..6f631755f882 100644
--- a/gdb/testsuite/gdb.dwarf2/pr10770.exp
+++ b/gdb/testsuite/gdb.dwarf2/pr10770.exp
@@ -22,13 +22,13 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
}
if {![runto_main]} {
- return -1
+ return
}
# This test also requires DWARF.
get_debug_format
if {![test_debug_format "DWARF \[0-9\]"]} {
- return -1
+ return
}
gdb_test "break force_unwind" "Breakpoint .*" "set breakpoint for pr10770"
diff --git a/gdb/testsuite/gdb.dwarf2/pr11465.exp b/gdb/testsuite/gdb.dwarf2/pr11465.exp
index 2ca6985fd6f0..3cf6bdb70e18 100644
--- a/gdb/testsuite/gdb.dwarf2/pr11465.exp
+++ b/gdb/testsuite/gdb.dwarf2/pr11465.exp
@@ -27,7 +27,7 @@ if {[is_ilp32_target]} {
if { [gdb_compile [file join $srcdir $subdir $srcfile] \
$binfile object [list additional_flags=-DPTRBITS=$ptrbits]] != "" } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.dwarf2/pr13961.exp b/gdb/testsuite/gdb.dwarf2/pr13961.exp
index 66441e862404..46bcdd70b0e1 100644
--- a/gdb/testsuite/gdb.dwarf2/pr13961.exp
+++ b/gdb/testsuite/gdb.dwarf2/pr13961.exp
@@ -27,7 +27,7 @@ standard_testfile .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
${additional_flags}] == -1 } {
- return -1
+ return
}
gdb_test "break -q main" "Breakpoint.*at.*"
diff --git a/gdb/testsuite/gdb.dwarf2/rust-enum.exp b/gdb/testsuite/gdb.dwarf2/rust-enum.exp
index 141ec90d927e..19c9bcacff5d 100644
--- a/gdb/testsuite/gdb.dwarf2/rust-enum.exp
+++ b/gdb/testsuite/gdb.dwarf2/rust-enum.exp
@@ -111,7 +111,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test_no_output "set language rust"
diff --git a/gdb/testsuite/gdb.dwarf2/self-spec.exp b/gdb/testsuite/gdb.dwarf2/self-spec.exp
index 398cdc1e8d2b..b51c7e41a8b0 100644
--- a/gdb/testsuite/gdb.dwarf2/self-spec.exp
+++ b/gdb/testsuite/gdb.dwarf2/self-spec.exp
@@ -53,7 +53,7 @@ Dwarf::assemble $asm_file {
}
if {[prepare_for_testing "failed to prepare" $testfile "${asm_file} ${srcfile}" {}]} {
- return -1
+ return
}
set index [have_index $binfile]
diff --git a/gdb/testsuite/gdb.dwarf2/shortpiece.exp b/gdb/testsuite/gdb.dwarf2/shortpiece.exp
index 118f7f1a97cb..bb37541ff072 100644
--- a/gdb/testsuite/gdb.dwarf2/shortpiece.exp
+++ b/gdb/testsuite/gdb.dwarf2/shortpiece.exp
@@ -121,7 +121,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "p s1" " = {a = 1, b = 0}"
diff --git a/gdb/testsuite/gdb.dwarf2/static-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/static-optimized-out.exp
index 29ec6b43fcc0..1ac48f5b31cd 100644
--- a/gdb/testsuite/gdb.dwarf2/static-optimized-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/static-optimized-out.exp
@@ -48,7 +48,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "print var" " = <optimized out>"
diff --git a/gdb/testsuite/gdb.dwarf2/staticvirtual.exp b/gdb/testsuite/gdb.dwarf2/staticvirtual.exp
index 91a61b7f8431..90ae120b79c3 100644
--- a/gdb/testsuite/gdb.dwarf2/staticvirtual.exp
+++ b/gdb/testsuite/gdb.dwarf2/staticvirtual.exp
@@ -49,7 +49,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# gdb/18021: The test below would cause GDB to crash.
diff --git a/gdb/testsuite/gdb.dwarf2/struct-decl.exp b/gdb/testsuite/gdb.dwarf2/struct-decl.exp
index 789ecb36f9be..aefa2609a8ac 100644
--- a/gdb/testsuite/gdb.dwarf2/struct-decl.exp
+++ b/gdb/testsuite/gdb.dwarf2/struct-decl.exp
@@ -66,7 +66,7 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}]} {
- return -1
+ return
}
gdb_breakpoint "the_type::method" message
diff --git a/gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp b/gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp
index 1a2e696d5b69..4218dd119470 100644
--- a/gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp
+++ b/gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp
@@ -76,7 +76,7 @@ Dwarf::assemble $asm_file {
# from modifying it. It also means we can set the build-id, rather than
# having to extract it.
if { [gdb_compile $asm_file $binfile.dwz object {nodebug}] != "" } {
- return -1
+ return
}
set host_dwz_file [gdb_remote_download host $binfile.dwz]
diff --git a/gdb/testsuite/gdb.dwarf2/struct-with-sig.exp b/gdb/testsuite/gdb.dwarf2/struct-with-sig.exp
index a85f615f37ee..5a3e5a77dcae 100644
--- a/gdb/testsuite/gdb.dwarf2/struct-with-sig.exp
+++ b/gdb/testsuite/gdb.dwarf2/struct-with-sig.exp
@@ -99,7 +99,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
set struct_s_i_re \
@@ -114,7 +114,7 @@ set struct_s_j_re \
"}"]
if {![runto_main]} {
- return -1
+ return
}
gdb_test "ptype struct s" $struct_s_i_re \
diff --git a/gdb/testsuite/gdb.dwarf2/subrange-enum.exp b/gdb/testsuite/gdb.dwarf2/subrange-enum.exp
index 172f4bd42fc4..a4cfab746db0 100644
--- a/gdb/testsuite/gdb.dwarf2/subrange-enum.exp
+++ b/gdb/testsuite/gdb.dwarf2/subrange-enum.exp
@@ -72,7 +72,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
gdb_test "print rangeval" " = TWO"
diff --git a/gdb/testsuite/gdb.dwarf2/subrange.exp b/gdb/testsuite/gdb.dwarf2/subrange.exp
index cd3a4b85b693..71e88f433538 100644
--- a/gdb/testsuite/gdb.dwarf2/subrange.exp
+++ b/gdb/testsuite/gdb.dwarf2/subrange.exp
@@ -105,7 +105,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug c++}] } {
- return -1
+ return
}
gdb_test_no_output "set language pascal"
diff --git a/gdb/testsuite/gdb.dwarf2/symbol_needs_eval_fail.exp b/gdb/testsuite/gdb.dwarf2/symbol_needs_eval_fail.exp
index a05fa14b7cd7..27763beee3a8 100644
--- a/gdb/testsuite/gdb.dwarf2/symbol_needs_eval_fail.exp
+++ b/gdb/testsuite/gdb.dwarf2/symbol_needs_eval_fail.exp
@@ -100,7 +100,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# The variable's location expression requires a frame,
@@ -108,7 +108,7 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} \
gdb_test "print/d a" "No frame selected." "variable a can't be printed"
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set var \$$regname = 2" "init reg to 2"
diff --git a/gdb/testsuite/gdb.dwarf2/symbol_needs_eval_timeout.exp b/gdb/testsuite/gdb.dwarf2/symbol_needs_eval_timeout.exp
index 8b98e73d421c..a72cdc8f55f6 100644
--- a/gdb/testsuite/gdb.dwarf2/symbol_needs_eval_timeout.exp
+++ b/gdb/testsuite/gdb.dwarf2/symbol_needs_eval_timeout.exp
@@ -122,11 +122,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set var \$$regname = 2" "init reg to 2"
diff --git a/gdb/testsuite/gdb.dwarf2/template-specification-full-name.exp b/gdb/testsuite/gdb.dwarf2/template-specification-full-name.exp
index eea7106d7011..f5a919cb747f 100644
--- a/gdb/testsuite/gdb.dwarf2/template-specification-full-name.exp
+++ b/gdb/testsuite/gdb.dwarf2/template-specification-full-name.exp
@@ -73,11 +73,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Just a sanity check to make sure GDB slurped the symbols correctly.
diff --git a/gdb/testsuite/gdb.dwarf2/trace-crash.exp b/gdb/testsuite/gdb.dwarf2/trace-crash.exp
index aacb56a8d3e2..2df9bfa861bb 100644
--- a/gdb/testsuite/gdb.dwarf2/trace-crash.exp
+++ b/gdb/testsuite/gdb.dwarf2/trace-crash.exp
@@ -26,7 +26,7 @@ standard_testfile .S
if {[prepare_for_testing "failed to prepare" "${testfile}" ${testfile}.S \
nodebug]} {
- return -1
+ return
}
gdb_test "trace ${testfile}.c:3" "Tracepoint $decimal .*" \
diff --git a/gdb/testsuite/gdb.dwarf2/typeddwarf.exp b/gdb/testsuite/gdb.dwarf2/typeddwarf.exp
index afc600e2b725..62ceecc6d174 100644
--- a/gdb/testsuite/gdb.dwarf2/typeddwarf.exp
+++ b/gdb/testsuite/gdb.dwarf2/typeddwarf.exp
@@ -34,11 +34,11 @@ lappend opts nodebug
lappend opts nopie
if { [prepare_for_testing "failed to prepare" "${test}" ${sfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Initialize tests to be an empty array.
diff --git a/gdb/testsuite/gdb.dwarf2/typedef-void-finish.exp b/gdb/testsuite/gdb.dwarf2/typedef-void-finish.exp
index 96b621ac6e09..507e698916af 100644
--- a/gdb/testsuite/gdb.dwarf2/typedef-void-finish.exp
+++ b/gdb/testsuite/gdb.dwarf2/typedef-void-finish.exp
@@ -61,11 +61,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "break func" "Breakpoint .*" \
diff --git a/gdb/testsuite/gdb.dwarf2/utf-rust.exp b/gdb/testsuite/gdb.dwarf2/utf-rust.exp
index 6eb8a7a171d6..0aedd6530aad 100644
--- a/gdb/testsuite/gdb.dwarf2/utf-rust.exp
+++ b/gdb/testsuite/gdb.dwarf2/utf-rust.exp
@@ -54,11 +54,11 @@ Dwarf::assemble $asm_file {
if {[prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] debug]} {
- return -1
+ return
}
if {![runto main]} {
- return -1
+ return
}
gdb_test "set language rust" \
diff --git a/gdb/testsuite/gdb.dwarf2/valop.exp b/gdb/testsuite/gdb.dwarf2/valop.exp
index dd5f01d4a324..18f51c117f8d 100644
--- a/gdb/testsuite/gdb.dwarf2/valop.exp
+++ b/gdb/testsuite/gdb.dwarf2/valop.exp
@@ -24,11 +24,11 @@ standard_testfile .S
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile] [list {additional_flags=-nostdlib}]]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "break valop.c:19" "Breakpoint 2.*" "set breakpoint for valop"
diff --git a/gdb/testsuite/gdb.dwarf2/var-access.exp b/gdb/testsuite/gdb.dwarf2/var-access.exp
index 5e240aeb7408..6719784f2302 100644
--- a/gdb/testsuite/gdb.dwarf2/var-access.exp
+++ b/gdb/testsuite/gdb.dwarf2/var-access.exp
@@ -250,11 +250,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing ${testfile}.exp ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Determine byte order.
diff --git a/gdb/testsuite/gdb.dwarf2/variant.exp b/gdb/testsuite/gdb.dwarf2/variant.exp
index 2dab87211acf..7f015e9e3ae1 100644
--- a/gdb/testsuite/gdb.dwarf2/variant.exp
+++ b/gdb/testsuite/gdb.dwarf2/variant.exp
@@ -202,11 +202,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] debug] } {
- return -1
+ return
}
if {![runto func]} {
- return -1
+ return
}
# Get the values into history so we can use it from Rust.
diff --git a/gdb/testsuite/gdb.dwarf2/varval.exp b/gdb/testsuite/gdb.dwarf2/varval.exp
index b0735bee94ae..032e3d11c0e7 100644
--- a/gdb/testsuite/gdb.dwarf2/varval.exp
+++ b/gdb/testsuite/gdb.dwarf2/varval.exp
@@ -34,7 +34,7 @@ set asm_file [standard_output_file ${srcfile2}]
# Any program would do, but since we already have varval
# specifically for this testcase, might as well use that.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
set int_size [get_sizeof "int" -1]
# gdb always assumes references are implemented as pointers.
@@ -320,7 +320,7 @@ proc setup_exec { arg_bad } {
}
if { [setup_exec 0] == -1 } {
- return -1
+ return
}
with_test_prefix "pre-main" {
@@ -329,7 +329,7 @@ with_test_prefix "pre-main" {
# DW_OP_GNU_variable_value implementation requires a valid frame.
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print varval" "= 8"
@@ -353,12 +353,12 @@ gdb_test "print untypedval" \
"Type of DW_OP_GNU_variable_value DIE must be an integer or pointer\\."
if { [setup_exec 1] == -1 } {
- return -1
+ return
}
# DW_OP_GNU_variable_value implementation requires a valid frame.
if {![runto_main]} {
- return -1
+ return
}
gdb_test "print badval" "value has been optimized out"
gdb_test "print bad_die_val1" \
diff --git a/gdb/testsuite/gdb.dwarf2/void-type.exp b/gdb/testsuite/gdb.dwarf2/void-type.exp
index c3d37da56dc0..ee5d16e1ea07 100644
--- a/gdb/testsuite/gdb.dwarf2/void-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/void-type.exp
@@ -93,11 +93,11 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Place a breakpoint in 'func' and continue to there.
diff --git a/gdb/testsuite/gdb.dwarf2/watch-notconst.exp b/gdb/testsuite/gdb.dwarf2/watch-notconst.exp
index 7dd7afcb8a0d..c8fb0a955f81 100644
--- a/gdb/testsuite/gdb.dwarf2/watch-notconst.exp
+++ b/gdb/testsuite/gdb.dwarf2/watch-notconst.exp
@@ -22,7 +22,7 @@ require dwarf2_support is_x86_like_target
if { [prepare_for_testing "failed to prepare" "${test}" \
{watch-notconst.c watch-notconst2.S} {nodebug}] } {
- return -1
+ return
}
if { ![runto f] } {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 19/36] GDB: testsuite: DWARF: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (17 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 18/36] GDB: testsuite: DWARF: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 20/36] GDB: testsuite: GDB: Don't return -1 from top-level Thiago Jung Bauermann
` (16 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- misaligned line, which is then fixed by this patch;
- return at top level but inside block such as save_vars,
with_test_prefix, foreach, gdb_test_multiple.
- procedure whose callers don't use the return value;
Some weren't changed because they didn't meet the criteria above, or
weren't trivial to check.
---
gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp | 4 ++--
.../debug-aranges-duplicate-offset-warning.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp | 2 +-
| 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-lines.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp | 2 +-
gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp | 12 ++++++------
gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/gdb-index.exp | 2 +-
gdb/testsuite/gdb.dwarf2/implptr-64bit.exp | 4 ++--
gdb/testsuite/gdb.dwarf2/loc-sec-offset.exp | 2 +-
gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp | 2 +-
gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp | 2 +-
gdb/testsuite/gdb.dwarf2/loclists-start-end.exp | 2 +-
gdb/testsuite/gdb.dwarf2/rnglists-multiple-cus.exp | 2 +-
gdb/testsuite/gdb.dwarf2/rnglists-sec-offset.exp | 2 +-
gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp | 2 +-
21 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp b/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp
index e4c9177575e5..7bf8bf17bbde 100644
--- a/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp
+++ b/gdb/testsuite/gdb.dwarf2/comp-unit-lang.exp
@@ -56,11 +56,11 @@ proc do_test {cu_lang gdb_lang} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto func]} {
- return -1
+ return
}
gdb_test "show language" "\"auto; currently $gdb_lang\".*"
diff --git a/gdb/testsuite/gdb.dwarf2/debug-aranges-duplicate-offset-warning.exp b/gdb/testsuite/gdb.dwarf2/debug-aranges-duplicate-offset-warning.exp
index 250f479e0274..9432415fdd0d 100644
--- a/gdb/testsuite/gdb.dwarf2/debug-aranges-duplicate-offset-warning.exp
+++ b/gdb/testsuite/gdb.dwarf2/debug-aranges-duplicate-offset-warning.exp
@@ -61,7 +61,7 @@ save_vars { GDBFLAGS } {
append GDBFLAGS " -iex \"maint set dwarf synchronous on\""
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp
index b148ae0e005c..b31beb3f46a4 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-bad-elf.exp
@@ -174,7 +174,7 @@ proc run_test { goto_main } {
if { $goto_main } {
if {![runto_main]} {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp b/gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp
index fa3bf5f4b3e0..1be466f513c7 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-entry-points.exp
@@ -25,7 +25,7 @@ require dwarf2_support
standard_testfile .c -dw.S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# Make some DWARF for the test.
--git a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp
index c76864f125d5..5e49bc0fc96b 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-header-1.exp
@@ -154,11 +154,11 @@ proc do_test { start_label func_name tag } {
if { [prepare_for_testing "failed to prepare" ${testfile}-${tag} \
[list $srcfile $asm_file] $build_options] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Delete all breakpoints, watchpoints, tracepoints, and catchpoints so that
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
index 7f9f9464aaf5..e6859159c291 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-param.exp
@@ -46,7 +46,7 @@ set result [catch {exec {*}$command} output]
verbose "result is $result"
verbose "output is $output"
if {$result != 0} {
- return -1
+ return
}
gdb_load ${binfile_stripped}
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-lines.exp b/gdb/testsuite/gdb.dwarf2/dw2-lines.exp
index 12eb4a70373b..5dc4fd0ac629 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-lines.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-lines.exp
@@ -116,11 +116,11 @@ proc test_1 { _cv _cdw64 _lv _ldw64 {_string_form ""}} {
if { [prepare_for_testing "failed to prepare" ${testfile}.[prefix_id] \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "bar_label"
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp b/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
index 7951d2514445..86d22425ebfd 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-opt-structptr.exp
@@ -140,11 +140,11 @@ proc do_console_test {} {
gdb_test_no_output "set print object on"
if {![runto_main]} {
- return -1
+ return
}
if {![runto func01]} {
- return -1
+ return
}
gdb_test "info addr ptr" "Symbol \"ptr\" is optimized out."
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp b/gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp
index 294e7c8bf45f..8032f71c7d9c 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-prologue-end.exp
@@ -95,7 +95,7 @@ with_test_prefix "ignore-prologue-end" {
gdb_test_no_output "maintenance set ignore-prologue-end-flag on"
if {![runto_main]} {
- return -1
+ return
}
# If we ignore the prologue-end flag, we should stop at the first statement
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp
index 032b39912c79..01433c031c35 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges-func.exp
@@ -40,7 +40,7 @@ proc do_test {suffix} {
# testcase, might as well use that.
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set asm_file [standard_output_file $srcfile2]
@@ -202,11 +202,11 @@ proc do_test {suffix} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set main_prologue_line_num [gdb_get_line_number "main prologue"]
@@ -237,7 +237,7 @@ proc do_test {suffix} {
with_test_prefix "step-test-2" {
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
# Note that the RE used for the following test will fail when the
@@ -274,7 +274,7 @@ proc do_test {suffix} {
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
# Disassembly of foo should have multiple address ranges.
@@ -366,7 +366,7 @@ proc do_test {suffix} {
with_test_prefix "step-test-3" {
clean_restart ${testfile}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "step" \
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp b/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp
index b3bb1ed0f8c9..ea96b9f2e120 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-unusual-field-names.exp
@@ -109,11 +109,11 @@ proc run_test { field_name } {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "p obj.$field_name" " = 0" \
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp b/gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp
index 6d3bf29c1b10..94afa35f5588 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-add-index-symlink.exp
@@ -27,12 +27,12 @@ standard_testfile main.c
with_test_prefix non-symlink {
if { [prepare_for_testing "failed to prepare" "${testfile}" \
[list ${srcfile}]] } {
- return -1
+ return
}
if { [ensure_gdb_index $binfile] == -1 } {
untested "error adding gdb index"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index.exp b/gdb/testsuite/gdb.dwarf2/gdb-index.exp
index 456d7266c599..6ff1209ad1b6 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-index.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index.exp
@@ -117,7 +117,7 @@ gdb_test_multiple $cmd $test {
lassign [local_add_gdb_index $binfile] binfile_with_index host_binfile_with_index
set testfile_with_index [file tail $binfile_with_index]
if { ${binfile_with_index} == "" } {
- return -1
+ return
}
}
-re ".*${gdb_prompt} $" {
diff --git a/gdb/testsuite/gdb.dwarf2/implptr-64bit.exp b/gdb/testsuite/gdb.dwarf2/implptr-64bit.exp
index 59b91fad6fae..2cbb00cde8ba 100644
--- a/gdb/testsuite/gdb.dwarf2/implptr-64bit.exp
+++ b/gdb/testsuite/gdb.dwarf2/implptr-64bit.exp
@@ -126,11 +126,11 @@ proc test_1 { name dwarf_version offset_size addr_size ref_addr_size two_cu } {
set opts {quiet}
set executable ${testfile}-${name}
if {[prepare_for_testing "failed to prepare" $executable "${asm_file} ${srcfile}" $opts]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "p/x p->f" " = 0x1010101"
diff --git a/gdb/testsuite/gdb.dwarf2/loc-sec-offset.exp b/gdb/testsuite/gdb.dwarf2/loc-sec-offset.exp
index f2a244791d16..edfcb8842d10 100644
--- a/gdb/testsuite/gdb.dwarf2/loc-sec-offset.exp
+++ b/gdb/testsuite/gdb.dwarf2/loc-sec-offset.exp
@@ -97,7 +97,7 @@ foreach_with_prefix is_64 {false true} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if { ![runto_main] } {
diff --git a/gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp b/gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp
index a822f0c2f2e9..e2bacbcb8dc0 100644
--- a/gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp
+++ b/gdb/testsuite/gdb.dwarf2/loclists-multiple-cus.exp
@@ -124,7 +124,7 @@ foreach_with_prefix is_64 {false true} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if { ![runto_main] } {
diff --git a/gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp b/gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp
index b80639b32ddd..bc64b7adabd4 100644
--- a/gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp
+++ b/gdb/testsuite/gdb.dwarf2/loclists-sec-offset.exp
@@ -212,7 +212,7 @@ foreach_with_prefix is_64 {false true} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if { ![runto_main] } {
diff --git a/gdb/testsuite/gdb.dwarf2/loclists-start-end.exp b/gdb/testsuite/gdb.dwarf2/loclists-start-end.exp
index f40d6fd8ec5c..c8d9f123625f 100644
--- a/gdb/testsuite/gdb.dwarf2/loclists-start-end.exp
+++ b/gdb/testsuite/gdb.dwarf2/loclists-start-end.exp
@@ -115,7 +115,7 @@ foreach_with_prefix is_64 {false true} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if { ![runto_main] } {
diff --git a/gdb/testsuite/gdb.dwarf2/rnglists-multiple-cus.exp b/gdb/testsuite/gdb.dwarf2/rnglists-multiple-cus.exp
index d005c8b907cc..e48eb39f3a59 100644
--- a/gdb/testsuite/gdb.dwarf2/rnglists-multiple-cus.exp
+++ b/gdb/testsuite/gdb.dwarf2/rnglists-multiple-cus.exp
@@ -92,7 +92,7 @@ foreach_with_prefix is_64 {false true} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# Sanity checks to make sure GDB slurped the symbols correctly.
diff --git a/gdb/testsuite/gdb.dwarf2/rnglists-sec-offset.exp b/gdb/testsuite/gdb.dwarf2/rnglists-sec-offset.exp
index bbfc9e35c646..6207e31b9d0f 100644
--- a/gdb/testsuite/gdb.dwarf2/rnglists-sec-offset.exp
+++ b/gdb/testsuite/gdb.dwarf2/rnglists-sec-offset.exp
@@ -131,7 +131,7 @@ foreach_with_prefix is_64 {false true} {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
# Sanity checks to make sure GDB slurped the symbols correctly.
diff --git a/gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp b/gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp
index 4218dd119470..28a2fd7ad58c 100644
--- a/gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp
+++ b/gdb/testsuite/gdb.dwarf2/struct-with-sig-2.exp
@@ -124,7 +124,7 @@ save_vars { GDBFLAGS } {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
}
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 20/36] GDB: testsuite: GDB: Don't return -1 from top-level
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (18 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 19/36] GDB: testsuite: DWARF: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 21/36] GDB: testsuite: Guile: " Thiago Jung Bauermann
` (15 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
All changes except for one are the result of running:
$ sed -i 's/^ return -1/ return/' *.exp
inside gdb/testsuite/gdb.gdb. The exception is a return statement in
index-file.exp, which is inside a with_timeout_factor block.
---
gdb/testsuite/gdb.gdb/index-file.exp | 8 ++++----
gdb/testsuite/gdb.gdb/python-helper.exp | 2 +-
gdb/testsuite/gdb.gdb/unittest.exp | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gdb/testsuite/gdb.gdb/index-file.exp b/gdb/testsuite/gdb.gdb/index-file.exp
index 162ba28bfde1..d0c845302fc2 100644
--- a/gdb/testsuite/gdb.gdb/index-file.exp
+++ b/gdb/testsuite/gdb.gdb/index-file.exp
@@ -27,14 +27,14 @@ set timeout_factor 20
set filename [selftest_prepare]
if { $filename eq "" } {
unsupported "${gdb_test_file_name}.exp"
- return -1
+ return
}
# If FILENAME is a libtool wrapper, then we need to get the path of the real
# executable.
set filename [selftest_libtool_get_real_gdb_executable $filename]
if { $filename eq "" } {
- return -1
+ return
}
with_timeout_factor $timeout_factor {
@@ -48,7 +48,7 @@ set worker_threads [gdb_get_worker_threads]
if { $worker_threads eq "UNKNOWN" } {
unresolved "unable to get worker thread count"
- return -1
+ return
}
# Generate an index file.
@@ -66,7 +66,7 @@ with_timeout_factor $timeout_factor {
}
}
if { ! $ok } {
- return -1
+ return
}
gdb_test_no_output "save gdb-index -dwarf-5 $dir1" \
diff --git a/gdb/testsuite/gdb.gdb/python-helper.exp b/gdb/testsuite/gdb.gdb/python-helper.exp
index b39f51de44fe..8f00ce920af3 100644
--- a/gdb/testsuite/gdb.gdb/python-helper.exp
+++ b/gdb/testsuite/gdb.gdb/python-helper.exp
@@ -26,7 +26,7 @@ require allow_python_tests
standard_testfile .cc
if { [build_executable "failed to build" $testfile $srcfile {debug c++}] } {
- return -1
+ return
}
# Find the helper script in the GDB build directory.
diff --git a/gdb/testsuite/gdb.gdb/unittest.exp b/gdb/testsuite/gdb.gdb/unittest.exp
index 29e4206cb309..26870a7a0b7a 100644
--- a/gdb/testsuite/gdb.gdb/unittest.exp
+++ b/gdb/testsuite/gdb.gdb/unittest.exp
@@ -24,7 +24,7 @@ set do_xml_test [allow_xml_test]
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
proc run_selftests_1 {} {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 21/36] GDB: testsuite: Guile: Don't return -1 from top-level
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (19 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 20/36] GDB: testsuite: GDB: Don't return -1 from top-level Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 22/36] GDB: testsuite: Python: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (14 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
Most changes are the result of running:
$ sed -i 's/^ return -1/ return/' *.exp
inside gdb/testsuite/gdb.guile. The exceptions are in
scm-breakpoint.exp, and are inside procedures whose callers don't use
the return value;
---
gdb/testsuite/gdb.guile/scm-block.exp | 2 +-
gdb/testsuite/gdb.guile/scm-breakpoint.exp | 8 ++++----
gdb/testsuite/gdb.guile/scm-frame.exp | 2 +-
gdb/testsuite/gdb.guile/scm-iterator.exp | 2 +-
gdb/testsuite/gdb.guile/scm-progspace.exp | 2 +-
gdb/testsuite/gdb.guile/scm-symbol.exp | 4 ++--
gdb/testsuite/gdb.guile/types-module.exp | 2 +-
7 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/gdb/testsuite/gdb.guile/scm-block.exp b/gdb/testsuite/gdb.guile/scm-block.exp
index 8027dc0ce193..c5e2fd4403bc 100644
--- a/gdb/testsuite/gdb.guile/scm-block.exp
+++ b/gdb/testsuite/gdb.guile/scm-block.exp
@@ -23,7 +23,7 @@ require allow_guile_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![gdb_guile_runto_main]} {
diff --git a/gdb/testsuite/gdb.guile/scm-breakpoint.exp b/gdb/testsuite/gdb.guile/scm-breakpoint.exp
index 68744bb87f7f..c0f6f56ff449 100644
--- a/gdb/testsuite/gdb.guile/scm-breakpoint.exp
+++ b/gdb/testsuite/gdb.guile/scm-breakpoint.exp
@@ -23,7 +23,7 @@ require allow_guile_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
proc_with_prefix test_bkpt_basic { } {
@@ -491,7 +491,7 @@ proc_with_prefix test_bkpt_temporary { } {
clean_restart ${testfile}
if {![gdb_guile_runto_main]} {
- return 0
+ return
}
delete_breakpoints
@@ -532,7 +532,7 @@ proc_with_prefix test_bkpt_probe {} {
if { [prepare_for_testing "failed to prepare" ${testfile}-probes \
${srcfile} {additional_flags=-DUSE_PROBES}] } {
- return -1
+ return
}
if {![gdb_guile_runto_main]} {
@@ -571,7 +571,7 @@ proc_with_prefix test_catchpoints {} {
gdb_test_multiple "catch syscall" "" {
-re "The feature \'catch syscall\' is not supported.*\r\n$gdb_prompt $" {
unsupported "catch syscall isn't supported"
- return -1
+ return
}
-re "Catchpoint ($decimal) \\(any syscall\\)\r\n$gdb_prompt $" {
set num $expect_out(1,string)
diff --git a/gdb/testsuite/gdb.guile/scm-frame.exp b/gdb/testsuite/gdb.guile/scm-frame.exp
index 8c86b7a8249b..7db24f6e4e9a 100644
--- a/gdb/testsuite/gdb.guile/scm-frame.exp
+++ b/gdb/testsuite/gdb.guile/scm-frame.exp
@@ -23,7 +23,7 @@ require allow_guile_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# The following tests require execution.
diff --git a/gdb/testsuite/gdb.guile/scm-iterator.exp b/gdb/testsuite/gdb.guile/scm-iterator.exp
index 6907ec2d8699..cdbaf20d6995 100644
--- a/gdb/testsuite/gdb.guile/scm-iterator.exp
+++ b/gdb/testsuite/gdb.guile/scm-iterator.exp
@@ -23,7 +23,7 @@ require allow_guile_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![gdb_guile_runto_main]} {
diff --git a/gdb/testsuite/gdb.guile/scm-progspace.exp b/gdb/testsuite/gdb.guile/scm-progspace.exp
index 306d08769e8d..3b73ecb82330 100644
--- a/gdb/testsuite/gdb.guile/scm-progspace.exp
+++ b/gdb/testsuite/gdb.guile/scm-progspace.exp
@@ -23,7 +23,7 @@ require allow_guile_tests
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.guile/scm-symbol.exp b/gdb/testsuite/gdb.guile/scm-symbol.exp
index bed817edcc02..6cd1199e9b28 100644
--- a/gdb/testsuite/gdb.guile/scm-symbol.exp
+++ b/gdb/testsuite/gdb.guile/scm-symbol.exp
@@ -23,7 +23,7 @@ require allow_guile_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# These tests are done before we call gdb_guile_runto_main so we have to
@@ -138,7 +138,7 @@ gdb_test "guile (print (symbol-symtab t))" "= #<gdb:symtab (.*/)?scm-symbol.c>"
# Recompile binary.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-cxx" executable "debug c++"] != "" } {
untested "failed to compile in C++ mode"
- return -1
+ return
}
clean_restart ${::testfile}-cxx
diff --git a/gdb/testsuite/gdb.guile/types-module.exp b/gdb/testsuite/gdb.guile/types-module.exp
index 9693d4b36559..b48a24742ebf 100644
--- a/gdb/testsuite/gdb.guile/types-module.exp
+++ b/gdb/testsuite/gdb.guile/types-module.exp
@@ -27,7 +27,7 @@ lappend flags debug
lappend flags c++
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $flags] } {
- return -1
+ return
}
if {![gdb_guile_runto_main]} {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 22/36] GDB: testsuite: Python: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (20 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 21/36] GDB: testsuite: Guile: " Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 23/36] GDB: testsuite: Python: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (13 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.python.
---
gdb/testsuite/gdb.python/lib-types.exp | 2 +-
gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp | 2 +-
gdb/testsuite/gdb.python/py-arch-reg-groups.exp | 2 +-
gdb/testsuite/gdb.python/py-arch-reg-names.exp | 2 +-
gdb/testsuite/gdb.python/py-arch.exp | 2 +-
gdb/testsuite/gdb.python/py-as-string.exp | 2 +-
gdb/testsuite/gdb.python/py-auto-load-chaining.exp | 2 +-
.../py-autoloaded-pretty-printers-in-newobjfile-event.exp | 4 ++--
gdb/testsuite/gdb.python/py-bad-printers.exp | 4 ++--
gdb/testsuite/gdb.python/py-block.exp | 2 +-
gdb/testsuite/gdb.python/py-bp-locations.exp | 6 +++---
gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp | 2 +-
gdb/testsuite/gdb.python/py-breakpoint.exp | 2 +-
gdb/testsuite/gdb.python/py-caller-is.exp | 2 +-
gdb/testsuite/gdb.python/py-cmd-exception.exp | 2 +-
gdb/testsuite/gdb.python/py-cmd-prompt.exp | 2 +-
gdb/testsuite/gdb.python/py-cmd.exp | 2 +-
gdb/testsuite/gdb.python/py-commands-breakpoint.exp | 2 +-
gdb/testsuite/gdb.python/py-connection-removed.exp | 2 +-
gdb/testsuite/gdb.python/py-connection.exp | 2 +-
gdb/testsuite/gdb.python/py-event-load.exp | 4 ++--
gdb/testsuite/gdb.python/py-events.exp | 2 +-
gdb/testsuite/gdb.python/py-evsignal.exp | 4 ++--
gdb/testsuite/gdb.python/py-evthreads.exp | 2 +-
gdb/testsuite/gdb.python/py-exec-file.exp | 4 ++--
gdb/testsuite/gdb.python/py-explore-cc.exp | 2 +-
gdb/testsuite/gdb.python/py-explore.exp | 2 +-
.../gdb.python/py-finish-breakpoint-deletion.exp | 2 +-
gdb/testsuite/gdb.python/py-finish-breakpoint.exp | 2 +-
gdb/testsuite/gdb.python/py-finish-breakpoint2.exp | 2 +-
gdb/testsuite/gdb.python/py-frame-args.exp | 4 ++--
gdb/testsuite/gdb.python/py-frame-inline.exp | 2 +-
gdb/testsuite/gdb.python/py-frame.exp | 4 ++--
gdb/testsuite/gdb.python/py-framefilter-addr.exp | 2 +-
gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp | 2 +-
gdb/testsuite/gdb.python/py-framefilter-mi.exp | 4 ++--
gdb/testsuite/gdb.python/py-framefilter.exp | 4 ++--
gdb/testsuite/gdb.python/py-inferior.exp | 2 +-
gdb/testsuite/gdb.python/py-infthread.exp | 2 +-
gdb/testsuite/gdb.python/py-label-symbol-value.exp | 2 +-
gdb/testsuite/gdb.python/py-lazy-string.exp | 4 ++--
gdb/testsuite/gdb.python/py-linetable-empty.exp | 2 +-
gdb/testsuite/gdb.python/py-linetable.exp | 4 ++--
gdb/testsuite/gdb.python/py-mi-cmd.exp | 2 +-
gdb/testsuite/gdb.python/py-mi-events.exp | 2 +-
gdb/testsuite/gdb.python/py-mi-notify.exp | 2 +-
gdb/testsuite/gdb.python/py-mi-objfile.exp | 2 +-
.../gdb.python/py-mi-var-info-path-expression.exp | 2 +-
gdb/testsuite/gdb.python/py-mi.exp | 8 ++++----
gdb/testsuite/gdb.python/py-missing-debug.exp | 4 ++--
gdb/testsuite/gdb.python/py-nested-maps.exp | 4 ++--
gdb/testsuite/gdb.python/py-objfile-script.exp | 2 +-
gdb/testsuite/gdb.python/py-objfile.exp | 4 ++--
gdb/testsuite/gdb.python/py-pending-frame-level.exp | 2 +-
gdb/testsuite/gdb.python/py-pp-cast.exp | 4 ++--
gdb/testsuite/gdb.python/py-pp-integral.exp | 4 ++--
gdb/testsuite/gdb.python/py-pp-maint.exp | 4 ++--
gdb/testsuite/gdb.python/py-pp-re-notag.exp | 4 ++--
gdb/testsuite/gdb.python/py-pp-registration.exp | 4 ++--
gdb/testsuite/gdb.python/py-prettyprint-stub.exp | 2 +-
gdb/testsuite/gdb.python/py-progspace-events.exp | 2 +-
gdb/testsuite/gdb.python/py-progspace.exp | 2 +-
gdb/testsuite/gdb.python/py-prompt.exp | 2 +-
gdb/testsuite/gdb.python/py-read-memory-leak.exp | 2 +-
gdb/testsuite/gdb.python/py-record-btrace-threads.exp | 4 ++--
gdb/testsuite/gdb.python/py-record-btrace.exp | 2 +-
gdb/testsuite/gdb.python/py-record-full.exp | 2 +-
gdb/testsuite/gdb.python/py-recurse-unwind.exp | 2 +-
gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp | 2 +-
gdb/testsuite/gdb.python/py-send-packet.exp | 2 +-
gdb/testsuite/gdb.python/py-shared.exp | 4 ++--
gdb/testsuite/gdb.python/py-strfns.exp | 2 +-
gdb/testsuite/gdb.python/py-sym-artificial.exp | 4 ++--
gdb/testsuite/gdb.python/py-symbol.exp | 4 ++--
gdb/testsuite/gdb.python/py-symtab.exp | 2 +-
gdb/testsuite/gdb.python/py-sync-interp.exp | 2 +-
gdb/testsuite/gdb.python/py-template.exp | 2 +-
gdb/testsuite/gdb.python/py-thread-exited.exp | 4 ++--
gdb/testsuite/gdb.python/py-thrhandle.exp | 2 +-
gdb/testsuite/gdb.python/py-typeprint.exp | 2 +-
gdb/testsuite/gdb.python/py-unwind-inline.exp | 2 +-
gdb/testsuite/gdb.python/py-unwind-maint.exp | 4 ++--
gdb/testsuite/gdb.python/py-unwind-user-regs.exp | 2 +-
gdb/testsuite/gdb.python/py-unwind.exp | 2 +-
gdb/testsuite/gdb.python/py-value-cc.exp | 2 +-
gdb/testsuite/gdb.python/py-value.exp | 2 +-
gdb/testsuite/gdb.python/py-varobj.exp | 2 +-
gdb/testsuite/gdb.python/py-watchpoint.exp | 2 +-
gdb/testsuite/gdb.python/py-xmethods.exp | 2 +-
gdb/testsuite/gdb.python/python.exp | 2 +-
gdb/testsuite/gdb.python/tui-window-disabled.exp | 2 +-
gdb/testsuite/gdb.python/tui-window.exp | 2 +-
92 files changed, 122 insertions(+), 122 deletions(-)
diff --git a/gdb/testsuite/gdb.python/lib-types.exp b/gdb/testsuite/gdb.python/lib-types.exp
index f871abc633a5..aa281c6443d5 100644
--- a/gdb/testsuite/gdb.python/lib-types.exp
+++ b/gdb/testsuite/gdb.python/lib-types.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp
index c9846b877ac3..52162fc99522 100644
--- a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp
+++ b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp
@@ -25,7 +25,7 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
untested "failed to compile"
- return -1
+ return
}
# This proc restarts GDB, makes the inferior reach the desired spot - marked
diff --git a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
index 5c06ebff9426..6630143f0373 100644
--- a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
+++ b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
@@ -20,7 +20,7 @@ require allow_python_tests
standard_testfile py-arch.c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-arch-reg-names.exp b/gdb/testsuite/gdb.python/py-arch-reg-names.exp
index 954cbb77754a..7bbb171e13e1 100644
--- a/gdb/testsuite/gdb.python/py-arch-reg-names.exp
+++ b/gdb/testsuite/gdb.python/py-arch-reg-names.exp
@@ -20,7 +20,7 @@ require allow_python_tests
standard_testfile py-arch.c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-arch.exp b/gdb/testsuite/gdb.python/py-arch.exp
index 12b0e4a10c80..a2ac6ad4bfa1 100644
--- a/gdb/testsuite/gdb.python/py-arch.exp
+++ b/gdb/testsuite/gdb.python/py-arch.exp
@@ -17,7 +17,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-as-string.exp b/gdb/testsuite/gdb.python/py-as-string.exp
index fd4d5d740f45..3dc858db1ada 100644
--- a/gdb/testsuite/gdb.python/py-as-string.exp
+++ b/gdb/testsuite/gdb.python/py-as-string.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-auto-load-chaining.exp b/gdb/testsuite/gdb.python/py-auto-load-chaining.exp
index 5033f21526cc..7a92ff0fac71 100644
--- a/gdb/testsuite/gdb.python/py-auto-load-chaining.exp
+++ b/gdb/testsuite/gdb.python/py-auto-load-chaining.exp
@@ -46,7 +46,7 @@ set remote_python_file [gdb_remote_download host \
# Build the main test executable and start GDB.
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp b/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp
index d4498dfc8cd8..9b8a10cf84f5 100644
--- a/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp
+++ b/gdb/testsuite/gdb.python/py-autoloaded-pretty-printers-in-newobjfile-event.exp
@@ -32,7 +32,7 @@ set binfile_lib [standard_output_file "${libname}.so"]
# Compile library.
if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} \
{debug c++}] != "" } {
- return -1
+ return
}
# Compile main program.
@@ -40,7 +40,7 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} \
${binfile} \
executable \
[list debug c++ shlib=$binfile_lib]] != "" } {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.python/py-bad-printers.exp b/gdb/testsuite/gdb.python/py-bad-printers.exp
index 70704c668118..a96030d6b483 100644
--- a/gdb/testsuite/gdb.python/py-bad-printers.exp
+++ b/gdb/testsuite/gdb.python/py-bad-printers.exp
@@ -23,11 +23,11 @@ require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.python/py-block.exp b/gdb/testsuite/gdb.python/py-block.exp
index e4e309da05f0..b0123c4d3b57 100644
--- a/gdb/testsuite/gdb.python/py-block.exp
+++ b/gdb/testsuite/gdb.python/py-block.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-bp-locations.exp b/gdb/testsuite/gdb.python/py-bp-locations.exp
index 00ff1c9912ac..879306ea0f24 100644
--- a/gdb/testsuite/gdb.python/py-bp-locations.exp
+++ b/gdb/testsuite/gdb.python/py-bp-locations.exp
@@ -20,7 +20,7 @@ require allow_python_tests
standard_testfile
if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {c++ debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
@@ -28,7 +28,7 @@ save_vars { GDBFLAGS } {
}
if {![runto_main]} {
- return -1
+ return
}
# Build a regexp string that represents the __repr__ of a
@@ -80,7 +80,7 @@ gdb_test "python print(gdb.breakpoints()\[1\].locations\[0\])" \
gdb_continue_to_breakpoint "" ".*25.*"
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "add"
diff --git a/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp b/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp
index 74983a899bdc..0b9d493ada29 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint-create-fail.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
clean_restart "${testfile}"
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp
index 4215f3ca1de0..692d55eb0a21 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
@@ -33,7 +33,7 @@ standard_testfile
set options {debug c++}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} ${options}] } {
- return -1
+ return
}
set past_throw_catch_line [gdb_get_line_number "Past throw-catch."]
diff --git a/gdb/testsuite/gdb.python/py-caller-is.exp b/gdb/testsuite/gdb.python/py-caller-is.exp
index e512b97d5169..e195e42a8ca6 100644
--- a/gdb/testsuite/gdb.python/py-caller-is.exp
+++ b/gdb/testsuite/gdb.python/py-caller-is.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-cmd-exception.exp b/gdb/testsuite/gdb.python/py-cmd-exception.exp
index 51c35f32ac9e..789a8b15c3e0 100644
--- a/gdb/testsuite/gdb.python/py-cmd-exception.exp
+++ b/gdb/testsuite/gdb.python/py-cmd-exception.exp
@@ -24,7 +24,7 @@ require !use_gdb_stub allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
diff --git a/gdb/testsuite/gdb.python/py-cmd-prompt.exp b/gdb/testsuite/gdb.python/py-cmd-prompt.exp
index a83c52ae1214..5b81d88bbe71 100644
--- a/gdb/testsuite/gdb.python/py-cmd-prompt.exp
+++ b/gdb/testsuite/gdb.python/py-cmd-prompt.exp
@@ -28,7 +28,7 @@ require allow_python_tests allow_gdbserver_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set bp_line [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.python/py-cmd.exp b/gdb/testsuite/gdb.python/py-cmd.exp
index be5c955e29b1..766a594d2f49 100644
--- a/gdb/testsuite/gdb.python/py-cmd.exp
+++ b/gdb/testsuite/gdb.python/py-cmd.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-commands-breakpoint.exp b/gdb/testsuite/gdb.python/py-commands-breakpoint.exp
index ba2de2f68db7..2b3842c816f6 100644
--- a/gdb/testsuite/gdb.python/py-commands-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-commands-breakpoint.exp
@@ -22,7 +22,7 @@ require allow_python_tests
standard_testfile .c .py
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if { ![runto_main] } {
diff --git a/gdb/testsuite/gdb.python/py-connection-removed.exp b/gdb/testsuite/gdb.python/py-connection-removed.exp
index f2027043761b..abe3f78d73b1 100644
--- a/gdb/testsuite/gdb.python/py-connection-removed.exp
+++ b/gdb/testsuite/gdb.python/py-connection-removed.exp
@@ -30,7 +30,7 @@ require allow_python_tests
standard_testfile py-connection.c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-connection.exp b/gdb/testsuite/gdb.python/py-connection.exp
index 3045e9817312..e520e91368aa 100644
--- a/gdb/testsuite/gdb.python/py-connection.exp
+++ b/gdb/testsuite/gdb.python/py-connection.exp
@@ -25,7 +25,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-event-load.exp b/gdb/testsuite/gdb.python/py-event-load.exp
index 8e4f8d2992bf..a0ba644a7f67 100644
--- a/gdb/testsuite/gdb.python/py-event-load.exp
+++ b/gdb/testsuite/gdb.python/py-event-load.exp
@@ -24,7 +24,7 @@ standard_testfile .c
if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug shlib_load}] != ""} {
untested "failed to compile"
- return -1
+ return
}
set testfile2 py-events-shlib
@@ -33,7 +33,7 @@ set binfile2 [standard_output_file ${testfile2}.so]
if {[gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" \
${binfile2} {debug}] != ""} {
untested "failed to compile shared library"
- return -1
+ return
}
set binfile2_dlopen [gdb_download_shlib $binfile2]
diff --git a/gdb/testsuite/gdb.python/py-events.exp b/gdb/testsuite/gdb.python/py-events.exp
index 1e0513b997bf..1177dd54e482 100644
--- a/gdb/testsuite/gdb.python/py-events.exp
+++ b/gdb/testsuite/gdb.python/py-events.exp
@@ -28,7 +28,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
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-evsignal.exp b/gdb/testsuite/gdb.python/py-evsignal.exp
index e91f9af8f159..e9d4d2aa442f 100644
--- a/gdb/testsuite/gdb.python/py-evsignal.exp
+++ b/gdb/testsuite/gdb.python/py-evsignal.exp
@@ -16,7 +16,7 @@
if {[gdb_protocol_is_remote]} {
# RuntimeError: Could not find event thread
kfail "python/12966" "Signal Thread 3"
- return -1
+ return
}
load_lib gdb-python.exp
@@ -26,7 +26,7 @@ require allow_python_tests
standard_testfile py-evthreads.c
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
clean_restart $testfile
diff --git a/gdb/testsuite/gdb.python/py-evthreads.exp b/gdb/testsuite/gdb.python/py-evthreads.exp
index 1ab5b58c03c2..09efc3adb3a4 100644
--- a/gdb/testsuite/gdb.python/py-evthreads.exp
+++ b/gdb/testsuite/gdb.python/py-evthreads.exp
@@ -20,7 +20,7 @@ load_lib gdb-python.exp
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.python/py-exec-file.exp b/gdb/testsuite/gdb.python/py-exec-file.exp
index 180de990f5ba..6a73efc406ad 100644
--- a/gdb/testsuite/gdb.python/py-exec-file.exp
+++ b/gdb/testsuite/gdb.python/py-exec-file.exp
@@ -26,12 +26,12 @@ set binfile2 [standard_output_file $testfile2]
if {[build_executable "failed to prepare first executable" \
$binfile1 $srcfile]} {
- return -1
+ return
}
if {[build_executable "failed to prepare second executable" \
$binfile2 $srcfile]} {
- return -1
+ return
}
set binfile1 [gdb_remote_download host $binfile1]
diff --git a/gdb/testsuite/gdb.python/py-explore-cc.exp b/gdb/testsuite/gdb.python/py-explore-cc.exp
index 7c04b227cfc0..772886b931f9 100644
--- a/gdb/testsuite/gdb.python/py-explore-cc.exp
+++ b/gdb/testsuite/gdb.python/py-explore-cc.exp
@@ -21,7 +21,7 @@ require allow_cplus_tests allow_python_tests
standard_testfile py-explore.cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
set int_ptr_ref_desc "The value of 'int_ptr_ref' is of type 'int_ptr' which is a typedef of type 'int \\*'.*\'int_ptr_ref' is a pointer to a value of type 'int'.*"
diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp
index 78df5b9314fe..276148da8f10 100644
--- a/gdb/testsuite/gdb.python/py-explore.exp
+++ b/gdb/testsuite/gdb.python/py-explore.exp
@@ -18,7 +18,7 @@ standard_testfile
require allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set SS "struct SimpleStruct"
diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp
index 52be47b68cf7..627c9d0b6ef5 100644
--- a/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp
+++ b/gdb/testsuite/gdb.python/py-finish-breakpoint-deletion.exp
@@ -22,7 +22,7 @@ require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
index eb0790523e82..043416c724cc 100644
--- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
@@ -31,7 +31,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
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
index 86a876650ee3..d782c577cfc1 100644
--- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
+++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-frame-args.exp b/gdb/testsuite/gdb.python/py-frame-args.exp
index ae688b2cc753..3129c90ae401 100644
--- a/gdb/testsuite/gdb.python/py-frame-args.exp
+++ b/gdb/testsuite/gdb.python/py-frame-args.exp
@@ -18,11 +18,11 @@ standard_testfile
require allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.python/py-frame-inline.exp b/gdb/testsuite/gdb.python/py-frame-inline.exp
index f007a2ca4aa1..a44136990c02 100644
--- a/gdb/testsuite/gdb.python/py-frame-inline.exp
+++ b/gdb/testsuite/gdb.python/py-frame-inline.exp
@@ -20,7 +20,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp
index dd0b948581c7..92a0ef3f7ebb 100644
--- a/gdb/testsuite/gdb.python/py-frame.exp
+++ b/gdb/testsuite/gdb.python/py-frame.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# The following tests require execution.
@@ -206,7 +206,7 @@ gdb_test "python print(gdb.selected_frame().read_register(bad_object))" \
# Compile again without debug info.
gdb_exit
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-framefilter-addr.exp b/gdb/testsuite/gdb.python/py-framefilter-addr.exp
index 087da1b690f9..3c0436ce1972 100644
--- a/gdb/testsuite/gdb.python/py-framefilter-addr.exp
+++ b/gdb/testsuite/gdb.python/py-framefilter-addr.exp
@@ -24,7 +24,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp
index 7cd5e2e66536..8a4bf001a694 100644
--- a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp
+++ b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp
@@ -24,7 +24,7 @@ require is_x86_64_m64_target
# We cannot use prepare_for_testing as we have to set the safe-patch
# to check objfile and progspace printers.
if {[build_executable $testfile.exp $testfile $srcfile {}] == -1} {
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-framefilter-mi.exp b/gdb/testsuite/gdb.python/py-framefilter-mi.exp
index 7b091b8f3652..3b4cedba0918 100644
--- a/gdb/testsuite/gdb.python/py-framefilter-mi.exp
+++ b/gdb/testsuite/gdb.python/py-framefilter-mi.exp
@@ -25,7 +25,7 @@ set pyfile py-framefilter.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
@@ -34,7 +34,7 @@ if {[mi_clean_restart $::testfile]} {
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
mi_runto_main
diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp
index 292b72d66dc7..a993ac5d54fd 100644
--- a/gdb/testsuite/gdb.python/py-framefilter.exp
+++ b/gdb/testsuite/gdb.python/py-framefilter.exp
@@ -25,7 +25,7 @@ standard_testfile
# We cannot use prepare_for_testing as we have to set the safe-patch
# to check objfile and progspace printers.
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
# Start with a fresh gdb.
@@ -283,7 +283,7 @@ gdb_test "bt 1" "Quit" "bt 1 with KeyboardInterrupt"
# We cannot use prepare_for_testing as we have to set the safe-patch
# to check objfile and progspace printers.
if {[build_executable $testfile.exp $testfile $srcfile {nodebug}] == -1} {
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-inferior.exp b/gdb/testsuite/gdb.python/py-inferior.exp
index 0c27da1a7a4e..8479427f726a 100644
--- a/gdb/testsuite/gdb.python/py-inferior.exp
+++ b/gdb/testsuite/gdb.python/py-inferior.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug}] != "" } {
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-infthread.exp b/gdb/testsuite/gdb.python/py-infthread.exp
index 5859fff284cd..65ccc8f9a9e8 100644
--- a/gdb/testsuite/gdb.python/py-infthread.exp
+++ b/gdb/testsuite/gdb.python/py-infthread.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
gdb_test_multiline "install new_thread event handler" \
diff --git a/gdb/testsuite/gdb.python/py-label-symbol-value.exp b/gdb/testsuite/gdb.python/py-label-symbol-value.exp
index b4d598773989..c97ae72ec58d 100644
--- a/gdb/testsuite/gdb.python/py-label-symbol-value.exp
+++ b/gdb/testsuite/gdb.python/py-label-symbol-value.exp
@@ -21,7 +21,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-lazy-string.exp b/gdb/testsuite/gdb.python/py-lazy-string.exp
index aabcc3be6e50..87d8eea46546 100644
--- a/gdb/testsuite/gdb.python/py-lazy-string.exp
+++ b/gdb/testsuite/gdb.python/py-lazy-string.exp
@@ -23,11 +23,11 @@ require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main ]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break here"]
diff --git a/gdb/testsuite/gdb.python/py-linetable-empty.exp b/gdb/testsuite/gdb.python/py-linetable-empty.exp
index 6113d35c1e37..651fe9b6dbf3 100644
--- a/gdb/testsuite/gdb.python/py-linetable-empty.exp
+++ b/gdb/testsuite/gdb.python/py-linetable-empty.exp
@@ -39,7 +39,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-linetable.exp b/gdb/testsuite/gdb.python/py-linetable.exp
index 1e4402a089f2..5290c4a9beac 100644
--- a/gdb/testsuite/gdb.python/py-linetable.exp
+++ b/gdb/testsuite/gdb.python/py-linetable.exp
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_py_test_silent_cmd "python lt = gdb.selected_frame().find_sal().symtab.linetable()" \
diff --git a/gdb/testsuite/gdb.python/py-mi-cmd.exp b/gdb/testsuite/gdb.python/py-mi-cmd.exp
index e13da6a31404..b66a73c331f5 100644
--- a/gdb/testsuite/gdb.python/py-mi-cmd.exp
+++ b/gdb/testsuite/gdb.python/py-mi-cmd.exp
@@ -25,7 +25,7 @@ if {[mi_gdb_start]} {
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
standard_testfile
diff --git a/gdb/testsuite/gdb.python/py-mi-events.exp b/gdb/testsuite/gdb.python/py-mi-events.exp
index a6c724e0c4d5..a2314aed3221 100644
--- a/gdb/testsuite/gdb.python/py-mi-events.exp
+++ b/gdb/testsuite/gdb.python/py-mi-events.exp
@@ -26,7 +26,7 @@ set pyfile ${testfile}-gdb.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}]
diff --git a/gdb/testsuite/gdb.python/py-mi-notify.exp b/gdb/testsuite/gdb.python/py-mi-notify.exp
index 220c5ca0babe..b08a667ae846 100644
--- a/gdb/testsuite/gdb.python/py-mi-notify.exp
+++ b/gdb/testsuite/gdb.python/py-mi-notify.exp
@@ -25,7 +25,7 @@ if {[mi_gdb_start]} {
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
standard_testfile
diff --git a/gdb/testsuite/gdb.python/py-mi-objfile.exp b/gdb/testsuite/gdb.python/py-mi-objfile.exp
index 4c8846981eb9..99cd6b750a7c 100644
--- a/gdb/testsuite/gdb.python/py-mi-objfile.exp
+++ b/gdb/testsuite/gdb.python/py-mi-objfile.exp
@@ -25,7 +25,7 @@ set pyfile ${testfile}-gdb.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Make the -gdb.py script available to gdb, it is automagically loaded by gdb.
diff --git a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp
index dd97de3be677..f300efe9caea 100644
--- a/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp
+++ b/gdb/testsuite/gdb.python/py-mi-var-info-path-expression.exp
@@ -26,7 +26,7 @@ require allow_python_tests
standard_testfile
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
- return -1
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp
index 73b351e58ccb..51025653b620 100644
--- a/gdb/testsuite/gdb.python/py-mi.exp
+++ b/gdb/testsuite/gdb.python/py-mi.exp
@@ -23,7 +23,7 @@ standard_testfile py-prettyprint.c
set pyfile py-prettyprint.py
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
@@ -32,7 +32,7 @@ if {[mi_clean_restart $::testfile]} {
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
mi_runto_main
@@ -342,7 +342,7 @@ gdb_exit
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-cxx" \
executable {debug c++ additional_flags=-DMI}] != "" } {
untested "failed to compile in C++ mode"
- return -1
+ return
}
if {[mi_clean_restart ${::testfile}-cxx]} {
@@ -351,7 +351,7 @@ if {[mi_clean_restart ${::testfile}-cxx]} {
if {[lsearch -exact [mi_get_features] python] < 0} {
unsupported "python support is disabled"
- return -1
+ return
}
with_test_prefix "varobj fake" {
diff --git a/gdb/testsuite/gdb.python/py-missing-debug.exp b/gdb/testsuite/gdb.python/py-missing-debug.exp
index 2aebebd453c7..256e3e955c77 100644
--- a/gdb/testsuite/gdb.python/py-missing-debug.exp
+++ b/gdb/testsuite/gdb.python/py-missing-debug.exp
@@ -21,14 +21,14 @@ standard_testfile
if {[build_executable "failed to prepare" ${testfile} ${srcfile} \
{debug build-id}]} {
- return -1
+ return
}
# Remove debug information from BINFILE and place it into
# BINFILE.debug.
if {[gdb_gnu_strip_debug $binfile]} {
unsupported "cannot produce separate debug info files"
- return -1
+ return
}
set remote_python_file \
diff --git a/gdb/testsuite/gdb.python/py-nested-maps.exp b/gdb/testsuite/gdb.python/py-nested-maps.exp
index 7869c9138d52..f73829cb09a9 100644
--- a/gdb/testsuite/gdb.python/py-nested-maps.exp
+++ b/gdb/testsuite/gdb.python/py-nested-maps.exp
@@ -24,11 +24,11 @@ require allow_python_tests
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 "Break here"]
diff --git a/gdb/testsuite/gdb.python/py-objfile-script.exp b/gdb/testsuite/gdb.python/py-objfile-script.exp
index 099a9986cfd7..c22163ae3565 100644
--- a/gdb/testsuite/gdb.python/py-objfile-script.exp
+++ b/gdb/testsuite/gdb.python/py-objfile-script.exp
@@ -21,7 +21,7 @@ standard_testfile
require allow_python_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-objfile.exp b/gdb/testsuite/gdb.python/py-objfile.exp
index e823efbf3b15..0127b82936cb 100644
--- a/gdb/testsuite/gdb.python/py-objfile.exp
+++ b/gdb/testsuite/gdb.python/py-objfile.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
@@ -116,7 +116,7 @@ gdb_test "python print(objfile.username)" "None" \
# Now build another copy of the testcase, this time without debug info.
if { [prepare_for_testing "failed to prepare" ${testfile}2 ${srcfile} {nodebug ldflags=-Wl,--strip-debug}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-pending-frame-level.exp b/gdb/testsuite/gdb.python/py-pending-frame-level.exp
index 8fc1d2653b15..204c7c36c54b 100644
--- a/gdb/testsuite/gdb.python/py-pending-frame-level.exp
+++ b/gdb/testsuite/gdb.python/py-pending-frame-level.exp
@@ -22,7 +22,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-pp-cast.exp b/gdb/testsuite/gdb.python/py-pp-cast.exp
index 0184565872df..fe14a9a430f5 100644
--- a/gdb/testsuite/gdb.python/py-pp-cast.exp
+++ b/gdb/testsuite/gdb.python/py-pp-cast.exp
@@ -22,11 +22,11 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto break_function]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.python/py-pp-integral.exp b/gdb/testsuite/gdb.python/py-pp-integral.exp
index 73dd86f4ea76..190af2b219d1 100644
--- a/gdb/testsuite/gdb.python/py-pp-integral.exp
+++ b/gdb/testsuite/gdb.python/py-pp-integral.exp
@@ -18,11 +18,11 @@ standard_testfile
require allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto tick_tock]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.python/py-pp-maint.exp b/gdb/testsuite/gdb.python/py-pp-maint.exp
index 7f3659450db6..8bb537c8d0e6 100644
--- a/gdb/testsuite/gdb.python/py-pp-maint.exp
+++ b/gdb/testsuite/gdb.python/py-pp-maint.exp
@@ -25,11 +25,11 @@ require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "b [gdb_get_line_number {break to inspect} ${testfile}.c ]" \
diff --git a/gdb/testsuite/gdb.python/py-pp-re-notag.exp b/gdb/testsuite/gdb.python/py-pp-re-notag.exp
index 73dd86f4ea76..190af2b219d1 100644
--- a/gdb/testsuite/gdb.python/py-pp-re-notag.exp
+++ b/gdb/testsuite/gdb.python/py-pp-re-notag.exp
@@ -18,11 +18,11 @@ standard_testfile
require allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto tick_tock]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.python/py-pp-registration.exp b/gdb/testsuite/gdb.python/py-pp-registration.exp
index ed65ed87a281..3d974b2120b6 100644
--- a/gdb/testsuite/gdb.python/py-pp-registration.exp
+++ b/gdb/testsuite/gdb.python/py-pp-registration.exp
@@ -23,14 +23,14 @@ require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
${srcdir}/${subdir}/${testfile}.py]
if {![runto_main ]} {
- return -1
+ return
}
proc prepare_test { } {
diff --git a/gdb/testsuite/gdb.python/py-prettyprint-stub.exp b/gdb/testsuite/gdb.python/py-prettyprint-stub.exp
index 49723980a0b1..491e8c369596 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint-stub.exp
+++ b/gdb/testsuite/gdb.python/py-prettyprint-stub.exp
@@ -29,7 +29,7 @@ if { [build_executable_from_specs \
$testfile {c++} \
$srcfile {c++ debug} \
$srcfile2 {c++}] == -1 } {
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-progspace-events.exp b/gdb/testsuite/gdb.python/py-progspace-events.exp
index 143fa17126b8..c07a659910fa 100644
--- a/gdb/testsuite/gdb.python/py-progspace-events.exp
+++ b/gdb/testsuite/gdb.python/py-progspace-events.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if {[prepare_for_testing "preparing" $testfile $srcfile] == -1} {
- return -1
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/py-progspace-events.py]
diff --git a/gdb/testsuite/gdb.python/py-progspace.exp b/gdb/testsuite/gdb.python/py-progspace.exp
index d11bb941acbf..b3fc203c4b98 100644
--- a/gdb/testsuite/gdb.python/py-progspace.exp
+++ b/gdb/testsuite/gdb.python/py-progspace.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.python/py-prompt.exp b/gdb/testsuite/gdb.python/py-prompt.exp
index 60186f71db69..cc149ae62303 100644
--- a/gdb/testsuite/gdb.python/py-prompt.exp
+++ b/gdb/testsuite/gdb.python/py-prompt.exp
@@ -24,7 +24,7 @@ load_lib prompt.exp
require allow_python_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
save_vars { INTERNAL_GDBFLAGS GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.python/py-read-memory-leak.exp b/gdb/testsuite/gdb.python/py-read-memory-leak.exp
index e7fcbf79b37d..58343126e67c 100644
--- a/gdb/testsuite/gdb.python/py-read-memory-leak.exp
+++ b/gdb/testsuite/gdb.python/py-read-memory-leak.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
index 0b3115a5a6dd..995e733a4aab 100644
--- a/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
+++ b/gdb/testsuite/gdb.python/py-record-btrace-threads.exp
@@ -23,12 +23,12 @@ standard_testfile
if { [gdb_compile_pthreads "$srcdir/$subdir/$srcfile" "$binfile" executable {debug} ] != "" } {
untested "failed to prepare"
- return -1
+ return
}
clean_restart $testfile
if { ![runto_main] } {
- return -1
+ return
}
# set up breakpoints
diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.python/py-record-btrace.exp
index ade569c480c7..4e324e71fc09 100644
--- a/gdb/testsuite/gdb.python/py-record-btrace.exp
+++ b/gdb/testsuite/gdb.python/py-record-btrace.exp
@@ -26,7 +26,7 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 }
if {![runto_main]} {
- return -1
+ return
}
with_test_prefix "no or double record" {
diff --git a/gdb/testsuite/gdb.python/py-record-full.exp b/gdb/testsuite/gdb.python/py-record-full.exp
index 125cecebfd25..95640770e9a5 100644
--- a/gdb/testsuite/gdb.python/py-record-full.exp
+++ b/gdb/testsuite/gdb.python/py-record-full.exp
@@ -26,7 +26,7 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 }
if {![runto_main]} {
- return -1
+ return
}
with_test_prefix "no or double record" {
diff --git a/gdb/testsuite/gdb.python/py-recurse-unwind.exp b/gdb/testsuite/gdb.python/py-recurse-unwind.exp
index fbb538f39064..4df47a6e8b4b 100644
--- a/gdb/testsuite/gdb.python/py-recurse-unwind.exp
+++ b/gdb/testsuite/gdb.python/py-recurse-unwind.exp
@@ -29,7 +29,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
diff --git a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp
index 2b2fe112d9e5..576fd5a85d3d 100644
--- a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp
+++ b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp
@@ -23,7 +23,7 @@ standard_testfile .cc
if {[prepare_for_testing $testfile.exp $testfile $srcfile \
{debug c++ additional_flags="-std=c++11"}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-send-packet.exp b/gdb/testsuite/gdb.python/py-send-packet.exp
index b0ca70e61a65..4464c1c5123b 100644
--- a/gdb/testsuite/gdb.python/py-send-packet.exp
+++ b/gdb/testsuite/gdb.python/py-send-packet.exp
@@ -27,7 +27,7 @@ standard_testfile
require allow_gdbserver_tests allow_python_tests
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
diff --git a/gdb/testsuite/gdb.python/py-shared.exp b/gdb/testsuite/gdb.python/py-shared.exp
index 6b8f0f0c1bde..0eef359d0b87 100644
--- a/gdb/testsuite/gdb.python/py-shared.exp
+++ b/gdb/testsuite/gdb.python/py-shared.exp
@@ -27,14 +27,14 @@ set library [standard_output_file ${libfile}.sl]
if { [gdb_compile_shlib ${srcdir}/${subdir}/${libsrc} ${library} "debug"] != "" } {
untested "failed to compile shared library"
- return -1
+ return
}
set exec_opts [list debug shlib=${library}]
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-strfns.exp b/gdb/testsuite/gdb.python/py-strfns.exp
index 79de2c4d8357..539ba984db02 100644
--- a/gdb/testsuite/gdb.python/py-strfns.exp
+++ b/gdb/testsuite/gdb.python/py-strfns.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-sym-artificial.exp b/gdb/testsuite/gdb.python/py-sym-artificial.exp
index e0592bc068b6..1ea2ea4a13fb 100644
--- a/gdb/testsuite/gdb.python/py-sym-artificial.exp
+++ b/gdb/testsuite/gdb.python/py-sym-artificial.exp
@@ -49,11 +49,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_py_test_silent_cmd "python v = gdb.lookup_symbol('the_variable')" \
diff --git a/gdb/testsuite/gdb.python/py-symbol.exp b/gdb/testsuite/gdb.python/py-symbol.exp
index 7d172d792e9f..90e724ca0313 100644
--- a/gdb/testsuite/gdb.python/py-symbol.exp
+++ b/gdb/testsuite/gdb.python/py-symbol.exp
@@ -25,7 +25,7 @@ standard_testfile py-symbol.c py-symbol-2.c py-symbol-3.c
set opts { debug additional_flags=-DUSE_TWO_FILES }
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3] $opts]} {
- return -1
+ return
}
set readnow_p [readnow]
@@ -196,7 +196,7 @@ set testfile $testfile-cxx
set binfile [standard_output_file $testfile]
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2] $opts] } {
- return -1
+ return
}
gdb_test "python print (gdb.lookup_global_symbol ('(anonymous namespace)::anon') is None)" \
diff --git a/gdb/testsuite/gdb.python/py-symtab.exp b/gdb/testsuite/gdb.python/py-symtab.exp
index 7a426faf3a57..786bdc75fc4d 100644
--- a/gdb/testsuite/gdb.python/py-symtab.exp
+++ b/gdb/testsuite/gdb.python/py-symtab.exp
@@ -23,7 +23,7 @@ require allow_python_tests
standard_testfile py-symbol.c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-sync-interp.exp b/gdb/testsuite/gdb.python/py-sync-interp.exp
index 4323ee0443e5..5fb67b1eb5b4 100644
--- a/gdb/testsuite/gdb.python/py-sync-interp.exp
+++ b/gdb/testsuite/gdb.python/py-sync-interp.exp
@@ -25,7 +25,7 @@ require can_spawn_for_attach allow_python_tests
load_lib gdb-python.exp
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set test_spawn_id [spawn_wait_for_attach $binfile]
diff --git a/gdb/testsuite/gdb.python/py-template.exp b/gdb/testsuite/gdb.python/py-template.exp
index 1bf3604e98fa..9099e7e32dc0 100644
--- a/gdb/testsuite/gdb.python/py-template.exp
+++ b/gdb/testsuite/gdb.python/py-template.exp
@@ -22,7 +22,7 @@ standard_testfile .cc
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
{debug c++}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.python/py-thread-exited.exp b/gdb/testsuite/gdb.python/py-thread-exited.exp
index 862adeb4587d..908af96d9d5b 100644
--- a/gdb/testsuite/gdb.python/py-thread-exited.exp
+++ b/gdb/testsuite/gdb.python/py-thread-exited.exp
@@ -20,7 +20,7 @@ load_lib gdb-python.exp
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
@@ -33,7 +33,7 @@ gdb_test_no_output "source ${pyfile}" "load python file"
gdb_test "test-events" "Event testers registered."
if {![runto_main]} {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.python/py-thrhandle.exp b/gdb/testsuite/gdb.python/py-thrhandle.exp
index 2aeb7777f0d3..3c9effc8d6be 100644
--- a/gdb/testsuite/gdb.python/py-thrhandle.exp
+++ b/gdb/testsuite/gdb.python/py-thrhandle.exp
@@ -26,7 +26,7 @@ require allow_python_tests
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.python/py-typeprint.exp b/gdb/testsuite/gdb.python/py-typeprint.exp
index f8ccdbf49544..ab53f26d8172 100644
--- a/gdb/testsuite/gdb.python/py-typeprint.exp
+++ b/gdb/testsuite/gdb.python/py-typeprint.exp
@@ -21,7 +21,7 @@ load_lib cp-support.exp
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.python/py-unwind-inline.exp b/gdb/testsuite/gdb.python/py-unwind-inline.exp
index 0f63e4310f71..ef9b00eccc8b 100644
--- a/gdb/testsuite/gdb.python/py-unwind-inline.exp
+++ b/gdb/testsuite/gdb.python/py-unwind-inline.exp
@@ -24,7 +24,7 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
debug] } {
- return -1
+ return
}
# The following tests require execution.
diff --git a/gdb/testsuite/gdb.python/py-unwind-maint.exp b/gdb/testsuite/gdb.python/py-unwind-maint.exp
index 10d1f722db2d..e2ec925a0808 100644
--- a/gdb/testsuite/gdb.python/py-unwind-maint.exp
+++ b/gdb/testsuite/gdb.python/py-unwind-maint.exp
@@ -23,13 +23,13 @@ require allow_python_tests
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
if {![runto_main]} {
- return -1
+ return
}
gdb_test "source ${pyfile}" "Python script imported" \
diff --git a/gdb/testsuite/gdb.python/py-unwind-user-regs.exp b/gdb/testsuite/gdb.python/py-unwind-user-regs.exp
index ac81d98c5826..c594bf74ceef 100644
--- a/gdb/testsuite/gdb.python/py-unwind-user-regs.exp
+++ b/gdb/testsuite/gdb.python/py-unwind-user-regs.exp
@@ -43,7 +43,7 @@ require allow_python_tests
standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-unwind.exp b/gdb/testsuite/gdb.python/py-unwind.exp
index 784d9dfcb64d..058caaf1efc7 100644
--- a/gdb/testsuite/gdb.python/py-unwind.exp
+++ b/gdb/testsuite/gdb.python/py-unwind.exp
@@ -28,7 +28,7 @@ standard_testfile
set flags "additional_flags=-fno-stack-protector"
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} "debug $flags"] } {
- return -1
+ return
}
# This test runs on a specific platform.
diff --git a/gdb/testsuite/gdb.python/py-value-cc.exp b/gdb/testsuite/gdb.python/py-value-cc.exp
index 70135bd7ec76..1d65d617e30d 100644
--- a/gdb/testsuite/gdb.python/py-value-cc.exp
+++ b/gdb/testsuite/gdb.python/py-value-cc.exp
@@ -21,7 +21,7 @@ require allow_cplus_tests allow_python_tests
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp
index a384f4139dd4..3746a6cbc0bc 100644
--- a/gdb/testsuite/gdb.python/py-value.exp
+++ b/gdb/testsuite/gdb.python/py-value.exp
@@ -800,7 +800,7 @@ proc test_unavailable {} {
# Build C version of executable. C++ is built later.
if { [build_inferior "${binfile}" "c"] < 0 } {
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.python/py-varobj.exp b/gdb/testsuite/gdb.python/py-varobj.exp
index 2b1de110e3b9..e8428e3d0745 100644
--- a/gdb/testsuite/gdb.python/py-varobj.exp
+++ b/gdb/testsuite/gdb.python/py-varobj.exp
@@ -22,7 +22,7 @@ require allow_python_tests
standard_testfile
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != ""} {
- return -1
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.python/py-watchpoint.exp b/gdb/testsuite/gdb.python/py-watchpoint.exp
index 50ffaab6594b..2fc366228a14 100644
--- a/gdb/testsuite/gdb.python/py-watchpoint.exp
+++ b/gdb/testsuite/gdb.python/py-watchpoint.exp
@@ -20,7 +20,7 @@ load_lib gdb-python.exp
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
require allow_python_tests
diff --git a/gdb/testsuite/gdb.python/py-xmethods.exp b/gdb/testsuite/gdb.python/py-xmethods.exp
index 087e93e3a6f4..52f0a7597093 100644
--- a/gdb/testsuite/gdb.python/py-xmethods.exp
+++ b/gdb/testsuite/gdb.python/py-xmethods.exp
@@ -23,7 +23,7 @@ require allow_cplus_tests allow_python_tests
standard_testfile py-xmethods.cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp
index 07c51e7ac3fa..f2f32019e4c2 100644
--- a/gdb/testsuite/gdb.python/python.exp
+++ b/gdb/testsuite/gdb.python/python.exp
@@ -22,7 +22,7 @@ standard_testfile python.c python-1.c
if {[build_executable $testfile.exp $testfile \
[list $srcfile $srcfile2] debug] == -1} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.python/tui-window-disabled.exp b/gdb/testsuite/gdb.python/tui-window-disabled.exp
index b90f95c05ac0..35e94b278215 100644
--- a/gdb/testsuite/gdb.python/tui-window-disabled.exp
+++ b/gdb/testsuite/gdb.python/tui-window-disabled.exp
@@ -32,7 +32,7 @@ lappend flags debug
lappend_include_file flags $srcdir/lib/attributes.h
if {[build_executable "failed to prepare" ${testfile} ${srcfile} $flags] == -1} {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.python/tui-window.exp b/gdb/testsuite/gdb.python/tui-window.exp
index 01f290be6aa0..f813908dba49 100644
--- a/gdb/testsuite/gdb.python/tui-window.exp
+++ b/gdb/testsuite/gdb.python/tui-window.exp
@@ -23,7 +23,7 @@ tuiterm_env
standard_testfile py-arch.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
clean_restart
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 23/36] GDB: testsuite: Python: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (21 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 22/36] GDB: testsuite: Python: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 24/36] GDB: testsuite: linespec: Don't return -1 from top-level Thiago Jung Bauermann
` (12 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- misaligned line, which is then fixed by this patch;
- return at top level but inside block such as save_vars,
with_test_prefix, foreach, gdb_test_multiple.
- procedure whose callers don't use the return value;
In a couple of cases the whole if block was in a single line:
if { condition } { return -1 }
In those cases the formatting was changed to the multi-line style we
tend to use.
---
.../gdb.python/py-arch-reg-groups.exp | 2 +-
.../gdb.python/py-arch-reg-names.exp | 2 +-
gdb/testsuite/gdb.python/py-arch.exp | 2 +-
.../gdb.python/py-auto-load-chaining.exp | 10 ++---
gdb/testsuite/gdb.python/py-breakpoint.exp | 38 ++++++++++---------
gdb/testsuite/gdb.python/py-disasm.exp.tcl | 6 +--
gdb/testsuite/gdb.python/py-explore-cc.exp | 2 +-
gdb/testsuite/gdb.python/py-explore.exp | 2 +-
.../gdb.python/py-format-address.exp | 4 +-
.../gdb.python/py-framefilter-addr.exp | 2 +-
.../gdb.python/py-label-symbol-value.exp | 2 +-
.../gdb.python/py-linetable-empty.exp | 2 +-
.../gdb.python/py-pp-registration.exp | 6 +--
.../gdb.python/py-read-memory-leak.exp | 2 +-
gdb/testsuite/gdb.python/py-record-btrace.exp | 4 +-
gdb/testsuite/gdb.python/py-record-full.exp | 4 +-
.../gdb.python/py-rvalue-ref-value-cc.exp | 2 +-
gdb/testsuite/gdb.python/py-template.exp | 2 +-
gdb/testsuite/gdb.python/py-value-cc.exp | 2 +-
gdb/testsuite/gdb.python/py-value.exp | 4 +-
gdb/testsuite/gdb.python/py-xmethods.exp | 2 +-
gdb/testsuite/gdb.python/python.exp | 8 ++--
22 files changed, 58 insertions(+), 52 deletions(-)
diff --git a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
index 6630143f0373..7a1025841f46 100644
--- a/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
+++ b/gdb/testsuite/gdb.python/py-arch-reg-groups.exp
@@ -24,7 +24,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
}
if {![runto_main]} {
- return -1
+ return
}
# First, use 'maint print reggroups' to get a list of all register
diff --git a/gdb/testsuite/gdb.python/py-arch-reg-names.exp b/gdb/testsuite/gdb.python/py-arch-reg-names.exp
index 7bbb171e13e1..6807098fbda8 100644
--- a/gdb/testsuite/gdb.python/py-arch-reg-names.exp
+++ b/gdb/testsuite/gdb.python/py-arch-reg-names.exp
@@ -24,7 +24,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
}
if {![runto_main]} {
- return -1
+ return
}
# First, use 'info registers' to get a list of register names.
diff --git a/gdb/testsuite/gdb.python/py-arch.exp b/gdb/testsuite/gdb.python/py-arch.exp
index a2ac6ad4bfa1..b1dd81a05839 100644
--- a/gdb/testsuite/gdb.python/py-arch.exp
+++ b/gdb/testsuite/gdb.python/py-arch.exp
@@ -21,7 +21,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
}
if {![runto_main]} {
- return -1
+ return
}
# Test python/15461. Invalid architectures should not trigger an
diff --git a/gdb/testsuite/gdb.python/py-auto-load-chaining.exp b/gdb/testsuite/gdb.python/py-auto-load-chaining.exp
index 7a92ff0fac71..bd0d1c4b11ef 100644
--- a/gdb/testsuite/gdb.python/py-auto-load-chaining.exp
+++ b/gdb/testsuite/gdb.python/py-auto-load-chaining.exp
@@ -29,13 +29,13 @@ set f2_o [standard_output_file ${gdb_test_file_name}-f2.o]
# Now build the object files.
if {[gdb_compile "${srcdir}/${subdir}/${srcfile2}" ${f1_o} object {}] != ""} {
- untested "failed to compile object file f1.o"
- return -1
+ untested "failed to compile object file f1.o"
+ return
}
if {[gdb_compile "${srcdir}/${subdir}/${srcfile3}" ${f2_o} object {}] != ""} {
- untested "failed to compile object file f2.o"
- return -1
+ untested "failed to compile object file f2.o"
+ return
}
# Copy the two Python scripts to where the tests are being run.
@@ -50,7 +50,7 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
}
if {![runto_main]} {
- return -1
+ return
}
set safe_path [standard_output_file ""]
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp
index 692d55eb0a21..f74b6a73c815 100644
--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
@@ -78,7 +78,7 @@ proc_with_prefix test_bkpt_basic { } {
gdb_test "python print (gdb.breakpoints())" "\\(\\)"
if {![runto_main]} {
- return 0
+ return
}
# Now there should be one breakpoint: main.
@@ -172,7 +172,7 @@ proc_with_prefix test_bkpt_deletion { } {
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
# Test breakpoints are deleted correctly.
@@ -207,7 +207,7 @@ proc_with_prefix test_bkpt_cond_and_cmds { } {
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
# Test conditional setting.
@@ -265,7 +265,7 @@ proc_with_prefix test_bkpt_thread_and_inferior { } {
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
with_test_prefix "thread" {
@@ -304,7 +304,7 @@ proc_with_prefix test_bkpt_invisible { } {
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
delete_breakpoints
@@ -344,13 +344,15 @@ proc_with_prefix test_hardware_breakpoints { } {
global srcfile testfile hex decimal
# Skip these tests if the HW does not support hardware breakpoints.
- if { ![allow_hw_breakpoint_tests] } { return 0 }
+ if { ![allow_hw_breakpoint_tests] } {
+ return
+ }
# Start with a fresh gdb.
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
delete_breakpoints
@@ -379,7 +381,7 @@ proc_with_prefix test_watchpoints { } {
}
if {![runto $srcfile:$::past_throw_catch_line]} {
- return 0
+ return
}
gdb_py_test_silent_cmd "python wp1 = gdb.Breakpoint (\"result\", type=gdb.BP_WATCHPOINT, wp_class=gdb.WP_WRITE )" \
@@ -402,7 +404,7 @@ proc_with_prefix test_bkpt_internal { } {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
if {![runto $srcfile:$::past_throw_catch_line]} {
- return 0
+ return
}
delete_breakpoints
gdb_py_test_silent_cmd "python bp1 = gdb.Breakpoint (\"main\", type=gdb.BP_BREAKPOINT, wp_class=gdb.WP_WRITE, internal=True )" \
@@ -450,7 +452,7 @@ proc_with_prefix test_bkpt_eval_funcs { } {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
if {![runto_main]} {
- return 0
+ return
}
delete_breakpoints
@@ -563,7 +565,7 @@ proc_with_prefix test_bkpt_temporary { } {
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
delete_breakpoints
@@ -681,7 +683,7 @@ proc_with_prefix test_bkpt_explicit_loc {} {
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
delete_breakpoints
@@ -768,7 +770,7 @@ proc_with_prefix test_bkpt_qualified {} {
set two_location_re "Breakpoint $decimal at $hex:.*2 locations."
if {![runto_main]} {
- return 0
+ return
}
# Test the default value of "qualified".
@@ -842,11 +844,11 @@ proc_with_prefix test_bkpt_probe {} {
if { [prepare_for_testing "failed to prepare" ${testfile}-probes \
${srcfile} {debug c++ additional_flags=-DUSE_PROBES}] } {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test \
@@ -863,7 +865,7 @@ proc_with_prefix test_catchpoints {} {
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
# Try to create a catchpoint, currently this isn't supported via
@@ -879,7 +881,7 @@ proc_with_prefix test_catchpoints {} {
gdb_test_multiple "catch throw" "" {
-re "The feature \'catch throw\' is not supported.*\r\n$gdb_prompt $" {
unsupported "catch syscall isn't supported"
- return -1
+ return
}
-re "Catchpoint ($decimal) \\(throw\\)\r\n$gdb_prompt $" {
set num $expect_out(1,string)
@@ -922,7 +924,7 @@ proc_with_prefix test_bkpt_auto_disable { } {
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
delete_breakpoints
diff --git a/gdb/testsuite/gdb.python/py-disasm.exp.tcl b/gdb/testsuite/gdb.python/py-disasm.exp.tcl
index e4391fa59ced..6382005eee52 100644
--- a/gdb/testsuite/gdb.python/py-disasm.exp.tcl
+++ b/gdb/testsuite/gdb.python/py-disasm.exp.tcl
@@ -30,7 +30,7 @@ if { $kind == "obj" } {
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile object \
"debug"] != "" } {
untested "failed to compile object file $testfile"
- return -1
+ return
}
clean_restart $testfile
@@ -38,12 +38,12 @@ if { $kind == "obj" } {
} else {
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if { ![runto_main] } {
fail "can't run to main"
- return 0
+ return
}
}
diff --git a/gdb/testsuite/gdb.python/py-explore-cc.exp b/gdb/testsuite/gdb.python/py-explore-cc.exp
index 772886b931f9..70b1beeada0a 100644
--- a/gdb/testsuite/gdb.python/py-explore-cc.exp
+++ b/gdb/testsuite/gdb.python/py-explore-cc.exp
@@ -37,7 +37,7 @@ i = <Enter 1 to explore this field of type 'int'>.*\
c = <Enter 2 to explore this field of type 'char'>.*"
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here."]
diff --git a/gdb/testsuite/gdb.python/py-explore.exp b/gdb/testsuite/gdb.python/py-explore.exp
index 276148da8f10..debe30315356 100644
--- a/gdb/testsuite/gdb.python/py-explore.exp
+++ b/gdb/testsuite/gdb.python/py-explore.exp
@@ -76,7 +76,7 @@ proc scalar_value { value_name value } {
set SS_fields [field_values {a = 10} {d = 100[.].*}]
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here."]
diff --git a/gdb/testsuite/gdb.python/py-format-address.exp b/gdb/testsuite/gdb.python/py-format-address.exp
index dda012234b77..9f32686dfd3d 100644
--- a/gdb/testsuite/gdb.python/py-format-address.exp
+++ b/gdb/testsuite/gdb.python/py-format-address.exp
@@ -23,7 +23,7 @@ foreach func_name { foo bar } {
[list debug \
nopie \
additional_flags=-DFUNCTION_NAME=${func_name}]] == -1} {
- return -1
+ return
}
}
@@ -35,7 +35,7 @@ set binary_bar [standard_output_file $testfile_bar]
clean_restart $testfile_foo
if {![runto_main]} {
- return -1
+ return
}
# Check the gdb.format_address method when using the default values
diff --git a/gdb/testsuite/gdb.python/py-framefilter-addr.exp b/gdb/testsuite/gdb.python/py-framefilter-addr.exp
index 3c0436ce1972..1c85a8afcb36 100644
--- a/gdb/testsuite/gdb.python/py-framefilter-addr.exp
+++ b/gdb/testsuite/gdb.python/py-framefilter-addr.exp
@@ -28,7 +28,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
}
if {![runto_main]} {
- return -1
+ return
}
# Run to our test breakpoint.
diff --git a/gdb/testsuite/gdb.python/py-label-symbol-value.exp b/gdb/testsuite/gdb.python/py-label-symbol-value.exp
index c97ae72ec58d..bd3f9ee689e9 100644
--- a/gdb/testsuite/gdb.python/py-label-symbol-value.exp
+++ b/gdb/testsuite/gdb.python/py-label-symbol-value.exp
@@ -25,7 +25,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
}
if {![runto_main]} {
- return -1
+ return
}
# Use Python to print the value of the 'some_label' symbol.
diff --git a/gdb/testsuite/gdb.python/py-linetable-empty.exp b/gdb/testsuite/gdb.python/py-linetable-empty.exp
index 651fe9b6dbf3..3244d88a9367 100644
--- a/gdb/testsuite/gdb.python/py-linetable-empty.exp
+++ b/gdb/testsuite/gdb.python/py-linetable-empty.exp
@@ -43,7 +43,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "python print(gdb.selected_frame().function().symtab.fullname())" \
diff --git a/gdb/testsuite/gdb.python/py-pp-registration.exp b/gdb/testsuite/gdb.python/py-pp-registration.exp
index 3d974b2120b6..ab84a0f7f905 100644
--- a/gdb/testsuite/gdb.python/py-pp-registration.exp
+++ b/gdb/testsuite/gdb.python/py-pp-registration.exp
@@ -64,7 +64,7 @@ proc test_printers { s_prefix } {
with_test_prefix "verbose off" {
if {![prepare_test]} {
- return -1
+ return
}
gdb_test_no_output "set verbose off"
@@ -79,7 +79,7 @@ with_test_prefix "verbose off" {
with_test_prefix "verbose on" {
if {![prepare_test]} {
- return -1
+ return
}
gdb_test_no_output "set verbose on"
@@ -96,7 +96,7 @@ with_test_prefix "verbose on" {
with_test_prefix "replace" {
if {![prepare_test]} {
- return -1
+ return
}
gdb_test_no_output "py gdb.printing.register_pretty_printer(gdb, lookup_function_lookup_test)"
diff --git a/gdb/testsuite/gdb.python/py-read-memory-leak.exp b/gdb/testsuite/gdb.python/py-read-memory-leak.exp
index 58343126e67c..1a361c990533 100644
--- a/gdb/testsuite/gdb.python/py-read-memory-leak.exp
+++ b/gdb/testsuite/gdb.python/py-read-memory-leak.exp
@@ -27,7 +27,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_py_run_memory_leak_test ${srcdir}/${subdir}/${testfile}.py \
diff --git a/gdb/testsuite/gdb.python/py-record-btrace.exp b/gdb/testsuite/gdb.python/py-record-btrace.exp
index 4e324e71fc09..d5a647ebc59a 100644
--- a/gdb/testsuite/gdb.python/py-record-btrace.exp
+++ b/gdb/testsuite/gdb.python/py-record-btrace.exp
@@ -23,7 +23,9 @@ load_lib gdb-python.exp
standard_testfile
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 }
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
+ return
+}
if {![runto_main]} {
return
diff --git a/gdb/testsuite/gdb.python/py-record-full.exp b/gdb/testsuite/gdb.python/py-record-full.exp
index 95640770e9a5..37bf07a64bfd 100644
--- a/gdb/testsuite/gdb.python/py-record-full.exp
+++ b/gdb/testsuite/gdb.python/py-record-full.exp
@@ -23,7 +23,9 @@ load_lib gdb-python.exp
standard_testfile
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} { return -1 }
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
+ return
+}
if {![runto_main]} {
return
diff --git a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp
index 576fd5a85d3d..5e2b769cf71f 100644
--- a/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp
+++ b/gdb/testsuite/gdb.python/py-rvalue-ref-value-cc.exp
@@ -27,7 +27,7 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile \
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here."]
diff --git a/gdb/testsuite/gdb.python/py-template.exp b/gdb/testsuite/gdb.python/py-template.exp
index 9099e7e32dc0..c6c82f33283e 100644
--- a/gdb/testsuite/gdb.python/py-template.exp
+++ b/gdb/testsuite/gdb.python/py-template.exp
@@ -36,7 +36,7 @@ proc test_template_arg {exefile type} {
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${exefile}" \
executable $opts] != "" } {
untested $type
- return -1
+ return
}
gdb_load ${exefile}
# There is no executable code in main(), so we are where we want to be
diff --git a/gdb/testsuite/gdb.python/py-value-cc.exp b/gdb/testsuite/gdb.python/py-value-cc.exp
index 1d65d617e30d..fa0cd066978b 100644
--- a/gdb/testsuite/gdb.python/py-value-cc.exp
+++ b/gdb/testsuite/gdb.python/py-value-cc.exp
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "Break here."]
diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp
index 3746a6cbc0bc..ba3b1376ff5a 100644
--- a/gdb/testsuite/gdb.python/py-value.exp
+++ b/gdb/testsuite/gdb.python/py-value.exp
@@ -821,7 +821,7 @@ test_add_to_history
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
test_unavailable
@@ -840,7 +840,7 @@ test_subscript_regression "${binfile}" "c"
if {[allow_cplus_tests]} {
if { [build_inferior "${binfile}-cxx" "c++"] < 0 } {
- return -1
+ return
}
with_test_prefix "c++" {
test_subscript_regression "${binfile}-cxx" "c++"
diff --git a/gdb/testsuite/gdb.python/py-xmethods.exp b/gdb/testsuite/gdb.python/py-xmethods.exp
index 52f0a7597093..b8a8b46c1db3 100644
--- a/gdb/testsuite/gdb.python/py-xmethods.exp
+++ b/gdb/testsuite/gdb.python/py-xmethods.exp
@@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
}
if {![runto_main]} {
- return -1
+ return
}
set xmethods_script [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp
index f2f32019e4c2..27dbc555a17b 100644
--- a/gdb/testsuite/gdb.python/python.exp
+++ b/gdb/testsuite/gdb.python/python.exp
@@ -48,7 +48,7 @@ gdb_test_multiple "python print (23)" "verify python support" {
"print (23)" "" \
"end" "not supported.*"
- return -1
+ return
}
-re "$gdb_prompt $" {}
}
@@ -210,7 +210,7 @@ clean_restart ${testfile}
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
set lineno [gdb_get_line_number "Break to end."]
@@ -424,7 +424,7 @@ clean_restart ${testfile}
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
# print-stack settings
@@ -479,7 +479,7 @@ clean_restart ${testfile}
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
runto [gdb_get_line_number "Break at func2 call site."]
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 24/36] GDB: testsuite: linespec: Don't return -1 from top-level
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (22 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 23/36] GDB: testsuite: Python: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 25/36] GDB: testsuite: MI: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (11 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
Most changes are the result of running:
$ sed -i 's/^ return -1/ return/' *.exp
inside gdb/testsuite/gdb.linespec. The exceptions fall into one of
these criteria:
- misaligned line, which is then fixed by this patch;
- return at top level but inside a namespace block;
- procedure whose callers don't use the return value.
---
gdb/testsuite/gdb.linespec/break-ask.exp | 2 +-
gdb/testsuite/gdb.linespec/break-asm-file.exp | 8 ++++----
gdb/testsuite/gdb.linespec/cp-completion-aliases.exp | 2 +-
.../gdb.linespec/cp-replace-typedefs-ns-template.exp | 2 +-
gdb/testsuite/gdb.linespec/cpcompletion.exp | 4 ++--
gdb/testsuite/gdb.linespec/cpexplicit.exp | 4 ++--
gdb/testsuite/gdb.linespec/cpls-abi-tag.exp | 4 ++--
gdb/testsuite/gdb.linespec/cpls-ops.exp | 4 ++--
gdb/testsuite/gdb.linespec/errors.exp | 2 +-
gdb/testsuite/gdb.linespec/explicit.exp | 4 ++--
gdb/testsuite/gdb.linespec/keywords.exp | 4 ++--
gdb/testsuite/gdb.linespec/linespec.exp | 2 +-
gdb/testsuite/gdb.linespec/ls-dollar.exp | 2 +-
gdb/testsuite/gdb.linespec/ls-errs.exp | 6 +++---
gdb/testsuite/gdb.linespec/macro-relative.exp | 2 +-
gdb/testsuite/gdb.linespec/skip-two.exp | 6 +++---
gdb/testsuite/gdb.linespec/thread.exp | 4 ++--
17 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/gdb/testsuite/gdb.linespec/break-ask.exp b/gdb/testsuite/gdb.linespec/break-ask.exp
index ed91d7defb15..90d5044765e4 100644
--- a/gdb/testsuite/gdb.linespec/break-ask.exp
+++ b/gdb/testsuite/gdb.linespec/break-ask.exp
@@ -42,7 +42,7 @@ with_cwd $srcdir/${subdir}/base/two {
if { [gdb_compile "$srcdir/${subdir}/$srcfile $objfile1 $objfile2" \
$binfile executable $opts] != "" } {
- return -1
+ return
}
clean_restart ${testfile}
diff --git a/gdb/testsuite/gdb.linespec/break-asm-file.exp b/gdb/testsuite/gdb.linespec/break-asm-file.exp
index b8dadc15c4ca..c6ae8dea7be9 100644
--- a/gdb/testsuite/gdb.linespec/break-asm-file.exp
+++ b/gdb/testsuite/gdb.linespec/break-asm-file.exp
@@ -28,22 +28,22 @@ require dwarf2_support
if {[gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
object {debug nowarnings optimize=-O0}] != ""} {
- return -1
+ return
}
# Compile .s files without debug information.
if {[gdb_compile ${srcdir}/${subdir}/$asm_file0 ${binfile}2.o \
object {nodebug}] != ""} {
- return -1
+ return
}
if {[gdb_compile ${srcdir}/${subdir}/$asm_file1 ${binfile}3.o \
object {nodebug}] != ""} {
- return -1
+ return
}
if {[gdb_compile [list ${binfile}1.o ${binfile}2.o ${binfile}3.o] \
"${binfile}" executable {}] != ""} {
- return -1
+ return
}
clean_restart $execfile
diff --git a/gdb/testsuite/gdb.linespec/cp-completion-aliases.exp b/gdb/testsuite/gdb.linespec/cp-completion-aliases.exp
index fe7ae40c9a22..a3f99998840f 100644
--- a/gdb/testsuite/gdb.linespec/cp-completion-aliases.exp
+++ b/gdb/testsuite/gdb.linespec/cp-completion-aliases.exp
@@ -21,7 +21,7 @@ load_lib completion-support.exp
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# Disable the completion limit for the whole testcase.
diff --git a/gdb/testsuite/gdb.linespec/cp-replace-typedefs-ns-template.exp b/gdb/testsuite/gdb.linespec/cp-replace-typedefs-ns-template.exp
index b12f14da1543..c82410e29325 100644
--- a/gdb/testsuite/gdb.linespec/cp-replace-typedefs-ns-template.exp
+++ b/gdb/testsuite/gdb.linespec/cp-replace-typedefs-ns-template.exp
@@ -23,7 +23,7 @@ standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug c++ additional_flags=-std=c++11}]} {
- return -1
+ return
}
# Disable the completion limit for the whole testcase.
diff --git a/gdb/testsuite/gdb.linespec/cpcompletion.exp b/gdb/testsuite/gdb.linespec/cpcompletion.exp
index 14eb1a68c81a..96c7a968ed6c 100644
--- a/gdb/testsuite/gdb.linespec/cpcompletion.exp
+++ b/gdb/testsuite/gdb.linespec/cpcompletion.exp
@@ -30,7 +30,7 @@ lappend flags debug
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3 $srcfile4] $opts]} {
- return -1
+ return
}
# Tests below are about tab-completion, which doesn't work if readline
@@ -38,7 +38,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
if { ![readline_is_used] } {
untested "no tab completion support without readline"
- return -1
+ return
}
#
diff --git a/gdb/testsuite/gdb.linespec/cpexplicit.exp b/gdb/testsuite/gdb.linespec/cpexplicit.exp
index b5dbc6dceece..8c9de2aa8991 100644
--- a/gdb/testsuite/gdb.linespec/cpexplicit.exp
+++ b/gdb/testsuite/gdb.linespec/cpexplicit.exp
@@ -22,7 +22,7 @@ set exefile $testfile
if {[prepare_for_testing "failed to prepare" $exefile $srcfile \
{c++ debug nowarnings}]} {
- return -1
+ return
}
# Wrap this whole test in a namespace to avoid contaminating other tests.
@@ -90,7 +90,7 @@ namespace eval $testfile {
# Fire up gdb.
if {![runto_main]} {
namespace delete $testfile
- return -1
+ return
}
# Test explicit linespecs, with and without conditions.
diff --git a/gdb/testsuite/gdb.linespec/cpls-abi-tag.exp b/gdb/testsuite/gdb.linespec/cpls-abi-tag.exp
index 6399f252d71d..80c8a3937e11 100644
--- a/gdb/testsuite/gdb.linespec/cpls-abi-tag.exp
+++ b/gdb/testsuite/gdb.linespec/cpls-abi-tag.exp
@@ -31,7 +31,7 @@ if { [test_compiler_info gcc-*] } {
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile] {c++ debug}]} {
- return -1
+ return
}
# Tests below are about tab-completion, which doesn't work if readline
@@ -39,7 +39,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
if { ![readline_is_used] } {
untested "no tab completion support without readline"
- return -1
+ return
}
gdb_test_no_output "set max-completions unlimited"
diff --git a/gdb/testsuite/gdb.linespec/cpls-ops.exp b/gdb/testsuite/gdb.linespec/cpls-ops.exp
index 4cef26e6767e..c49afaa9856c 100644
--- a/gdb/testsuite/gdb.linespec/cpls-ops.exp
+++ b/gdb/testsuite/gdb.linespec/cpls-ops.exp
@@ -25,7 +25,7 @@ lappend flags c++
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile] $flags]} {
- return -1
+ return
}
# Tests below are about tab-completion, which doesn't work if readline
@@ -33,7 +33,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
if { ![readline_is_used] } {
untested "no tab completion support without readline"
- return -1
+ return
}
gdb_test_no_output "set max-completions unlimited"
diff --git a/gdb/testsuite/gdb.linespec/errors.exp b/gdb/testsuite/gdb.linespec/errors.exp
index 8f60f0eca30b..8e69dd6fa058 100644
--- a/gdb/testsuite/gdb.linespec/errors.exp
+++ b/gdb/testsuite/gdb.linespec/errors.exp
@@ -19,7 +19,7 @@
# another one.
if {[prepare_for_testing "failed to prepare" linespecs keywords.c]} {
- return -1
+ return
}
# PR gdb/12843
diff --git a/gdb/testsuite/gdb.linespec/explicit.exp b/gdb/testsuite/gdb.linespec/explicit.exp
index faee27bab4a5..ccf74d3863d6 100644
--- a/gdb/testsuite/gdb.linespec/explicit.exp
+++ b/gdb/testsuite/gdb.linespec/explicit.exp
@@ -27,7 +27,7 @@ lappend opts additional_flags=-nostdlib
if {[prepare_for_testing "failed to prepare" $exefile \
[list $srcfile $srcfile2 $srcfile3] $opts]} {
- return -1
+ return
}
# Wrap the entire test in a namespace to avoid contaminating other tests.
@@ -98,7 +98,7 @@ namespace eval $testfile {
# Fire up gdb.
if {![runto_main]} {
- return -1
+ return
}
# Turn off queries
diff --git a/gdb/testsuite/gdb.linespec/keywords.exp b/gdb/testsuite/gdb.linespec/keywords.exp
index 36069868f444..ae9380575cf6 100644
--- a/gdb/testsuite/gdb.linespec/keywords.exp
+++ b/gdb/testsuite/gdb.linespec/keywords.exp
@@ -19,11 +19,11 @@ standard_testfile
set exefile $testfile
if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
# Turn off pending breakpoints to facilitate testing errors.
diff --git a/gdb/testsuite/gdb.linespec/linespec.exp b/gdb/testsuite/gdb.linespec/linespec.exp
index 0345fc5098ef..771dede9bb64 100644
--- a/gdb/testsuite/gdb.linespec/linespec.exp
+++ b/gdb/testsuite/gdb.linespec/linespec.exp
@@ -27,7 +27,7 @@ require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $exefile \
[list $srcfile $baseone $basetwo] \
{debug nowarnings c++}]} {
- return -1
+ return
}
gdb_test_no_output "set multiple-symbols all" \
diff --git a/gdb/testsuite/gdb.linespec/ls-dollar.exp b/gdb/testsuite/gdb.linespec/ls-dollar.exp
index 584ea35447e4..a000c5b39695 100644
--- a/gdb/testsuite/gdb.linespec/ls-dollar.exp
+++ b/gdb/testsuite/gdb.linespec/ls-dollar.exp
@@ -22,7 +22,7 @@ require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $exefile $srcfile \
{debug nowarnings c++}]} {
- return -1
+ return
}
gdb_test_no_output "set listsize 1"
diff --git a/gdb/testsuite/gdb.linespec/ls-errs.exp b/gdb/testsuite/gdb.linespec/ls-errs.exp
index 1bd6efd10fdf..418d67b82b6b 100644
--- a/gdb/testsuite/gdb.linespec/ls-errs.exp
+++ b/gdb/testsuite/gdb.linespec/ls-errs.exp
@@ -31,14 +31,14 @@ proc do_test {lang} {
if {$lang == "C++"} {
if {![allow_cplus_tests]} {
- return 0
+ return
}
# Build ".c" source file with g++.
lappend options "c++"
}
if {[prepare_for_testing "failed to prepare" $exefile $srcfile $options]} {
- return -1
+ return
}
# Turn off the pending breakpoint queries.
@@ -48,7 +48,7 @@ proc do_test {lang} {
gdb_test_no_output "set max-completions unlimited"
if {![runto_main]} {
- return 0
+ return
}
# Run to a location in the file.
diff --git a/gdb/testsuite/gdb.linespec/macro-relative.exp b/gdb/testsuite/gdb.linespec/macro-relative.exp
index b0ac538be69d..99a6dac78921 100644
--- a/gdb/testsuite/gdb.linespec/macro-relative.exp
+++ b/gdb/testsuite/gdb.linespec/macro-relative.exp
@@ -42,7 +42,7 @@ clean_restart ${testfile}
# "list header_two_func" does not set exactly the one line we want.
if {![runto header_two_func]} {
- return -1
+ return
}
gdb_test "info macro HEADER" "\r\n#define HEADER 2"
diff --git a/gdb/testsuite/gdb.linespec/skip-two.exp b/gdb/testsuite/gdb.linespec/skip-two.exp
index 0a8af84441a3..3c5e438f1177 100644
--- a/gdb/testsuite/gdb.linespec/skip-two.exp
+++ b/gdb/testsuite/gdb.linespec/skip-two.exp
@@ -25,14 +25,14 @@ require allow_cplus_tests
if {[prepare_for_testing "failed to prepare" $execfile \
[list $srcfile $baseone $basetwo] \
{debug nowarnings c++}]} {
- return -1
+ return
}
gdb_test "skip function dupname" \
{Function dupname will be skipped when stepping\.}
if {![runto_main]} {
- return -1
+ return
}
set test "dupname ignored from main"
@@ -64,7 +64,7 @@ gdb_test "skip file thefile.cc" \
{File thefile\.cc will be skipped when stepping\.}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "step" "static int dupname .*" "step into dupname"
diff --git a/gdb/testsuite/gdb.linespec/thread.exp b/gdb/testsuite/gdb.linespec/thread.exp
index 30a21e8fe2fd..ab63fe52a1d9 100644
--- a/gdb/testsuite/gdb.linespec/thread.exp
+++ b/gdb/testsuite/gdb.linespec/thread.exp
@@ -20,11 +20,11 @@ standard_testfile
set exefile $testfile
if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 25/36] GDB: testsuite: MI: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (23 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 24/36] GDB: testsuite: linespec: Don't return -1 from top-level Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 26/36] GDB: testsuite: MI: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (10 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.mi.
---
gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp | 2 +-
gdb/testsuite/gdb.mi/gdb669.exp | 2 +-
gdb/testsuite/gdb.mi/interrupt-thread-group.exp | 2 +-
gdb/testsuite/gdb.mi/list-thread-groups-available.exp | 2 +-
gdb/testsuite/gdb.mi/mi-add-inferior.exp | 2 +-
gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp | 2 +-
gdb/testsuite/gdb.mi/mi-breakpoint-script.exp | 2 +-
gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-catch-load.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-cmd-user-context.exp | 2 +-
gdb/testsuite/gdb.mi/mi-condbreak-fail.exp | 2 +-
gdb/testsuite/gdb.mi/mi-condbreak-throw.exp | 2 +-
gdb/testsuite/gdb.mi/mi-corefile.exp | 2 +-
gdb/testsuite/gdb.mi/mi-dprintf-pending.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-dprintf.exp | 2 +-
gdb/testsuite/gdb.mi/mi-exit-code.exp | 2 +-
gdb/testsuite/gdb.mi/mi-file-transfer.exp | 2 +-
gdb/testsuite/gdb.mi/mi-fortran-modules.exp | 2 +-
gdb/testsuite/gdb.mi/mi-fullname-deleted.exp | 6 +++---
gdb/testsuite/gdb.mi/mi-info-os.exp | 6 +++---
gdb/testsuite/gdb.mi/mi-info-sources.exp | 2 +-
gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp | 2 +-
gdb/testsuite/gdb.mi/mi-logging.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-memory-changed.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nonstop.exp | 2 +-
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsintrall.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsmoribund.exp | 2 +-
gdb/testsuite/gdb.mi/mi-nsthrexec.exp | 2 +-
gdb/testsuite/gdb.mi/mi-pending.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-pthreads.exp | 2 +-
gdb/testsuite/gdb.mi/mi-py-modify-bp.exp | 2 +-
gdb/testsuite/gdb.mi/mi-record-changed.exp | 2 +-
gdb/testsuite/gdb.mi/mi-reg-undefined.exp | 2 +-
gdb/testsuite/gdb.mi/mi-stepn.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-sym-info.exp | 2 +-
gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp | 2 +-
gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp | 2 +-
gdb/testsuite/gdb.mi/mi-threads-interrupt.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-block.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-child-f.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-child.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-var-cmd.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-create-rtti.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-var-display.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-var-invalidate.exp | 6 +++---
.../gdb.mi/mi-var-list-children-invalid-grandchild.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-rtti.exp | 2 +-
gdb/testsuite/gdb.mi/mi-watch-nonstop.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-cli-display.exp | 2 +-
gdb/testsuite/gdb.mi/mi2-var-child.exp | 2 +-
gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp | 2 +-
gdb/testsuite/gdb.mi/new-ui-mi-sync.exp | 2 +-
gdb/testsuite/gdb.mi/print-simple-values.exp | 2 +-
gdb/testsuite/gdb.mi/user-selected-context-sync.exp | 2 +-
59 files changed, 75 insertions(+), 75 deletions(-)
diff --git a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp
index ad0dd162c495..94f42fe77ab8 100644
--- a/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp
+++ b/gdb/testsuite/gdb.mi/dw2-ref-missing-frame.exp
@@ -39,7 +39,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $objsfile object {}] != ""
|| [gdb_compile "${srcdir}/${subdir}/${srcfile2}" $objfuncfile object {}] != ""
|| [gdb_compile "${srcdir}/${subdir}/${srcfile3}" $objmainfile object {debug}] != ""
|| [gdb_compile "$objfuncfile $objsfile $objmainfile" $binfile executable {}] != "" } {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/gdb669.exp b/gdb/testsuite/gdb.mi/gdb669.exp
index a07117a3804c..b03577d85748 100644
--- a/gdb/testsuite/gdb.mi/gdb669.exp
+++ b/gdb/testsuite/gdb.mi/gdb669.exp
@@ -27,7 +27,7 @@ standard_testfile pthreads.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/interrupt-thread-group.exp b/gdb/testsuite/gdb.mi/interrupt-thread-group.exp
index 17a2a42c5e6c..f2c45a9dc27e 100644
--- a/gdb/testsuite/gdb.mi/interrupt-thread-group.exp
+++ b/gdb/testsuite/gdb.mi/interrupt-thread-group.exp
@@ -25,7 +25,7 @@ standard_testfile .c
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile \
executable {debug additional_flags=-std=gnu99}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp b/gdb/testsuite/gdb.mi/list-thread-groups-available.exp
index 426e39ff2b63..77f932cd167e 100644
--- a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp
+++ b/gdb/testsuite/gdb.mi/list-thread-groups-available.exp
@@ -26,7 +26,7 @@ require can_spawn_for_attach
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_gdb_start]} {
diff --git a/gdb/testsuite/gdb.mi/mi-add-inferior.exp b/gdb/testsuite/gdb.mi/mi-add-inferior.exp
index fc9002bd6279..607eaacdf22d 100644
--- a/gdb/testsuite/gdb.mi/mi-add-inferior.exp
+++ b/gdb/testsuite/gdb.mi/mi-add-inferior.exp
@@ -23,7 +23,7 @@ standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
mi_clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp b/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp
index 78e2ebc3ea88..688ad46f1b39 100644
--- a/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp
+++ b/gdb/testsuite/gdb.mi/mi-breakpoint-changed.exp
@@ -32,7 +32,7 @@ set lib_opts "debug"
if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
|| [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
untested "failed to compile shared library"
- return -1
+ return
}
set MIFLAGS "-i=mi"
@@ -40,7 +40,7 @@ set MIFLAGS "-i=mi"
set exec_opts [list debug shlib=$lib_sl1 shlib_load]
if { [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
proc test_insert_delete_modify { } {
diff --git a/gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp b/gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp
index eb20460f7594..95097568624e 100644
--- a/gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp
+++ b/gdb/testsuite/gdb.mi/mi-breakpoint-multiple-locations.exp
@@ -19,7 +19,7 @@ load_lib mi-support.exp
standard_testfile .cc
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug c++}] != "" } {
- return -1
+ return
}
# Generate the regexp pattern used to match the breakpoint description emitted
diff --git a/gdb/testsuite/gdb.mi/mi-breakpoint-script.exp b/gdb/testsuite/gdb.mi/mi-breakpoint-script.exp
index 70a03d9e0a08..0ec3b4d1abca 100644
--- a/gdb/testsuite/gdb.mi/mi-breakpoint-script.exp
+++ b/gdb/testsuite/gdb.mi/mi-breakpoint-script.exp
@@ -20,7 +20,7 @@ load_lib mi-support.exp
standard_testfile .c
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
- return -1
+ return
}
# Generate the regexp pattern used to match the breakpoint description emitted
diff --git a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
index ef3164034e79..3581bbe8d794 100644
--- a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
+++ b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
@@ -24,12 +24,12 @@ standard_testfile .cc
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
untested "failed to compile"
- return -1
+ return
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return -1
+ return
}
set libstdcxx_probe_tests_supported [expr {![mi_skip_libstdcxx_probe_tests]}]
diff --git a/gdb/testsuite/gdb.mi/mi-catch-load.exp b/gdb/testsuite/gdb.mi/mi-catch-load.exp
index 4afd9154eb39..e42f9c075ab0 100644
--- a/gdb/testsuite/gdb.mi/mi-catch-load.exp
+++ b/gdb/testsuite/gdb.mi/mi-catch-load.exp
@@ -20,7 +20,7 @@ standard_testfile mi-catch-load.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } {
untested "failed to compile"
- return -1
+ return
}
set testfile2 mi-catch-load-so
@@ -29,7 +29,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
}
gdb_download_shlib $binfile2
diff --git a/gdb/testsuite/gdb.mi/mi-cmd-user-context.exp b/gdb/testsuite/gdb.mi/mi-cmd-user-context.exp
index 6e5be0d27764..7ee1949e4405 100644
--- a/gdb/testsuite/gdb.mi/mi-cmd-user-context.exp
+++ b/gdb/testsuite/gdb.mi/mi-cmd-user-context.exp
@@ -22,7 +22,7 @@ standard_testfile
if {[build_executable $testfile.exp $testfile ${srcfile} "debug pthreads"] == -1} {
untested "failed to compile"
- return -1
+ return
}
set main_break_line [gdb_get_line_number "main break line"]
diff --git a/gdb/testsuite/gdb.mi/mi-condbreak-fail.exp b/gdb/testsuite/gdb.mi/mi-condbreak-fail.exp
index db3b61e320fd..99629840e04e 100644
--- a/gdb/testsuite/gdb.mi/mi-condbreak-fail.exp
+++ b/gdb/testsuite/gdb.mi/mi-condbreak-fail.exp
@@ -23,7 +23,7 @@ set MIFLAGS "-i=mi"
standard_testfile
if {[build_executable ${testfile}.exp ${binfile} ${srcfile}]} {
- return -1
+ return
}
# Create a breakpoint with a condition that invokes an inferior
diff --git a/gdb/testsuite/gdb.mi/mi-condbreak-throw.exp b/gdb/testsuite/gdb.mi/mi-condbreak-throw.exp
index 97e671cd2dab..e367f7a24200 100644
--- a/gdb/testsuite/gdb.mi/mi-condbreak-throw.exp
+++ b/gdb/testsuite/gdb.mi/mi-condbreak-throw.exp
@@ -26,7 +26,7 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
if {[build_executable ${testfile}.exp ${binfile} ${srcfile} {debug c++}]} {
- return -1
+ return
}
# Create a breakpoint with a condition that invokes an inferior
diff --git a/gdb/testsuite/gdb.mi/mi-corefile.exp b/gdb/testsuite/gdb.mi/mi-corefile.exp
index d3fd841abf40..67c6183f3867 100644
--- a/gdb/testsuite/gdb.mi/mi-corefile.exp
+++ b/gdb/testsuite/gdb.mi/mi-corefile.exp
@@ -24,7 +24,7 @@ standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
untested "failed to compile"
- return -1
+ return
}
set corefile [core_find $binfile {}]
diff --git a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
index f9767fb8c27c..b2e1cc3438cb 100644
--- a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
+++ b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
@@ -31,12 +31,12 @@ set exec_opts [list debug shlib=$lib_sl1 shlib_load]
if {[gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""} {
untested "failed to compile shared library"
- return -1
+ return
}
if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-dprintf.exp b/gdb/testsuite/gdb.mi/mi-dprintf.exp
index 3f0e4dba1d99..9b2c192e5041 100644
--- a/gdb/testsuite/gdb.mi/mi-dprintf.exp
+++ b/gdb/testsuite/gdb.mi/mi-dprintf.exp
@@ -25,7 +25,7 @@ lappend_include_file flags $srcdir/lib/unbuffer_output.c
if {[build_executable $testfile.exp $testfile $srcfile $flags] == -1} {
untested "failed to compile"
- return -1
+ return
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
diff --git a/gdb/testsuite/gdb.mi/mi-exit-code.exp b/gdb/testsuite/gdb.mi/mi-exit-code.exp
index c12d1158c07b..2e48c7ce028d 100644
--- a/gdb/testsuite/gdb.mi/mi-exit-code.exp
+++ b/gdb/testsuite/gdb.mi/mi-exit-code.exp
@@ -20,7 +20,7 @@ standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
proc test_list_thread_groups { } {
diff --git a/gdb/testsuite/gdb.mi/mi-file-transfer.exp b/gdb/testsuite/gdb.mi/mi-file-transfer.exp
index 7a42766964e7..5fc137ba5a05 100644
--- a/gdb/testsuite/gdb.mi/mi-file-transfer.exp
+++ b/gdb/testsuite/gdb.mi/mi-file-transfer.exp
@@ -26,7 +26,7 @@ standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart]} {
diff --git a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
index 2d874612e05d..c08d5c2038a7 100644
--- a/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
+++ b/gdb/testsuite/gdb.mi/mi-fortran-modules.exp
@@ -25,7 +25,7 @@ standard_testfile "mi-fortran-modules.f90" "mi-fortran-modules-2.f90"
if {[build_executable "failed to prepare" ${testfile} \
[list $srcfile2 $srcfile] {debug f90}]} {
- return -1
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-fullname-deleted.exp b/gdb/testsuite/gdb.mi/mi-fullname-deleted.exp
index 803c07b3ea03..9f56e03d747a 100644
--- a/gdb/testsuite/gdb.mi/mi-fullname-deleted.exp
+++ b/gdb/testsuite/gdb.mi/mi-fullname-deleted.exp
@@ -32,13 +32,13 @@ set srcfileabs [standard_output_file $srcfile]
# not match" test when using Clang (it can never fail).
if { [regsub {/[^/]+$} $srcfileabs {/\0} srcfileabs] != 1 } {
xfail "cannot double the last slash separator"
- return -1
+ return
}
if { [regsub {^(/[^/]+)/} $srcfileabs {\1subst/} srcfileabssubst] != 1
|| [regsub {^(/[^/]+)/.*$} $srcfileabs {\1} initdir] != 1 } {
xfail "missing root subdirectory"
- return -1
+ return
}
# Generate a regular expression which to match $srcfileabs with
@@ -53,7 +53,7 @@ close $f
if { [gdb_compile "$srcfileabs" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
file delete -- $srcfileabs
diff --git a/gdb/testsuite/gdb.mi/mi-info-os.exp b/gdb/testsuite/gdb.mi/mi-info-os.exp
index 9adc8d31c4ed..f802d8cfd92e 100644
--- a/gdb/testsuite/gdb.mi/mi-info-os.exp
+++ b/gdb/testsuite/gdb.mi/mi-info-os.exp
@@ -19,7 +19,7 @@ set MIFLAGS "-i=mi"
# This test is Linux-only.
if {![istarget *-*-linux*]} {
unsupported "mi-info-os.exp"
- return -1
+ return
}
# Support for XML-output is needed to run this test.
@@ -29,7 +29,7 @@ standard_testfile basics.c
if {[build_executable "Failed to build $testfile" $testfile $srcfile \
debug]} {
- return -1;
+ return;
}
if {[mi_clean_restart $::testfile]} {
@@ -44,7 +44,7 @@ if {[mi_clean_restart $::testfile]} {
# running any program, so we want to avoid "run". Using
# mi_gdb_target_load directly instead achieves this.
if {[mi_gdb_target_load] < 0} {
- return -1
+ return
}
# Try the argument-less form that lists all the types in a table.
diff --git a/gdb/testsuite/gdb.mi/mi-info-sources.exp b/gdb/testsuite/gdb.mi/mi-info-sources.exp
index ab92fff197c0..0b3016c0b55d 100644
--- a/gdb/testsuite/gdb.mi/mi-info-sources.exp
+++ b/gdb/testsuite/gdb.mi/mi-info-sources.exp
@@ -23,7 +23,7 @@ standard_testfile .c -base.c
if {[build_executable $testfile.exp $testfile \
[list $srcfile $srcfile2] debug]} {
untested $testfile.exp
- return -1
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp b/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp
index b06f4686e082..91261597fa91 100644
--- a/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp
+++ b/gdb/testsuite/gdb.mi/mi-linespec-err-cp.exp
@@ -26,7 +26,7 @@ standard_testfile .cc
set exefile $testfile
if {[build_executable "failed to prepare" $exefile $srcfile {debug c++}]} {
- return -1
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-logging.exp b/gdb/testsuite/gdb.mi/mi-logging.exp
index 6cff709cfc5c..1ed0d229bae0 100644
--- a/gdb/testsuite/gdb.mi/mi-logging.exp
+++ b/gdb/testsuite/gdb.mi/mi-logging.exp
@@ -21,13 +21,13 @@ set opts {debug}
if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
untested "failed to compile"
- return -1
+ return
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return -1
+ return
}
set milogfile [standard_output_file "milog.txt"]
diff --git a/gdb/testsuite/gdb.mi/mi-memory-changed.exp b/gdb/testsuite/gdb.mi/mi-memory-changed.exp
index 6f41ecd8ad32..916d240b09bc 100644
--- a/gdb/testsuite/gdb.mi/mi-memory-changed.exp
+++ b/gdb/testsuite/gdb.mi/mi-memory-changed.exp
@@ -17,7 +17,7 @@ standard_testfile basics.c
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested "failed to compile"
- return -1
+ return
}
load_lib mi-support.exp
diff --git a/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp b/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp
index 8958755c57a4..ba62f74bf015 100644
--- a/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp
+++ b/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp
@@ -25,7 +25,7 @@ standard_testfile non-stop-exit.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.mi/mi-nonstop.exp b/gdb/testsuite/gdb.mi/mi-nonstop.exp
index e85049191583..970b11a2f8e2 100644
--- a/gdb/testsuite/gdb.mi/mi-nonstop.exp
+++ b/gdb/testsuite/gdb.mi/mi-nonstop.exp
@@ -35,7 +35,7 @@ standard_testfile non-stop.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp b/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp
index 34257ee5c776..d5f6a1ec16bf 100644
--- a/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp
+++ b/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp
@@ -38,7 +38,7 @@ standard_testfile ns-stale-regcache.c
set options [list debug]
if {[gdb_compile "$srcdir/$subdir/$srcfile" \
$binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.mi/mi-nsintrall.exp b/gdb/testsuite/gdb.mi/mi-nsintrall.exp
index 84319b142a51..7850b5ad98f3 100644
--- a/gdb/testsuite/gdb.mi/mi-nsintrall.exp
+++ b/gdb/testsuite/gdb.mi/mi-nsintrall.exp
@@ -25,7 +25,7 @@ standard_testfile nsintrall.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
index 04c6162d87ba..b82996b72b94 100644
--- a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
+++ b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
@@ -25,7 +25,7 @@ standard_testfile nsmoribund.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.mi/mi-nsthrexec.exp b/gdb/testsuite/gdb.mi/mi-nsthrexec.exp
index 9446d6f3c6cf..64b27eacf91f 100644
--- a/gdb/testsuite/gdb.mi/mi-nsthrexec.exp
+++ b/gdb/testsuite/gdb.mi/mi-nsthrexec.exp
@@ -30,7 +30,7 @@ standard_testfile nsthrexec.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.mi/mi-pending.exp b/gdb/testsuite/gdb.mi/mi-pending.exp
index 99719be76a12..1ad9aecdc8b4 100644
--- a/gdb/testsuite/gdb.mi/mi-pending.exp
+++ b/gdb/testsuite/gdb.mi/mi-pending.exp
@@ -36,12 +36,12 @@ set exec_opts [list debug shlib=$lib_sl1 shlib_load]
if { [gdb_compile_shlib $libsrc1 $lib_sl1 $lib_opts] != ""
|| [gdb_compile_shlib $libsrc2 $lib_sl2 $lib_opts] != ""} {
untested "failed to compile shared library"
- return -1
+ return
}
if { [gdb_compile_pthreads $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
untested "failed to compile"
- return -1
+ return
}
# Start with a fresh gdb.
diff --git a/gdb/testsuite/gdb.mi/mi-pthreads.exp b/gdb/testsuite/gdb.mi/mi-pthreads.exp
index 7e1d0123500b..1db1aba5afad 100644
--- a/gdb/testsuite/gdb.mi/mi-pthreads.exp
+++ b/gdb/testsuite/gdb.mi/mi-pthreads.exp
@@ -60,7 +60,7 @@ standard_testfile pthreads.c
set options [list debug]
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-py-modify-bp.exp b/gdb/testsuite/gdb.mi/mi-py-modify-bp.exp
index 022f6761362c..5b4ba362ef0f 100644
--- a/gdb/testsuite/gdb.mi/mi-py-modify-bp.exp
+++ b/gdb/testsuite/gdb.mi/mi-py-modify-bp.exp
@@ -25,7 +25,7 @@ standard_testfile
require allow_python_tests
if {[build_executable $testfile.exp $testfile $srcfile] == -1} {
- return -1
+ return
}
set remote_python_file [gdb_remote_download host \
diff --git a/gdb/testsuite/gdb.mi/mi-record-changed.exp b/gdb/testsuite/gdb.mi/mi-record-changed.exp
index e4e54f1adf1e..1f4dbf7b686b 100644
--- a/gdb/testsuite/gdb.mi/mi-record-changed.exp
+++ b/gdb/testsuite/gdb.mi/mi-record-changed.exp
@@ -19,7 +19,7 @@ standard_testfile basics.c
if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
executable {debug nowarnings}] != "" } {
untested "failed to compile"
- return -1
+ return
}
load_lib mi-support.exp
diff --git a/gdb/testsuite/gdb.mi/mi-reg-undefined.exp b/gdb/testsuite/gdb.mi/mi-reg-undefined.exp
index 5b6e998d7d72..dd7b2961b03f 100644
--- a/gdb/testsuite/gdb.mi/mi-reg-undefined.exp
+++ b/gdb/testsuite/gdb.mi/mi-reg-undefined.exp
@@ -35,7 +35,7 @@ if {[mi_clean_restart $::testfile]} {
if {![mi_runto stop_frame]} {
perror "Failed to stop in stop_frame"
- return -1
+ return
}
mi_gdb_test "111-stack-list-frames" \
diff --git a/gdb/testsuite/gdb.mi/mi-stepn.exp b/gdb/testsuite/gdb.mi/mi-stepn.exp
index 42255de20b3d..77a32060203b 100644
--- a/gdb/testsuite/gdb.mi/mi-stepn.exp
+++ b/gdb/testsuite/gdb.mi/mi-stepn.exp
@@ -23,13 +23,13 @@ standard_testfile
set opts {debug}
if {[build_executable ${testfile}.exp ${testfile} ${srcfile} $opts]} {
- return -1
+ return
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return -1
+ return
}
mi_create_breakpoint do_nothing \
diff --git a/gdb/testsuite/gdb.mi/mi-sym-info.exp b/gdb/testsuite/gdb.mi/mi-sym-info.exp
index 96d261ded404..e129d5746a32 100644
--- a/gdb/testsuite/gdb.mi/mi-sym-info.exp
+++ b/gdb/testsuite/gdb.mi/mi-sym-info.exp
@@ -30,7 +30,7 @@ standard_testfile mi-sym-info-1.c mi-sym-info-2.c
if {[build_executable "failed to prepare" ${testfile} \
[list $srcfile $srcfile2] {debug}]} {
- return -1
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp b/gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp
index bd7b606b87cd..e80475911fcf 100644
--- a/gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp
+++ b/gdb/testsuite/gdb.mi/mi-thread-bp-deleted.exp
@@ -32,7 +32,7 @@ standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile \
{debug pthreads}] } {
- return -1
+ return
}
foreach_mi_ui_mode mode {
diff --git a/gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp b/gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp
index 9f250912b2ce..ac76a5579c0c 100644
--- a/gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp
+++ b/gdb/testsuite/gdb.mi/mi-thread-specific-bp.exp
@@ -26,7 +26,7 @@ if {[mi_clean_restart]} {
standard_testfile
if {[build_executable ${testfile}.exp ${binfile} ${srcfile}]} {
- return -1
+ return
}
proc make_loc {num} {
diff --git a/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp b/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp
index 0d8b091d0ac9..5de4fc06c80f 100644
--- a/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp
+++ b/gdb/testsuite/gdb.mi/mi-threads-interrupt.exp
@@ -21,7 +21,7 @@ set MIFLAGS "-i=mi"
standard_testfile
if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
- return -1
+ return
}
# This tests the resolution of PR 20039.
diff --git a/gdb/testsuite/gdb.mi/mi-var-block.exp b/gdb/testsuite/gdb.mi/mi-var-block.exp
index e2450527de60..27836717ef8d 100644
--- a/gdb/testsuite/gdb.mi/mi-var-block.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-block.exp
@@ -26,7 +26,7 @@ standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-var-child-f.exp b/gdb/testsuite/gdb.mi/mi-var-child-f.exp
index cb249364b68f..ad81441db057 100644
--- a/gdb/testsuite/gdb.mi/mi-var-child-f.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-child-f.exp
@@ -25,7 +25,7 @@ standard_testfile array.f90
if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug f90}] != ""} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-var-child.exp b/gdb/testsuite/gdb.mi/mi-var-child.exp
index cbc672a14c2c..8c0b8472272b 100644
--- a/gdb/testsuite/gdb.mi/mi-var-child.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-child.exp
@@ -26,7 +26,7 @@ standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
@@ -1201,7 +1201,7 @@ mi_varobj_update * {psnp->ptrs.0.next.next.long_ptr} \
mi_prepare_inline_tests $srcfile
if { [mi_run_inline_test child_deletion] < 0 } {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp
index d95c9847e96e..bf207dad255e 100644
--- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp
@@ -26,7 +26,7 @@ standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp b/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp
index 918d0497806d..08b6076dea05 100644
--- a/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp
@@ -20,13 +20,13 @@ standard_testfile .c
set opts {debug}
if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
- return -1
+ return
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return -1
+ return
}
# Test creating a register-based variable. We pick
diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp
index 2efbd2903a13..325291efe500 100644
--- a/gdb/testsuite/gdb.mi/mi-var-display.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-display.exp
@@ -26,7 +26,7 @@ standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp b/gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp
index 45e64bcc2c51..80a97fbcbf2a 100644
--- a/gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-invalidate-shlib.exp
@@ -27,7 +27,7 @@ set shlib_path [standard_output_file ${testfile}-lib.so]
if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $shlib_path {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
set shlib_path_target [gdb_download_shlib $shlib_path]
@@ -39,7 +39,7 @@ lappend opts additional_flags=-DSHLIB_PATH=[quote_for_host $shlib_path_target]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
proc do_test { separate_debuginfo } {
diff --git a/gdb/testsuite/gdb.mi/mi-var-invalidate.exp b/gdb/testsuite/gdb.mi/mi-var-invalidate.exp
index 693db9977913..0edb5b6b1881 100644
--- a/gdb/testsuite/gdb.mi/mi-var-invalidate.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-invalidate.exp
@@ -27,13 +27,13 @@ standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Just change the output binary.
set binfile_bis [standard_output_file mi-var-invalidate_bis]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
set testfile2 "basics"
@@ -41,7 +41,7 @@ set srcfile2 ${testfile2}.c
set binfile2 [standard_output_file ${testfile2}]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp b/gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp
index 42495401702c..366e15aa676c 100644
--- a/gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-list-children-invalid-grandchild.exp
@@ -23,7 +23,7 @@ standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-var-rtti.exp b/gdb/testsuite/gdb.mi/mi-var-rtti.exp
index b254de20c1e9..9a98e2adfa9c 100644
--- a/gdb/testsuite/gdb.mi/mi-var-rtti.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-rtti.exp
@@ -22,7 +22,7 @@ standard_testfile .cc
set opts {debug c++}
if {[build_executable $testfile.exp $testfile $srcfile $opts]} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp b/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp
index 856a1a370080..7f972ea6ea6a 100644
--- a/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp
+++ b/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp
@@ -33,7 +33,7 @@ proc mi_nonstop_resume { command test } {
standard_testfile watch-nonstop.c
if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp b/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp
index 16a45d00265f..fcea890d78af 100644
--- a/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp
+++ b/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp
@@ -28,7 +28,7 @@ if {[info exists COMPILE]} {
}
if {[build_executable ${testfile}.exp ${binfile} ${srcfile} $opts]} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi2-cli-display.exp b/gdb/testsuite/gdb.mi/mi2-cli-display.exp
index 263568c39665..f339f3fbebf5 100644
--- a/gdb/testsuite/gdb.mi/mi2-cli-display.exp
+++ b/gdb/testsuite/gdb.mi/mi2-cli-display.exp
@@ -22,7 +22,7 @@ standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi2-var-child.exp b/gdb/testsuite/gdb.mi/mi2-var-child.exp
index e5b4adada38d..def9faf36d5b 100644
--- a/gdb/testsuite/gdb.mi/mi2-var-child.exp
+++ b/gdb/testsuite/gdb.mi/mi2-var-child.exp
@@ -26,7 +26,7 @@ standard_testfile var-cmd.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp b/gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp
index ea81a9ab2f6b..910dd2636847 100644
--- a/gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp
+++ b/gdb/testsuite/gdb.mi/new-ui-bp-deleted.exp
@@ -31,7 +31,7 @@ set MIFLAGS "-i=mi"
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
# Helper proc to create a breakpoint location regexp. NUM is the
diff --git a/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp b/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp
index 915f40571e15..fe679b09f976 100644
--- a/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp
+++ b/gdb/testsuite/gdb.mi/new-ui-mi-sync.exp
@@ -29,7 +29,7 @@ standard_testfile
if {[build_executable $testfile.exp $testfile ${srcfile} "debug"] == -1} {
untested "failed to compile"
- return -1
+ return
}
# The test driver. SYNC_COMMAND specifies which command is used to
diff --git a/gdb/testsuite/gdb.mi/print-simple-values.exp b/gdb/testsuite/gdb.mi/print-simple-values.exp
index 4de81c4cbd4c..875da82ff7cc 100644
--- a/gdb/testsuite/gdb.mi/print-simple-values.exp
+++ b/gdb/testsuite/gdb.mi/print-simple-values.exp
@@ -31,7 +31,7 @@ lappend opts c++
lappend opts additional_flags=-std=c++11
if {[build_executable "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/user-selected-context-sync.exp b/gdb/testsuite/gdb.mi/user-selected-context-sync.exp
index 844206f75116..fea284b70125 100644
--- a/gdb/testsuite/gdb.mi/user-selected-context-sync.exp
+++ b/gdb/testsuite/gdb.mi/user-selected-context-sync.exp
@@ -45,7 +45,7 @@ require allow_multi_inferior_tests
set compile_options "debug pthreads"
if {[build_executable $testfile.exp $testfile ${srcfile} ${compile_options}] == -1} {
untested "failed to compile"
- return -1
+ return
}
set main_break_line [gdb_get_line_number "main break line"]
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 26/36] GDB: testsuite: MI: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (24 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 25/36] GDB: testsuite: MI: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 27/36] GDB: testsuite: reverse: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (9 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- misaligned line, which is then fixed by this patch;
- return at top level but inside block such as with_test_prefix,
foreach_with_prefix, gdb_expect.
- procedure whose callers don't use the return value;
In one casae the whole if block was in a single line:
if { condition } { return -1 }
I changed the formatting to the multi-line style we tend to use.
---
gdb/testsuite/gdb.mi/gdb2549.exp | 4 ++--
gdb/testsuite/gdb.mi/gdb701.exp | 4 ++--
gdb/testsuite/gdb.mi/gdb792.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-async-run.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-async.exp | 6 +++---
gdb/testsuite/gdb.mi/mi-basics.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-break-qualified.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-break.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-cli.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-complete.exp | 4 ++--
.../gdb.mi/mi-condbreak-call-thr-state.exp | 2 +-
gdb/testsuite/gdb.mi/mi-console.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-corefile.exp | 2 +-
gdb/testsuite/gdb.mi/mi-detach.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-disassemble.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-eval.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-exec-run.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-file.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-fill-memory.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-frame-regs.exp | 8 +++++---
.../gdb.mi/mi-inheritance-syntax-error.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-pending.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-read-memory.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-reg-undefined.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-regs.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-return.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-reverse.exp | 6 +++---
gdb/testsuite/gdb.mi/mi-simplerun.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-solib.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-stack.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-start.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-stepi.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-syn-frame.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-until.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-var-cmd.exp | 2 +-
gdb/testsuite/gdb.mi/mi-var-cp.exp | 6 +++---
gdb/testsuite/gdb.mi/mi-var-rtti.exp | 2 +-
gdb/testsuite/gdb.mi/mi-vla-c99.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-vla-fortran.exp | 4 ++--
gdb/testsuite/gdb.mi/mi-watch.exp | 4 ++--
gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp | 14 +++++++-------
.../gdb.mi/user-selected-context-sync.exp | 2 +-
43 files changed, 92 insertions(+), 90 deletions(-)
diff --git a/gdb/testsuite/gdb.mi/gdb2549.exp b/gdb/testsuite/gdb.mi/gdb2549.exp
index c644e3bd1d32..570e1bdeb4a9 100644
--- a/gdb/testsuite/gdb.mi/gdb2549.exp
+++ b/gdb/testsuite/gdb.mi/gdb2549.exp
@@ -28,8 +28,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc register_tests_no_exec { } {
diff --git a/gdb/testsuite/gdb.mi/gdb701.exp b/gdb/testsuite/gdb.mi/gdb701.exp
index d72bd1ae81bf..dd6fd6181b2c 100644
--- a/gdb/testsuite/gdb.mi/gdb701.exp
+++ b/gdb/testsuite/gdb.mi/gdb701.exp
@@ -23,8 +23,8 @@ set MIFLAGS "-i=mi"
standard_testfile
if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable debug] != ""} {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# When varobj reports the types of objects, it often isn't really reporting
diff --git a/gdb/testsuite/gdb.mi/gdb792.exp b/gdb/testsuite/gdb.mi/gdb792.exp
index e2df8216956a..d0b7a97f02de 100644
--- a/gdb/testsuite/gdb.mi/gdb792.exp
+++ b/gdb/testsuite/gdb.mi/gdb792.exp
@@ -24,8 +24,8 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""} {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-async-run.exp b/gdb/testsuite/gdb.mi/mi-async-run.exp
index 5a4077b6d198..a60a85393225 100644
--- a/gdb/testsuite/gdb.mi/mi-async-run.exp
+++ b/gdb/testsuite/gdb.mi/mi-async-run.exp
@@ -18,8 +18,8 @@ load_lib mi-support.exp
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# Test the resolution of PR 18077
diff --git a/gdb/testsuite/gdb.mi/mi-async.exp b/gdb/testsuite/gdb.mi/mi-async.exp
index d1674cdfe49f..7f7603cf7068 100644
--- a/gdb/testsuite/gdb.mi/mi-async.exp
+++ b/gdb/testsuite/gdb.mi/mi-async.exp
@@ -23,7 +23,7 @@
# we're actually testing native.
require isnative
if {![istarget *-linux*]} {
- return
+ return
}
# Check if start command is supported.
@@ -34,8 +34,8 @@ load_lib mi-support.exp
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# The plan is for async mode to become the default but toggle for now.
diff --git a/gdb/testsuite/gdb.mi/mi-basics.exp b/gdb/testsuite/gdb.mi/mi-basics.exp
index 27ac334e4a30..8f18f41af04b 100644
--- a/gdb/testsuite/gdb.mi/mi-basics.exp
+++ b/gdb/testsuite/gdb.mi/mi-basics.exp
@@ -37,8 +37,8 @@ set testsubdir [standard_output_file ""]
set envirodir [string_to_regexp $testsubdir]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# In this file we want to test if the operations needed by the following
diff --git a/gdb/testsuite/gdb.mi/mi-break-qualified.exp b/gdb/testsuite/gdb.mi/mi-break-qualified.exp
index 1bb8258b9536..d196c37ef78b 100644
--- a/gdb/testsuite/gdb.mi/mi-break-qualified.exp
+++ b/gdb/testsuite/gdb.mi/mi-break-qualified.exp
@@ -24,8 +24,8 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
if {[build_executable $testfile.exp $testfile $srcfile {c++ debug}] == -1} {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
set loc_ns_func_line [gdb_get_line_number "location NS::func here"]
diff --git a/gdb/testsuite/gdb.mi/mi-break.exp b/gdb/testsuite/gdb.mi/mi-break.exp
index a7b64faa8a5a..b0df2cedc4e5 100644
--- a/gdb/testsuite/gdb.mi/mi-break.exp
+++ b/gdb/testsuite/gdb.mi/mi-break.exp
@@ -26,8 +26,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# Locate line numbers in basics.c.
diff --git a/gdb/testsuite/gdb.mi/mi-cli.exp b/gdb/testsuite/gdb.mi/mi-cli.exp
index e3a5d3b87a25..9d696e4b291c 100644
--- a/gdb/testsuite/gdb.mi/mi-cli.exp
+++ b/gdb/testsuite/gdb.mi/mi-cli.exp
@@ -25,8 +25,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp b/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp
index 29c44c8475c3..9d43fc6e21c0 100644
--- a/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp
+++ b/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp
@@ -22,8 +22,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc test_command_param_changed { } {
diff --git a/gdb/testsuite/gdb.mi/mi-complete.exp b/gdb/testsuite/gdb.mi/mi-complete.exp
index 4038ae57f8ac..54084cab86d3 100644
--- a/gdb/testsuite/gdb.mi/mi-complete.exp
+++ b/gdb/testsuite/gdb.mi/mi-complete.exp
@@ -22,8 +22,8 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-condbreak-call-thr-state.exp b/gdb/testsuite/gdb.mi/mi-condbreak-call-thr-state.exp
index 34ac495bb5d6..bda6753d65e0 100644
--- a/gdb/testsuite/gdb.mi/mi-condbreak-call-thr-state.exp
+++ b/gdb/testsuite/gdb.mi/mi-condbreak-call-thr-state.exp
@@ -56,7 +56,7 @@ proc test { variant } {
$testfile \
"${srcfile} ${srcfile2}" \
$options] == -1} {
- return -1
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-console.exp b/gdb/testsuite/gdb.mi/mi-console.exp
index a7a083a56766..23ae1a280997 100644
--- a/gdb/testsuite/gdb.mi/mi-console.exp
+++ b/gdb/testsuite/gdb.mi/mi-console.exp
@@ -49,8 +49,8 @@ proc semihosted_string { string } {
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-corefile.exp b/gdb/testsuite/gdb.mi/mi-corefile.exp
index 67c6183f3867..864c8f74ddcf 100644
--- a/gdb/testsuite/gdb.mi/mi-corefile.exp
+++ b/gdb/testsuite/gdb.mi/mi-corefile.exp
@@ -30,7 +30,7 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
set corefile [core_find $binfile {}]
if {$corefile == ""} {
untested "unable to create or find corefile"
- return 0
+ return
}
if {[mi_gdb_start]} {
diff --git a/gdb/testsuite/gdb.mi/mi-detach.exp b/gdb/testsuite/gdb.mi/mi-detach.exp
index 62bd699ea8ac..e82e216315e7 100644
--- a/gdb/testsuite/gdb.mi/mi-detach.exp
+++ b/gdb/testsuite/gdb.mi/mi-detach.exp
@@ -21,8 +21,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if {[build_executable $testfile.exp $testfile $srcfile {debug}] == -1} {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-disassemble.exp b/gdb/testsuite/gdb.mi/mi-disassemble.exp
index cd4c91bd06a6..2ecbce193c75 100644
--- a/gdb/testsuite/gdb.mi/mi-disassemble.exp
+++ b/gdb/testsuite/gdb.mi/mi-disassemble.exp
@@ -26,8 +26,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc test_disassembly_only {} {
diff --git a/gdb/testsuite/gdb.mi/mi-eval.exp b/gdb/testsuite/gdb.mi/mi-eval.exp
index 6720f878538a..f2761f46219b 100644
--- a/gdb/testsuite/gdb.mi/mi-eval.exp
+++ b/gdb/testsuite/gdb.mi/mi-eval.exp
@@ -28,8 +28,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-exec-run.exp b/gdb/testsuite/gdb.mi/mi-exec-run.exp
index 9707504aa21c..d7a680daa6c6 100644
--- a/gdb/testsuite/gdb.mi/mi-exec-run.exp
+++ b/gdb/testsuite/gdb.mi/mi-exec-run.exp
@@ -35,8 +35,8 @@ set have_startup_shell [have_startup_shell]
standard_testfile mi-start.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "could not build mi-exec-run"
- return -1
+ untested "could not build mi-exec-run"
+ return
}
# The test proper. INFTTY_MODE determines whether "set inferior-tty"
diff --git a/gdb/testsuite/gdb.mi/mi-file.exp b/gdb/testsuite/gdb.mi/mi-file.exp
index 8ca0511f55d8..80411b82ff74 100644
--- a/gdb/testsuite/gdb.mi/mi-file.exp
+++ b/gdb/testsuite/gdb.mi/mi-file.exp
@@ -21,8 +21,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart]} {
diff --git a/gdb/testsuite/gdb.mi/mi-fill-memory.exp b/gdb/testsuite/gdb.mi/mi-fill-memory.exp
index 524732bebbd6..f9bd13209822 100644
--- a/gdb/testsuite/gdb.mi/mi-fill-memory.exp
+++ b/gdb/testsuite/gdb.mi/mi-fill-memory.exp
@@ -23,8 +23,8 @@ set MIFLAGS "-i=mi"
standard_testfile "mi-read-memory"
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}.c" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-frame-regs.exp b/gdb/testsuite/gdb.mi/mi-frame-regs.exp
index 65e3bd93d4a4..5d408f4d23e6 100644
--- a/gdb/testsuite/gdb.mi/mi-frame-regs.exp
+++ b/gdb/testsuite/gdb.mi/mi-frame-regs.exp
@@ -26,8 +26,8 @@ standard_testfile basics.c
if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug}] != "" } then {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# Return the address of the specified breakpoint.
@@ -98,7 +98,9 @@ proc_with_prefix do_floating_varobj_test {} {
# Get the address of the current breakpoint.
set bpaddr [breakpoint_address $bpnum]
- if {$bpaddr == ""} { return }
+ if {$bpaddr == ""} {
+ return
+ }
# Check that the addresses are the same.
gdb_assert [expr {$bpaddr == $pcval}] "\$pc equals address of breakpoint in callee$i"
diff --git a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
index d9baa7639525..17ed3f1dcefd 100644
--- a/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
+++ b/gdb/testsuite/gdb.mi/mi-inheritance-syntax-error.exp
@@ -21,8 +21,8 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""} {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-pending.exp b/gdb/testsuite/gdb.mi/mi-pending.exp
index 1ad9aecdc8b4..51be357d4c0a 100644
--- a/gdb/testsuite/gdb.mi/mi-pending.exp
+++ b/gdb/testsuite/gdb.mi/mi-pending.exp
@@ -141,10 +141,10 @@ set testname "run till MI pending breakpoint on pendfunc3 on thread 2"
gdb_expect {
-re "\\*stopped,reason=\"breakpoint-hit\",disp=\"keep\",bkptno=\"4\",frame=\{addr=\"$hex\",func=\"pendfunc3\".*thread-id=\"2\".*" {
pass $testname
- return 0
+ return
}
timeout {
fail "$testname (timeout)"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.mi/mi-read-memory.exp b/gdb/testsuite/gdb.mi/mi-read-memory.exp
index 782c0ee13dca..035c31e2ae84 100644
--- a/gdb/testsuite/gdb.mi/mi-read-memory.exp
+++ b/gdb/testsuite/gdb.mi/mi-read-memory.exp
@@ -21,8 +21,8 @@ set MIFLAGS "-i=mi"
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-reg-undefined.exp b/gdb/testsuite/gdb.mi/mi-reg-undefined.exp
index dd7b2961b03f..725925d01a81 100644
--- a/gdb/testsuite/gdb.mi/mi-reg-undefined.exp
+++ b/gdb/testsuite/gdb.mi/mi-reg-undefined.exp
@@ -25,8 +25,8 @@ require is_x86_64_m64_target
standard_testfile .S
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug nopie}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-regs.exp b/gdb/testsuite/gdb.mi/mi-regs.exp
index 7aa4fb62c7ac..756855d9ded0 100644
--- a/gdb/testsuite/gdb.mi/mi-regs.exp
+++ b/gdb/testsuite/gdb.mi/mi-regs.exp
@@ -28,8 +28,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc sparc_register_tests_no_exec { } {
diff --git a/gdb/testsuite/gdb.mi/mi-return.exp b/gdb/testsuite/gdb.mi/mi-return.exp
index bd90ac79893f..c9265c80317a 100644
--- a/gdb/testsuite/gdb.mi/mi-return.exp
+++ b/gdb/testsuite/gdb.mi/mi-return.exp
@@ -27,8 +27,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-reverse.exp b/gdb/testsuite/gdb.mi/mi-reverse.exp
index 100857c6e299..dacb86048f60 100644
--- a/gdb/testsuite/gdb.mi/mi-reverse.exp
+++ b/gdb/testsuite/gdb.mi/mi-reverse.exp
@@ -35,8 +35,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
mi_clean_restart $::testfile
@@ -48,7 +48,7 @@ if {[supports_process_record]} {
"=record-started,thread-group=\"i1\",method=\"full\"\r\n\\^done" \
"Turn on process record"]} {
warning "Fail to activate process record/replay, tests in this group will not be performed.\n"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.mi/mi-simplerun.exp b/gdb/testsuite/gdb.mi/mi-simplerun.exp
index 8f18a63e46cc..98bc3da89191 100644
--- a/gdb/testsuite/gdb.mi/mi-simplerun.exp
+++ b/gdb/testsuite/gdb.mi/mi-simplerun.exp
@@ -30,8 +30,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-solib.exp b/gdb/testsuite/gdb.mi/mi-solib.exp
index 0a13df407a09..a3c4d20b0004 100644
--- a/gdb/testsuite/gdb.mi/mi-solib.exp
+++ b/gdb/testsuite/gdb.mi/mi-solib.exp
@@ -30,8 +30,8 @@ set bin_flags [list debug shlib=${binfile_lib}]
if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
|| [gdb_compile ${srcfile_main} ${binfile} executable $bin_flags] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-stack.exp b/gdb/testsuite/gdb.mi/mi-stack.exp
index 2b7884076da1..fbfc0619d008 100644
--- a/gdb/testsuite/gdb.mi/mi-stack.exp
+++ b/gdb/testsuite/gdb.mi/mi-stack.exp
@@ -28,8 +28,8 @@ set MIFLAGS "-i=mi"
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-start.exp b/gdb/testsuite/gdb.mi/mi-start.exp
index 5a232f0e6cd4..ff18866987f0 100644
--- a/gdb/testsuite/gdb.mi/mi-start.exp
+++ b/gdb/testsuite/gdb.mi/mi-start.exp
@@ -24,8 +24,8 @@ require !use_gdb_stub
standard_testfile mi-start.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "could not build mi-start"
- return -1
+ untested "could not build mi-start"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-stepi.exp b/gdb/testsuite/gdb.mi/mi-stepi.exp
index fe8854a79050..8b9ca60ac434 100644
--- a/gdb/testsuite/gdb.mi/mi-stepi.exp
+++ b/gdb/testsuite/gdb.mi/mi-stepi.exp
@@ -26,8 +26,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc test_stepi_nexti {} {
diff --git a/gdb/testsuite/gdb.mi/mi-syn-frame.exp b/gdb/testsuite/gdb.mi/mi-syn-frame.exp
index 410849a910a5..f3b1a71ccb3c 100644
--- a/gdb/testsuite/gdb.mi/mi-syn-frame.exp
+++ b/gdb/testsuite/gdb.mi/mi-syn-frame.exp
@@ -25,8 +25,8 @@ set any "\[^\"\]+"
standard_testfile
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
mi_clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.mi/mi-until.exp b/gdb/testsuite/gdb.mi/mi-until.exp
index a84a1238ae45..f508ce292e1f 100644
--- a/gdb/testsuite/gdb.mi/mi-until.exp
+++ b/gdb/testsuite/gdb.mi/mi-until.exp
@@ -27,8 +27,8 @@ set MIFLAGS "-i=mi"
standard_testfile until.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp
index bf207dad255e..a08528002cb1 100644
--- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp
@@ -592,7 +592,7 @@ lappend inline_tests floating
foreach_with_prefix inline_test $inline_tests {
if { [mi_run_inline_test $inline_test] < 0 } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.mi/mi-var-cp.exp b/gdb/testsuite/gdb.mi/mi-var-cp.exp
index db9efd67fd3d..fb850ad51db5 100644
--- a/gdb/testsuite/gdb.mi/mi-var-cp.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-cp.exp
@@ -21,8 +21,8 @@ set MIFLAGS "-i=mi"
standard_testfile .cc
if {[gdb_compile $srcdir/$subdir/$srcfile $binfile executable {debug c++}] != ""} {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
@@ -41,7 +41,7 @@ set inline_tests {
foreach_with_prefix inline_test $inline_tests {
if { [mi_run_inline_test $inline_test] < 0 } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.mi/mi-var-rtti.exp b/gdb/testsuite/gdb.mi/mi-var-rtti.exp
index 9a98e2adfa9c..4a1bee241f9f 100644
--- a/gdb/testsuite/gdb.mi/mi-var-rtti.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-rtti.exp
@@ -118,7 +118,7 @@ set inline_tests {
foreach_with_prefix inline_test $inline_tests {
if { [mi_run_inline_test $inline_test] < 0 } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.mi/mi-vla-c99.exp b/gdb/testsuite/gdb.mi/mi-vla-c99.exp
index 91934de2491d..5e3c8f549407 100644
--- a/gdb/testsuite/gdb.mi/mi-vla-c99.exp
+++ b/gdb/testsuite/gdb.mi/mi-vla-c99.exp
@@ -25,8 +25,8 @@ standard_testfile vla.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" \
"${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
if {[mi_clean_restart $::testfile]} {
diff --git a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp b/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
index fd144cb51e7a..0cc51a36f5ef 100644
--- a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
+++ b/gdb/testsuite/gdb.mi/mi-vla-fortran.exp
@@ -26,8 +26,8 @@ standard_testfile vla.f90
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
{debug f90}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
# Depending on the compiler being used,
diff --git a/gdb/testsuite/gdb.mi/mi-watch.exp b/gdb/testsuite/gdb.mi/mi-watch.exp
index 4fcba501224c..5b01793aa3da 100644
--- a/gdb/testsuite/gdb.mi/mi-watch.exp
+++ b/gdb/testsuite/gdb.mi/mi-watch.exp
@@ -34,8 +34,8 @@ set MIFLAGS "-i=mi"
standard_testfile basics.c
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
proc test_watchpoint_creation_and_listing {} {
diff --git a/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp b/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp
index fcea890d78af..adcd713453c6 100644
--- a/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp
+++ b/gdb/testsuite/gdb.mi/mi2-amd64-entry-value.exp
@@ -44,7 +44,7 @@ foreach name {different breakhere_different breakhere_validity breakhere_invalid
with_test_prefix "entry-values=no" {
if {[mi_runto_main] == -1} {
- return -1
+ return
}
mi_gdb_test "-gdb-set print entry-values no" {\^done} "no: set print entry-values"
mi_send_resuming_command "exec-continue" "no: entry_equal: continue"
@@ -63,7 +63,7 @@ with_test_prefix "entry-values=no" {
with_test_prefix "entry-values=only" {
if {[mi_runto_main] == -1} {
- return -1
+ return
}
mi_gdb_test "-gdb-set print entry-values only" {\^done} "only: set print entry-values"
mi_send_resuming_command "exec-continue" "only: entry_equal: continue"
@@ -82,7 +82,7 @@ with_test_prefix "entry-values=only" {
with_test_prefix "entry-values=preferred" {
if {[mi_runto_main] == -1} {
- return -1
+ return
}
mi_gdb_test "-gdb-set print entry-values preferred" {\^done} "preferred: set print entry-values"
mi_send_resuming_command "exec-continue" "preferred: entry_equal: continue"
@@ -101,7 +101,7 @@ with_test_prefix "entry-values=preferred" {
with_test_prefix "entry-values=if-needed" {
if {[mi_runto_main] == -1} {
- return -1
+ return
}
mi_gdb_test "-gdb-set print entry-values if-needed" {\^done} "if-needed: set print entry-values"
mi_send_resuming_command "exec-continue" "if-needed: entry_equal: continue"
@@ -120,7 +120,7 @@ with_test_prefix "entry-values=if-needed" {
with_test_prefix "entry-values=both" {
if {[mi_runto_main] == -1} {
- return -1
+ return
}
mi_gdb_test "-gdb-set print entry-values both" {\^done} "both: set print entry-values"
mi_send_resuming_command "exec-continue" "both: entry_equal: continue"
@@ -139,7 +139,7 @@ with_test_prefix "entry-values=both" {
with_test_prefix "entry-values=compact" {
if {[mi_runto_main] == -1} {
- return -1
+ return
}
mi_gdb_test "-gdb-set print entry-values compact" {\^done} "compact: set print entry-values"
mi_send_resuming_command "exec-continue" "compact: entry_equal: continue"
@@ -158,7 +158,7 @@ with_test_prefix "entry-values=compact" {
with_test_prefix "entry-values=default" {
if {[mi_runto_main] == -1} {
- return -1
+ return
}
mi_gdb_test "-gdb-set print entry-values default" {\^done} "default: set print entry-values"
mi_send_resuming_command "exec-continue" "default: entry_equal: continue"
diff --git a/gdb/testsuite/gdb.mi/user-selected-context-sync.exp b/gdb/testsuite/gdb.mi/user-selected-context-sync.exp
index fea284b70125..d94e9eb75f40 100644
--- a/gdb/testsuite/gdb.mi/user-selected-context-sync.exp
+++ b/gdb/testsuite/gdb.mi/user-selected-context-sync.exp
@@ -392,7 +392,7 @@ proc_with_prefix test_setup { mode } {
set any "\[^\r\n\]*"
if { [mi_runto_main] < 0 } {
- return -1
+ return
}
# When using mi_expect_stop, we don't expect a prompt after the *stopped
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 27/36] GDB: testsuite: reverse: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (25 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 26/36] GDB: testsuite: MI: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 28/36] GDB: testsuite: reverse: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (8 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.reverse.
---
gdb/testsuite/gdb.reverse/aarch64-mops.exp | 4 ++--
gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.exp | 4 ++--
gdb/testsuite/gdb.reverse/basic-record-full.exp | 2 +-
gdb/testsuite/gdb.reverse/break-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/break-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/consecutive-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/consecutive-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/finish-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp | 2 +-
gdb/testsuite/gdb.reverse/finish-reverse-next.exp | 2 +-
gdb/testsuite/gdb.reverse/finish-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/fstatat-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/getrandom.exp | 2 +-
gdb/testsuite/gdb.reverse/getresuid-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-avx-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-sse-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i387-env-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/i387-stack-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/insn-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/machinestate-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/machinestate.exp | 2 +-
gdb/testsuite/gdb.reverse/maint-print-instruction.exp | 2 +-
gdb/testsuite/gdb.reverse/map-to-same-line.exp | 4 ++--
gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp | 2 +-
gdb/testsuite/gdb.reverse/pipe-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/ppc_record_test_isa_2_06.exp | 2 +-
gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.exp | 2 +-
gdb/testsuite/gdb.reverse/readv-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/recursion.exp | 2 +-
gdb/testsuite/gdb.reverse/recvmsg-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/rerun-prec.exp | 2 +-
gdb/testsuite/gdb.reverse/s390-mvcle.exp | 2 +-
gdb/testsuite/gdb.reverse/sigall-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/sigall-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/singlejmp-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/solib-precsave.exp | 6 +++---
gdb/testsuite/gdb.reverse/solib-reverse.exp | 6 +++---
gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp | 4 ++--
gdb/testsuite/gdb.reverse/step-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/step-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/test_ioctl_TCSETSW.exp | 2 +-
gdb/testsuite/gdb.reverse/until-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/until-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/waitpid-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/watch-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/watch-reverse.exp | 2 +-
48 files changed, 56 insertions(+), 56 deletions(-)
diff --git a/gdb/testsuite/gdb.reverse/aarch64-mops.exp b/gdb/testsuite/gdb.reverse/aarch64-mops.exp
index 14602d4feb8a..97f1efe82994 100644
--- a/gdb/testsuite/gdb.reverse/aarch64-mops.exp
+++ b/gdb/testsuite/gdb.reverse/aarch64-mops.exp
@@ -37,11 +37,11 @@ standard_testfile
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
[list debug additional_flags=-march=armv9.3-a]] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "record full"
diff --git a/gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.exp b/gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.exp
index 6db4b43ac0a1..c3289fa4c6ff 100644
--- a/gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/amd64-tailcall-reverse.exp
@@ -27,11 +27,11 @@ if {[info exists COMPILE]} {
}
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
if {[supports_process_record]} {
diff --git a/gdb/testsuite/gdb.reverse/basic-record-full.exp b/gdb/testsuite/gdb.reverse/basic-record-full.exp
index 78d6f4d02af6..67655417db28 100644
--- a/gdb/testsuite/gdb.reverse/basic-record-full.exp
+++ b/gdb/testsuite/gdb.reverse/basic-record-full.exp
@@ -24,7 +24,7 @@ require supports_process_record
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/break-precsave.exp b/gdb/testsuite/gdb.reverse/break-precsave.exp
index bee9fd548f60..994457d4439c 100644
--- a/gdb/testsuite/gdb.reverse/break-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/break-precsave.exp
@@ -23,7 +23,7 @@ standard_testfile break-reverse.c
set precsave [standard_output_file break.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
set foo_location [gdb_get_line_number "break in foo" ]
diff --git a/gdb/testsuite/gdb.reverse/break-reverse.exp b/gdb/testsuite/gdb.reverse/break-reverse.exp
index 5aeaf22e6ada..7ba681828d33 100644
--- a/gdb/testsuite/gdb.reverse/break-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/break-reverse.exp
@@ -21,7 +21,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
set foo_location [gdb_get_line_number "break in foo" ]
diff --git a/gdb/testsuite/gdb.reverse/consecutive-precsave.exp b/gdb/testsuite/gdb.reverse/consecutive-precsave.exp
index 7d57661055e9..9a9132d9a4f1 100644
--- a/gdb/testsuite/gdb.reverse/consecutive-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/consecutive-precsave.exp
@@ -23,7 +23,7 @@ standard_testfile consecutive-reverse.c
set precsave [standard_output_file consecutive.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/consecutive-reverse.exp b/gdb/testsuite/gdb.reverse/consecutive-reverse.exp
index c22cb96504b4..1b44a134cb84 100644
--- a/gdb/testsuite/gdb.reverse/consecutive-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/consecutive-reverse.exp
@@ -21,7 +21,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/finish-precsave.exp b/gdb/testsuite/gdb.reverse/finish-precsave.exp
index 7430b890d545..00c7d8caa419 100644
--- a/gdb/testsuite/gdb.reverse/finish-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/finish-precsave.exp
@@ -22,7 +22,7 @@ standard_testfile finish-reverse.c
set precsave [standard_output_file finish.precsave]
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp b/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp
index 67df198bb051..19ebebf6a126 100644
--- a/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp
+++ b/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp
@@ -45,7 +45,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.reverse/finish-reverse-next.exp b/gdb/testsuite/gdb.reverse/finish-reverse-next.exp
index 325282855c64..96af034af1ef 100644
--- a/gdb/testsuite/gdb.reverse/finish-reverse-next.exp
+++ b/gdb/testsuite/gdb.reverse/finish-reverse-next.exp
@@ -48,7 +48,7 @@ if {![supports_reverse]} {
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/finish-reverse.exp b/gdb/testsuite/gdb.reverse/finish-reverse.exp
index 3f3ef666323a..b234d7fec143 100644
--- a/gdb/testsuite/gdb.reverse/finish-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/finish-reverse.exp
@@ -21,7 +21,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/fstatat-reverse.exp b/gdb/testsuite/gdb.reverse/fstatat-reverse.exp
index 7ccdcd4ae9e8..4c8dfed07b17 100644
--- a/gdb/testsuite/gdb.reverse/fstatat-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/fstatat-reverse.exp
@@ -24,7 +24,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/getrandom.exp b/gdb/testsuite/gdb.reverse/getrandom.exp
index 410d4ab3bde6..c65de709c4ad 100644
--- a/gdb/testsuite/gdb.reverse/getrandom.exp
+++ b/gdb/testsuite/gdb.reverse/getrandom.exp
@@ -25,7 +25,7 @@ require {have_system_header sys/random.h}
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/getresuid-reverse.exp b/gdb/testsuite/gdb.reverse/getresuid-reverse.exp
index af8311344bfb..27d10afc4e91 100644
--- a/gdb/testsuite/gdb.reverse/getresuid-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/getresuid-reverse.exp
@@ -24,7 +24,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/i386-avx-reverse.exp b/gdb/testsuite/gdb.reverse/i386-avx-reverse.exp
index bdb76733e959..2268f2c28722 100644
--- a/gdb/testsuite/gdb.reverse/i386-avx-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/i386-avx-reverse.exp
@@ -41,7 +41,7 @@ lappend_include_file alloc_lib $srcdir/lib/precise-aligned-alloc.c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags $alloc_lib]]} {
- return -1
+ return
}
# Shorthand to test reversing through one instruction and
diff --git a/gdb/testsuite/gdb.reverse/i386-precsave.exp b/gdb/testsuite/gdb.reverse/i386-precsave.exp
index 4841c1b65aa2..4bde399bc457 100644
--- a/gdb/testsuite/gdb.reverse/i386-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/i386-precsave.exp
@@ -30,7 +30,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
set end_of_main [gdb_get_line_number " end of main "]
diff --git a/gdb/testsuite/gdb.reverse/i386-reverse.exp b/gdb/testsuite/gdb.reverse/i386-reverse.exp
index 0d27454d0101..2013a969f8ca 100644
--- a/gdb/testsuite/gdb.reverse/i386-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/i386-reverse.exp
@@ -28,7 +28,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
set end_of_main [gdb_get_line_number " end of main "]
diff --git a/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp b/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
index ad8eaeaadc23..dc1308861e2c 100644
--- a/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
@@ -33,7 +33,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
set end_of_main [gdb_get_line_number " end of main "]
diff --git a/gdb/testsuite/gdb.reverse/i387-env-reverse.exp b/gdb/testsuite/gdb.reverse/i387-env-reverse.exp
index 5fc6346f86bf..ebf7d8dec425 100644
--- a/gdb/testsuite/gdb.reverse/i387-env-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/i387-env-reverse.exp
@@ -25,7 +25,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp b/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp
index c6d3cca23424..384faade5eee 100644
--- a/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp
@@ -25,7 +25,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug $additional_flags]]} {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/insn-reverse.exp b/gdb/testsuite/gdb.reverse/insn-reverse.exp
index c92059143ece..5b4f6a28f7af 100644
--- a/gdb/testsuite/gdb.reverse/insn-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/insn-reverse.exp
@@ -19,7 +19,7 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug]]} {
- return -1
+ return
}
if {![runto_main]} {
return
diff --git a/gdb/testsuite/gdb.reverse/machinestate-precsave.exp b/gdb/testsuite/gdb.reverse/machinestate-precsave.exp
index 74c041143d87..8a11c6d24b98 100644
--- a/gdb/testsuite/gdb.reverse/machinestate-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/machinestate-precsave.exp
@@ -43,7 +43,7 @@ set precsave [standard_output_file machinestate.precsave]
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set newline "\[\r\n\]+"
diff --git a/gdb/testsuite/gdb.reverse/machinestate.exp b/gdb/testsuite/gdb.reverse/machinestate.exp
index 0026af7704bd..de16fbcbb23a 100644
--- a/gdb/testsuite/gdb.reverse/machinestate.exp
+++ b/gdb/testsuite/gdb.reverse/machinestate.exp
@@ -41,7 +41,7 @@ standard_testfile .c ms1.c
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set newline "\[\r\n\]+"
diff --git a/gdb/testsuite/gdb.reverse/maint-print-instruction.exp b/gdb/testsuite/gdb.reverse/maint-print-instruction.exp
index dc3bb6b547af..ad8009b415a9 100644
--- a/gdb/testsuite/gdb.reverse/maint-print-instruction.exp
+++ b/gdb/testsuite/gdb.reverse/maint-print-instruction.exp
@@ -30,7 +30,7 @@ if {![supports_reverse]} {
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
proc test_print { has_history level test_name } {
diff --git a/gdb/testsuite/gdb.reverse/map-to-same-line.exp b/gdb/testsuite/gdb.reverse/map-to-same-line.exp
index 4e3c1a50229b..1cfb060dfaab 100644
--- a/gdb/testsuite/gdb.reverse/map-to-same-line.exp
+++ b/gdb/testsuite/gdb.reverse/map-to-same-line.exp
@@ -33,7 +33,7 @@ require supports_reverse
standard_testfile .c .S
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
set asm_file [standard_output_file $srcfile2]
@@ -109,7 +109,7 @@ Dwarf::assemble $asm_file {
if { [prepare_for_testing "failed to prepare" ${testfile} \
[list $srcfile $asm_file] {nodebug} ] } {
- return -1
+ return
}
if { ![runto_main] } {
diff --git a/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp b/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp
index 83162e59dfc6..d34fe130e8e5 100644
--- a/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp
+++ b/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp
@@ -45,7 +45,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.reverse/pipe-reverse.exp b/gdb/testsuite/gdb.reverse/pipe-reverse.exp
index d4b99c91a8e7..67035866af9a 100644
--- a/gdb/testsuite/gdb.reverse/pipe-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/pipe-reverse.exp
@@ -24,7 +24,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/ppc_record_test_isa_2_06.exp b/gdb/testsuite/gdb.reverse/ppc_record_test_isa_2_06.exp
index aa69e5d00c99..6bbe98116385 100644
--- a/gdb/testsuite/gdb.reverse/ppc_record_test_isa_2_06.exp
+++ b/gdb/testsuite/gdb.reverse/ppc_record_test_isa_2_06.exp
@@ -40,7 +40,7 @@ set options [list debug]
require {istarget "powerpc*"}
if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.exp b/gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.exp
index d4ecbbb7fb66..8435d3d840d6 100644
--- a/gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.exp
+++ b/gdb/testsuite/gdb.reverse/ppc_record_test_isa_3_1.exp
@@ -41,7 +41,7 @@ require {istarget "powerpc*"} allow_power_isa_3_1_tests
set options [list additional_flags=-mcpu=power10 debug]
if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.reverse/readv-reverse.exp b/gdb/testsuite/gdb.reverse/readv-reverse.exp
index e05e3de351b6..e5467d8051f8 100644
--- a/gdb/testsuite/gdb.reverse/readv-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/readv-reverse.exp
@@ -24,7 +24,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/recursion.exp b/gdb/testsuite/gdb.reverse/recursion.exp
index 6284ebc0c16e..6a81821d62bd 100644
--- a/gdb/testsuite/gdb.reverse/recursion.exp
+++ b/gdb/testsuite/gdb.reverse/recursion.exp
@@ -21,7 +21,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/recvmsg-reverse.exp b/gdb/testsuite/gdb.reverse/recvmsg-reverse.exp
index ce91b59e7edc..3fa433dde569 100644
--- a/gdb/testsuite/gdb.reverse/recvmsg-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/recvmsg-reverse.exp
@@ -24,7 +24,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/rerun-prec.exp b/gdb/testsuite/gdb.reverse/rerun-prec.exp
index aed3c9e52266..a1a41b007561 100644
--- a/gdb/testsuite/gdb.reverse/rerun-prec.exp
+++ b/gdb/testsuite/gdb.reverse/rerun-prec.exp
@@ -18,7 +18,7 @@ require supports_reverse supports_process_record
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile]]} {
- return -1
+ return
}
# The bug is a regression in the sequence "run; record; run".
diff --git a/gdb/testsuite/gdb.reverse/s390-mvcle.exp b/gdb/testsuite/gdb.reverse/s390-mvcle.exp
index 4bb89c678b48..12fd622f08db 100644
--- a/gdb/testsuite/gdb.reverse/s390-mvcle.exp
+++ b/gdb/testsuite/gdb.reverse/s390-mvcle.exp
@@ -22,7 +22,7 @@ require supports_reverse {istarget "s390*-*-*"}
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp
index 2635e6fdcda4..d8bc6dfaccfa 100644
--- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp
@@ -21,7 +21,7 @@ standard_testfile sigall-reverse.c
set precsave [standard_output_file sigall.precsave]
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
proc test_one_sig {nextsig} {
diff --git a/gdb/testsuite/gdb.reverse/sigall-reverse.exp b/gdb/testsuite/gdb.reverse/sigall-reverse.exp
index 5f0ab640d186..2dae1933d818 100644
--- a/gdb/testsuite/gdb.reverse/sigall-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/sigall-reverse.exp
@@ -20,7 +20,7 @@ require supports_reverse
standard_testfile
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
proc test_one_sig {nextsig} {
diff --git a/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp b/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
index 00fd8b8bd957..830292cd6669 100644
--- a/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
@@ -37,7 +37,7 @@ if {[info exists COMPILE]} {
clean_restart $executable
if {![runto_main]} {
- return -1
+ return
}
if {[supports_process_record]} {
diff --git a/gdb/testsuite/gdb.reverse/solib-precsave.exp b/gdb/testsuite/gdb.reverse/solib-precsave.exp
index 0e0dd3668ac7..ef3229c74927 100644
--- a/gdb/testsuite/gdb.reverse/solib-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/solib-precsave.exp
@@ -32,12 +32,12 @@ set library2 [standard_output_file ${lib2file}.sl]
# stepping and reverse stepping doesn't end up inside them.
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib1src} ${library1} ""] != "" } {
untested "failed to compile shared library 1"
- return -1
+ return
}
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib2src} ${library2} "debug"] != "" } {
untested "failed to compile shared library 2"
- return -1
+ return
}
set exec_opts [list debug shlib=${library1} shlib=${library2}]
@@ -50,7 +50,7 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable \
[concat $exec_opts ldflags=-Wl,-z,norelro]] != ""
&& [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Note: The test previously did "set debug-file-directory" to (try to)
diff --git a/gdb/testsuite/gdb.reverse/solib-reverse.exp b/gdb/testsuite/gdb.reverse/solib-reverse.exp
index 04bbf56757cb..c5a610fcb391 100644
--- a/gdb/testsuite/gdb.reverse/solib-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/solib-reverse.exp
@@ -30,19 +30,19 @@ set library2 [standard_output_file ${lib2file}.sl]
# stepping and reverse stepping doesn't end up inside them.
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib1src} ${library1} ""] != "" } {
untested "failed to compile shared library 1"
- return -1
+ return
}
if { [gdb_compile_shlib ${srcdir}/${subdir}/${lib2src} ${library2} "debug"] != "" } {
untested "failed to compile shared library 2"
- return -1
+ return
}
set exec_opts [list debug shlib=${library1} shlib=${library2}]
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Note: The test previously did "set debug-file-directory" to (try to)
diff --git a/gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp b/gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp
index 3b00a2fb0895..feb7a840d8a0 100644
--- a/gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp
+++ b/gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp
@@ -31,11 +31,11 @@ if { [gdb_can_simple_compile fcf-protection-none {int main () { return 0; }} \
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile $cflags] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
gdb_test_no_output "record"
diff --git a/gdb/testsuite/gdb.reverse/step-precsave.exp b/gdb/testsuite/gdb.reverse/step-precsave.exp
index 33fabd7ec196..761713436771 100644
--- a/gdb/testsuite/gdb.reverse/step-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/step-precsave.exp
@@ -27,7 +27,7 @@ standard_testfile step-reverse.c
set precsave [standard_output_file step.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/step-reverse.exp b/gdb/testsuite/gdb.reverse/step-reverse.exp
index b14273e8bcf6..d72638c9169b 100644
--- a/gdb/testsuite/gdb.reverse/step-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/step-reverse.exp
@@ -25,7 +25,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/test_ioctl_TCSETSW.exp b/gdb/testsuite/gdb.reverse/test_ioctl_TCSETSW.exp
index c3fb0487d187..17d4369ee4ee 100644
--- a/gdb/testsuite/gdb.reverse/test_ioctl_TCSETSW.exp
+++ b/gdb/testsuite/gdb.reverse/test_ioctl_TCSETSW.exp
@@ -21,7 +21,7 @@ require supports_process_record
standard_testfile .c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.reverse/until-precsave.exp b/gdb/testsuite/gdb.reverse/until-precsave.exp
index a0bed8dfba51..411fc14fed27 100644
--- a/gdb/testsuite/gdb.reverse/until-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/until-precsave.exp
@@ -24,7 +24,7 @@ set precsave [standard_output_file until.precsave]
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
diff --git a/gdb/testsuite/gdb.reverse/until-reverse.exp b/gdb/testsuite/gdb.reverse/until-reverse.exp
index dc8fcbe78d68..74703223c643 100644
--- a/gdb/testsuite/gdb.reverse/until-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/until-reverse.exp
@@ -22,7 +22,7 @@ standard_testfile .c ur1.c
if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
- return -1
+ return
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
diff --git a/gdb/testsuite/gdb.reverse/waitpid-reverse.exp b/gdb/testsuite/gdb.reverse/waitpid-reverse.exp
index bc6b32cdc663..dc213259bf0f 100644
--- a/gdb/testsuite/gdb.reverse/waitpid-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/waitpid-reverse.exp
@@ -26,7 +26,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/watch-precsave.exp b/gdb/testsuite/gdb.reverse/watch-precsave.exp
index 2cc668fdc6a5..474012f74c73 100644
--- a/gdb/testsuite/gdb.reverse/watch-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/watch-precsave.exp
@@ -24,7 +24,7 @@ standard_testfile watch-reverse.c
set precsave [standard_output_file watch.precsave]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
diff --git a/gdb/testsuite/gdb.reverse/watch-reverse.exp b/gdb/testsuite/gdb.reverse/watch-reverse.exp
index e165aa084dc7..52b36c6f70ae 100644
--- a/gdb/testsuite/gdb.reverse/watch-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/watch-reverse.exp
@@ -23,7 +23,7 @@ require supports_reverse
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
- return -1
+ return
}
runto_main
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 28/36] GDB: testsuite: reverse: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (26 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 27/36] GDB: testsuite: reverse: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 29/36] GDB: testsuite: server: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (7 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- misaligned line, which is then fixed by this patch;
- return at top level but inside block such as with_test_prefix,
foreach_with_prefix, with_timeout_factor, gdb_test_multiple.
---
gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp | 2 +-
gdb/testsuite/gdb.reverse/func-map-to-same-line.exp | 2 +-
gdb/testsuite/gdb.reverse/i386-sse-reverse.exp | 6 +++---
gdb/testsuite/gdb.reverse/maint-print-instruction.exp | 2 +-
gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp | 2 +-
gdb/testsuite/gdb.reverse/sigall-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/sigall-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/singlejmp-reverse.exp | 4 ++--
gdb/testsuite/gdb.reverse/solib-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/solib-reverse.exp | 2 +-
gdb/testsuite/gdb.reverse/until-precsave.exp | 2 +-
gdb/testsuite/gdb.reverse/until-reverse.exp | 2 +-
12 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp b/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp
index 19ebebf6a126..0432dd47cc08 100644
--- a/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp
+++ b/gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp
@@ -49,7 +49,7 @@ if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
}
if {![runto_main]} {
- return 0
+ return
}
if {[supports_process_record]} {
diff --git a/gdb/testsuite/gdb.reverse/func-map-to-same-line.exp b/gdb/testsuite/gdb.reverse/func-map-to-same-line.exp
index dd36528eb3ef..76febe312f58 100644
--- a/gdb/testsuite/gdb.reverse/func-map-to-same-line.exp
+++ b/gdb/testsuite/gdb.reverse/func-map-to-same-line.exp
@@ -133,7 +133,7 @@ foreach_with_prefix column_info_flag {column-info no-column-info} {
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
$options]} {
- return -1
+ return
}
run_tests
diff --git a/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp b/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
index dc1308861e2c..3ed1d7e6fae2 100644
--- a/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
@@ -64,7 +64,7 @@ gdb_test_multiple "continue" $test {
}
-re " Illegal instruction.*\r\n$gdb_prompt $" {
untested i386-sse-reverse
- return -1
+ return
}
}
@@ -590,7 +590,7 @@ gdb_test_multiple "continue" $test {
}
-re " Illegal instruction.*\r\n$gdb_prompt $" {
untested i386-ssse3-reverse
- return -1
+ return
}
}
@@ -666,7 +666,7 @@ gdb_test_multiple "continue" $test {
}
-re " Illegal instruction.*\r\n$gdb_prompt $" {
untested i386-sse4-reverse
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.reverse/maint-print-instruction.exp b/gdb/testsuite/gdb.reverse/maint-print-instruction.exp
index ad8009b415a9..edf6ec081cdf 100644
--- a/gdb/testsuite/gdb.reverse/maint-print-instruction.exp
+++ b/gdb/testsuite/gdb.reverse/maint-print-instruction.exp
@@ -46,7 +46,7 @@ proc test_print { has_history level test_name } {
}
if { ![runto_main] } {
- return 0
+ return
}
#confirm that GDB doesn't go crazy if recording isn't enabled
diff --git a/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp b/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp
index d34fe130e8e5..b175774aee4f 100644
--- a/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp
+++ b/gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp
@@ -49,7 +49,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
}
if {![runto_main]} {
- return 0
+ return
}
if {[supports_process_record]} {
diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp
index d8bc6dfaccfa..5ce7de0ea1fe 100644
--- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp
@@ -258,7 +258,7 @@ gdb_test_multiple "continue" "run to end of main" {
}
-wrap -re "Process record does not support instruction 0xfae64 at.*" {
kfail "gdb/25038" $gdb_test_name
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.reverse/sigall-reverse.exp b/gdb/testsuite/gdb.reverse/sigall-reverse.exp
index 2dae1933d818..45bb49ecfebe 100644
--- a/gdb/testsuite/gdb.reverse/sigall-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/sigall-reverse.exp
@@ -239,7 +239,7 @@ with_test_prefix "sig-test-1" {
foreach sig [lrange $signals 1 end] {
test_one_sig $sig
if { $record_instruction_kfail } {
- return -1
+ return
}
}
}
diff --git a/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp b/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
index 830292cd6669..dfa8ac179f07 100644
--- a/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp
@@ -24,13 +24,13 @@ if {[info exists COMPILE]} {
${testfile}.c {debug optimize=-O2} \
${testfile}-nodebug.c {optimize=-O2} \
] == -1 } {
- return -1
+ return
}
} else {
require is_x86_64_m64_target
if { [build_executable ${testfile}.exp ${testfile} \
[list ${srcfile} ${srcfile2}] {}] == -1 } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.reverse/solib-precsave.exp b/gdb/testsuite/gdb.reverse/solib-precsave.exp
index ef3229c74927..cad30320048b 100644
--- a/gdb/testsuite/gdb.reverse/solib-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/solib-precsave.exp
@@ -80,7 +80,7 @@ gdb_test_multiple "continue" "run to end of main" {
}
-wrap -re "Process record does not support instruction 0xfae64 at.*" {
kfail "gdb/25038" $gdb_test_name
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.reverse/solib-reverse.exp b/gdb/testsuite/gdb.reverse/solib-reverse.exp
index c5a610fcb391..b5f49fb72994 100644
--- a/gdb/testsuite/gdb.reverse/solib-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/solib-reverse.exp
@@ -77,7 +77,7 @@ gdb_test_multiple "until $end_part_one" "run until end part one" {
}
-wrap -re "Process record does not support instruction 0xfae64 at.*" {
kfail "gdb/25038" $gdb_test_name
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.reverse/until-precsave.exp b/gdb/testsuite/gdb.reverse/until-precsave.exp
index 411fc14fed27..075a87dc2d87 100644
--- a/gdb/testsuite/gdb.reverse/until-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/until-precsave.exp
@@ -52,7 +52,7 @@ with_timeout_factor 20 {
}
-wrap -re "Process record does not support instruction 0xfae64 at.*" {
kfail "gdb/25038" $gdb_test_name
- return -1
+ return
}
}
}
diff --git a/gdb/testsuite/gdb.reverse/until-reverse.exp b/gdb/testsuite/gdb.reverse/until-reverse.exp
index 74703223c643..19ec2fee6b05 100644
--- a/gdb/testsuite/gdb.reverse/until-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/until-reverse.exp
@@ -53,7 +53,7 @@ gdb_test_multiple "advance factorial" "" {
}
-wrap -re "Process record does not support instruction 0xfae64 at.*" {
kfail "gdb/25038" $gdb_test_name
- return -1
+ return
}
}
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 29/36] GDB: testsuite: server: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (27 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 28/36] GDB: testsuite: reverse: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 30/36] GDB: testsuite: server: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (6 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.server.
---
gdb/testsuite/gdb.server/build-id-seqno.exp | 4 ++--
gdb/testsuite/gdb.server/connect-stopped-target.exp | 2 +-
gdb/testsuite/gdb.server/connect-with-no-symbol-file.exp | 2 +-
gdb/testsuite/gdb.server/connect-without-multi-process.exp | 2 +-
gdb/testsuite/gdb.server/ext-attach.exp | 2 +-
gdb/testsuite/gdb.server/ext-run.exp | 2 +-
gdb/testsuite/gdb.server/ext-wrapper.exp | 2 +-
gdb/testsuite/gdb.server/extended-remote-restart.exp | 2 +-
gdb/testsuite/gdb.server/file-transfer.exp | 2 +-
gdb/testsuite/gdb.server/inferior-args.exp | 2 +-
gdb/testsuite/gdb.server/monitor-exit-quit.exp | 2 +-
gdb/testsuite/gdb.server/no-thread-db.exp | 2 +-
gdb/testsuite/gdb.server/pread-offset-size.exp | 2 +-
gdb/testsuite/gdb.server/remote-read-msgs.exp | 4 ++--
gdb/testsuite/gdb.server/run-without-local-binary.exp | 2 +-
gdb/testsuite/gdb.server/server-connect.exp | 2 +-
gdb/testsuite/gdb.server/server-exec-info.exp | 2 +-
gdb/testsuite/gdb.server/server-kill-python.exp | 2 +-
gdb/testsuite/gdb.server/server-kill.exp | 2 +-
gdb/testsuite/gdb.server/server-mon.exp | 2 +-
gdb/testsuite/gdb.server/server-pipe.exp | 2 +-
gdb/testsuite/gdb.server/server-run.exp | 2 +-
gdb/testsuite/gdb.server/solib-list.exp | 2 +-
gdb/testsuite/gdb.server/stop-reply-no-thread-multi.exp | 2 +-
gdb/testsuite/gdb.server/stop-reply-no-thread.exp | 2 +-
gdb/testsuite/gdb.server/sysroot.exp | 2 +-
gdb/testsuite/gdb.server/target-exec-file.exp | 4 ++--
gdb/testsuite/gdb.server/twice-connect.exp | 2 +-
gdb/testsuite/gdb.server/wrapper.exp | 2 +-
29 files changed, 32 insertions(+), 32 deletions(-)
diff --git a/gdb/testsuite/gdb.server/build-id-seqno.exp b/gdb/testsuite/gdb.server/build-id-seqno.exp
index 44bdb09b60ad..1fa27e80aa0f 100644
--- a/gdb/testsuite/gdb.server/build-id-seqno.exp
+++ b/gdb/testsuite/gdb.server/build-id-seqno.exp
@@ -36,12 +36,12 @@ require allow_gdbserver_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile] == -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.
diff --git a/gdb/testsuite/gdb.server/connect-stopped-target.exp b/gdb/testsuite/gdb.server/connect-stopped-target.exp
index cfe38fcbfc6a..74ccd774561e 100644
--- a/gdb/testsuite/gdb.server/connect-stopped-target.exp
+++ b/gdb/testsuite/gdb.server/connect-stopped-target.exp
@@ -26,7 +26,7 @@ standard_testfile
set executable ${testfile}
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
proc do_test {nonstop} {
diff --git a/gdb/testsuite/gdb.server/connect-with-no-symbol-file.exp b/gdb/testsuite/gdb.server/connect-with-no-symbol-file.exp
index fcdc6978d618..7e2b33e09a98 100644
--- a/gdb/testsuite/gdb.server/connect-with-no-symbol-file.exp
+++ b/gdb/testsuite/gdb.server/connect-with-no-symbol-file.exp
@@ -28,7 +28,7 @@ standard_testfile
require allow_gdbserver_tests
if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
# Test connecting GDB to GDBserver without loading a symbol file.
diff --git a/gdb/testsuite/gdb.server/connect-without-multi-process.exp b/gdb/testsuite/gdb.server/connect-without-multi-process.exp
index 4b41f461a79d..33787acded51 100644
--- a/gdb/testsuite/gdb.server/connect-without-multi-process.exp
+++ b/gdb/testsuite/gdb.server/connect-without-multi-process.exp
@@ -23,7 +23,7 @@ require allow_gdbserver_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Test spawning gdbserver with a program, connect to it and run to
diff --git a/gdb/testsuite/gdb.server/ext-attach.exp b/gdb/testsuite/gdb.server/ext-attach.exp
index 0dd02c145ac4..cb4c12772289 100644
--- a/gdb/testsuite/gdb.server/ext-attach.exp
+++ b/gdb/testsuite/gdb.server/ext-attach.exp
@@ -27,7 +27,7 @@ require allow_gdbserver_tests
require can_spawn_for_attach
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Run the test. TARGET_NON_STOP and TARGET_ASYNC should be 'on'
diff --git a/gdb/testsuite/gdb.server/ext-run.exp b/gdb/testsuite/gdb.server/ext-run.exp
index 83de771902b4..4fb2fe004f26 100644
--- a/gdb/testsuite/gdb.server/ext-run.exp
+++ b/gdb/testsuite/gdb.server/ext-run.exp
@@ -24,7 +24,7 @@ standard_testfile server.c
require allow_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
# allow_xml_test must be called while gdb is not running.
diff --git a/gdb/testsuite/gdb.server/ext-wrapper.exp b/gdb/testsuite/gdb.server/ext-wrapper.exp
index 836c32a75745..912a8ce37708 100644
--- a/gdb/testsuite/gdb.server/ext-wrapper.exp
+++ b/gdb/testsuite/gdb.server/ext-wrapper.exp
@@ -22,7 +22,7 @@ standard_testfile wrapper.c
require allow_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.server/extended-remote-restart.exp b/gdb/testsuite/gdb.server/extended-remote-restart.exp
index 5fe4ebd57297..f10d2f374c09 100644
--- a/gdb/testsuite/gdb.server/extended-remote-restart.exp
+++ b/gdb/testsuite/gdb.server/extended-remote-restart.exp
@@ -48,7 +48,7 @@ if { [info proc gdb_reconnect] == "" } {
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Core of the test. DO_KILL_P controls whether we kill one of the
diff --git a/gdb/testsuite/gdb.server/file-transfer.exp b/gdb/testsuite/gdb.server/file-transfer.exp
index f33c589c961e..a4517582b257 100644
--- a/gdb/testsuite/gdb.server/file-transfer.exp
+++ b/gdb/testsuite/gdb.server/file-transfer.exp
@@ -23,7 +23,7 @@ standard_testfile server.c
require allow_gdbserver_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
diff --git a/gdb/testsuite/gdb.server/inferior-args.exp b/gdb/testsuite/gdb.server/inferior-args.exp
index 312e756f0d80..f6ad3e69b407 100644
--- a/gdb/testsuite/gdb.server/inferior-args.exp
+++ b/gdb/testsuite/gdb.server/inferior-args.exp
@@ -35,7 +35,7 @@ if { $gdbserver == "" } {
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
# EXTENDED_P is a boolean, when true gdbserver is started with --multi, and
diff --git a/gdb/testsuite/gdb.server/monitor-exit-quit.exp b/gdb/testsuite/gdb.server/monitor-exit-quit.exp
index c5f8426cb5de..cb90169ef0cc 100644
--- a/gdb/testsuite/gdb.server/monitor-exit-quit.exp
+++ b/gdb/testsuite/gdb.server/monitor-exit-quit.exp
@@ -24,7 +24,7 @@ standard_testfile server.c
require allow_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.server/no-thread-db.exp b/gdb/testsuite/gdb.server/no-thread-db.exp
index e04e43c78a3c..9cbe962bc3c0 100644
--- a/gdb/testsuite/gdb.server/no-thread-db.exp
+++ b/gdb/testsuite/gdb.server/no-thread-db.exp
@@ -28,7 +28,7 @@ set unresolvable_thread_db_path "/foo/bar"
require allow_gdbserver_tests
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.server/pread-offset-size.exp b/gdb/testsuite/gdb.server/pread-offset-size.exp
index 4362878c8e6e..68f938d42c67 100644
--- a/gdb/testsuite/gdb.server/pread-offset-size.exp
+++ b/gdb/testsuite/gdb.server/pread-offset-size.exp
@@ -24,7 +24,7 @@ standard_testfile .S
if { [prepare_for_testing ${testfile}.exp $testfile \
$srcfile {debug additional_flags=-nostdlib} ] } {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.server/remote-read-msgs.exp b/gdb/testsuite/gdb.server/remote-read-msgs.exp
index 86c2d610c00b..e9d03388e398 100644
--- a/gdb/testsuite/gdb.server/remote-read-msgs.exp
+++ b/gdb/testsuite/gdb.server/remote-read-msgs.exp
@@ -32,12 +32,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.
diff --git a/gdb/testsuite/gdb.server/run-without-local-binary.exp b/gdb/testsuite/gdb.server/run-without-local-binary.exp
index 3aa9eba2d05d..24521f21b0f9 100644
--- a/gdb/testsuite/gdb.server/run-without-local-binary.exp
+++ b/gdb/testsuite/gdb.server/run-without-local-binary.exp
@@ -20,7 +20,7 @@ require allow_gdbserver_tests
standard_testfile normal.c
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
diff --git a/gdb/testsuite/gdb.server/server-connect.exp b/gdb/testsuite/gdb.server/server-connect.exp
index bb6a5758d359..3c8dd114166a 100644
--- a/gdb/testsuite/gdb.server/server-connect.exp
+++ b/gdb/testsuite/gdb.server/server-connect.exp
@@ -28,7 +28,7 @@ require allow_gdbserver_tests
require {!is_remote target}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
diff --git a/gdb/testsuite/gdb.server/server-exec-info.exp b/gdb/testsuite/gdb.server/server-exec-info.exp
index 7163785348d9..4ef9ede9cec0 100644
--- a/gdb/testsuite/gdb.server/server-exec-info.exp
+++ b/gdb/testsuite/gdb.server/server-exec-info.exp
@@ -22,7 +22,7 @@ require allow_gdbserver_tests allow_shlib_tests
standard_testfile server.c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
diff --git a/gdb/testsuite/gdb.server/server-kill-python.exp b/gdb/testsuite/gdb.server/server-kill-python.exp
index 09e4d561bee9..7c08090c1656 100644
--- a/gdb/testsuite/gdb.server/server-kill-python.exp
+++ b/gdb/testsuite/gdb.server/server-kill-python.exp
@@ -27,7 +27,7 @@ require allow_gdbserver_tests allow_python_tests
if {[build_executable "failed to prepare" ${testfile} \
${srcfile}] == -1} {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
diff --git a/gdb/testsuite/gdb.server/server-kill.exp b/gdb/testsuite/gdb.server/server-kill.exp
index 9a92ef2a6c75..d4bbb466f04c 100644
--- a/gdb/testsuite/gdb.server/server-kill.exp
+++ b/gdb/testsuite/gdb.server/server-kill.exp
@@ -25,7 +25,7 @@ standard_testfile
require allow_gdbserver_tests
if { [build_executable "failed to prepare" ${testfile}] } {
- return -1
+ return
}
# Spawn GDBserver, run to main, extract GDBserver's PID and save it in
diff --git a/gdb/testsuite/gdb.server/server-mon.exp b/gdb/testsuite/gdb.server/server-mon.exp
index 8811a0c8afa7..ef054059faf8 100644
--- a/gdb/testsuite/gdb.server/server-mon.exp
+++ b/gdb/testsuite/gdb.server/server-mon.exp
@@ -24,7 +24,7 @@ standard_testfile server.c
require allow_gdbserver_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
diff --git a/gdb/testsuite/gdb.server/server-pipe.exp b/gdb/testsuite/gdb.server/server-pipe.exp
index ca9d9cab8b67..724e5a047b1e 100644
--- a/gdb/testsuite/gdb.server/server-pipe.exp
+++ b/gdb/testsuite/gdb.server/server-pipe.exp
@@ -42,7 +42,7 @@ standard_testfile normal.c
set executable ${testfile}
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Start GDB using remote type TARGET, which should be either "remote"
diff --git a/gdb/testsuite/gdb.server/server-run.exp b/gdb/testsuite/gdb.server/server-run.exp
index 776851b36955..a20ef0a5a1fc 100644
--- a/gdb/testsuite/gdb.server/server-run.exp
+++ b/gdb/testsuite/gdb.server/server-run.exp
@@ -24,7 +24,7 @@ standard_testfile server.c
require allow_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
save_vars { GDBFLAGS } {
diff --git a/gdb/testsuite/gdb.server/solib-list.exp b/gdb/testsuite/gdb.server/solib-list.exp
index ab0fd1586cb1..c529bb6edd06 100644
--- a/gdb/testsuite/gdb.server/solib-list.exp
+++ b/gdb/testsuite/gdb.server/solib-list.exp
@@ -32,7 +32,7 @@ set binlibfile [standard_output_file ${testfile}.so]
if { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" "${binlibfile}" {debug}] != ""
|| [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "shlib=${binlibfile} build-id"] != "" } {
untested "failed to compile"
- return -1
+ return
}
set interp_system [section_get ${binfile} .interp]
diff --git a/gdb/testsuite/gdb.server/stop-reply-no-thread-multi.exp b/gdb/testsuite/gdb.server/stop-reply-no-thread-multi.exp
index 01bf3ef67dca..a7eda3f76f06 100644
--- a/gdb/testsuite/gdb.server/stop-reply-no-thread-multi.exp
+++ b/gdb/testsuite/gdb.server/stop-reply-no-thread-multi.exp
@@ -34,7 +34,7 @@ require allow_gdbserver_tests
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1 } {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
diff --git a/gdb/testsuite/gdb.server/stop-reply-no-thread.exp b/gdb/testsuite/gdb.server/stop-reply-no-thread.exp
index fec2246b4791..700b70224151 100644
--- a/gdb/testsuite/gdb.server/stop-reply-no-thread.exp
+++ b/gdb/testsuite/gdb.server/stop-reply-no-thread.exp
@@ -26,7 +26,7 @@ require allow_gdbserver_tests
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile] == -1 } {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
diff --git a/gdb/testsuite/gdb.server/sysroot.exp b/gdb/testsuite/gdb.server/sysroot.exp
index 634168db4693..7e4a796e8791 100644
--- a/gdb/testsuite/gdb.server/sysroot.exp
+++ b/gdb/testsuite/gdb.server/sysroot.exp
@@ -24,7 +24,7 @@ require allow_gdbserver_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile "additional_flags=--no-builtin"] == -1} {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
diff --git a/gdb/testsuite/gdb.server/target-exec-file.exp b/gdb/testsuite/gdb.server/target-exec-file.exp
index 7c204cc9abde..a9e6f801165d 100644
--- a/gdb/testsuite/gdb.server/target-exec-file.exp
+++ b/gdb/testsuite/gdb.server/target-exec-file.exp
@@ -26,7 +26,7 @@ require allow_gdbserver_tests !use_gdb_stub
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
clean_restart
@@ -223,7 +223,7 @@ set res [remote_exec target "touch $target_exec"]
set status [lindex $res 0]
if { $status != 0 } {
fail "touching executable on target"
- return -1
+ return
}
# Start the inferior again, we expect to see the symbols being re-read
diff --git a/gdb/testsuite/gdb.server/twice-connect.exp b/gdb/testsuite/gdb.server/twice-connect.exp
index eaf910179f7f..45f2eb5aa596 100644
--- a/gdb/testsuite/gdb.server/twice-connect.exp
+++ b/gdb/testsuite/gdb.server/twice-connect.exp
@@ -23,7 +23,7 @@ require allow_gdbserver_tests
if { [build_executable "failed to prepare" $::testfile $::srcfile \
{debug}] } {
- return -1
+ return
}
# Don't use $binfile arg, to make sure we use the remote file target:$binfile.
diff --git a/gdb/testsuite/gdb.server/wrapper.exp b/gdb/testsuite/gdb.server/wrapper.exp
index 9478640c40e2..15643fb92a7c 100644
--- a/gdb/testsuite/gdb.server/wrapper.exp
+++ b/gdb/testsuite/gdb.server/wrapper.exp
@@ -26,7 +26,7 @@ require allow_gdbserver_tests
if { [istarget *-*-mingw*]
|| [istarget *-*-cygwin*] } {
unsupported "gdbserver does not support --wrapper on this target (PR server/15967)"
- return -1
+ return
}
save_vars { GDBFLAGS } {
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 30/36] GDB: testsuite: server: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (28 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 29/36] GDB: testsuite: server: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 31/36] GDB: testsuite: threads: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (5 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- return at top level but inside block such as save_vars and
with_test_prefix;
- procedure whose callers don't use the return value;
I also fixed some cases of top-level "return 0".
---
gdb/testsuite/gdb.server/abspath.exp | 2 +-
gdb/testsuite/gdb.server/attach-flag.exp | 2 +-
gdb/testsuite/gdb.server/exit-multiple-threads.exp | 2 +-
gdb/testsuite/gdb.server/ext-restart.exp | 2 +-
gdb/testsuite/gdb.server/ext-wrapper.exp | 2 +-
gdb/testsuite/gdb.server/extended-remote-restart.exp | 4 ++--
gdb/testsuite/gdb.server/multi-ui-errors.exp | 2 +-
gdb/testsuite/gdb.server/reconnect-ctrl-c.exp | 2 +-
gdb/testsuite/gdb.server/target-exec-file.exp | 2 +-
gdb/testsuite/gdb.server/wrapper.exp | 2 +-
10 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/gdb/testsuite/gdb.server/abspath.exp b/gdb/testsuite/gdb.server/abspath.exp
index 5bd7f7e842bb..7c4d43ff474d 100644
--- a/gdb/testsuite/gdb.server/abspath.exp
+++ b/gdb/testsuite/gdb.server/abspath.exp
@@ -38,7 +38,7 @@ save_vars { GDBFLAGS } {
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.server/attach-flag.exp b/gdb/testsuite/gdb.server/attach-flag.exp
index 29013074459e..f9432048c378 100644
--- a/gdb/testsuite/gdb.server/attach-flag.exp
+++ b/gdb/testsuite/gdb.server/attach-flag.exp
@@ -38,7 +38,7 @@ proc run_one_test { non-stop target-non-stop } {
if { [prepare_for_testing "failed to prepare" $::testfile $::srcfile \
{debug pthreads additional_flags=-std=gnu99}] } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.server/exit-multiple-threads.exp b/gdb/testsuite/gdb.server/exit-multiple-threads.exp
index 1b0941eb3c78..c6e19f8dfb44 100644
--- a/gdb/testsuite/gdb.server/exit-multiple-threads.exp
+++ b/gdb/testsuite/gdb.server/exit-multiple-threads.exp
@@ -140,7 +140,7 @@ foreach_with_prefix test { exit signal } {
set executable "$binfile-${test}"
if {[build_executable "failed to prepare" $executable $srcfile \
[list debug pthreads additional_flags=-D${def}]]} {
- return -1
+ return
}
set target_executable [gdb_remote_download target $executable]
diff --git a/gdb/testsuite/gdb.server/ext-restart.exp b/gdb/testsuite/gdb.server/ext-restart.exp
index 39d42d7a4416..031aaeb5db85 100644
--- a/gdb/testsuite/gdb.server/ext-restart.exp
+++ b/gdb/testsuite/gdb.server/ext-restart.exp
@@ -31,7 +31,7 @@ save_vars { GDBFLAGS } {
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.server/ext-wrapper.exp b/gdb/testsuite/gdb.server/ext-wrapper.exp
index 912a8ce37708..757127b15488 100644
--- a/gdb/testsuite/gdb.server/ext-wrapper.exp
+++ b/gdb/testsuite/gdb.server/ext-wrapper.exp
@@ -33,7 +33,7 @@ save_vars { GDBFLAGS } {
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.server/extended-remote-restart.exp b/gdb/testsuite/gdb.server/extended-remote-restart.exp
index f10d2f374c09..ab0be669aeb1 100644
--- a/gdb/testsuite/gdb.server/extended-remote-restart.exp
+++ b/gdb/testsuite/gdb.server/extended-remote-restart.exp
@@ -42,7 +42,7 @@ require {is_any_target "*-*-linux*" "*-*-openbsd*"}
set gdbserver_reconnect_p 1
if { [info proc gdb_reconnect] == "" } {
unsupported "requires gdbserver reconnect"
- return 0
+ return
}
standard_testfile
@@ -61,7 +61,7 @@ proc test_reload { do_kill_p follow_child_p } {
clean_restart ${::testfile}
if {![runto_main]} {
- return 0
+ return
}
# Set detach-on-fork off
diff --git a/gdb/testsuite/gdb.server/multi-ui-errors.exp b/gdb/testsuite/gdb.server/multi-ui-errors.exp
index c17de8bf2e48..dde936c1a455 100644
--- a/gdb/testsuite/gdb.server/multi-ui-errors.exp
+++ b/gdb/testsuite/gdb.server/multi-ui-errors.exp
@@ -37,7 +37,7 @@ save_vars { GDBFLAGS } {
}
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.server/reconnect-ctrl-c.exp b/gdb/testsuite/gdb.server/reconnect-ctrl-c.exp
index 63502887bf55..c0e129db76d5 100644
--- a/gdb/testsuite/gdb.server/reconnect-ctrl-c.exp
+++ b/gdb/testsuite/gdb.server/reconnect-ctrl-c.exp
@@ -33,7 +33,7 @@ save_vars { GDBFLAGS } {
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.server/target-exec-file.exp b/gdb/testsuite/gdb.server/target-exec-file.exp
index a9e6f801165d..e3e2884aa727 100644
--- a/gdb/testsuite/gdb.server/target-exec-file.exp
+++ b/gdb/testsuite/gdb.server/target-exec-file.exp
@@ -156,7 +156,7 @@ proc start_inferior { testname expect_reread } {
with_test_prefix $testname {
if { [gdb_start_cmd] < 0 } {
fail "start command"
- return -1
+ return
}
set saw_reread false
diff --git a/gdb/testsuite/gdb.server/wrapper.exp b/gdb/testsuite/gdb.server/wrapper.exp
index 15643fb92a7c..40c29c441fab 100644
--- a/gdb/testsuite/gdb.server/wrapper.exp
+++ b/gdb/testsuite/gdb.server/wrapper.exp
@@ -37,7 +37,7 @@ save_vars { GDBFLAGS } {
}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
}
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 31/36] GDB: testsuite: threads: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (29 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 30/36] GDB: testsuite: server: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 32/36] GDB: testsuite: threads: Don't return 0 " Thiago Jung Bauermann
` (4 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.threads.
---
.../gdb.threads/access-mem-running-thread-exit.exp | 2 +-
gdb/testsuite/gdb.threads/async.exp | 2 +-
gdb/testsuite/gdb.threads/attach-into-signal.exp | 4 ++--
.../gdb.threads/attach-many-short-lived-threads.exp | 2 +-
gdb/testsuite/gdb.threads/attach-non-stop.exp | 2 +-
gdb/testsuite/gdb.threads/attach-slow-waitpid.exp | 2 +-
gdb/testsuite/gdb.threads/attach-stopped.exp | 4 ++--
gdb/testsuite/gdb.threads/bp_in_thread.exp | 2 +-
gdb/testsuite/gdb.threads/break-while-running.exp | 2 +-
gdb/testsuite/gdb.threads/check-libthread-db.exp | 2 +-
gdb/testsuite/gdb.threads/clone-attach-detach.exp | 2 +-
gdb/testsuite/gdb.threads/clone-new-thread-event.exp | 4 ++--
gdb/testsuite/gdb.threads/clone-thread_db.exp | 4 ++--
.../gdb.threads/continue-pending-after-query.exp | 2 +-
gdb/testsuite/gdb.threads/continue-pending-status.exp | 4 ++--
gdb/testsuite/gdb.threads/create-fail.exp | 2 +-
gdb/testsuite/gdb.threads/current-lwp-dead.exp | 4 ++--
gdb/testsuite/gdb.threads/del-pending-thread-bp.exp | 4 ++--
gdb/testsuite/gdb.threads/detach-step-over.exp | 4 ++--
gdb/testsuite/gdb.threads/dlopen-libpthread.exp | 6 +++---
gdb/testsuite/gdb.threads/execl.exp | 4 ++--
gdb/testsuite/gdb.threads/fork-child-threads.exp | 2 +-
gdb/testsuite/gdb.threads/fork-thread-pending.exp | 2 +-
.../gdb.threads/forking-threads-plus-breakpoint.exp | 2 +-
gdb/testsuite/gdb.threads/gcore-stale-thread.exp | 4 ++--
gdb/testsuite/gdb.threads/gcore-thread.exp | 4 ++--
gdb/testsuite/gdb.threads/hand-call-in-threads.exp | 2 +-
gdb/testsuite/gdb.threads/hand-call-new-thread.exp | 2 +-
gdb/testsuite/gdb.threads/ia64-sigill.exp | 4 ++--
gdb/testsuite/gdb.threads/inf-thr-count.exp | 8 ++++----
gdb/testsuite/gdb.threads/infcall-thread-announce.exp | 4 ++--
gdb/testsuite/gdb.threads/info-threads-cur-sal.exp | 4 ++--
gdb/testsuite/gdb.threads/info-threads-options.exp | 4 ++--
gdb/testsuite/gdb.threads/interrupt-while-step-over.exp | 4 ++--
gdb/testsuite/gdb.threads/interrupted-hand-call.exp | 2 +-
gdb/testsuite/gdb.threads/killed-outside.exp | 6 +++---
gdb/testsuite/gdb.threads/killed.exp | 2 +-
gdb/testsuite/gdb.threads/leader-exit.exp | 4 ++--
gdb/testsuite/gdb.threads/linux-dp.exp | 2 +-
gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp | 2 +-
.../gdb.threads/main-thread-exit-during-detach.exp | 2 +-
gdb/testsuite/gdb.threads/manythreads.exp | 2 +-
gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp | 4 ++--
gdb/testsuite/gdb.threads/multi-create.exp | 2 +-
gdb/testsuite/gdb.threads/multiple-step-overs.exp | 2 +-
gdb/testsuite/gdb.threads/names.exp | 2 +-
gdb/testsuite/gdb.threads/next-bp-other-thread.exp | 2 +-
.../gdb.threads/next-while-other-thread-longjmps.exp | 2 +-
gdb/testsuite/gdb.threads/no-unwaited-for-left.exp | 4 ++--
gdb/testsuite/gdb.threads/non-ldr-exc-1.exp | 2 +-
gdb/testsuite/gdb.threads/non-ldr-exc-2.exp | 2 +-
gdb/testsuite/gdb.threads/non-ldr-exc-3.exp | 2 +-
gdb/testsuite/gdb.threads/non-ldr-exc-4.exp | 2 +-
gdb/testsuite/gdb.threads/non-ldr-exit.exp | 4 ++--
gdb/testsuite/gdb.threads/non-stop-fair-events.exp | 4 ++--
gdb/testsuite/gdb.threads/omp-par-scope.exp | 4 ++--
gdb/testsuite/gdb.threads/omp-task.exp | 4 ++--
gdb/testsuite/gdb.threads/pending-step.exp | 2 +-
gdb/testsuite/gdb.threads/print-threads.exp | 2 +-
.../gdb.threads/process-dies-while-handling-bp.exp | 2 +-
.../process-exit-status-is-leader-exit-status.exp | 2 +-
gdb/testsuite/gdb.threads/pthread_cond_wait.exp | 2 +-
gdb/testsuite/gdb.threads/pthreads.exp | 2 +-
gdb/testsuite/gdb.threads/queue-signal.exp | 2 +-
gdb/testsuite/gdb.threads/reconnect-signal.exp | 2 +-
gdb/testsuite/gdb.threads/schedlock.exp | 2 +-
gdb/testsuite/gdb.threads/siginfo-threads.exp | 4 ++--
.../gdb.threads/signal-command-handle-nopass.exp | 2 +-
.../signal-command-multiple-signals-pending.exp | 2 +-
.../gdb.threads/signal-delivered-right-thread.exp | 2 +-
gdb/testsuite/gdb.threads/signal-sigtrap.exp | 2 +-
.../signal-while-stepping-over-bp-other-thread.exp | 4 ++--
gdb/testsuite/gdb.threads/sigstep-threads.exp | 4 ++--
gdb/testsuite/gdb.threads/sigthread.exp | 2 +-
.../gdb.threads/step-bg-decr-pc-switch-thread.exp | 2 +-
.../gdb.threads/step-over-lands-on-breakpoint.exp | 2 +-
.../gdb.threads/step-over-trips-on-watchpoint.exp | 2 +-
gdb/testsuite/gdb.threads/stepi-random-signal.exp | 4 ++--
gdb/testsuite/gdb.threads/stop-with-handle.exp | 2 +-
gdb/testsuite/gdb.threads/switch-threads.exp | 2 +-
gdb/testsuite/gdb.threads/thread-bp-deleted.exp | 6 +++---
gdb/testsuite/gdb.threads/thread-execl.exp | 2 +-
gdb/testsuite/gdb.threads/thread-find.exp | 2 +-
gdb/testsuite/gdb.threads/thread-specific-bp.exp | 2 +-
gdb/testsuite/gdb.threads/thread-specific.exp | 2 +-
gdb/testsuite/gdb.threads/thread-unwindonsignal.exp | 2 +-
gdb/testsuite/gdb.threads/thread_check.exp | 2 +-
gdb/testsuite/gdb.threads/thread_events.exp | 2 +-
gdb/testsuite/gdb.threads/threadapply.exp | 2 +-
gdb/testsuite/gdb.threads/threadcrash.exp | 2 +-
gdb/testsuite/gdb.threads/threxit-hop-specific.exp | 2 +-
gdb/testsuite/gdb.threads/tid-reuse.exp | 4 ++--
gdb/testsuite/gdb.threads/tls-core.exp | 2 +-
gdb/testsuite/gdb.threads/tls-nodebug-pie.exp | 2 +-
gdb/testsuite/gdb.threads/tls-nodebug.exp | 2 +-
gdb/testsuite/gdb.threads/tls-sepdebug.exp | 4 ++--
gdb/testsuite/gdb.threads/tls-shared.exp | 2 +-
gdb/testsuite/gdb.threads/tls-so_extern.exp | 2 +-
gdb/testsuite/gdb.threads/tls-var.exp | 2 +-
gdb/testsuite/gdb.threads/tls.exp | 2 +-
gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp | 2 +-
gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp | 2 +-
gdb/testsuite/gdb.threads/vfork-multi-inferior.exp | 4 ++--
gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads2.exp | 4 ++--
gdb/testsuite/gdb.threads/wp-replication.exp | 2 +-
107 files changed, 147 insertions(+), 147 deletions(-)
diff --git a/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp b/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp
index 35da068db6b6..d0db40c4be5b 100644
--- a/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp
+++ b/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp
@@ -38,7 +38,7 @@
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
# The test proper. NON_STOP indicates whether we're testing in
diff --git a/gdb/testsuite/gdb.threads/async.exp b/gdb/testsuite/gdb.threads/async.exp
index fa57796452f2..2fe787f6bed5 100644
--- a/gdb/testsuite/gdb.threads/async.exp
+++ b/gdb/testsuite/gdb.threads/async.exp
@@ -16,7 +16,7 @@
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
# At this point GDB will be busy handling the breakpoint hits and
diff --git a/gdb/testsuite/gdb.threads/attach-into-signal.exp b/gdb/testsuite/gdb.threads/attach-into-signal.exp
index 7c9c30036d2b..2f682ebb0738 100644
--- a/gdb/testsuite/gdb.threads/attach-into-signal.exp
+++ b/gdb/testsuite/gdb.threads/attach-into-signal.exp
@@ -121,7 +121,7 @@ proc corefunc { threadtype executable } {
#
if {[build_executable $testfile $executable_nothr $srcfile] == -1} {
untested "attach-into-signal.exp (nonthreaded)"
- return -1
+ return
}
corefunc nonthreaded ${executable_nothr}
@@ -130,7 +130,7 @@ corefunc nonthreaded ${executable_nothr}
#
if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" [standard_output_file ${executable_thr}] executable {debug additional_flags=-DUSE_THREADS}] != "" } {
untested "attach-into-signal.exp (threaded)"
- return -1
+ return
}
corefunc threaded ${executable_thr}
diff --git a/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp b/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp
index 16e33c027b09..0f1b141b1ea1 100644
--- a/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp
+++ b/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp
@@ -195,7 +195,7 @@ set options { "additional_flags=-DTIMEOUT=$timeout" debug pthreads }
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
$options] == -1} {
- return -1
+ return
}
test
diff --git a/gdb/testsuite/gdb.threads/attach-non-stop.exp b/gdb/testsuite/gdb.threads/attach-non-stop.exp
index 3f55459e7ede..3d363398cc23 100644
--- a/gdb/testsuite/gdb.threads/attach-non-stop.exp
+++ b/gdb/testsuite/gdb.threads/attach-non-stop.exp
@@ -134,7 +134,7 @@ proc test {target_non_stop non_stop cmd} {
}
if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
foreach_with_prefix target-non-stop {"off" "on"} {
diff --git a/gdb/testsuite/gdb.threads/attach-slow-waitpid.exp b/gdb/testsuite/gdb.threads/attach-slow-waitpid.exp
index c71cd98501f4..343a96bc5112 100644
--- a/gdb/testsuite/gdb.threads/attach-slow-waitpid.exp
+++ b/gdb/testsuite/gdb.threads/attach-slow-waitpid.exp
@@ -98,7 +98,7 @@ if { [gdb_spawn_with_ld_preload $libobj] == -1 } {
# Make sure we get UNTESTED rather than UNRESOLVED.
set errcnt 0
untested "Couldn't start GDB with preloaded lib"
- return -1
+ return
}
# Load binary, and attach to running program.
diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.threads/attach-stopped.exp
index 63a8f481e2e0..2f84c6d77f2f 100644
--- a/gdb/testsuite/gdb.threads/attach-stopped.exp
+++ b/gdb/testsuite/gdb.threads/attach-stopped.exp
@@ -79,7 +79,7 @@ proc corefunc { threadtype } {
#
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "attach-stopped.exp (unthreaded)"
- return -1
+ return
}
corefunc nonthreaded
@@ -88,7 +88,7 @@ corefunc nonthreaded
#
if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DUSE_THREADS}] != "" } {
untested "attach-stopped.exp (threaded)"
- return -1
+ return
}
corefunc threaded
diff --git a/gdb/testsuite/gdb.threads/bp_in_thread.exp b/gdb/testsuite/gdb.threads/bp_in_thread.exp
index 001eeaae6e98..07f5e2f1b807 100644
--- a/gdb/testsuite/gdb.threads/bp_in_thread.exp
+++ b/gdb/testsuite/gdb.threads/bp_in_thread.exp
@@ -21,7 +21,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.threads/break-while-running.exp b/gdb/testsuite/gdb.threads/break-while-running.exp
index 9d500f38b148..c4ad127d982c 100644
--- a/gdb/testsuite/gdb.threads/break-while-running.exp
+++ b/gdb/testsuite/gdb.threads/break-while-running.exp
@@ -25,7 +25,7 @@
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
# The test proper. UPDATE_THREAD_LIST indicates whether we should do
diff --git a/gdb/testsuite/gdb.threads/check-libthread-db.exp b/gdb/testsuite/gdb.threads/check-libthread-db.exp
index 3e95d7e84a7c..1110c1c848ec 100644
--- a/gdb/testsuite/gdb.threads/check-libthread-db.exp
+++ b/gdb/testsuite/gdb.threads/check-libthread-db.exp
@@ -27,7 +27,7 @@ standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable debug] != "" } {
- return -1
+ return
}
# Case 1: libthread_db fakes a single thread with th_unique == NULL.
diff --git a/gdb/testsuite/gdb.threads/clone-attach-detach.exp b/gdb/testsuite/gdb.threads/clone-attach-detach.exp
index e3294b8c7bfb..cd4544a8057f 100644
--- a/gdb/testsuite/gdb.threads/clone-attach-detach.exp
+++ b/gdb/testsuite/gdb.threads/clone-attach-detach.exp
@@ -28,7 +28,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]
diff --git a/gdb/testsuite/gdb.threads/clone-new-thread-event.exp b/gdb/testsuite/gdb.threads/clone-new-thread-event.exp
index 44f4f7e63109..2e49766f33d1 100644
--- a/gdb/testsuite/gdb.threads/clone-new-thread-event.exp
+++ b/gdb/testsuite/gdb.threads/clone-new-thread-event.exp
@@ -21,11 +21,11 @@ if {![istarget *-*-linux*]} {
}
if { [prepare_for_testing "failed to prepare" clone-new-thread-event] } {
- return -1
+ return
}
if { ![runto_main] } {
- return -1
+ return
}
gdb_test "continue" \
diff --git a/gdb/testsuite/gdb.threads/clone-thread_db.exp b/gdb/testsuite/gdb.threads/clone-thread_db.exp
index a5a185ad9c83..77297a8e74b4 100644
--- a/gdb/testsuite/gdb.threads/clone-thread_db.exp
+++ b/gdb/testsuite/gdb.threads/clone-thread_db.exp
@@ -23,11 +23,11 @@ if {![istarget *-*-linux*]} {
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "break clone_fn" "Breakpoint.*at.*file.*$srcfile.*line.*"
diff --git a/gdb/testsuite/gdb.threads/continue-pending-after-query.exp b/gdb/testsuite/gdb.threads/continue-pending-after-query.exp
index 43f5bd368b19..97f9081443a7 100644
--- a/gdb/testsuite/gdb.threads/continue-pending-after-query.exp
+++ b/gdb/testsuite/gdb.threads/continue-pending-after-query.exp
@@ -45,7 +45,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
proc test {} {
diff --git a/gdb/testsuite/gdb.threads/continue-pending-status.exp b/gdb/testsuite/gdb.threads/continue-pending-status.exp
index 1ffa6fd32425..01fb61c3b525 100644
--- a/gdb/testsuite/gdb.threads/continue-pending-status.exp
+++ b/gdb/testsuite/gdb.threads/continue-pending-status.exp
@@ -22,11 +22,11 @@ require {!target_info exists gdb,nointerrupts}
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
set break_line [gdb_get_line_number "break here"]
diff --git a/gdb/testsuite/gdb.threads/create-fail.exp b/gdb/testsuite/gdb.threads/create-fail.exp
index b2528281b7e1..c77ccab17ae2 100644
--- a/gdb/testsuite/gdb.threads/create-fail.exp
+++ b/gdb/testsuite/gdb.threads/create-fail.exp
@@ -24,7 +24,7 @@ standard_testfile
set executable ${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
set iterations 10
diff --git a/gdb/testsuite/gdb.threads/current-lwp-dead.exp b/gdb/testsuite/gdb.threads/current-lwp-dead.exp
index 5c9aa76e9d9a..272771114a3f 100644
--- a/gdb/testsuite/gdb.threads/current-lwp-dead.exp
+++ b/gdb/testsuite/gdb.threads/current-lwp-dead.exp
@@ -30,11 +30,11 @@ if {![istarget *-*-linux*]} {
}
if { [prepare_for_testing "failed to prepare" current-lwp-dead] } {
- return -1
+ return
}
if {[runto_main] <= 0} {
- return -1
+ return
}
# Run to "fn" so that thread 2 is made current.
diff --git a/gdb/testsuite/gdb.threads/del-pending-thread-bp.exp b/gdb/testsuite/gdb.threads/del-pending-thread-bp.exp
index 1870adcde22a..09a6f56a5660 100644
--- a/gdb/testsuite/gdb.threads/del-pending-thread-bp.exp
+++ b/gdb/testsuite/gdb.threads/del-pending-thread-bp.exp
@@ -30,7 +30,7 @@ set binfile_lib [standard_output_file $libname.so]
if { [gdb_compile_shlib $srcfile_lib $binfile_lib {}] != "" } {
untested "failed to compile shared library 1"
- return -1
+ return
}
set binfile_lib_target [gdb_download_shlib $binfile_lib]
@@ -39,7 +39,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug \
additional_flags=-DSHLIB_NAME=\"$binfile_lib_target\" \
shlib_load pthreads]] } {
- return -1
+ return
}
gdb_locate_shlib $binfile_lib
diff --git a/gdb/testsuite/gdb.threads/detach-step-over.exp b/gdb/testsuite/gdb.threads/detach-step-over.exp
index 85198111fd07..b034788ae6cf 100644
--- a/gdb/testsuite/gdb.threads/detach-step-over.exp
+++ b/gdb/testsuite/gdb.threads/detach-step-over.exp
@@ -354,11 +354,11 @@ proc_with_prefix test_detach_quit {condition_eval target_non_stop \
set options { "additional_flags=-DTIMEOUT=$timeout" debug pthreads }
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options] == -1} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Probe support for "set breakpoint condition-evaluation target".
diff --git a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
index 1dacbdbb1b28..03ce0dd1612d 100644
--- a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
+++ b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
@@ -33,12 +33,12 @@ set lib_dlopen [shlib_target_file ${executable}.so]
set relink_args [build_executable_own_libs ${testfile}.exp ${executable}.so $srclibfile {debug shlib_pthreads} no]
if {$relink_args == "" || ![prelink_no $relink_args]
|| [prepare_for_testing "failed to prepare" ${executable} ${srcmainfile} {debug shlib_load}] } {
- return -1
+ return
}
gdb_load_shlib $binfile_lib
if { ![runto_main] } {
- return -1
+ return
}
set probe_names {}
@@ -62,7 +62,7 @@ foreach probe_name $probe_names {
if { !$have_probe } {
untested "no matching probes"
- return -1
+ return
}
# We link the exec without -lpthread, but libpthread.so may already be loaded at main
diff --git a/gdb/testsuite/gdb.threads/execl.exp b/gdb/testsuite/gdb.threads/execl.exp
index fcbd865a9e84..a5ad5a48ca92 100644
--- a/gdb/testsuite/gdb.threads/execl.exp
+++ b/gdb/testsuite/gdb.threads/execl.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
# New image, that does not load a thread library.
@@ -28,7 +28,7 @@ set srcfile1 ${testfile1}.c
set binfile1 [standard_output_file ${testfile1}]
if {[gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" executable {debug}] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/fork-child-threads.exp b/gdb/testsuite/gdb.threads/fork-child-threads.exp
index fec474f4c701..c6090eaaaf42 100644
--- a/gdb/testsuite/gdb.threads/fork-child-threads.exp
+++ b/gdb/testsuite/gdb.threads/fork-child-threads.exp
@@ -18,7 +18,7 @@ require allow_fork_tests
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/fork-thread-pending.exp b/gdb/testsuite/gdb.threads/fork-thread-pending.exp
index 6f81e5e7e491..0cf4878d13f8 100644
--- a/gdb/testsuite/gdb.threads/fork-thread-pending.exp
+++ b/gdb/testsuite/gdb.threads/fork-thread-pending.exp
@@ -18,7 +18,7 @@ require allow_fork_tests
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp
index 231709369e5c..b3a2fdb9ac16 100644
--- a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp
+++ b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp
@@ -23,7 +23,7 @@ standard_testfile
set linenum [gdb_get_line_number "set break here"]
if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
# Assume yes.
diff --git a/gdb/testsuite/gdb.threads/gcore-stale-thread.exp b/gdb/testsuite/gdb.threads/gcore-stale-thread.exp
index 1f1974109fea..9faa2686c767 100644
--- a/gdb/testsuite/gdb.threads/gcore-stale-thread.exp
+++ b/gdb/testsuite/gdb.threads/gcore-stale-thread.exp
@@ -17,7 +17,7 @@ standard_testfile
set corefile [standard_output_file ${testfile}.core]
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != ""} {
- return -1
+ return
}
clean_restart ${testfile}
@@ -25,7 +25,7 @@ clean_restart ${testfile}
gdb_test_no_output "set non-stop on"
if {![runto_main]} {
- return -1
+ return
}
gdb_test_multiple "info threads" "threads are supported" {
diff --git a/gdb/testsuite/gdb.threads/gcore-thread.exp b/gdb/testsuite/gdb.threads/gcore-thread.exp
index 75c538074a92..c3b8c56dd4b9 100644
--- a/gdb/testsuite/gdb.threads/gcore-thread.exp
+++ b/gdb/testsuite/gdb.threads/gcore-thread.exp
@@ -37,7 +37,7 @@ set opts [list debug]
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${objfile}" object $opts] != ""
|| ([gdb_compile_pthreads "${objfile}" "${binfile}" executable [concat $opts {ldflags=-Wl,-z,norelro}] ] != ""
&& [gdb_compile_pthreads "${objfile}" "${binfile}" executable $opts] != "") } {
- return -1
+ return
}
# Now we can proceed with the real testing.
@@ -56,7 +56,7 @@ set nl "\r\n"
set timeout 30
if {![runto_main]} {
- return -1
+ return
}
gdb_test_multiple "info threads" "threads are supported" {
diff --git a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
index f2d93cedfed9..f6d29720cc6f 100644
--- a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
+++ b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
@@ -24,7 +24,7 @@ standard_testfile
require {!target_info exists gdb,cannot_call_functions}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS"]] != "" } {
- return -1
+ return
}
proc get_dummy_frame_number { } {
diff --git a/gdb/testsuite/gdb.threads/hand-call-new-thread.exp b/gdb/testsuite/gdb.threads/hand-call-new-thread.exp
index f9c59089a2ba..891e47e6c9c4 100644
--- a/gdb/testsuite/gdb.threads/hand-call-new-thread.exp
+++ b/gdb/testsuite/gdb.threads/hand-call-new-thread.exp
@@ -19,7 +19,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.threads/ia64-sigill.exp b/gdb/testsuite/gdb.threads/ia64-sigill.exp
index e69b9478998f..b19c62e8ded6 100644
--- a/gdb/testsuite/gdb.threads/ia64-sigill.exp
+++ b/gdb/testsuite/gdb.threads/ia64-sigill.exp
@@ -22,13 +22,13 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" ${binfile} executable [list debug additional_flags=-lrt]] != "" } {
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
set test "info addr label"
diff --git a/gdb/testsuite/gdb.threads/inf-thr-count.exp b/gdb/testsuite/gdb.threads/inf-thr-count.exp
index af48648e5ca5..feb81ab6673e 100644
--- a/gdb/testsuite/gdb.threads/inf-thr-count.exp
+++ b/gdb/testsuite/gdb.threads/inf-thr-count.exp
@@ -37,7 +37,7 @@ standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile \
{debug pthreads}] == -1} {
- return -1
+ return
}
# Start GDB. Ensure we are in non-stop mode as we need to read from
@@ -48,7 +48,7 @@ save_vars {GDBFLAGS} {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint breakpt
@@ -131,7 +131,7 @@ proc wait_for_stage { num } {
# Wait until we can see that the extra thread has been created.
if {![wait_for_stage 1]} {
unresolved "failed to see thread start"
- return -1
+ return
}
@@ -160,7 +160,7 @@ gdb_test_no_output "set variable spin = 0" \
# Wait until the extra thread has exited.
if {![wait_for_stage 2]} {
unresolved "failed to see thread start"
- return -1
+ return
}
# Check that the second thread has gone away.
diff --git a/gdb/testsuite/gdb.threads/infcall-thread-announce.exp b/gdb/testsuite/gdb.threads/infcall-thread-announce.exp
index 311daaca87cc..a554670f1e6e 100644
--- a/gdb/testsuite/gdb.threads/infcall-thread-announce.exp
+++ b/gdb/testsuite/gdb.threads/infcall-thread-announce.exp
@@ -20,11 +20,11 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint breakpt
diff --git a/gdb/testsuite/gdb.threads/info-threads-cur-sal.exp b/gdb/testsuite/gdb.threads/info-threads-cur-sal.exp
index 1b4fa3a8d3ee..3e8533674d46 100644
--- a/gdb/testsuite/gdb.threads/info-threads-cur-sal.exp
+++ b/gdb/testsuite/gdb.threads/info-threads-cur-sal.exp
@@ -20,13 +20,13 @@ set executable ${testfile}
if {[gdb_compile_pthreads \
"${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" \
"${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
clean_restart ${executable}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "start"
diff --git a/gdb/testsuite/gdb.threads/info-threads-options.exp b/gdb/testsuite/gdb.threads/info-threads-options.exp
index 15c4904892e7..476c62cb323c 100644
--- a/gdb/testsuite/gdb.threads/info-threads-options.exp
+++ b/gdb/testsuite/gdb.threads/info-threads-options.exp
@@ -19,7 +19,7 @@ standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable debug] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
@@ -28,7 +28,7 @@ save_vars { GDBFLAGS } {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "stop_here"
diff --git a/gdb/testsuite/gdb.threads/interrupt-while-step-over.exp b/gdb/testsuite/gdb.threads/interrupt-while-step-over.exp
index 446af5e23eca..e8b29dce2fa3 100644
--- a/gdb/testsuite/gdb.threads/interrupt-while-step-over.exp
+++ b/gdb/testsuite/gdb.threads/interrupt-while-step-over.exp
@@ -20,11 +20,11 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug pthreads}] == -1} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
# Read the number of threads out of the inferior.
diff --git a/gdb/testsuite/gdb.threads/interrupted-hand-call.exp b/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
index e921ea0cf06f..23a3d038c09a 100644
--- a/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
+++ b/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
@@ -25,7 +25,7 @@ standard_testfile
require {!target_info exists gdb,cannot_call_functions}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS"]] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/killed-outside.exp b/gdb/testsuite/gdb.threads/killed-outside.exp
index 51726ebf0e9c..67d6c6b32239 100644
--- a/gdb/testsuite/gdb.threads/killed-outside.exp
+++ b/gdb/testsuite/gdb.threads/killed-outside.exp
@@ -20,17 +20,17 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{pthreads debug}] == -1} {
- return -1
+ return
}
if { ![runto "all_started"] } {
- return -1
+ return
}
delete_breakpoints
set testpid [get_valueof "" "pid" -1 "get pid of inferior"]
if { $testpid == -1 } {
- return -1
+ return
}
remote_exec target "kill -9 ${testpid}"
diff --git a/gdb/testsuite/gdb.threads/killed.exp b/gdb/testsuite/gdb.threads/killed.exp
index 96fe37dbefed..39b60dff8dd4 100644
--- a/gdb/testsuite/gdb.threads/killed.exp
+++ b/gdb/testsuite/gdb.threads/killed.exp
@@ -58,7 +58,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.threads/leader-exit.exp b/gdb/testsuite/gdb.threads/leader-exit.exp
index 9aa7d0fdf3f1..b5e6f558ac7b 100644
--- a/gdb/testsuite/gdb.threads/leader-exit.exp
+++ b/gdb/testsuite/gdb.threads/leader-exit.exp
@@ -21,13 +21,13 @@ standard_testfile
set executable ${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
clean_restart ${executable}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.threads/linux-dp.exp b/gdb/testsuite/gdb.threads/linux-dp.exp
index 5592e364e1f4..42773f2293b5 100644
--- a/gdb/testsuite/gdb.threads/linux-dp.exp
+++ b/gdb/testsuite/gdb.threads/linux-dp.exp
@@ -41,7 +41,7 @@ if {![istarget *-*-linux-gnu*]} {
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != ""} {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp b/gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp
index a26abab630d5..3a9e7c193a58 100644
--- a/gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp
+++ b/gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp
@@ -25,7 +25,7 @@ standard_testfile
if {[gdb_compile_pthreads \
"${srcdir}/${subdir}/${srcfile}" \
"${binfile}" executable {debug} ] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp b/gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp
index 7df41da642c3..717eca236c03 100644
--- a/gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp
+++ b/gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp
@@ -40,7 +40,7 @@ require allow_python_tests
if {[build_executable "failed to prepare" $testfile $srcfile \
{debug pthreads}] == -1} {
- return -1
+ return
}
# Run the test. When SPAWN_INFERIOR is true the inferior is started
diff --git a/gdb/testsuite/gdb.threads/manythreads.exp b/gdb/testsuite/gdb.threads/manythreads.exp
index c0c0c8917c81..aabbb24b4d9e 100644
--- a/gdb/testsuite/gdb.threads/manythreads.exp
+++ b/gdb/testsuite/gdb.threads/manythreads.exp
@@ -28,7 +28,7 @@ if {[info exists DEBUG]} {
}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp b/gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp
index 881a489b04d6..cc5fe888f878 100644
--- a/gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp
+++ b/gdb/testsuite/gdb.threads/multi-create-ns-info-thr.exp
@@ -19,14 +19,14 @@
standard_testfile multi-create.c
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
gdb_test_no_output "set pagination off"
gdb_test_no_output "set non-stop on"
if {![runto_main]} {
- return -1
+ return
}
# Create a breakpoint that does "info threads" when hit, which will be
diff --git a/gdb/testsuite/gdb.threads/multi-create.exp b/gdb/testsuite/gdb.threads/multi-create.exp
index 9bc49b6b7e1a..a34ddfe69957 100644
--- a/gdb/testsuite/gdb.threads/multi-create.exp
+++ b/gdb/testsuite/gdb.threads/multi-create.exp
@@ -18,7 +18,7 @@ standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug}] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/multiple-step-overs.exp b/gdb/testsuite/gdb.threads/multiple-step-overs.exp
index 8433e16340ad..2159718f2a63 100644
--- a/gdb/testsuite/gdb.threads/multiple-step-overs.exp
+++ b/gdb/testsuite/gdb.threads/multiple-step-overs.exp
@@ -23,7 +23,7 @@ require {!target_info exists gdb,nosignals}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable [list debug "incdir=${objdir}"]] != "" } {
- return -1
+ return
}
# Prepare environment for test.
diff --git a/gdb/testsuite/gdb.threads/names.exp b/gdb/testsuite/gdb.threads/names.exp
index dc3ed4eaa2ca..31f36f1b3d7c 100644
--- a/gdb/testsuite/gdb.threads/names.exp
+++ b/gdb/testsuite/gdb.threads/names.exp
@@ -21,7 +21,7 @@ require {!target_info exists gdb,no_thread_names}
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}]} {
- return -1
+ return
}
if {![runto "all_threads_ready"]} {
diff --git a/gdb/testsuite/gdb.threads/next-bp-other-thread.exp b/gdb/testsuite/gdb.threads/next-bp-other-thread.exp
index 56f2c8440e98..9f07ad6aaa9b 100644
--- a/gdb/testsuite/gdb.threads/next-bp-other-thread.exp
+++ b/gdb/testsuite/gdb.threads/next-bp-other-thread.exp
@@ -22,7 +22,7 @@ standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile \
{debug pthreads}] == -1} {
- return -1
+ return
}
# Test all "set scheduler-locking" variants.
diff --git a/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp b/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp
index aa6fc1965a92..6852e8d7f876 100644
--- a/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp
+++ b/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp
@@ -24,7 +24,7 @@ set linenum [gdb_get_line_number "set break here"]
if {[prepare_for_testing "failed to prepare" \
$testfile $srcfile {c++ debug pthreads}] == -1} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.threads/no-unwaited-for-left.exp b/gdb/testsuite/gdb.threads/no-unwaited-for-left.exp
index e21a7fe4c9fa..621da59db46f 100644
--- a/gdb/testsuite/gdb.threads/no-unwaited-for-left.exp
+++ b/gdb/testsuite/gdb.threads/no-unwaited-for-left.exp
@@ -20,13 +20,13 @@ standard_testfile
set executable ${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
clean_restart ${executable}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint $srcfile:[gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
index 360630e6f66a..442b6fb639ff 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
@@ -20,7 +20,7 @@ standard_testfile
set executable ${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
proc do_test { lock_sched nonstop } {
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp
index f331e823c2b2..ead262cc2b50 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp
@@ -21,7 +21,7 @@ standard_testfile
set executable ${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
proc do_test { lock_sched nonstop } {
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-3.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-3.exp
index 76ac3f155628..2ad3a84d24bf 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-3.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-3.exp
@@ -23,7 +23,7 @@ standard_testfile
set executable ${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
proc do_test { lock_sched nonstop } {
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-4.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-4.exp
index a895a51f4a99..fad49047ac39 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-4.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-4.exp
@@ -22,7 +22,7 @@ standard_testfile
set executable ${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
proc do_test { lock_sched nonstop } {
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exit.exp b/gdb/testsuite/gdb.threads/non-ldr-exit.exp
index e49f3ce86074..6b5e85fd2fa0 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exit.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exit.exp
@@ -19,11 +19,11 @@ standard_testfile
set executable ${testfile}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.threads/non-stop-fair-events.exp b/gdb/testsuite/gdb.threads/non-stop-fair-events.exp
index 7593c2432f3c..53d62963f62b 100644
--- a/gdb/testsuite/gdb.threads/non-stop-fair-events.exp
+++ b/gdb/testsuite/gdb.threads/non-stop-fair-events.exp
@@ -23,13 +23,13 @@ require {!target_info exists gdb,nosignals}
set options { "additional_flags=-DTIMEOUT=$timeout" debug pthreads }
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $options] == -1} {
- return -1
+ return
}
gdb_test_no_output "set non-stop on"
if {![runto_main]} {
- return -1
+ return
}
# We want "handle print", to make sure the target backend reports the
diff --git a/gdb/testsuite/gdb.threads/omp-par-scope.exp b/gdb/testsuite/gdb.threads/omp-par-scope.exp
index 5f919a1952a1..b561bf2f4a5b 100644
--- a/gdb/testsuite/gdb.threads/omp-par-scope.exp
+++ b/gdb/testsuite/gdb.threads/omp-par-scope.exp
@@ -36,7 +36,7 @@ if {[support_nested_function_tests]} {
}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
# gdb_openmp_setup may be defined to set auto-load safe-path and possibly
@@ -61,7 +61,7 @@ if {[info procs gdb_openmp_setup] != ""} {
}
if {![runto_main]} {
- return -1
+ return
}
# We want to invoke setup_kfail (and in some cases setup_xfail) when
diff --git a/gdb/testsuite/gdb.threads/omp-task.exp b/gdb/testsuite/gdb.threads/omp-task.exp
index a77ffe86cf95..636bcf989159 100644
--- a/gdb/testsuite/gdb.threads/omp-task.exp
+++ b/gdb/testsuite/gdb.threads/omp-task.exp
@@ -24,7 +24,7 @@ set have_nested_function_support 0
set opts {openmp debug}
if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
- return -1
+ return
}
if {[info procs gdb_openmp_setup] != ""} {
@@ -35,7 +35,7 @@ if {[info procs gdb_openmp_setup] != ""} {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "omp task shared"]
diff --git a/gdb/testsuite/gdb.threads/pending-step.exp b/gdb/testsuite/gdb.threads/pending-step.exp
index 4395195a703f..c9ff1de32c89 100644
--- a/gdb/testsuite/gdb.threads/pending-step.exp
+++ b/gdb/testsuite/gdb.threads/pending-step.exp
@@ -51,7 +51,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/print-threads.exp b/gdb/testsuite/gdb.threads/print-threads.exp
index e03e2e48ccb5..a1ac1fdd230b 100644
--- a/gdb/testsuite/gdb.threads/print-threads.exp
+++ b/gdb/testsuite/gdb.threads/print-threads.exp
@@ -27,7 +27,7 @@ standard_testfile
set horiz "\[^\n\r\]*"
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
# Now we can proceed with the real testing.
diff --git a/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp b/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp
index e4ec42e0dd53..624422bb7ea2 100644
--- a/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp
+++ b/gdb/testsuite/gdb.threads/process-dies-while-handling-bp.exp
@@ -28,7 +28,7 @@ standard_testfile
set linenum [gdb_get_line_number "set break here"]
if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
# The test proper. If COND_BP_TARGET is true, then test with
diff --git a/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp b/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp
index 7876e9f763c7..8ecacba59d5e 100644
--- a/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp
+++ b/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp
@@ -32,7 +32,7 @@ if { ![istarget "*-*-linux*"] } {
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
for {set iteration 0} {$iteration < 10} {incr iteration} {
diff --git a/gdb/testsuite/gdb.threads/pthread_cond_wait.exp b/gdb/testsuite/gdb.threads/pthread_cond_wait.exp
index a3d5cc2f2081..ae700b8715ca 100644
--- a/gdb/testsuite/gdb.threads/pthread_cond_wait.exp
+++ b/gdb/testsuite/gdb.threads/pthread_cond_wait.exp
@@ -22,7 +22,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/pthreads.exp b/gdb/testsuite/gdb.threads/pthreads.exp
index 0e382af9835b..93d242b56f20 100644
--- a/gdb/testsuite/gdb.threads/pthreads.exp
+++ b/gdb/testsuite/gdb.threads/pthreads.exp
@@ -31,7 +31,7 @@ if {[istarget "*-*-linux"]} {
}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/queue-signal.exp b/gdb/testsuite/gdb.threads/queue-signal.exp
index c461df0aa28d..905f47c1243b 100644
--- a/gdb/testsuite/gdb.threads/queue-signal.exp
+++ b/gdb/testsuite/gdb.threads/queue-signal.exp
@@ -17,7 +17,7 @@ standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable { debug }] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/reconnect-signal.exp b/gdb/testsuite/gdb.threads/reconnect-signal.exp
index bbd5e651b7f7..e1079f3d1feb 100644
--- a/gdb/testsuite/gdb.threads/reconnect-signal.exp
+++ b/gdb/testsuite/gdb.threads/reconnect-signal.exp
@@ -29,7 +29,7 @@ if { [gdb_compile_pthreads \
"${binfile}" \
executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.threads/schedlock.exp b/gdb/testsuite/gdb.threads/schedlock.exp
index a6c453c59c2c..0136d625e777 100644
--- a/gdb/testsuite/gdb.threads/schedlock.exp
+++ b/gdb/testsuite/gdb.threads/schedlock.exp
@@ -28,7 +28,7 @@ standard_testfile
set NUM 2
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
# Now we can proceed with the real testing.
diff --git a/gdb/testsuite/gdb.threads/siginfo-threads.exp b/gdb/testsuite/gdb.threads/siginfo-threads.exp
index 81fc03ef5a52..acf1185cdfc5 100644
--- a/gdb/testsuite/gdb.threads/siginfo-threads.exp
+++ b/gdb/testsuite/gdb.threads/siginfo-threads.exp
@@ -20,13 +20,13 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" \
${binfile} \
executable \
[list debug additional_flags=-lrt]] != "" } {
- return -1
+ return
}
clean_restart $testfile
if {![runto_main]} {
- return -1
+ return
}
# `nostop noprint pass' could in some cases report false PASS due to
diff --git a/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp b/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
index 4eff994fa098..d5b657bfc3dd 100644
--- a/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
+++ b/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
@@ -24,7 +24,7 @@ require {!target_info exists gdb,nosignals}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable { debug }] != "" } {
- return -1
+ return
}
# Run the test proper. STEP_OVER indicates whether we leave in place
diff --git a/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp b/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp
index 983a5e8dc43c..9aeb8597fc93 100644
--- a/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp
+++ b/gdb/testsuite/gdb.threads/signal-command-multiple-signals-pending.exp
@@ -22,7 +22,7 @@ require {!target_info exists gdb,nosignals}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable { debug }] != "" } {
- return -1
+ return
}
# Run the test proper. SCHEDLOCK indicates which variant (around
diff --git a/gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp b/gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp
index 0138cc0036a7..745447d3a075 100644
--- a/gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp
+++ b/gdb/testsuite/gdb.threads/signal-delivered-right-thread.exp
@@ -19,7 +19,7 @@ require {!target_info exists gdb,nosignals}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable { debug }] != "" } {
- return -1
+ return
}
# Run test proper. COMMAND indicates whether to resume the inferior
diff --git a/gdb/testsuite/gdb.threads/signal-sigtrap.exp b/gdb/testsuite/gdb.threads/signal-sigtrap.exp
index c3f5af8905e6..55c2ee626d5f 100644
--- a/gdb/testsuite/gdb.threads/signal-sigtrap.exp
+++ b/gdb/testsuite/gdb.threads/signal-sigtrap.exp
@@ -22,7 +22,7 @@ require {!target_info exists gdb,nosignals}
if {[build_executable "failed to prepare" $testfile $srcfile \
{debug pthreads}]} {
- return -1
+ return
}
# Run test proper. SIGTRAP_THREAD is the thread that should get the
diff --git a/gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp b/gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp
index 589da62a15b2..f7bc6cb36b9e 100644
--- a/gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp
+++ b/gdb/testsuite/gdb.threads/signal-while-stepping-over-bp-other-thread.exp
@@ -29,7 +29,7 @@ require {!target_info exists gdb,nosignals}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable [list debug "incdir=${objdir}"]] != "" } {
- return -1
+ return
}
proc get_value {var test} {
@@ -52,7 +52,7 @@ proc get_value {var test} {
clean_restart $executable
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "set wait-thread-2 breakpoint here"]
diff --git a/gdb/testsuite/gdb.threads/sigstep-threads.exp b/gdb/testsuite/gdb.threads/sigstep-threads.exp
index 77f65cf359d6..1ad86f01440c 100644
--- a/gdb/testsuite/gdb.threads/sigstep-threads.exp
+++ b/gdb/testsuite/gdb.threads/sigstep-threads.exp
@@ -18,13 +18,13 @@ set executable ${testfile}
if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $executable
if {![runto_main]} {
- return -1
+ return
}
# `noprint' would not test the full logic of GDB.
diff --git a/gdb/testsuite/gdb.threads/sigthread.exp b/gdb/testsuite/gdb.threads/sigthread.exp
index 5e6094d9691a..af5941a41cdd 100644
--- a/gdb/testsuite/gdb.threads/sigthread.exp
+++ b/gdb/testsuite/gdb.threads/sigthread.exp
@@ -21,7 +21,7 @@ require {!target_info exists gdb,nointerrupts}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable { debug }] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/step-bg-decr-pc-switch-thread.exp b/gdb/testsuite/gdb.threads/step-bg-decr-pc-switch-thread.exp
index a87e076398ea..deb3432c9a8e 100644
--- a/gdb/testsuite/gdb.threads/step-bg-decr-pc-switch-thread.exp
+++ b/gdb/testsuite/gdb.threads/step-bg-decr-pc-switch-thread.exp
@@ -31,7 +31,7 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.exp b/gdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.exp
index ccd81078ba9c..d391239f5018 100644
--- a/gdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.exp
+++ b/gdb/testsuite/gdb.threads/step-over-lands-on-breakpoint.exp
@@ -21,7 +21,7 @@ set executable ${testfile}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable [list debug "incdir=${objdir}"]] != "" } {
- return -1
+ return
}
# The test proper. DISPLACED is true if we should try with displaced
diff --git a/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp b/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp
index 0a0c5edb97a3..877309a9f4ef 100644
--- a/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp
+++ b/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp
@@ -26,7 +26,7 @@ require allow_hw_watchpoint_tests
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable [list debug "incdir=${objdir}"]] != "" } {
- return -1
+ return
}
# The test proper. DISPLACED is true if we should try with displaced
diff --git a/gdb/testsuite/gdb.threads/stepi-random-signal.exp b/gdb/testsuite/gdb.threads/stepi-random-signal.exp
index a63b9b76502b..64b07ec00bb8 100644
--- a/gdb/testsuite/gdb.threads/stepi-random-signal.exp
+++ b/gdb/testsuite/gdb.threads/stepi-random-signal.exp
@@ -25,14 +25,14 @@ if { [gdb_compile_pthreads \
"${binfile}" \
executable {debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
clean_restart $executable
# Start the second thread.
if {![runto start]} {
- return -1
+ return
}
# Go back to the main thread, and leave it in the loop, where we're
diff --git a/gdb/testsuite/gdb.threads/stop-with-handle.exp b/gdb/testsuite/gdb.threads/stop-with-handle.exp
index 895d7ef7bac7..de40a3f1e946 100644
--- a/gdb/testsuite/gdb.threads/stop-with-handle.exp
+++ b/gdb/testsuite/gdb.threads/stop-with-handle.exp
@@ -25,7 +25,7 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" \
"${testfile}" "${srcfile}" {debug pthreads}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.threads/switch-threads.exp b/gdb/testsuite/gdb.threads/switch-threads.exp
index bd25b1b49ffb..10e40e6843b8 100644
--- a/gdb/testsuite/gdb.threads/switch-threads.exp
+++ b/gdb/testsuite/gdb.threads/switch-threads.exp
@@ -26,7 +26,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/thread-bp-deleted.exp b/gdb/testsuite/gdb.threads/thread-bp-deleted.exp
index 037e8288b62f..f7791e0ea90f 100644
--- a/gdb/testsuite/gdb.threads/thread-bp-deleted.exp
+++ b/gdb/testsuite/gdb.threads/thread-bp-deleted.exp
@@ -26,7 +26,7 @@ standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile \
{debug pthreads}] == -1} {
- return -1
+ return
}
# We need to do things a little differently when using the remote protocol.
@@ -43,7 +43,7 @@ save_vars { GDBFLAGS } {
}
if {![runto_main]} {
- return -1
+ return
}
# Check we hace non-stop mode. We do try to force this on above, but maybe
@@ -51,7 +51,7 @@ if {![runto_main]} {
# non-stop mode will still show as off, and this test should not be run.
if {![is_target_non_stop]} {
unsupported "required non-stop mode"
- return -1
+ return
}
delete_breakpoints
diff --git a/gdb/testsuite/gdb.threads/thread-execl.exp b/gdb/testsuite/gdb.threads/thread-execl.exp
index b926664b4508..cd6d6e4f57bf 100644
--- a/gdb/testsuite/gdb.threads/thread-execl.exp
+++ b/gdb/testsuite/gdb.threads/thread-execl.exp
@@ -20,7 +20,7 @@ standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable debug] != "" } {
- return -1
+ return
}
# Run the test proper. SCHEDLOCK specifies what scheduler-locking
diff --git a/gdb/testsuite/gdb.threads/thread-find.exp b/gdb/testsuite/gdb.threads/thread-find.exp
index acaf99f3c02d..b08e148a081a 100644
--- a/gdb/testsuite/gdb.threads/thread-find.exp
+++ b/gdb/testsuite/gdb.threads/thread-find.exp
@@ -18,7 +18,7 @@
standard_testfile linux-dp.c
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != ""} {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/thread-specific-bp.exp b/gdb/testsuite/gdb.threads/thread-specific-bp.exp
index 36d2344619a9..d698b0ce96b1 100644
--- a/gdb/testsuite/gdb.threads/thread-specific-bp.exp
+++ b/gdb/testsuite/gdb.threads/thread-specific-bp.exp
@@ -21,7 +21,7 @@ standard_testfile
if {[gdb_compile_pthreads \
"${srcdir}/${subdir}/${srcfile}" \
"${binfile}" executable {debug} ] != "" } {
- return -1
+ return
}
# Extract and return the thread ID of the thread stopped at function
diff --git a/gdb/testsuite/gdb.threads/thread-specific.exp b/gdb/testsuite/gdb.threads/thread-specific.exp
index 814e870bc89b..79932ab9dc17 100644
--- a/gdb/testsuite/gdb.threads/thread-specific.exp
+++ b/gdb/testsuite/gdb.threads/thread-specific.exp
@@ -21,7 +21,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
# Return a list of the valid thread IDs, with the initial thread first.
diff --git a/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp b/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
index d46c3de8c203..d77b323338cc 100644
--- a/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
+++ b/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
@@ -25,7 +25,7 @@ standard_testfile interrupted-hand-call.c
require {!target_info exists gdb,cannot_call_functions}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS"]] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/thread_check.exp b/gdb/testsuite/gdb.threads/thread_check.exp
index 1a79e1126502..e48e3d5b3c37 100644
--- a/gdb/testsuite/gdb.threads/thread_check.exp
+++ b/gdb/testsuite/gdb.threads/thread_check.exp
@@ -35,7 +35,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.threads/thread_events.exp b/gdb/testsuite/gdb.threads/thread_events.exp
index f7075f82724e..37579bdd395d 100644
--- a/gdb/testsuite/gdb.threads/thread_events.exp
+++ b/gdb/testsuite/gdb.threads/thread_events.exp
@@ -36,7 +36,7 @@ if {[target_info gdb_protocol] == "remote"
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
proc gdb_test_thread_start {messages_enabled command pattern message} {
diff --git a/gdb/testsuite/gdb.threads/threadapply.exp b/gdb/testsuite/gdb.threads/threadapply.exp
index 73b61056a192..f8827ae7ea65 100644
--- a/gdb/testsuite/gdb.threads/threadapply.exp
+++ b/gdb/testsuite/gdb.threads/threadapply.exp
@@ -22,7 +22,7 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/threadcrash.exp b/gdb/testsuite/gdb.threads/threadcrash.exp
index 1699449f0ed6..aa39f6509e9c 100644
--- a/gdb/testsuite/gdb.threads/threadcrash.exp
+++ b/gdb/testsuite/gdb.threads/threadcrash.exp
@@ -273,7 +273,7 @@ standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug pthreads}]} {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/threxit-hop-specific.exp b/gdb/testsuite/gdb.threads/threxit-hop-specific.exp
index f9064b8a19ba..79134a0c5428 100644
--- a/gdb/testsuite/gdb.threads/threxit-hop-specific.exp
+++ b/gdb/testsuite/gdb.threads/threxit-hop-specific.exp
@@ -20,7 +20,7 @@ standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable debug] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/tid-reuse.exp b/gdb/testsuite/gdb.threads/tid-reuse.exp
index ce5986986507..57a544f90088 100644
--- a/gdb/testsuite/gdb.threads/tid-reuse.exp
+++ b/gdb/testsuite/gdb.threads/tid-reuse.exp
@@ -19,11 +19,11 @@
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile { debug pthreads }] == -1} {
- return -1
+ return
}
if {![runto_main]} {
- return -1
+ return
}
delete_breakpoints
diff --git a/gdb/testsuite/gdb.threads/tls-core.exp b/gdb/testsuite/gdb.threads/tls-core.exp
index e59f22b24545..d2e49dbde02b 100644
--- a/gdb/testsuite/gdb.threads/tls-core.exp
+++ b/gdb/testsuite/gdb.threads/tls-core.exp
@@ -17,7 +17,7 @@ standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable { debug }] != "" } {
- return -1
+ return
}
# Generate a native core file.
diff --git a/gdb/testsuite/gdb.threads/tls-nodebug-pie.exp b/gdb/testsuite/gdb.threads/tls-nodebug-pie.exp
index cca67f882e1d..9d2a805c4a5f 100644
--- a/gdb/testsuite/gdb.threads/tls-nodebug-pie.exp
+++ b/gdb/testsuite/gdb.threads/tls-nodebug-pie.exp
@@ -17,7 +17,7 @@ standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
{pie}] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/tls-nodebug.exp b/gdb/testsuite/gdb.threads/tls-nodebug.exp
index cc6573aae6c5..e02788700d89 100644
--- a/gdb/testsuite/gdb.threads/tls-nodebug.exp
+++ b/gdb/testsuite/gdb.threads/tls-nodebug.exp
@@ -23,7 +23,7 @@ if {[istarget "*-*-linux"]} {
}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable []] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
diff --git a/gdb/testsuite/gdb.threads/tls-sepdebug.exp b/gdb/testsuite/gdb.threads/tls-sepdebug.exp
index 1b47fe243ee0..5f705d1750d0 100644
--- a/gdb/testsuite/gdb.threads/tls-sepdebug.exp
+++ b/gdb/testsuite/gdb.threads/tls-sepdebug.exp
@@ -46,7 +46,7 @@ set binsharedfile [standard_output_file ${binsharedbase}]
if { [build_executable "build library" ${binsharedfile} ${srcsharedfile} \
{debug shlib additional_flags=-std=c11}] == -1 } {
untested "Couldn't compile test library"
- return -1
+ return
}
# Strip debug information from $binsharedfile, placing it in
@@ -61,7 +61,7 @@ if { [gdb_compile_pthreads \
"${binmainfile}" executable [list debug additional_flags=-std=c11]] \
!= "" } {
untested "Couldn't compile test program"
- return -1
+ return
}
set absdir [file dirname [standard_output_file ${binsharedbase}]]
diff --git a/gdb/testsuite/gdb.threads/tls-shared.exp b/gdb/testsuite/gdb.threads/tls-shared.exp
index 768b84a2103a..a293809105d6 100644
--- a/gdb/testsuite/gdb.threads/tls-shared.exp
+++ b/gdb/testsuite/gdb.threads/tls-shared.exp
@@ -25,7 +25,7 @@ remote_exec build "rm -f ${binfile}"
if { [gdb_compile_shlib_pthreads ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} {debug}] != ""
|| [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable [list debug shlib=${binfile_lib}]] != ""} {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.threads/tls-so_extern.exp b/gdb/testsuite/gdb.threads/tls-so_extern.exp
index 91205308067b..eb3f32df6210 100644
--- a/gdb/testsuite/gdb.threads/tls-so_extern.exp
+++ b/gdb/testsuite/gdb.threads/tls-so_extern.exp
@@ -24,7 +24,7 @@ set binfile_lib [standard_output_file ${libfile}.so]
if { [gdb_compile_shlib_pthreads ${srcdir}/${subdir}/${srcfile_lib} ${binfile_lib} {debug}] != ""
|| [gdb_compile_pthreads ${srcdir}/${subdir}/${srcfile} ${binfile} executable [list debug shlib=${binfile_lib}]] != ""} {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.threads/tls-var.exp b/gdb/testsuite/gdb.threads/tls-var.exp
index fe95df91dbbd..5b2968a7bd01 100644
--- a/gdb/testsuite/gdb.threads/tls-var.exp
+++ b/gdb/testsuite/gdb.threads/tls-var.exp
@@ -22,7 +22,7 @@ set executable ${testfile}
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${objfile} object {debug}] != ""
|| [gdb_compile ${srcdir}/${subdir}/${srcmainfile} ${objmainfile} object {}] != ""
|| [gdb_compile_pthreads "${objfile} ${objmainfile}" ${binfile} executable {}] != ""} {
- return -1
+ return
}
clean_restart ${executable}
diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp
index 4a93433e8333..bf48a6f9fc9e 100644
--- a/gdb/testsuite/gdb.threads/tls.exp
+++ b/gdb/testsuite/gdb.threads/tls.exp
@@ -25,7 +25,7 @@ if {[istarget "*-*-linux"]} {
}
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" "${binfile}" executable [list c++ debug]] != "" } {
- return -1
+ return
}
### Compute the value of the a_thread_local variable.
diff --git a/gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp b/gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp
index ade63410da9d..555bc463bb5b 100644
--- a/gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp
+++ b/gdb/testsuite/gdb.threads/vfork-follow-child-exec.exp
@@ -21,7 +21,7 @@ require allow_fork_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}]} {
- return -1
+ return
}
# DETACH indicates whether "set detach-on-fork" is enabled. It is
diff --git a/gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp b/gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp
index 0f35bd5faa04..b0e8079cf2df 100644
--- a/gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp
+++ b/gdb/testsuite/gdb.threads/vfork-follow-child-exit.exp
@@ -21,7 +21,7 @@ require allow_fork_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile {debug pthreads}]} {
- return -1
+ return
}
# DETACH indicates whether "set detach-on-fork" is enabled. It is
diff --git a/gdb/testsuite/gdb.threads/vfork-multi-inferior.exp b/gdb/testsuite/gdb.threads/vfork-multi-inferior.exp
index 2686eba08e70..e258ec719e91 100644
--- a/gdb/testsuite/gdb.threads/vfork-multi-inferior.exp
+++ b/gdb/testsuite/gdb.threads/vfork-multi-inferior.exp
@@ -49,14 +49,14 @@ set opts [list debug additional_flags=-DNR_LOOPS=$nr_loops]
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \
$opts] != "" } {
untested "failed to compile"
- return -1
+ return
}
# Compile the secondary program, which just sleeps.
if { [gdb_compile "${srcdir}/${subdir}/${srcfile_sleep}" "${binfile_sleep}" executable \
{debug}] != "" } {
untested "failed to compile"
- return -1
+ return
}
# We exercise two methods of getting a second inferior to execute while the
diff --git a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
index 980ca4d66d0c..58b16be70f26 100644
--- a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
@@ -32,7 +32,7 @@ if {![istarget *-*-linux*]} {
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" ${binfile} executable [list debug additional_flags=-lrt]] != "" } {
- return -1
+ return
}
foreach reorder {0 1} { with_test_prefix "reorder$reorder" {
diff --git a/gdb/testsuite/gdb.threads/watchthreads.exp b/gdb/testsuite/gdb.threads/watchthreads.exp
index 77a3f7bc5e2c..e975e22e5730 100644
--- a/gdb/testsuite/gdb.threads/watchthreads.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads.exp
@@ -28,7 +28,7 @@ proc target_no_stopped_data { } {
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
- return -1
+ return
}
clean_restart $::testfile
diff --git a/gdb/testsuite/gdb.threads/watchthreads2.exp b/gdb/testsuite/gdb.threads/watchthreads2.exp
index 00229d384c06..49884f4136dd 100644
--- a/gdb/testsuite/gdb.threads/watchthreads2.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads2.exp
@@ -28,7 +28,7 @@ require allow_hw_watchpoint_tests
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS -DX_INCR_COUNT=$X_INCR_COUNT"]] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
@@ -68,7 +68,7 @@ if { $nr_started == $NR_THREADS } {
} else {
fail "all threads started"
# No point in continuing.
- return -1
+ return
}
# Check that multiple uses of the 'thread' keyword will give an error.
diff --git a/gdb/testsuite/gdb.threads/wp-replication.exp b/gdb/testsuite/gdb.threads/wp-replication.exp
index d5f0ff0068c1..28a5071bd5e5 100644
--- a/gdb/testsuite/gdb.threads/wp-replication.exp
+++ b/gdb/testsuite/gdb.threads/wp-replication.exp
@@ -31,7 +31,7 @@ require allow_hw_watchpoint_tests
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "additional_flags=-DNR_THREADS=$NR_THREADS -DNR_TRIGGERS_PER_THREAD=$NR_TRIGGERS_PER_THREAD"]] != "" } {
- return -1
+ return
}
clean_restart ${::testfile}
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 32/36] GDB: testsuite: threads: Don't return 0 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (30 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 31/36] GDB: testsuite: threads: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 33/36] GDB: testsuite: threads: Don't return -1 from top-level (manual) Thiago Jung Bauermann
` (3 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is a bit different than the others. I noticed that
gdb.threads has many cases of "return 0" from the top level, so this
patch is purely the result of running:
$ sed -i 's/^ return 0/ return/' *.exp*
inside gdb/testsuite/gdb.threads.
There were a number of false positives so not all sed changes were
incorporated.
---
.../gdb.threads/attach-many-short-lived-threads.exp | 2 +-
gdb/testsuite/gdb.threads/corethreads.exp | 2 +-
gdb/testsuite/gdb.threads/del-pending-thread-bp.exp | 2 +-
gdb/testsuite/gdb.threads/dlopen-libpthread.exp | 2 +-
gdb/testsuite/gdb.threads/hand-call-in-threads.exp | 2 +-
gdb/testsuite/gdb.threads/interrupted-hand-call.exp | 2 +-
.../gdb.threads/next-while-other-thread-longjmps.exp | 2 +-
gdb/testsuite/gdb.threads/pending-step.exp | 2 +-
.../process-exit-status-is-leader-exit-status.exp | 2 +-
gdb/testsuite/gdb.threads/queue-signal.exp | 2 +-
gdb/testsuite/gdb.threads/reconnect-signal.exp | 6 +++---
gdb/testsuite/gdb.threads/stop-with-handle.exp | 2 +-
gdb/testsuite/gdb.threads/thread-unwindonsignal.exp | 2 +-
gdb/testsuite/gdb.threads/threadapply.exp | 2 +-
gdb/testsuite/gdb.threads/tls-nodebug-pie.exp | 2 +-
gdb/testsuite/gdb.threads/tls-shared.exp | 2 +-
gdb/testsuite/gdb.threads/tls-so_extern.exp | 2 +-
gdb/testsuite/gdb.threads/tls-var.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads2.exp | 2 +-
gdb/testsuite/gdb.threads/wp-replication.exp | 2 +-
22 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp b/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp
index 0f1b141b1ea1..6f51e607d77d 100644
--- a/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp
+++ b/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp
@@ -46,7 +46,7 @@ proc bad_dejagnu {} {
if {[bad_dejagnu]} {
unsupported "broken DejaGnu"
- return 0
+ return
}
require can_spawn_for_attach
diff --git a/gdb/testsuite/gdb.threads/corethreads.exp b/gdb/testsuite/gdb.threads/corethreads.exp
index 3749e3507bdc..4e520c5e8f22 100644
--- a/gdb/testsuite/gdb.threads/corethreads.exp
+++ b/gdb/testsuite/gdb.threads/corethreads.exp
@@ -30,7 +30,7 @@ if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executa
set corefile [core_find $binfile]
if {$corefile == ""} {
untested "unable to create or find corefile"
- return 0
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.threads/del-pending-thread-bp.exp b/gdb/testsuite/gdb.threads/del-pending-thread-bp.exp
index 09a6f56a5660..c318b38b472a 100644
--- a/gdb/testsuite/gdb.threads/del-pending-thread-bp.exp
+++ b/gdb/testsuite/gdb.threads/del-pending-thread-bp.exp
@@ -45,7 +45,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
gdb_locate_shlib $binfile_lib
if {![runto_main]} {
- return 0
+ return
}
# Run until we have two threads.
diff --git a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
index 03ce0dd1612d..01f2186bcdc8 100644
--- a/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
+++ b/gdb/testsuite/gdb.threads/dlopen-libpthread.exp
@@ -15,7 +15,7 @@
require isnative allow_shlib_tests
if {![istarget *-linux*]} {
- return 0
+ return
}
load_lib prelink-support.exp
diff --git a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
index f6d29720cc6f..2f5eaa5405bf 100644
--- a/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
+++ b/gdb/testsuite/gdb.threads/hand-call-in-threads.exp
@@ -47,7 +47,7 @@ proc get_dummy_frame_number { } {
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
diff --git a/gdb/testsuite/gdb.threads/interrupted-hand-call.exp b/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
index 23a3d038c09a..fe39b4ee9035 100644
--- a/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
+++ b/gdb/testsuite/gdb.threads/interrupted-hand-call.exp
@@ -31,7 +31,7 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
diff --git a/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp b/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp
index 6852e8d7f876..0647ff5cb760 100644
--- a/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp
+++ b/gdb/testsuite/gdb.threads/next-while-other-thread-longjmps.exp
@@ -28,7 +28,7 @@ if {[prepare_for_testing "failed to prepare" \
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint $linenum
diff --git a/gdb/testsuite/gdb.threads/pending-step.exp b/gdb/testsuite/gdb.threads/pending-step.exp
index c9ff1de32c89..a4fc5807167c 100644
--- a/gdb/testsuite/gdb.threads/pending-step.exp
+++ b/gdb/testsuite/gdb.threads/pending-step.exp
@@ -57,7 +57,7 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
clean_restart ${::testfile}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "insert breakpoint here"]
diff --git a/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp b/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp
index 8ecacba59d5e..80afd0e1f1a2 100644
--- a/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp
+++ b/gdb/testsuite/gdb.threads/process-exit-status-is-leader-exit-status.exp
@@ -26,7 +26,7 @@
# required to reproduce the error with a misbehaving GDB.
if { ![istarget "*-*-linux*"] } {
- return 0
+ return
}
standard_testfile
diff --git a/gdb/testsuite/gdb.threads/queue-signal.exp b/gdb/testsuite/gdb.threads/queue-signal.exp
index 905f47c1243b..aaa5bc91818a 100644
--- a/gdb/testsuite/gdb.threads/queue-signal.exp
+++ b/gdb/testsuite/gdb.threads/queue-signal.exp
@@ -51,7 +51,7 @@ gdb_test_multiple "bt" "determine thread functions" {
# No point in continuing if we couldn't figure out which thread is which.
if { $sigusr1_thread == 0 } {
# FAIL already recorded.
- return 0
+ return
}
# Advance each thread to where we want them one at a time.
diff --git a/gdb/testsuite/gdb.threads/reconnect-signal.exp b/gdb/testsuite/gdb.threads/reconnect-signal.exp
index e1079f3d1feb..f7a66ac844db 100644
--- a/gdb/testsuite/gdb.threads/reconnect-signal.exp
+++ b/gdb/testsuite/gdb.threads/reconnect-signal.exp
@@ -18,7 +18,7 @@
set gdbserver_reconnect_p 1
if { [info proc gdb_reconnect] == "" } {
unsupported "requires gdbserver reconnect"
- return 0
+ return
}
standard_testfile
@@ -35,7 +35,7 @@ if { [gdb_compile_pthreads \
clean_restart $executable
if {![runto_main]} {
- return 0
+ return
}
gdb_test "continue" "signal SIGUSR1.*" "continue to signal"
@@ -67,7 +67,7 @@ if { [lindex $res 0] == 0 } {
pass $test
} else {
fail $test
- return 0
+ return
}
# Check that thread 2 is re-selected.
diff --git a/gdb/testsuite/gdb.threads/stop-with-handle.exp b/gdb/testsuite/gdb.threads/stop-with-handle.exp
index de40a3f1e946..be1d38602778 100644
--- a/gdb/testsuite/gdb.threads/stop-with-handle.exp
+++ b/gdb/testsuite/gdb.threads/stop-with-handle.exp
@@ -29,7 +29,7 @@ if {[prepare_for_testing "failed to prepare" \
}
if {![runto_main]} {
- return 0
+ return
}
# Have SIGSTOP sent to the inferior.
diff --git a/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp b/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
index d77b323338cc..299d66b0516d 100644
--- a/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
+++ b/gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
@@ -31,7 +31,7 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
diff --git a/gdb/testsuite/gdb.threads/threadapply.exp b/gdb/testsuite/gdb.threads/threadapply.exp
index f8827ae7ea65..7fdc647705a9 100644
--- a/gdb/testsuite/gdb.threads/threadapply.exp
+++ b/gdb/testsuite/gdb.threads/threadapply.exp
@@ -32,7 +32,7 @@ clean_restart ${::testfile}
#
if {![runto_main]} {
- return 0
+ return
}
# Break after all threads have been started.
diff --git a/gdb/testsuite/gdb.threads/tls-nodebug-pie.exp b/gdb/testsuite/gdb.threads/tls-nodebug-pie.exp
index 9d2a805c4a5f..5e9c4ddd2e8b 100644
--- a/gdb/testsuite/gdb.threads/tls-nodebug-pie.exp
+++ b/gdb/testsuite/gdb.threads/tls-nodebug-pie.exp
@@ -22,7 +22,7 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
clean_restart ${::testfile}
if {![runto_main]} {
- return 0
+ return
}
# Formerly: Cannot access memory at address 0xffffef7c0698
diff --git a/gdb/testsuite/gdb.threads/tls-shared.exp b/gdb/testsuite/gdb.threads/tls-shared.exp
index a293809105d6..2710145c9958 100644
--- a/gdb/testsuite/gdb.threads/tls-shared.exp
+++ b/gdb/testsuite/gdb.threads/tls-shared.exp
@@ -33,7 +33,7 @@ clean_restart ${::testfile}
gdb_load_shlib ${binfile_lib}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "print i_tls" "2" "print thread local storage variable"
diff --git a/gdb/testsuite/gdb.threads/tls-so_extern.exp b/gdb/testsuite/gdb.threads/tls-so_extern.exp
index eb3f32df6210..f1c0b66ad935 100644
--- a/gdb/testsuite/gdb.threads/tls-so_extern.exp
+++ b/gdb/testsuite/gdb.threads/tls-so_extern.exp
@@ -32,7 +32,7 @@ clean_restart ${::testfile}
gdb_load_shlib ${binfile_lib}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "print so_extern" "0x0" "print thread local storage variable"
diff --git a/gdb/testsuite/gdb.threads/tls-var.exp b/gdb/testsuite/gdb.threads/tls-var.exp
index 5b2968a7bd01..28d0886c6bfd 100644
--- a/gdb/testsuite/gdb.threads/tls-var.exp
+++ b/gdb/testsuite/gdb.threads/tls-var.exp
@@ -28,7 +28,7 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${objfile} object {debug}] != "
clean_restart ${executable}
if {![runto_main]} {
- return 0
+ return
}
# FAIL was: type = <thread local variable, no debug info>
diff --git a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
index 58b16be70f26..f56661d7a5c2 100644
--- a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
@@ -27,7 +27,7 @@
require allow_hw_watchpoint_access_tests allow_hw_watchpoint_multi_tests
if {![istarget *-*-linux*]} {
- return 0
+ return
}
standard_testfile
diff --git a/gdb/testsuite/gdb.threads/watchthreads.exp b/gdb/testsuite/gdb.threads/watchthreads.exp
index e975e22e5730..2682db7b0328 100644
--- a/gdb/testsuite/gdb.threads/watchthreads.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads.exp
@@ -39,7 +39,7 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" ""
#
if {![runto_main]} {
- return 0
+ return
}
set args_0 0
diff --git a/gdb/testsuite/gdb.threads/watchthreads2.exp b/gdb/testsuite/gdb.threads/watchthreads2.exp
index 49884f4136dd..0efef51b7fc6 100644
--- a/gdb/testsuite/gdb.threads/watchthreads2.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads2.exp
@@ -40,7 +40,7 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" ""
#
if {![runto_main]} {
- return 0
+ return
}
gdb_test "break thread_started" \
diff --git a/gdb/testsuite/gdb.threads/wp-replication.exp b/gdb/testsuite/gdb.threads/wp-replication.exp
index 28a5071bd5e5..cc9bc50f9b2e 100644
--- a/gdb/testsuite/gdb.threads/wp-replication.exp
+++ b/gdb/testsuite/gdb.threads/wp-replication.exp
@@ -41,7 +41,7 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" ""
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
# Set some default values.
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 33/36] GDB: testsuite: threads: Don't return -1 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (31 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 32/36] GDB: testsuite: threads: Don't return 0 " Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 34/36] GDB: testsuite: TUI: Don't return -1 from top-level (sed) Thiago Jung Bauermann
` (2 subsequent siblings)
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch manually changes most "return -1" statements that weren't
caught by the sed command.
These return statements fall into one of these criteria:
- misaligned line, which is then fixed by this patch;
- return at top level but inside block such as for loops,
with_test_prefix, foreach_with_prefix, gdb_test_multiple.
- procedure whose callers don't use the return value;
I also fixed a few cases of "return 0" from top-level that also weren't
caught by sed.
---
.../gdb.threads/access-mem-running-thread-exit.exp | 6 +++---
gdb/testsuite/gdb.threads/attach-slow-waitpid.exp | 4 ++--
gdb/testsuite/gdb.threads/break-while-running.exp | 4 ++--
.../gdb.threads/continue-pending-after-query.exp | 2 +-
gdb/testsuite/gdb.threads/corethreads.exp | 4 ++--
gdb/testsuite/gdb.threads/create-fail.exp | 2 +-
gdb/testsuite/gdb.threads/fork-plus-threads.exp | 4 ++--
gdb/testsuite/gdb.threads/gcore-stale-thread.exp | 2 +-
gdb/testsuite/gdb.threads/gcore-thread.exp | 4 ++--
gdb/testsuite/gdb.threads/kill.exp | 2 +-
gdb/testsuite/gdb.threads/linux-dp.exp | 2 +-
.../gdb.threads/main-thread-exit-during-detach.exp | 2 +-
gdb/testsuite/gdb.threads/multiple-step-overs.exp | 2 +-
.../gdb.threads/multiple-successive-infcall.exp | 6 +++---
gdb/testsuite/gdb.threads/non-ldr-exc-1.exp | 2 +-
gdb/testsuite/gdb.threads/non-ldr-exc-2.exp | 2 +-
gdb/testsuite/gdb.threads/non-ldr-exc-3.exp | 2 +-
gdb/testsuite/gdb.threads/non-ldr-exc-4.exp | 2 +-
gdb/testsuite/gdb.threads/omp-par-scope.exp | 2 +-
gdb/testsuite/gdb.threads/omp-task.exp | 2 +-
.../gdb.threads/process-dies-while-detaching.exp | 10 +++++-----
gdb/testsuite/gdb.threads/siginfo-threads.exp | 2 +-
gdb/testsuite/gdb.threads/staticthreads.exp | 4 ++--
gdb/testsuite/gdb.threads/step-over-exec.exp | 4 ++--
gdb/testsuite/gdb.threads/stepi-over-clone.exp | 2 +-
gdb/testsuite/gdb.threads/thread-specific-bp.exp | 6 +++---
gdb/testsuite/gdb.threads/threadapply.exp | 2 +-
gdb/testsuite/gdb.threads/threadcrash.exp | 2 +-
gdb/testsuite/gdb.threads/threads-after-exec.exp | 2 +-
gdb/testsuite/gdb.threads/tls.exp | 4 ++--
gdb/testsuite/gdb.threads/watchpoint-fork.exp | 2 +-
gdb/testsuite/gdb.threads/watchthreads-reorder.exp | 2 +-
32 files changed, 50 insertions(+), 50 deletions(-)
diff --git a/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp b/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp
index d0db40c4be5b..31af95316165 100644
--- a/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp
+++ b/gdb/testsuite/gdb.threads/access-mem-running-thread-exit.exp
@@ -55,7 +55,7 @@ proc test { non_stop } {
}
if {![runto setup_done]} {
- return -1
+ return
}
# If debugging with target remote, check whether the all-stop variant
@@ -67,7 +67,7 @@ proc test { non_stop } {
if {![is_target_non_stop]} {
unsupported "can't issue commands while target is running"
- return 0
+ return
}
}
@@ -111,7 +111,7 @@ proc test { non_stop } {
gdb_load $binfile
if {![runto setup_done]} {
- return -1
+ return
}
}
}
diff --git a/gdb/testsuite/gdb.threads/attach-slow-waitpid.exp b/gdb/testsuite/gdb.threads/attach-slow-waitpid.exp
index 343a96bc5112..de5a901f0b1f 100644
--- a/gdb/testsuite/gdb.threads/attach-slow-waitpid.exp
+++ b/gdb/testsuite/gdb.threads/attach-slow-waitpid.exp
@@ -53,7 +53,7 @@ with_test_prefix "compile preload library" {
# limit this test to running when ISNATIVE is true.
if { [gdb_compile_shlib_pthreads \
$libsrc $libobj {debug}] != "" } then {
- return -1
+ return
}
}
@@ -62,7 +62,7 @@ with_test_prefix "compile test executable" {
if { [gdb_compile_pthreads \
"${srcdir}/${subdir}/${srcfile}" "${binfile}" \
executable {debug}] != "" } {
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.threads/break-while-running.exp b/gdb/testsuite/gdb.threads/break-while-running.exp
index c4ad127d982c..d133c994e092 100644
--- a/gdb/testsuite/gdb.threads/break-while-running.exp
+++ b/gdb/testsuite/gdb.threads/break-while-running.exp
@@ -45,7 +45,7 @@ proc test { update_thread_list always_inserted non_stop } {
gdb_test_no_output "set breakpoint always-inserted $always_inserted"
if {![runto_main]} {
- return -1
+ return
}
# In all-stop, check whether we're testing with the remote or
@@ -54,7 +54,7 @@ proc test { update_thread_list always_inserted non_stop } {
# Not an issue with the non-stop RSP variant, which has a
# non-blocking vCont.
if {$non_stop=="off" && [gdb_protocol_is_remote]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "set wait-thread breakpoint here"]
diff --git a/gdb/testsuite/gdb.threads/continue-pending-after-query.exp b/gdb/testsuite/gdb.threads/continue-pending-after-query.exp
index 97f9081443a7..9b80dbf84eb2 100644
--- a/gdb/testsuite/gdb.threads/continue-pending-after-query.exp
+++ b/gdb/testsuite/gdb.threads/continue-pending-after-query.exp
@@ -52,7 +52,7 @@ proc test {} {
global srcfile gdb_prompt
if {![runto_main]} {
- return -1
+ return
}
delete_breakpoints
diff --git a/gdb/testsuite/gdb.threads/corethreads.exp b/gdb/testsuite/gdb.threads/corethreads.exp
index 4e520c5e8f22..2ea879623368 100644
--- a/gdb/testsuite/gdb.threads/corethreads.exp
+++ b/gdb/testsuite/gdb.threads/corethreads.exp
@@ -23,8 +23,8 @@ if {![istarget "*-*-linux*"]} {
standard_testfile
set executable ${testfile}
if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested "failed to compile"
- return -1
+ untested "failed to compile"
+ return
}
set corefile [core_find $binfile]
diff --git a/gdb/testsuite/gdb.threads/create-fail.exp b/gdb/testsuite/gdb.threads/create-fail.exp
index c77ccab17ae2..bb7c341a5b5b 100644
--- a/gdb/testsuite/gdb.threads/create-fail.exp
+++ b/gdb/testsuite/gdb.threads/create-fail.exp
@@ -34,7 +34,7 @@ for {set i 1} {$i <= $iterations} {incr i} {
clean_restart ${executable}
if {![runto_main]} {
- return -1
+ return
}
set test "run till end"
diff --git a/gdb/testsuite/gdb.threads/fork-plus-threads.exp b/gdb/testsuite/gdb.threads/fork-plus-threads.exp
index 06c4981ca232..d6f2109043b9 100644
--- a/gdb/testsuite/gdb.threads/fork-plus-threads.exp
+++ b/gdb/testsuite/gdb.threads/fork-plus-threads.exp
@@ -41,12 +41,12 @@ proc do_test { detach-on-fork } {
if {[prepare_for_testing "failed to prepare" \
$testfile $srcfile {debug pthreads}] == -1} {
- return -1
+ return
}
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test_no_output "set detach-on-fork ${detach-on-fork}"
diff --git a/gdb/testsuite/gdb.threads/gcore-stale-thread.exp b/gdb/testsuite/gdb.threads/gcore-stale-thread.exp
index 9faa2686c767..d0465c87a4ad 100644
--- a/gdb/testsuite/gdb.threads/gcore-stale-thread.exp
+++ b/gdb/testsuite/gdb.threads/gcore-stale-thread.exp
@@ -34,7 +34,7 @@ gdb_test_multiple "info threads" "threads are supported" {
}
-re "\r\n$gdb_prompt $" {
unsupported "gdb does not support threads on this target"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.threads/gcore-thread.exp b/gdb/testsuite/gdb.threads/gcore-thread.exp
index c3b8c56dd4b9..1d0150da6745 100644
--- a/gdb/testsuite/gdb.threads/gcore-thread.exp
+++ b/gdb/testsuite/gdb.threads/gcore-thread.exp
@@ -65,7 +65,7 @@ gdb_test_multiple "info threads" "threads are supported" {
}
-re "${nl}$gdb_prompt $" {
unsupported "gdb does not support threads on this target"
- return -1
+ return
}
}
@@ -83,7 +83,7 @@ gdb_test "continue" "Continuing.*Breakpoint.* thread2 .*" "thread 2 is running"
set core_supported [gdb_gcore_cmd "$corefile" "save a corefile"]
if {!$core_supported} {
- return -1
+ return
}
diff --git a/gdb/testsuite/gdb.threads/kill.exp b/gdb/testsuite/gdb.threads/kill.exp
index 84ab6cd561c4..f004307a2ca4 100644
--- a/gdb/testsuite/gdb.threads/kill.exp
+++ b/gdb/testsuite/gdb.threads/kill.exp
@@ -35,7 +35,7 @@ proc test {threaded} {
}
if {[prepare_for_testing "failed to prepare" $prog $srcfile $options] == -1} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.threads/linux-dp.exp b/gdb/testsuite/gdb.threads/linux-dp.exp
index 42773f2293b5..f573964ea6a4 100644
--- a/gdb/testsuite/gdb.threads/linux-dp.exp
+++ b/gdb/testsuite/gdb.threads/linux-dp.exp
@@ -99,7 +99,7 @@ for {set i 0} {$i < 5} {incr i} {
# when it first notices that the thread library doesn't support
# debugging, or if we could explicitly ask GDB somehow.
unsupported "this GDB does not support threads on this system."
- return -1
+ return
}
-re "$gdb_prompt $" {
}
diff --git a/gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp b/gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp
index 717eca236c03..29d801721eca 100644
--- a/gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp
+++ b/gdb/testsuite/gdb.threads/main-thread-exit-during-detach.exp
@@ -85,7 +85,7 @@ proc run_test { spawn_inferior } {
gdb_test "continue&"
} else {
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "breakpt"
diff --git a/gdb/testsuite/gdb.threads/multiple-step-overs.exp b/gdb/testsuite/gdb.threads/multiple-step-overs.exp
index 2159718f2a63..0ee18d306805 100644
--- a/gdb/testsuite/gdb.threads/multiple-step-overs.exp
+++ b/gdb/testsuite/gdb.threads/multiple-step-overs.exp
@@ -36,7 +36,7 @@ proc setup {} {
clean_restart $executable
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set displaced-stepping $displaced"
diff --git a/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp b/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp
index 8d438673cf07..fdcbaa47c7f4 100644
--- a/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp
+++ b/gdb/testsuite/gdb.threads/multiple-successive-infcall.exp
@@ -19,14 +19,14 @@
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
- executable {debug additional_flags=-std=gnu99}] != "" } {
- return -1
+ executable {debug additional_flags=-std=gnu99}] != "" } {
+ return
}
clean_restart "${::testfile}"
if {![runto_main]} {
- return 0
+ return
}
# Ensure that each new thread is detected by GDB in the order that the
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
index 442b6fb639ff..206a2d804608 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-1.exp
@@ -32,7 +32,7 @@ proc do_test { lock_sched nonstop } {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp
index ead262cc2b50..984f28600f72 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp
@@ -34,7 +34,7 @@ proc do_test { lock_sched nonstop } {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-3.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-3.exp
index 2ad3a84d24bf..426e6e70f14f 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-3.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-3.exp
@@ -35,7 +35,7 @@ proc do_test { lock_sched nonstop } {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.threads/non-ldr-exc-4.exp b/gdb/testsuite/gdb.threads/non-ldr-exc-4.exp
index fad49047ac39..8dc0db42c155 100644
--- a/gdb/testsuite/gdb.threads/non-ldr-exc-4.exp
+++ b/gdb/testsuite/gdb.threads/non-ldr-exc-4.exp
@@ -34,7 +34,7 @@ proc do_test { lock_sched nonstop } {
}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
diff --git a/gdb/testsuite/gdb.threads/omp-par-scope.exp b/gdb/testsuite/gdb.threads/omp-par-scope.exp
index b561bf2f4a5b..7d706078b2c4 100644
--- a/gdb/testsuite/gdb.threads/omp-par-scope.exp
+++ b/gdb/testsuite/gdb.threads/omp-par-scope.exp
@@ -56,7 +56,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
if {[info procs gdb_openmp_setup] != ""} {
if {[gdb_openmp_setup $binfile] != ""} {
untested "could not set up OpenMP environment"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.threads/omp-task.exp b/gdb/testsuite/gdb.threads/omp-task.exp
index 636bcf989159..a7f39933d744 100644
--- a/gdb/testsuite/gdb.threads/omp-task.exp
+++ b/gdb/testsuite/gdb.threads/omp-task.exp
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $opts]} {
if {[info procs gdb_openmp_setup] != ""} {
if {[gdb_openmp_setup $binfile] != ""} {
untested "could not set up OpenMP environment"
- return -1
+ return
}
}
diff --git a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
index e394edf53ea7..8a2b054dcc41 100644
--- a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
+++ b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
@@ -219,7 +219,7 @@ proc test_detach {multi_process cmd} {
clean_restart ${::testfile}
if {![runto_main]} {
- return -1
+ return
}
if {$multi_process} {
@@ -247,7 +247,7 @@ proc test_detach_watch {wp multi_process cmd} {
clean_restart ${::testfile}
if {![runto_main]} {
- return -1
+ return
}
if {$multi_process} {
@@ -295,7 +295,7 @@ proc test_detach_killed_outside {multi_process cmd} {
clean_restart ${::testfile}
if {![runto_main]} {
- return -1
+ return
}
gdb_test_no_output "set breakpoint always-inserted on"
@@ -311,7 +311,7 @@ proc test_detach_killed_outside {multi_process cmd} {
set childpid [get_integer_valueof "mypid" -1]
if { $childpid == -1 } {
untested "failed to extract child pid"
- return -1
+ return
}
remote_exec target "kill -9 ${childpid}"
@@ -345,7 +345,7 @@ proc do_test {multi_process cmd} {
if {[build_executable "failed to build" \
$testfile $srcfile $options] == -1} {
- return -1
+ return
}
test_detach $multi_process $cmd
diff --git a/gdb/testsuite/gdb.threads/siginfo-threads.exp b/gdb/testsuite/gdb.threads/siginfo-threads.exp
index acf1185cdfc5..6b095ac968ad 100644
--- a/gdb/testsuite/gdb.threads/siginfo-threads.exp
+++ b/gdb/testsuite/gdb.threads/siginfo-threads.exp
@@ -62,7 +62,7 @@ for {set sigcount 0} {$sigcount < 4} {incr sigcount} {
}
}
if {$sigusr == ""} {
- return -1
+ return
}
set test "signal $sigcount si_signo"
diff --git a/gdb/testsuite/gdb.threads/staticthreads.exp b/gdb/testsuite/gdb.threads/staticthreads.exp
index bc36d87f7d70..b25c0ae4e3b9 100644
--- a/gdb/testsuite/gdb.threads/staticthreads.exp
+++ b/gdb/testsuite/gdb.threads/staticthreads.exp
@@ -30,7 +30,7 @@ foreach_with_prefix have_tls { "-DHAVE_TLS" "" } {
break
}
if { $have_tls == "" } {
- return -1
+ return
}
}
@@ -99,7 +99,7 @@ clean_restart ${::testfile}
if { "$have_tls" != "" } {
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint [gdb_get_line_number "tlsvar-is-set"]
gdb_continue_to_breakpoint "tlsvar-is-set" ".* tlsvar-is-set .*"
diff --git a/gdb/testsuite/gdb.threads/step-over-exec.exp b/gdb/testsuite/gdb.threads/step-over-exec.exp
index 667be33ef99d..1409b908d61d 100644
--- a/gdb/testsuite/gdb.threads/step-over-exec.exp
+++ b/gdb/testsuite/gdb.threads/step-over-exec.exp
@@ -63,12 +63,12 @@ proc do_test { execr_thread different_text_segments displaced_stepping } {
# Compile execr binary (the one that does the exec).
if {[gdb_compile_pthreads $execr_srcs $execr_binfile executable $execr_opts] != "" } {
- return -1
+ return
}
# Compile the second binary (the one that gets exec'd).
if {[gdb_compile $execd_srcs $execd_binfile executable $execd_opts] != "" } {
- return -1
+ return
}
clean_restart
diff --git a/gdb/testsuite/gdb.threads/stepi-over-clone.exp b/gdb/testsuite/gdb.threads/stepi-over-clone.exp
index f59c6275c5d4..673d77f0028b 100644
--- a/gdb/testsuite/gdb.threads/stepi-over-clone.exp
+++ b/gdb/testsuite/gdb.threads/stepi-over-clone.exp
@@ -85,7 +85,7 @@ gdb_test_multiple "disassemble" "" {
-re "^End of assembler dump\\.\r\n$gdb_prompt $" {
if { [llength $syscall_addrs] == 0 } {
unsupported "no syscalls found"
- return -1
+ return
}
}
}
diff --git a/gdb/testsuite/gdb.threads/thread-specific-bp.exp b/gdb/testsuite/gdb.threads/thread-specific-bp.exp
index d698b0ce96b1..a40ff71411bc 100644
--- a/gdb/testsuite/gdb.threads/thread-specific-bp.exp
+++ b/gdb/testsuite/gdb.threads/thread-specific-bp.exp
@@ -48,12 +48,12 @@ proc check_thread_specific_breakpoint {non_stop} {
global gdb_prompt
if { ![runto_main] } {
- return -1
+ return
}
set main_thre [get_thread_id "main"]
if { $main_thre < 0 } {
- return -1
+ return
}
gdb_breakpoint "start"
@@ -61,7 +61,7 @@ proc check_thread_specific_breakpoint {non_stop} {
set start_thre [get_thread_id "start"]
if { $start_thre < 0 } {
- return -1
+ return
}
# Check that multiple uses of 'thread' keyword give an error.
diff --git a/gdb/testsuite/gdb.threads/threadapply.exp b/gdb/testsuite/gdb.threads/threadapply.exp
index 7fdc647705a9..f405bfc52c91 100644
--- a/gdb/testsuite/gdb.threads/threadapply.exp
+++ b/gdb/testsuite/gdb.threads/threadapply.exp
@@ -76,7 +76,7 @@ proc thr_apply_detach {thread_set} {
clean_restart ${::testfile}
if {![runto_main]} {
- return -1
+ return
}
gdb_breakpoint "$break_line"
diff --git a/gdb/testsuite/gdb.threads/threadcrash.exp b/gdb/testsuite/gdb.threads/threadcrash.exp
index aa39f6509e9c..818dce751959 100644
--- a/gdb/testsuite/gdb.threads/threadcrash.exp
+++ b/gdb/testsuite/gdb.threads/threadcrash.exp
@@ -248,7 +248,7 @@ proc_with_prefix test_gcore {} {
"setup SIGUSR2"
if {![runto_main]} {
- return -1
+ return
}
gdb_test "continue" ".*Segmentation fault.*" "continue to crash"
diff --git a/gdb/testsuite/gdb.threads/threads-after-exec.exp b/gdb/testsuite/gdb.threads/threads-after-exec.exp
index fd8550d3e99e..74cc0f4495d1 100644
--- a/gdb/testsuite/gdb.threads/threads-after-exec.exp
+++ b/gdb/testsuite/gdb.threads/threads-after-exec.exp
@@ -20,7 +20,7 @@ standard_testfile .c
proc do_test { } {
if {[prepare_for_testing "failed to prepare" $::testfile $::srcfile {debug pthreads}]} {
- return -1
+ return
}
if {![runto_main]} {
diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp
index bf48a6f9fc9e..96e41eed411f 100644
--- a/gdb/testsuite/gdb.threads/tls.exp
+++ b/gdb/testsuite/gdb.threads/tls.exp
@@ -165,7 +165,7 @@ gdb_test_multiple "print a_thread_local" "" {
}
if {![runto_main]} {
- return 0
+ return
}
# Set a breakpoint at the "spin" routine to
@@ -190,7 +190,7 @@ gdb_expect {
# This is the first symptom if the gcc and binutils versions
# in use support TLS, but the system glibc does not.
unsupported "continue to first thread: system does not support TLS"
- return -1
+ return
}
-re ".*$inferior_exited_re normally.*$gdb_prompt $" {
fail "continue to first thread: program runaway"
diff --git a/gdb/testsuite/gdb.threads/watchpoint-fork.exp b/gdb/testsuite/gdb.threads/watchpoint-fork.exp
index a57edca20aed..3654b84c55c6 100644
--- a/gdb/testsuite/gdb.threads/watchpoint-fork.exp
+++ b/gdb/testsuite/gdb.threads/watchpoint-fork.exp
@@ -47,7 +47,7 @@ proc test {type symbol} {
[list $srcfile_main ${testfile}-${type}.c] \
[list debug additional_flags=-D$symbol \
additional_flags=-DDEBUG=$debug]] == -1} {
- return -1
+ return
}
clean_restart $executable
diff --git a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
index f56661d7a5c2..192996b51ca9 100644
--- a/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
+++ b/gdb/testsuite/gdb.threads/watchthreads-reorder.exp
@@ -42,7 +42,7 @@ foreach reorder {0 1} { with_test_prefix "reorder$reorder" {
gdb_test "set can-use-hw-watchpoints 1"
if {![runto_main]} {
- return -1
+ return
}
# Use "rwatch" as "watch" would report the watchpoint changed just based on its
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 34/36] GDB: testsuite: TUI: Don't return -1 from top-level (sed)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (32 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 33/36] GDB: testsuite: threads: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 35/36] GDB: testsuite: TUI: Don't return 0 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:35 ` [PATCH 36/36] GDB: testsuite: XML: Don't return -1 nor 0 from top-level Thiago Jung Bauermann
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch is purely the result of running:
$ sed -i 's/^ return -1/ return/' *.exp*
inside gdb/testsuite/gdb.tui.
---
gdb/testsuite/gdb.tui/basic.exp | 2 +-
gdb/testsuite/gdb.tui/break.exp | 2 +-
gdb/testsuite/gdb.tui/compact-source.exp | 2 +-
gdb/testsuite/gdb.tui/corefile-run.exp | 6 +++---
gdb/testsuite/gdb.tui/flush-after-run.exp | 2 +-
gdb/testsuite/gdb.tui/list-before.exp | 2 +-
gdb/testsuite/gdb.tui/list.exp | 2 +-
gdb/testsuite/gdb.tui/main-2.exp | 2 +-
gdb/testsuite/gdb.tui/main.exp | 2 +-
gdb/testsuite/gdb.tui/new-layout.exp | 2 +-
gdb/testsuite/gdb.tui/regs.exp | 2 +-
gdb/testsuite/gdb.tui/reread.exp | 2 +-
gdb/testsuite/gdb.tui/resize-3.exp | 2 +-
gdb/testsuite/gdb.tui/resize-one-line.exp | 2 +-
gdb/testsuite/gdb.tui/resize.exp | 2 +-
gdb/testsuite/gdb.tui/scroll.exp | 2 +-
gdb/testsuite/gdb.tui/tui-focus.exp | 2 +-
gdb/testsuite/gdb.tui/tui-init-source.exp | 2 +-
gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp | 2 +-
gdb/testsuite/gdb.tui/tui-layout-asm.exp | 2 +-
gdb/testsuite/gdb.tui/tui-layout.exp | 2 +-
gdb/testsuite/gdb.tui/winheight.exp | 2 +-
gdb/testsuite/gdb.tui/winwidth.exp | 2 +-
23 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp
index 7909cea674d6..26264082a163 100644
--- a/gdb/testsuite/gdb.tui/basic.exp
+++ b/gdb/testsuite/gdb.tui/basic.exp
@@ -24,7 +24,7 @@ standard_testfile main-one-line.c
set main_line [gdb_get_line_number "int main"]
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/break.exp b/gdb/testsuite/gdb.tui/break.exp
index 4e07a0c0b691..154ca40b69fa 100644
--- a/gdb/testsuite/gdb.tui/break.exp
+++ b/gdb/testsuite/gdb.tui/break.exp
@@ -20,7 +20,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/compact-source.exp b/gdb/testsuite/gdb.tui/compact-source.exp
index 9f41a160b3f4..e9478bbeb863 100644
--- a/gdb/testsuite/gdb.tui/compact-source.exp
+++ b/gdb/testsuite/gdb.tui/compact-source.exp
@@ -38,7 +38,7 @@ puts $fd $src_txt
close $fd
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/corefile-run.exp b/gdb/testsuite/gdb.tui/corefile-run.exp
index 7e1184ecf040..1361e4a7f6de 100644
--- a/gdb/testsuite/gdb.tui/corefile-run.exp
+++ b/gdb/testsuite/gdb.tui/corefile-run.exp
@@ -27,19 +27,19 @@ standard_testfile tui-layout.c
set core [standard_output_file "${testfile}.core"]
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
# Only run on native boards.
require {target_can_use_run_cmd core}
if { ![runto_main] } {
- return -1
+ return
}
if { ![gdb_gcore_cmd "$core" "save a corefile"] } {
untested "could not generate a corefile"
- return -1
+ return
}
set src_line "return 0;"
diff --git a/gdb/testsuite/gdb.tui/flush-after-run.exp b/gdb/testsuite/gdb.tui/flush-after-run.exp
index ecc2caafc33d..db20b8cee80b 100644
--- a/gdb/testsuite/gdb.tui/flush-after-run.exp
+++ b/gdb/testsuite/gdb.tui/flush-after-run.exp
@@ -24,7 +24,7 @@ tuiterm_env
standard_testfile
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/list-before.exp b/gdb/testsuite/gdb.tui/list-before.exp
index 55485aa5629c..5d3cef954d49 100644
--- a/gdb/testsuite/gdb.tui/list-before.exp
+++ b/gdb/testsuite/gdb.tui/list-before.exp
@@ -20,7 +20,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/list.exp b/gdb/testsuite/gdb.tui/list.exp
index de58afa53e1a..5cefebc7e016 100644
--- a/gdb/testsuite/gdb.tui/list.exp
+++ b/gdb/testsuite/gdb.tui/list.exp
@@ -20,7 +20,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/main-2.exp b/gdb/testsuite/gdb.tui/main-2.exp
index 1b8068e3a361..9b3b38645b0f 100644
--- a/gdb/testsuite/gdb.tui/main-2.exp
+++ b/gdb/testsuite/gdb.tui/main-2.exp
@@ -23,7 +23,7 @@ tuiterm_env
standard_testfile tui-layout.c
if { [build_executable "failed to prepare" $testfile $srcfile ] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/main.exp b/gdb/testsuite/gdb.tui/main.exp
index 5bc6b91cdee4..d8a9c8eebe85 100644
--- a/gdb/testsuite/gdb.tui/main.exp
+++ b/gdb/testsuite/gdb.tui/main.exp
@@ -22,7 +22,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
# Note: don't pass the executable here
diff --git a/gdb/testsuite/gdb.tui/new-layout.exp b/gdb/testsuite/gdb.tui/new-layout.exp
index f293773f9d15..e544ef6fd90a 100644
--- a/gdb/testsuite/gdb.tui/new-layout.exp
+++ b/gdb/testsuite/gdb.tui/new-layout.exp
@@ -20,7 +20,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
# Make sure TUI is supported before continuing.
diff --git a/gdb/testsuite/gdb.tui/regs.exp b/gdb/testsuite/gdb.tui/regs.exp
index 3c524ad49a70..8169538da85c 100644
--- a/gdb/testsuite/gdb.tui/regs.exp
+++ b/gdb/testsuite/gdb.tui/regs.exp
@@ -20,7 +20,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/reread.exp b/gdb/testsuite/gdb.tui/reread.exp
index de35fef744cd..3ed0839e1c83 100644
--- a/gdb/testsuite/gdb.tui/reread.exp
+++ b/gdb/testsuite/gdb.tui/reread.exp
@@ -23,7 +23,7 @@ tuiterm_env
standard_testfile main-one-line.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/resize-3.exp b/gdb/testsuite/gdb.tui/resize-3.exp
index d9e0948a9a80..fdaffe006419 100644
--- a/gdb/testsuite/gdb.tui/resize-3.exp
+++ b/gdb/testsuite/gdb.tui/resize-3.exp
@@ -23,7 +23,7 @@ if { [build_executable_from_specs "failed to prepare" \
$testfile {debug} \
$srcfile {debug} \
$srcfile2 {nodebug}] == -1 } {
- return -1
+ return
}
tuiterm_env
diff --git a/gdb/testsuite/gdb.tui/resize-one-line.exp b/gdb/testsuite/gdb.tui/resize-one-line.exp
index f5e2858b05d2..0a47dcf0e7f8 100644
--- a/gdb/testsuite/gdb.tui/resize-one-line.exp
+++ b/gdb/testsuite/gdb.tui/resize-one-line.exp
@@ -22,7 +22,7 @@ tuiterm_env
standard_testfile main-one-line.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/resize.exp b/gdb/testsuite/gdb.tui/resize.exp
index 93918f3b3560..25f52c6a5b8e 100644
--- a/gdb/testsuite/gdb.tui/resize.exp
+++ b/gdb/testsuite/gdb.tui/resize.exp
@@ -20,7 +20,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/scroll.exp b/gdb/testsuite/gdb.tui/scroll.exp
index e9fa829f40ec..0162cfd8db7b 100644
--- a/gdb/testsuite/gdb.tui/scroll.exp
+++ b/gdb/testsuite/gdb.tui/scroll.exp
@@ -24,7 +24,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/tui-focus.exp b/gdb/testsuite/gdb.tui/tui-focus.exp
index 5df76b59b864..310b3a473206 100644
--- a/gdb/testsuite/gdb.tui/tui-focus.exp
+++ b/gdb/testsuite/gdb.tui/tui-focus.exp
@@ -23,7 +23,7 @@ load_lib gdb-python.exp
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Run a series of tests based on various test specifications.
diff --git a/gdb/testsuite/gdb.tui/tui-init-source.exp b/gdb/testsuite/gdb.tui/tui-init-source.exp
index edd364e05b12..f49b0ecdcbdb 100644
--- a/gdb/testsuite/gdb.tui/tui-init-source.exp
+++ b/gdb/testsuite/gdb.tui/tui-init-source.exp
@@ -23,7 +23,7 @@ tuiterm_env
standard_testfile
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp
index e54ae69997ed..b3dd72ce1ceb 100644
--- a/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp
+++ b/gdb/testsuite/gdb.tui/tui-layout-asm-short-prog.exp
@@ -27,7 +27,7 @@ lappend opts additional_flags=-nostdlib
lappend opts ldflags=-nostartfiles
if { [build_executable "failed to prepare" $testfile $srcfile $opts] == -1 } {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/tui-layout-asm.exp b/gdb/testsuite/gdb.tui/tui-layout-asm.exp
index bbaa4f9b846f..01193b6fb44b 100644
--- a/gdb/testsuite/gdb.tui/tui-layout-asm.exp
+++ b/gdb/testsuite/gdb.tui/tui-layout-asm.exp
@@ -21,7 +21,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
# The wider the window is, the less line truncation happens, so matching
diff --git a/gdb/testsuite/gdb.tui/tui-layout.exp b/gdb/testsuite/gdb.tui/tui-layout.exp
index 05ca3b450290..1cb70504e3f8 100644
--- a/gdb/testsuite/gdb.tui/tui-layout.exp
+++ b/gdb/testsuite/gdb.tui/tui-layout.exp
@@ -23,7 +23,7 @@ tuiterm_env
standard_testfile
if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
- return -1
+ return
}
# Run one test of the 'layout' command, selecting LAYOUT_NAME.
diff --git a/gdb/testsuite/gdb.tui/winheight.exp b/gdb/testsuite/gdb.tui/winheight.exp
index 758f23d8f723..9daf08916af8 100644
--- a/gdb/testsuite/gdb.tui/winheight.exp
+++ b/gdb/testsuite/gdb.tui/winheight.exp
@@ -20,7 +20,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
diff --git a/gdb/testsuite/gdb.tui/winwidth.exp b/gdb/testsuite/gdb.tui/winwidth.exp
index a18ff4edba1f..cc6c7dcd1536 100644
--- a/gdb/testsuite/gdb.tui/winwidth.exp
+++ b/gdb/testsuite/gdb.tui/winwidth.exp
@@ -20,7 +20,7 @@ tuiterm_env
standard_testfile tui-layout.c
if {[build_executable "failed to prepare" ${testfile} ${srcfile}] == -1} {
- return -1
+ return
}
Term::clean_restart 24 80 $testfile
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 35/36] GDB: testsuite: TUI: Don't return 0 from top-level (manual)
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (33 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 34/36] GDB: testsuite: TUI: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-27 6:34 ` Thiago Jung Bauermann
2026-04-27 6:35 ` [PATCH 36/36] GDB: testsuite: XML: Don't return -1 nor 0 from top-level Thiago Jung Bauermann
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:34 UTC (permalink / raw)
To: gdb-patches
This patch changes statements that return 0 from the top level.
---
gdb/testsuite/gdb.tui/basic.exp | 2 +-
gdb/testsuite/gdb.tui/resize-2.exp | 2 +-
gdb/testsuite/gdb.tui/tui-layout.exp | 2 +-
gdb/testsuite/gdb.tui/tui-mode-switch.exp | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp
index 26264082a163..45fdf3a7a76f 100644
--- a/gdb/testsuite/gdb.tui/basic.exp
+++ b/gdb/testsuite/gdb.tui/basic.exp
@@ -70,7 +70,7 @@ for { set i 1 } { $i <= $Term::_cols } { incr i } {
gdb_assert { $main_screen_line == 7 } \
"check main is where we expect on the screen"
if { $main_screen_line == -1 } {
- return 0
+ return
}
# Check the horizontal scrolling.
diff --git a/gdb/testsuite/gdb.tui/resize-2.exp b/gdb/testsuite/gdb.tui/resize-2.exp
index 69578cc4a22e..b7eb38f3c046 100644
--- a/gdb/testsuite/gdb.tui/resize-2.exp
+++ b/gdb/testsuite/gdb.tui/resize-2.exp
@@ -27,7 +27,7 @@ gdb_test "tui new-layout command-layout cmd 1"
if {![Term::prepare_for_tui]} {
unsupported "TUI not supported"
- return 0
+ return
}
# Enter TUI.
diff --git a/gdb/testsuite/gdb.tui/tui-layout.exp b/gdb/testsuite/gdb.tui/tui-layout.exp
index 1cb70504e3f8..195ad6dbb35c 100644
--- a/gdb/testsuite/gdb.tui/tui-layout.exp
+++ b/gdb/testsuite/gdb.tui/tui-layout.exp
@@ -60,7 +60,7 @@ proc test_layout_or_focus {layout_name terminal execution} {
if {$execution} {
if {![runto_main]} {
- return 0
+ return
}
}
diff --git a/gdb/testsuite/gdb.tui/tui-mode-switch.exp b/gdb/testsuite/gdb.tui/tui-mode-switch.exp
index c60596213b85..250b557125ec 100644
--- a/gdb/testsuite/gdb.tui/tui-mode-switch.exp
+++ b/gdb/testsuite/gdb.tui/tui-mode-switch.exp
@@ -15,7 +15,7 @@ Term::with_term $term {
if {![Term::prepare_for_tui]} {
unsupported "TUI not supported"
- return 0
+ return
}
# Generate prompt.
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH 36/36] GDB: testsuite: XML: Don't return -1 nor 0 from top-level
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
` (34 preceding siblings ...)
2026-04-27 6:34 ` [PATCH 35/36] GDB: testsuite: TUI: Don't return 0 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-27 6:35 ` Thiago Jung Bauermann
35 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-27 6:35 UTC (permalink / raw)
To: gdb-patches
This patch changes statements that return -1 or 0 from the top level.
---
gdb/testsuite/gdb.xml/tdesc-arch.exp | 2 +-
gdb/testsuite/gdb.xml/tdesc-regs.exp | 2 +-
gdb/testsuite/gdb.xml/tdesc-reload.exp | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gdb/testsuite/gdb.xml/tdesc-arch.exp b/gdb/testsuite/gdb.xml/tdesc-arch.exp
index f3bb9ba26523..9d22efde4a48 100644
--- a/gdb/testsuite/gdb.xml/tdesc-arch.exp
+++ b/gdb/testsuite/gdb.xml/tdesc-arch.exp
@@ -47,7 +47,7 @@ gdb_test_multiple "show architecture" $msg {
# If that did not work, no point running further tests.
if { "$arch1" == "" || "$arch2" == "" || "$default_arch" == "" } {
unresolved "architecture XML tests"
- return -1
+ return
}
# Run these tests twice, once for $arch1 and once for $arch2, to
diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp b/gdb/testsuite/gdb.xml/tdesc-regs.exp
index 96f0fe089aa5..092355020b2c 100644
--- a/gdb/testsuite/gdb.xml/tdesc-regs.exp
+++ b/gdb/testsuite/gdb.xml/tdesc-regs.exp
@@ -109,7 +109,7 @@ if {[string equal ${core-regs} ""]} {
unsupported "register tests (missing architecture-specific core-regs setting)"
}
- return 0
+ return
}
# Otherwise, we support both XML and target defined registers.
diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp
index cdd075de099d..41dc30a7a5a1 100644
--- a/gdb/testsuite/gdb.xml/tdesc-reload.exp
+++ b/gdb/testsuite/gdb.xml/tdesc-reload.exp
@@ -21,11 +21,11 @@ require allow_xml_test
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
# Three files we're going to write out to.
@@ -60,7 +60,7 @@ gdb_load ${binfile}
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return -1
+ return
}
# Run info registers just to check this appears to run fine with the
^ permalink raw reply [flat|nested] 41+ messages in thread
* RE: [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-level (sed)
2026-04-27 6:34 ` [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-level (sed) Thiago Jung Bauermann
@ 2026-04-28 15:54 ` Schimpe, Christina
2026-04-28 16:42 ` Schimpe, Christina
0 siblings, 1 reply; 41+ messages in thread
From: Schimpe, Christina @ 2026-04-28 15:54 UTC (permalink / raw)
To: Thiago Jung Bauermann, gdb-patches
Hi Thiago,
Thank you for working on this.
> -----Original Message-----
> From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
> Sent: Montag, 27. April 2026 08:34
> To: gdb-patches@sourceware.org
> Subject: [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-level
> (sed)
>
> This patch is purely the result of running:
>
> $ sed -i 's/^ return -1/ return/' \
> amd64-*.exp* i386-*.exp* x86*.exp* ia64*.exp*
>
> inside gdb/testsuite/gdb.arch.
> ---
> gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp | 2 +-
> gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp | 2 +-
> gdb/testsuite/gdb.arch/amd64-disp-step.exp | 2 +-
> gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-entry-value-param.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-entry-value.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-eval.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp | 2 +-
> gdb/testsuite/gdb.arch/amd64-gs_base.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-i386-address.exp | 2 +-
> gdb/testsuite/gdb.arch/amd64-init-x87-values.exp | 2 +-
> gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp | 8 ++++----
> gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp | 8 ++++----
> gdb/testsuite/gdb.arch/amd64-lam.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp | 2 +-
> gdb/testsuite/gdb.arch/amd64-stap-expressions.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp | 2 +-
> gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-tailcall-self.exp | 4 ++--
> gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-avx512.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-biarch-core.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-disp-step.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-dr3-watch.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-float.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-gnu-cfi.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-permbkpt.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-pkru.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-signal.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-size-overlap.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-size.exp | 2 +-
> gdb/testsuite/gdb.arch/i386-sse-stack-align.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp | 4 ++--
> gdb/testsuite/gdb.arch/i386-unwind.exp | 2 +-
> gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp | 6 +++---
> gdb/testsuite/gdb.arch/x86-avx512bf16.exp | 4 ++--
> gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp | 4 ++--
> gdb/testsuite/gdb.arch/x86-avx512fp16.exp | 4 ++--
> 52 files changed, 90 insertions(+), 90 deletions(-)
>
> diff --git a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
> b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
> index 93e1ed36652b..bd05a4d4ae3a 100644
> --- a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
> @@ -20,11 +20,11 @@ standard_testfile .S if { [prepare_for_testing "failed
> to prepare" ${testfile} ${srcfile} \
> { debug }] } {
> untested "could not compile"
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint [gdb_get_line_number "Break here"] diff --git
> a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
> b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
> index 3a16bfb3824f..db458b3a7863 100644
> --- a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
> @@ -25,7 +25,7 @@ standard_testfile .S
>
> set options [list debug nopie]
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $options] } {
> - return -1
> + return
> }
>
> # Get things started.
> diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
> b/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
> index ce0283d462e7..38852cb2f272 100644
> --- a/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
> @@ -25,7 +25,7 @@ set opts {debug nopie} standard_testfile .S -alarm.c
>
> if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts]
> } {
> - return -1
> + return
> }
>
> gdb_test "set displaced-stepping on" ""
> diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step.exp
> b/gdb/testsuite/gdb.arch/amd64-disp-step.exp
> index d05b6760e585..e8f4b7aea8e5 100644
> --- a/gdb/testsuite/gdb.arch/amd64-disp-step.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-disp-step.exp
> @@ -25,7 +25,7 @@ set opts {debug nopie} standard_testfile .S -signal.c
>
> if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts]
> } {
> - return -1
> + return
> }
>
> gdb_test "set displaced-stepping on" ""
> diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
> b/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
> index 257a7c8cf604..b67f676b7163 100644
> --- a/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
> @@ -30,11 +30,11 @@ if {[is_remote host]} { }
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2] diff --git
> a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
> b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
> index e5697c9c9ab5..8043235eec8e 100644
> --- a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
> @@ -30,11 +30,11 @@ if {[is_remote host]} { }
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2] diff --git
> a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
> b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
> index 5b2b65e86365..4c1d63ab5a3c 100644
> --- a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
> @@ -30,11 +30,11 @@ if {[is_remote host]} { }
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2] diff --git
> a/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
> b/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
> index 146d92eb2670..cb789b541bc2 100644
> --- a/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
> @@ -24,11 +24,11 @@ if {[is_remote host]} {
>
> if { [prepare_for_testing_full "failed to prepare" \
> [list $testfile "c++" $srcfile {}]] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2] diff --git
> a/gdb/testsuite/gdb.arch/amd64-entry-value.exp
> b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
> index 65c4ab142c3e..997312ee4375 100644
> --- a/gdb/testsuite/gdb.arch/amd64-entry-value.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
> @@ -27,11 +27,11 @@ if {[info exists COMPILE]} { }
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint "breakhere"
> diff --git a/gdb/testsuite/gdb.arch/amd64-eval.exp
> b/gdb/testsuite/gdb.arch/amd64-eval.exp
> index 34fb21e0678f..2b145375595b 100644
> --- a/gdb/testsuite/gdb.arch/amd64-eval.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-eval.exp
> @@ -23,11 +23,11 @@ standard_testfile .cc
>
> if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
> { debug c++ additional_flags=-std=c++11 }] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint [gdb_get_line_number "break-here"] diff --git
> a/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
> b/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
> index e1ca703881dd..9e358c016427 100644
> --- a/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
> @@ -26,7 +26,7 @@ standard_testfile
>
> if { [prepare_for_testing "failed to prepare" ${testfile} \
> "${srcfile}" {debug}] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> diff --git a/gdb/testsuite/gdb.arch/amd64-gs_base.exp
> b/gdb/testsuite/gdb.arch/amd64-gs_base.exp
> index db64c52d89fd..c879cd9d2bf6 100644
> --- a/gdb/testsuite/gdb.arch/amd64-gs_base.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-gs_base.exp
> @@ -19,11 +19,11 @@ require is_amd64_regs_target
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> [list debug nowarnings]] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_test "print /x \$fs_base" "= $hex" "print fs_base"
> diff --git a/gdb/testsuite/gdb.arch/amd64-i386-address.exp
> b/gdb/testsuite/gdb.arch/amd64-i386-address.exp
> index 710e9c0cdb46..c9e759272355 100644
> --- a/gdb/testsuite/gdb.arch/amd64-i386-address.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-i386-address.exp
> @@ -22,7 +22,7 @@ require {is_any_target "x86_64-*-*" "i?86-*-*"}
> is_lp64_target require {!istarget "*-*-openbsd*"}
>
> if {[prepare_for_testing "failed to prepare" amd64-i386-address amd64-i386-
> address.S [list debug "additional_flags=-m32 -nostdlib"]]} {
> - return -1
> + return
> }
>
> gdb_run_cmd
> diff --git a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
> b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
> index 91c198e43a31..4c7664676d63 100644
> --- a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
> @@ -26,7 +26,7 @@ set options [list debug \
> additional_flags=-static \
> ldflags=-nostartfiles]
> if { [build_executable "failed to prepare" ${testfile} ${srcfile} $options] } {
> - return -1
> + return
> }
>
> # Start the test file, and check the x87 control registers (and diff --git
> a/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
> b/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
> index 713bef8ba473..a48896d60a6c 100644
> --- a/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
> @@ -32,11 +32,11 @@ standard_testfile .S require is_x86_64_m64_target
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {nopie}] } {
> - return -1
> + return
> }
>
> if {![runto breakpt]} {
> - return -1
> + return
> }
>
> gdb_test "bt" "^#0 +breakpt *\\(\\) \[^\r\n\]*\r\n#1 +${::hex} in
> func5\[^\r\n\]*\r\n#2 +${::hex} in func4\[^\r\n\]*\r\n#3 +${::hex} in
> func3\[^\r\n\]*\r\nBacktrace stopped: Cannot access memory at address
> ${::hex}" \ @@ -48,7 +48,7 @@ gdb_test "bt" "^#0 +breakpt *\\(\\)
> \[^\r\n\]*\r\n#1 +${::hex} in func5\[^\r\n\] clean_restart ${::testfile}
>
> if {![runto breakpt]} {
> - return -1
> + return
> }
>
> gdb_test "interpreter-exec mi \"-stack-info-depth\"" \ @@ -62,7 +62,7 @@
> gdb_test "interpreter-exec mi \"-stack-info-depth\"" \ clean_restart
> ${::testfile}
>
> if {![runto breakpt]} {
> - return -1
> + return
> }
>
> gdb_test "interpreter-exec mi \"-stack-list-frames\"" \ diff --git
> a/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
> b/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
> index 9a4f2e2663e2..d3ad91ed64fd 100644
> --- a/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
> @@ -33,11 +33,11 @@ standard_testfile .c require is_x86_64_m64_target
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> - return -1
> + return
> }
>
> if {![runto breakpt]} {
> - return -1
> + return
> }
>
> # Use 'bt no-filters' here as the python filters will raise their own @@ -52,7
> +52,7 @@ gdb_test "bt no-filters" "^#0 +$hex in func2 \\(\\)\r\nBacktrace
> stopped: Cannot clean_restart ${::testfile}
>
> if {![runto breakpt]} {
> - return -1
> + return
> }
>
> gdb_test "interpreter-exec mi \"-stack-info-depth\"" \ @@ -66,7 +66,7 @@
> gdb_test "interpreter-exec mi \"-stack-info-depth\"" \ clean_restart
> ${::testfile}
>
> if {![runto breakpt]} {
> - return -1
> + return
> }
>
> gdb_test "interpreter-exec mi \"-stack-list-frames\"" \ diff --git
> a/gdb/testsuite/gdb.arch/amd64-lam.exp b/gdb/testsuite/gdb.arch/amd64-
> lam.exp
> index 746ab313871b..3abdb3116d88 100644
> --- a/gdb/testsuite/gdb.arch/amd64-lam.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-lam.exp
> @@ -21,11 +21,11 @@ standard_testfile amd64-lam.c
>
> # Test LAM 57.
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> - return -1
> + return
> }
>
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> gdb_breakpoint [gdb_get_line_number "Breakpoint here"] diff --git
> a/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
> b/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
> index 209aa240e623..a2651898b0c6 100644
> --- a/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
> @@ -25,11 +25,11 @@ if {[info exists COMPILE]} { }
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_test "print v" { = {i = 0, xxx = {<optimized out> <repeats 256 times>}}}
> diff --git a/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
> b/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
> index bae24da9cf76..f402350acdee 100644
> --- a/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
> @@ -29,11 +29,11 @@ if {[info exists COMPILE]} { }
>
> if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint "func"
> diff --git a/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
> b/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
> index a50978d439eb..44ef137d8758 100644
> --- a/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
> @@ -29,7 +29,7 @@ standard_testfile amd64-pseudo-unwind.c amd64-
> pseudo-unwind-asm.S
>
> if { [prepare_for_testing "failed to prepare" ${testfile} \
> "${srcfile} ${srcfile2}" {debug}] } {
> - return -1
> + return
> }
>
> clean_restart ${::testfile}
> diff --git a/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
> b/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
> index 4f2c6c26dab4..1d6d0cf786c5 100644
> --- a/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
> @@ -18,7 +18,7 @@ standard_testfile ".S"
> require is_x86_64_m64_target
>
> if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
> - return -1
> + return
> }
>
> # Helper procedure to go to probe NAME
> @@ -38,7 +38,7 @@ proc test_probe_value { value } { }
>
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> # Name and expected value for each probe.
> diff --git a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
> b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
> index 4b4d0543f64d..9cd7dec166c1 100644
> --- a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
> @@ -20,7 +20,7 @@ standard_testfile ".S"
> require is_x86_64_m64_target
>
> if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
> - return -1
> + return
> }
>
> # Helper procedure to go to probe NAME
> @@ -46,7 +46,7 @@ proc test_probe_value_without_reg { value } { }
>
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> foreach probe_name [list "foo" "bar" "foo_prefix" "bar_prefix"] \ diff --git
> a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
> b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
> index 9c819e490acd..3fbdae9197de 100644
> --- a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
> @@ -29,7 +29,7 @@ proc test_probe { probe_name } { standard_testfile
> amd64-stap-triplet.S
>
> if { [prepare_for_testing "failed to prepare" $testfile-triplet $srcfile] } {
> - return -1
> + return
> }
>
> test_probe "triplet"
> @@ -38,7 +38,7 @@ standard_testfile amd64-stap-three-arg-disp.S
>
> if { [prepare_for_testing "failed to prepare" $testfile-three-arg-displ \
> $srcfile] } {
> - return -1
> + return
> }
>
> test_probe "three_arg"
> diff --git a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
> b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
> index 2f55fbdf82c8..e7089c20f489 100644
> --- a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
> @@ -18,7 +18,7 @@ require is_x86_64_m64_target standard_testfile
> amd64-stap-wrong-subexp.S
>
> if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
> - return -1
> + return
> }
>
> proc goto_probe { probe_name } {
> diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
> b/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
> index 5d6ae1776c66..c2cffe0793b2 100644
> --- a/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
> @@ -27,11 +27,11 @@ if {[info exists COMPILE]} { }
>
> if { [prepare_for_testing "failed to prepare" ${testfile} "${srcfile} ${srcfile2}"
> $opts] } {
> - return -1
> + return
> }
>
> if {![runto g]} {
> - return -1
> + return
> }
>
> gdb_test "bt" "\r\n#0 +g \\(x=x@entry=2\\) at \[^\r\n\]*\r\n#1 +${::hex} in f
> \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +${::hex} in main .*"
> diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
> b/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
> index 8a58dda00b1d..767602805b97 100644
> --- a/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
> @@ -27,11 +27,11 @@ if {[info exists COMPILE]} { lappend opts nopie
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> - return -1
> + return
> }
>
> if {![runto noret]} {
> - return -1
> + return
> }
>
> gdb_test "bt" "#0 +noret \\(x=1\\) at \[^\r\n\]*\r\n#1 +${::hex} in mayret
> \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +${::hex} in tailcall \\(x=x@entry=1\\)
> at \[^\r\n\]*\r\n#3 +${::hex} in main \\(\\) at .*"
> diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
> b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
> index 00ed2323a620..7ae151c690f3 100644
> --- a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
> @@ -30,11 +30,11 @@ if {[is_remote host]} { }
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_breakpoint "g"
> diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
> b/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
> index 63a3e00411a9..f1c6396d5108 100644
> --- a/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
> @@ -18,11 +18,11 @@ standard_testfile .S require is_x86_64_m64_target
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } {
> - return -1
> + return
> }
>
> if {![runto b]} {
> - return -1
> + return
> }
>
> gdb_test "bt" "#0 +b \\(\\) at \[^\r\n\]*\r\n#1 +${::hex} in a \\(q=<optimized
> out>\\) at \[^\r\n\]*\r\n#2 +${::hex} in main \\(\[^\r\n\]*\\) at .*"
> diff --git a/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
> b/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
> index e26d6efb201c..459330563f87 100644
> --- a/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
> @@ -31,14 +31,14 @@ require target_can_use_run_cmd
> is_x86_64_m64_target if {[target_info gdb_protocol] == "remote"
> || [target_info gdb_protocol] == "extended-remote"} {
> unsupported "using [target_info gdb_protocol] protocol"
> - return -1
> + return
> }
>
> standard_testfile
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> { debug }] } {
> - return -1
> + return
> }
>
> # Insert the watchpoint, it should default to a h/w watchpoint.
> diff --git a/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
> b/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
> index 46f81f28c2d4..a53e14bf33d0 100644
> --- a/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
> +++ b/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
> @@ -28,7 +28,7 @@ if {![istarget "i386-*-*"]} {
>
> # The kernel VDSO is used for the syscalls returns only on i386 (not x86_64).
> if { [build_executable "failed to prepare" $testfile $srcfile $options] } {
> - return -1
> + return
> }
>
> # Don't tell GDB which executable we're debugging.
> diff --git a/gdb/testsuite/gdb.arch/i386-avx512.exp
> b/gdb/testsuite/gdb.arch/i386-avx512.exp
> index f1a0d59ccd89..c79563366dc8 100644
> --- a/gdb/testsuite/gdb.arch/i386-avx512.exp
> +++ b/gdb/testsuite/gdb.arch/i386-avx512.exp
> @@ -28,11 +28,11 @@ set comp_flags "-mavx512f -I${srcdir}/../nat"
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> [list debug nowarnings additional_flags=${comp_flags}]] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> set supports_avx512 0
> diff --git a/gdb/testsuite/gdb.arch/i386-biarch-core.exp
> b/gdb/testsuite/gdb.arch/i386-biarch-core.exp
> index 95b1a3e29cb0..a9102559e5b5 100644
> --- a/gdb/testsuite/gdb.arch/i386-biarch-core.exp
> +++ b/gdb/testsuite/gdb.arch/i386-biarch-core.exp
> @@ -40,13 +40,13 @@ set address 0x400078 set corefile [decompress_bz2
> $corebz2file] if { $corefile == "" } {
> untested "failed bzip2"
> - return -1
> + return
> }
>
> file stat ${corefile} corestat
> if {$corestat(size) != 102400} {
> untested "bzip2 produces invalid result"
> - return -1
> + return
> }
>
> set corefile [gdb_remote_download host $corefile] diff --git
> a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> index d2fcf0a311f9..ef4d0370de89 100644
> --- a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> +++ b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> @@ -29,7 +29,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
> # fragments.
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
> $additional_flags]] != "" } {
> untested "failed to compile"
> - return -1
> + return
> }
>
>
> diff --git a/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
> b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
> index 11a9f0331928..a340182c1d88 100644
> --- a/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
> +++ b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
> @@ -22,11 +22,11 @@ set testfile "i386-cfi-notcurrent"
> set srcfile ${testfile}.S
>
> if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {nodebug}]} {
> - return -1
> + return
> }
>
> if {![runto f]} {
> - return -1
> + return
> }
>
> gdb_test "backtrace" "#0 \[^\r\n\]* f \[^\r\n\]*\r\n#1 \[^\r\n\]* g
> \[^\r\n\]*\r\n#2 \[^\r\n\]* main \[^\r\n\]*"
> diff --git a/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
> b/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
> index 8c7061ecd78e..5ea8d8f543af 100644
> --- a/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
> +++ b/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
> @@ -25,7 +25,7 @@ set opts {debug nopie} standard_testfile .S -alarm.c
>
> if { [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" $opts]
> } {
> - return -1
> + return
> }
>
> gdb_test "set displaced-stepping on" ""
> diff --git a/gdb/testsuite/gdb.arch/i386-disp-step.exp
> b/gdb/testsuite/gdb.arch/i386-disp-step.exp
> index b593651ad45c..ba8931e8ff19 100644
> --- a/gdb/testsuite/gdb.arch/i386-disp-step.exp
> +++ b/gdb/testsuite/gdb.arch/i386-disp-step.exp
> @@ -27,7 +27,7 @@ lappend opts debug
> lappend opts nopie
>
> if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
> - return -1
> + return
> }
>
> gdb_test "set displaced-stepping on" ""
> diff --git a/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
> b/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
> index 058eefdb0051..d0c9209f62c3 100644
> --- a/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
> +++ b/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
> @@ -24,11 +24,11 @@ require {is_any_target "i?86-*-*" "x86_64-*-*"}
> standard_testfile
>
> if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug
> $additional_flags}]} {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> gdb_test_no_output "set breakpoint always-inserted on"
> diff --git a/gdb/testsuite/gdb.arch/i386-float.exp
> b/gdb/testsuite/gdb.arch/i386-float.exp
> index 23db5f843c2c..e1e8af45f056 100644
> --- a/gdb/testsuite/gdb.arch/i386-float.exp
> +++ b/gdb/testsuite/gdb.arch/i386-float.exp
> @@ -26,7 +26,7 @@ standard_testfile .S
> set additional_flags [gdb_target_symbol_prefix_flags_asm]
>
> if { [prepare_for_testing "failed to prepare" $testfile $srcfile [list debug nopie
> $additional_flags]] } {
> - return -1
> + return
> }
>
> if {![runto_main]} {
> diff --git a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
> b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
> index c7e019829e75..458a902fb974 100644
> --- a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
> +++ b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
> @@ -35,7 +35,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
>
> if { [gdb_compile "${srcdir}/${subdir}/${srcfilec}
> ${srcdir}/${subdir}/${srcfileasm}" "${binfile}" executable [list debug
> $additional_flags]] != "" } {
> untested "failed to compile"
> - return -1
> + return
> }
>
> # Get things started.
> @@ -67,7 +67,7 @@ gdb_test_multiple "backtrace" "" {
> }
> }
> if { $gate_n == "" } {
> - return -1
> + return
> }
>
> # Check we see the inserted `DW_CFA_GNU_negative_offset_extended' CFI.
> diff --git a/gdb/testsuite/gdb.arch/i386-permbkpt.exp
> b/gdb/testsuite/gdb.arch/i386-permbkpt.exp
> index f365597e052e..58ab263688a1 100644
> --- a/gdb/testsuite/gdb.arch/i386-permbkpt.exp
> +++ b/gdb/testsuite/gdb.arch/i386-permbkpt.exp
> @@ -27,7 +27,7 @@ set additional_flags
> [gdb_target_symbol_prefix_flags_asm]
>
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
> debug $additional_flags]] != "" } {
> untested "failed to compile"
> - return -1
> + return
> }
>
> clean_restart ${::testfile}
> diff --git a/gdb/testsuite/gdb.arch/i386-pkru.exp
> b/gdb/testsuite/gdb.arch/i386-pkru.exp
> index 94cf2101e18b..b9b0b99b0de3 100644
> --- a/gdb/testsuite/gdb.arch/i386-pkru.exp
> +++ b/gdb/testsuite/gdb.arch/i386-pkru.exp
> @@ -31,11 +31,11 @@ set comp_flags "-I${srcdir}/../nat/"
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> [list debug additional_flags=${comp_flags}]] } {
> untested "failed to compile x86 PKEYS test."
> - return -1
> + return
> }
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> set supports_pkru 0
> diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp
> b/gdb/testsuite/gdb.arch/i386-prologue.exp
> index 03a32ba9c3f9..c02858efe4c3 100644
> --- a/gdb/testsuite/gdb.arch/i386-prologue.exp
> +++ b/gdb/testsuite/gdb.arch/i386-prologue.exp
> @@ -34,7 +34,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
> # fragments.
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
> $additional_flags]] != "" } {
> untested "failed to compile"
> - return -1
> + return
> }
>
>
> diff --git a/gdb/testsuite/gdb.arch/i386-signal.exp
> b/gdb/testsuite/gdb.arch/i386-signal.exp
> index 9e7976b5a275..35096076d6f4 100644
> --- a/gdb/testsuite/gdb.arch/i386-signal.exp
> +++ b/gdb/testsuite/gdb.arch/i386-signal.exp
> @@ -27,7 +27,7 @@ lappend opts additional_flags=-
> DIS_AMD64_REGS_TARGET=[is_amd64_regs_target]
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
> executable $opts] != "" } {
> untested "failed to compile"
> - return -1
> + return
> }
>
> clean_restart $::testfile
> diff --git a/gdb/testsuite/gdb.arch/i386-size-overlap.exp
> b/gdb/testsuite/gdb.arch/i386-size-overlap.exp
> index ccc1d56e6dbc..7991dc9cfc8a 100644
> --- a/gdb/testsuite/gdb.arch/i386-size-overlap.exp
> +++ b/gdb/testsuite/gdb.arch/i386-size-overlap.exp
> @@ -27,7 +27,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
> executable [list debug $additional_flags]] != "" } {
> untested "failed to compile"
> - return -1
> + return
> }
>
> clean_restart $::testfile
> diff --git a/gdb/testsuite/gdb.arch/i386-size.exp
> b/gdb/testsuite/gdb.arch/i386-size.exp
> index 0b2b2a3c3bda..723a96a3673f 100644
> --- a/gdb/testsuite/gdb.arch/i386-size.exp
> +++ b/gdb/testsuite/gdb.arch/i386-size.exp
> @@ -32,7 +32,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
> executable [list debug $additional_flags]] != "" } {
> untested "i386-size"
> - return -1
> + return
> }
>
> clean_restart $::testfile
> diff --git a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
> b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
> index 60b83b525fd5..8732279fc28a 100644
> --- a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
> +++ b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
> @@ -29,13 +29,13 @@ if {[info exists COMPILE]} {
>
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable
> $opts] != "" } {
> unsupported "failed to compile"
> - return -1
> + return
> }
>
> clean_restart $executable
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> set args ""
> diff --git a/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
> b/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
> index 21beeb400054..63b3ef17adb2 100644
> --- a/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
> +++ b/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
> @@ -19,13 +19,13 @@ standard_testfile ".S"
> require is_x86_like_target
>
> if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
> - return -1
> + return
> }
>
> gdb_test_no_output "set language ada"
>
> if { ![runto "-pstap bar"] } {
> - return -1
> + return
> }
>
> gdb_test "print \$_probe_arg0" " = 40" \ diff --git
> a/gdb/testsuite/gdb.arch/i386-unwind.exp b/gdb/testsuite/gdb.arch/i386-
> unwind.exp
> index 8f522308fe46..7d816aa2ec5c 100644
> --- a/gdb/testsuite/gdb.arch/i386-unwind.exp
> +++ b/gdb/testsuite/gdb.arch/i386-unwind.exp
> @@ -30,7 +30,7 @@ set additional_flags [gdb_target_symbol_prefix_flags]
>
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list
> debug $additional_flags]] != "" } {
> untested "failed to compile"
> - return -1
> + return
> }
>
> clean_restart $::testfile
> diff --git a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
> b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
> index e206c07cefef..7c746c12e294 100644
> --- a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
> +++ b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
> @@ -20,7 +20,7 @@ set srcfile ${testfile}.S set binfile
> ${objdir}/${subdir}/${testfile} if { [gdb_compile
> "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
> untested "failed to compile"
> - return -1
> + return
> }
>
> clean_restart
> @@ -28,7 +28,7 @@ gdb_load $binfile
>
> # We need to start the inferior to place the breakpoints in the memory at all.
> if {![runto_main]} {
> - return -1
> + return
> }
>
> # The default "auto" mode removes all the breakpoints when we stop (and
> not @@ -55,7 +55,7 @@ gdb_test_multiple "b bundle" $test { }
>
> if {![info exists bpt2address]} {
> - return -1
> + return
> }
>
> gdb_test "b *($bpt2address + 1)" "Breakpoint \[0-9\] at .*" "slot 1 breakpoint
> placed"
> diff --git a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
> b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
> index cebea7c3b620..08d4849bae20 100644
> --- a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
> +++ b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
> @@ -23,11 +23,11 @@ require allow_avx512bf16_tests standard_testfile
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> - return -1
> + return
> }
>
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> # Test xmm
> diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
> b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
> index 4b2e3e547e88..6adff2155313 100644
> --- a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
> +++ b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
> @@ -21,11 +21,11 @@ standard_testfile
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> {debug additional_flags="-mavx512fp16"}] } {
> - return -1
> + return
> }
>
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> gdb_test "p square(2.2)" "= 4\\.8359"
> diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
> b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
> index 2d3ab6814c35..e99ec13f7d0e 100644
> --- a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
> +++ b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
> @@ -20,11 +20,11 @@ require allow_avx512fp16_tests standard_testfile
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> - return -1
> + return
> }
>
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> # Test xmm.
In other areas of this series, you fix the "return 0" lines, too.
But it seems for this area that there are some "return 0" lines missing, for instance in i386-avx.exp.
Would you mind creating a separate patch ?
Or you can also merge it in this one, both is fine for me if you mention that in the commit message.
Besides that, I checked this patch and it looks good to me.
But I would avoid "intel" in the commit message, since x86, amd64, i386 is not Intel‑only.
What about simply writing it out: "x86, amd64, i386" ?
Christina
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
^ permalink raw reply [flat|nested] 41+ messages in thread
* RE: [PATCH 04/36] GDB: testsuite: intel: Don't return -1 from top-level (manual)
2026-04-27 6:34 ` [PATCH 04/36] GDB: testsuite: intel: Don't return -1 from top-level (manual) Thiago Jung Bauermann
@ 2026-04-28 16:39 ` Schimpe, Christina
2026-04-28 21:48 ` Thiago Jung Bauermann
0 siblings, 1 reply; 41+ messages in thread
From: Schimpe, Christina @ 2026-04-28 16:39 UTC (permalink / raw)
To: Thiago Jung Bauermann, gdb-patches
Hi Thiago,
For this patch I have the same comment about the commit message for the "intel" part.
Besides that, I found some issues, please see below.
> -----Original Message-----
> From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
> Sent: Montag, 27. April 2026 08:34
> To: gdb-patches@sourceware.org
> Subject: [PATCH 04/36] GDB: testsuite: intel: Don't return -1 from top-level
> (manual)
>
> This patch manually changes the "return -1" statements that weren't caught
> by the sed command.
>
> In i386-bp_permanent.exp this was caused by misaligned lines, which are
> now fixed.
>
> In the case of core-file-pid0.exp it's because the file didn't match the glob
> pattern of the sed command.
>
> In amd64-shadow-stack-cmds.exp there's a return statement in a procedure
> whose callers don't use the return value, and the others have extra
> indentation due to being inside a save_vars block.
> ---
> gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp | 10 +++++-----
> gdb/testsuite/gdb.arch/core-file-pid0.exp | 6 +++---
> gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 6 +++---
> 3 files changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
> b/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
> index e4daecb590dd..266c658eae86 100644
> --- a/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
> +++ b/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
> @@ -29,7 +29,7 @@ proc restart_and_run_infcall_call2 {} {
> global binfile
> clean_restart ${::testfile}
> if { ![runto_main] } {
> - return -1
> + return
> }
I believe for this specific proc the correct behaviour would be to examine the return value and then terminate the test (with a return).
But the current behaviour is that the test continues in case run_to_main fails.
Since this is a bug introduced by me, I think you could omit this from this patch.
I can take care of this separately.
The same issue is in aarch64-gcs-return.exp.😊
> set inside_infcall_str "The program being debugged stopped while in a
> function called from GDB"
> gdb_breakpoint [ gdb_get_line_number "break call2" ] @@ -44,12 +44,12
> @@ save_vars { ::env(GLIBC_TUNABLES) } {
>
> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> {debug additional_flags="-fcf-protection=return"}] } {
> - return -1
> + return
> }
>
> clean_restart ${::testfile}
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> with_test_prefix "test inferior call and continue" { @@ -85,7 +85,7 @@
> save_vars { ::env(GLIBC_TUNABLES) } {
>
> clean_restart ${::testfile}
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> set call1_line [ gdb_get_line_number "break call1" ] @@ -122,7 +122,7
> @@ save_vars { ::env(GLIBC_TUNABLES) } {
>
> clean_restart ${::testfile}
> if { ![runto_main] } {
> - return -1
> + return
> }
>
> with_test_prefix "test return from past frame" { diff --git
> a/gdb/testsuite/gdb.arch/core-file-pid0.exp b/gdb/testsuite/gdb.arch/core-
> file-pid0.exp
> index 8f4f88bcdb6a..3f389a705480 100644
> --- a/gdb/testsuite/gdb.arch/core-file-pid0.exp
> +++ b/gdb/testsuite/gdb.arch/core-file-pid0.exp
> @@ -28,7 +28,7 @@ if {[istarget "x86_64-*-linux*"]} {
> set cf_size 8757248
> } else {
> unsupported "no pre-generated core file for this target"
> - return -1
> + return
> }
>
> # Decompress the core file.
> @@ -36,14 +36,14 @@ set corebz2file ${srcdir}/${subdir}/${cf_name} set
> corefile [decompress_bz2 $corebz2file] if { $corefile eq "" } {
> untested "failed to bunzip2 the core file"
> - return -1
> + return
> }
>
> # Check the size of the decompressed core file. Just for sanity.
> file stat ${corefile} corestat
> if { $corestat(size) != ${cf_size} } {
> untested "uncompressed core file is the wrong size"
> - return -1
> + return
> }
>
> # Copy over the corefile if we are remote testing.
> diff --git a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> index ef4d0370de89..9805f5626348 100644
> --- a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> +++ b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> @@ -40,7 +40,7 @@ clean_restart $::testfile #
>
> if {![runto_main]} {
> - return -1
> + return
> }
>
> set function "standard"
> @@ -53,8 +53,8 @@ set retcode [gdb_test_multiple "disassemble $function"
> "disassemble function '$f }]
>
> if {$retcode != 0} {
> - fail "disassemble failed, skipping entire test."
> - return -1
> + fail "disassemble failed, skipping entire test."
> + return
> }
>
> gdb_breakpoint "*$address_bp"
I looked at a few more changes in this series and saw similar issues for the proc return values.
I guess each return which is inside a proc must be examined individually to find
out what the correct behaviour should be... what do you think?
Kind Regards,
Christina
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
^ permalink raw reply [flat|nested] 41+ messages in thread
* RE: [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-level (sed)
2026-04-28 15:54 ` Schimpe, Christina
@ 2026-04-28 16:42 ` Schimpe, Christina
0 siblings, 0 replies; 41+ messages in thread
From: Schimpe, Christina @ 2026-04-28 16:42 UTC (permalink / raw)
To: Thiago Jung Bauermann, gdb-patches
> -----Original Message-----
> From: Schimpe, Christina
> Sent: Dienstag, 28. April 2026 17:54
> To: 'Thiago Jung Bauermann' <thiago.bauermann@linaro.org>; gdb-
> patches@sourceware.org
> Subject: RE: [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-
> level (sed)
>
> Hi Thiago,
>
> Thank you for working on this.
>
> > -----Original Message-----
> > From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
> > Sent: Montag, 27. April 2026 08:34
> > To: gdb-patches@sourceware.org
> > Subject: [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from
> > top-level
> > (sed)
> >
> > This patch is purely the result of running:
> >
> > $ sed -i 's/^ return -1/ return/' \
> > amd64-*.exp* i386-*.exp* x86*.exp* ia64*.exp*
> >
> > inside gdb/testsuite/gdb.arch.
> > ---
> > gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp | 2 +-
> > gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp | 2 +-
> > gdb/testsuite/gdb.arch/amd64-disp-step.exp | 2 +-
> > gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-entry-value-param.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-entry-value.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-eval.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp | 2 +-
> > gdb/testsuite/gdb.arch/amd64-gs_base.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-i386-address.exp | 2 +-
> > gdb/testsuite/gdb.arch/amd64-init-x87-values.exp | 2 +-
> > gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp | 8 ++++----
> > gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp | 8 ++++----
> > gdb/testsuite/gdb.arch/amd64-lam.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp | 2 +-
> > gdb/testsuite/gdb.arch/amd64-stap-expressions.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp | 2 +-
> > gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-tailcall-self.exp | 4 ++--
> > gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-avx512.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-biarch-core.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-disp-step.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-dr3-watch.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-float.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-gnu-cfi.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-permbkpt.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-pkru.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-prologue.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-signal.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-size-overlap.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-size.exp | 2 +-
> > gdb/testsuite/gdb.arch/i386-sse-stack-align.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp | 4 ++--
> > gdb/testsuite/gdb.arch/i386-unwind.exp | 2 +-
> > gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp | 6 +++---
> > gdb/testsuite/gdb.arch/x86-avx512bf16.exp | 4 ++--
> > gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp | 4 ++--
> > gdb/testsuite/gdb.arch/x86-avx512fp16.exp | 4 ++--
> > 52 files changed, 90 insertions(+), 90 deletions(-)
> >
> > diff --git a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
> > b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
> > index 93e1ed36652b..bd05a4d4ae3a 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-break-on-asm-line.exp
> > @@ -20,11 +20,11 @@ standard_testfile .S if { [prepare_for_testing
> > "failed to prepare" ${testfile} ${srcfile} \
> > { debug }] } {
> > untested "could not compile"
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint [gdb_get_line_number "Break here"] diff --git
> > a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
> > b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
> > index 3a16bfb3824f..db458b3a7863 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-avx.exp
> > @@ -25,7 +25,7 @@ standard_testfile .S
> >
> > set options [list debug nopie]
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $options] }
> {
> > - return -1
> > + return
> > }
> >
> > # Get things started.
> > diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
> > b/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
> > index ce0283d462e7..38852cb2f272 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-disp-step-self-call.exp
> > @@ -25,7 +25,7 @@ set opts {debug nopie} standard_testfile .S
> > -alarm.c
> >
> > if { [prepare_for_testing "failed to prepare" $testfile "$srcfile
> > $srcfile2" $opts] } {
> > - return -1
> > + return
> > }
> >
> > gdb_test "set displaced-stepping on" ""
> > diff --git a/gdb/testsuite/gdb.arch/amd64-disp-step.exp
> > b/gdb/testsuite/gdb.arch/amd64-disp-step.exp
> > index d05b6760e585..e8f4b7aea8e5 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-disp-step.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-disp-step.exp
> > @@ -25,7 +25,7 @@ set opts {debug nopie} standard_testfile .S
> > -signal.c
> >
> > if { [prepare_for_testing "failed to prepare" $testfile "$srcfile
> > $srcfile2" $opts] } {
> > - return -1
> > + return
> > }
> >
> > gdb_test "set displaced-stepping on" ""
> > diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
> > b/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
> > index 257a7c8cf604..b67f676b7163 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-inline.exp
> > @@ -30,11 +30,11 @@ if {[is_remote host]} { }
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2] diff
> > --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
> > b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
> > index e5697c9c9ab5..8043235eec8e 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param-dwarf5.exp
> > @@ -30,11 +30,11 @@ if {[is_remote host]} { }
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2] diff
> > --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
> > b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
> > index 5b2b65e86365..4c1d63ab5a3c 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
> > @@ -30,11 +30,11 @@ if {[is_remote host]} { }
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2] diff
> > --git a/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
> > b/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
> > index 146d92eb2670..cb789b541bc2 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp
> > @@ -24,11 +24,11 @@ if {[is_remote host]} {
> >
> > if { [prepare_for_testing_full "failed to prepare" \
> > [list $testfile "c++" $srcfile {}]] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2] diff
> > --git a/gdb/testsuite/gdb.arch/amd64-entry-value.exp
> > b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
> > index 65c4ab142c3e..997312ee4375 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-entry-value.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
> > @@ -27,11 +27,11 @@ if {[info exists COMPILE]} { }
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint "breakhere"
> > diff --git a/gdb/testsuite/gdb.arch/amd64-eval.exp
> > b/gdb/testsuite/gdb.arch/amd64-eval.exp
> > index 34fb21e0678f..2b145375595b 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-eval.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-eval.exp
> > @@ -23,11 +23,11 @@ standard_testfile .cc
> >
> > if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
> > { debug c++ additional_flags=-std=c++11 }] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint [gdb_get_line_number "break-here"] diff --git
> > a/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
> > b/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
> > index e1ca703881dd..9e358c016427 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-frameptr-vecreg-unwind.exp
> > @@ -26,7 +26,7 @@ standard_testfile
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} \
> > "${srcfile}" {debug}] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > diff --git a/gdb/testsuite/gdb.arch/amd64-gs_base.exp
> > b/gdb/testsuite/gdb.arch/amd64-gs_base.exp
> > index db64c52d89fd..c879cd9d2bf6 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-gs_base.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-gs_base.exp
> > @@ -19,11 +19,11 @@ require is_amd64_regs_target
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> > [list debug nowarnings]] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "print /x \$fs_base" "= $hex" "print fs_base"
> > diff --git a/gdb/testsuite/gdb.arch/amd64-i386-address.exp
> > b/gdb/testsuite/gdb.arch/amd64-i386-address.exp
> > index 710e9c0cdb46..c9e759272355 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-i386-address.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-i386-address.exp
> > @@ -22,7 +22,7 @@ require {is_any_target "x86_64-*-*" "i?86-*-*"}
> > is_lp64_target require {!istarget "*-*-openbsd*"}
> >
> > if {[prepare_for_testing "failed to prepare" amd64-i386-address
> > amd64-i386- address.S [list debug "additional_flags=-m32 -nostdlib"]]} {
> > - return -1
> > + return
> > }
> >
> > gdb_run_cmd
> > diff --git a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
> > b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
> > index 91c198e43a31..4c7664676d63 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-init-x87-values.exp
> > @@ -26,7 +26,7 @@ set options [list debug \
> > additional_flags=-static \
> > ldflags=-nostartfiles]
> > if { [build_executable "failed to prepare" ${testfile} ${srcfile} $options] } {
> > - return -1
> > + return
> > }
> >
> > # Start the test file, and check the x87 control registers (and diff
> > --git a/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
> > b/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
> > index 713bef8ba473..a48896d60a6c 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.exp
> > @@ -32,11 +32,11 @@ standard_testfile .S require is_x86_64_m64_target
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {nopie}] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto breakpt]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "bt" "^#0 +breakpt *\\(\\) \[^\r\n\]*\r\n#1 +${::hex} in
> > func5\[^\r\n\]*\r\n#2 +${::hex} in func4\[^\r\n\]*\r\n#3 +${::hex} in
> > func3\[^\r\n\]*\r\nBacktrace stopped: Cannot access memory at address
> > ${::hex}" \ @@ -48,7 +48,7 @@ gdb_test "bt" "^#0 +breakpt *\\(\\)
> > \[^\r\n\]*\r\n#1 +${::hex} in func5\[^\r\n\] clean_restart
> > ${::testfile}
> >
> > if {![runto breakpt]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "interpreter-exec mi \"-stack-info-depth\"" \ @@ -62,7 +62,7
> > @@ gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
> > clean_restart ${::testfile}
> >
> > if {![runto breakpt]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "interpreter-exec mi \"-stack-list-frames\"" \ diff --git
> > a/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
> > b/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
> > index 9a4f2e2663e2..d3ad91ed64fd 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-invalid-stack-top.exp
> > @@ -33,11 +33,11 @@ standard_testfile .c require is_x86_64_m64_target
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto breakpt]} {
> > - return -1
> > + return
> > }
> >
> > # Use 'bt no-filters' here as the python filters will raise their own
> > @@ -52,7
> > +52,7 @@ gdb_test "bt no-filters" "^#0 +$hex in func2
> > +\\(\\)\r\nBacktrace
> > stopped: Cannot clean_restart ${::testfile}
> >
> > if {![runto breakpt]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "interpreter-exec mi \"-stack-info-depth\"" \ @@ -66,7 +66,7
> > @@ gdb_test "interpreter-exec mi \"-stack-info-depth\"" \
> > clean_restart ${::testfile}
> >
> > if {![runto breakpt]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "interpreter-exec mi \"-stack-list-frames\"" \ diff --git
> > a/gdb/testsuite/gdb.arch/amd64-lam.exp
> b/gdb/testsuite/gdb.arch/amd64-
> > lam.exp index 746ab313871b..3abdb3116d88 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-lam.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-lam.exp
> > @@ -21,11 +21,11 @@ standard_testfile amd64-lam.c
> >
> > # Test LAM 57.
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> > - return -1
> > + return
> > }
> >
> > if { ![runto_main] } {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint [gdb_get_line_number "Breakpoint here"] diff --git
> > a/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
> > b/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
> > index 209aa240e623..a2651898b0c6 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp
> > @@ -25,11 +25,11 @@ if {[info exists COMPILE]} { }
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "print v" { = {i = 0, xxx = {<optimized out> <repeats 256
> > times>}}} diff --git a/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
> > b/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
> > index bae24da9cf76..f402350acdee 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp
> > @@ -29,11 +29,11 @@ if {[info exists COMPILE]} { }
> >
> > if {[prepare_for_testing "failed to prepare" ${testfile} $srcfile $opts]} {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint "func"
> > diff --git a/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
> > b/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
> > index a50978d439eb..44ef137d8758 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
> > @@ -29,7 +29,7 @@ standard_testfile amd64-pseudo-unwind.c amd64-
> > pseudo-unwind-asm.S
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} \
> > "${srcfile} ${srcfile2}" {debug}] } {
> > - return -1
> > + return
> > }
> >
> > clean_restart ${::testfile}
> > diff --git a/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
> > b/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
> > index 4f2c6c26dab4..1d6d0cf786c5 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-stap-expressions.exp
> > @@ -18,7 +18,7 @@ standard_testfile ".S"
> > require is_x86_64_m64_target
> >
> > if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
> > - return -1
> > + return
> > }
> >
> > # Helper procedure to go to probe NAME @@ -38,7 +38,7 @@ proc
> > test_probe_value { value } { }
> >
> > if { ![runto_main] } {
> > - return -1
> > + return
> > }
> >
> > # Name and expected value for each probe.
> > diff --git a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
> > b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
> > index 4b4d0543f64d..9cd7dec166c1 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
> > @@ -20,7 +20,7 @@ standard_testfile ".S"
> > require is_x86_64_m64_target
> >
> > if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
> > - return -1
> > + return
> > }
> >
> > # Helper procedure to go to probe NAME @@ -46,7 +46,7 @@ proc
> > test_probe_value_without_reg { value } { }
> >
> > if { ![runto_main] } {
> > - return -1
> > + return
> > }
> >
> > foreach probe_name [list "foo" "bar" "foo_prefix" "bar_prefix"] \
> > diff --git a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
> > b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
> > index 9c819e490acd..3fbdae9197de 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
> > @@ -29,7 +29,7 @@ proc test_probe { probe_name } { standard_testfile
> > amd64-stap-triplet.S
> >
> > if { [prepare_for_testing "failed to prepare" $testfile-triplet $srcfile] } {
> > - return -1
> > + return
> > }
> >
> > test_probe "triplet"
> > @@ -38,7 +38,7 @@ standard_testfile amd64-stap-three-arg-disp.S
> >
> > if { [prepare_for_testing "failed to prepare" $testfile-three-arg-displ \
> > $srcfile] } {
> > - return -1
> > + return
> > }
> >
> > test_probe "three_arg"
> > diff --git a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
> > b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
> > index 2f55fbdf82c8..e7089c20f489 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-stap-wrong-subexp.exp
> > @@ -18,7 +18,7 @@ require is_x86_64_m64_target standard_testfile
> > amd64-stap-wrong-subexp.S
> >
> > if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
> > - return -1
> > + return
> > }
> >
> > proc goto_probe { probe_name } {
> > diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
> > b/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
> > index 5d6ae1776c66..c2cffe0793b2 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-cxx.exp
> > @@ -27,11 +27,11 @@ if {[info exists COMPILE]} { }
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} "${srcfile} ${srcfile2}"
> > $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto g]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "bt" "\r\n#0 +g \\(x=x@entry=2\\) at \[^\r\n\]*\r\n#1
> > +${::hex} in f
> > \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +${::hex} in main .*"
> > diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
> > b/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
> > index 8a58dda00b1d..767602805b97 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-noret.exp
> > @@ -27,11 +27,11 @@ if {[info exists COMPILE]} { lappend opts nopie
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto noret]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "bt" "#0 +noret \\(x=1\\) at \[^\r\n\]*\r\n#1 +${::hex} in
> > mayret
> > \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#2 +${::hex} in tailcall
> > \\(x=x@entry=1\\) at \[^\r\n\]*\r\n#3 +${::hex} in main \\(\\) at .*"
> > diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
> > b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
> > index 00ed2323a620..7ae151c690f3 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
> > @@ -30,11 +30,11 @@ if {[is_remote host]} { }
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_breakpoint "g"
> > diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
> > b/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
> > index 63a3e00411a9..f1c6396d5108 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-tailcall-self.exp
> > @@ -18,11 +18,11 @@ standard_testfile .S require is_x86_64_m64_target
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {}] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto b]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "bt" "#0 +b \\(\\) at \[^\r\n\]*\r\n#1 +${::hex} in a
> > \\(q=<optimized
> > out>\\) at \[^\r\n\]*\r\n#2 +${::hex} in main \\(\[^\r\n\]*\\) at .*"
> > diff --git a/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
> > b/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
> > index e26d6efb201c..459330563f87 100644
> > --- a/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
> > +++ b/gdb/testsuite/gdb.arch/amd64-watchpoint-downgrade.exp
> > @@ -31,14 +31,14 @@ require target_can_use_run_cmd
> > is_x86_64_m64_target if {[target_info gdb_protocol] == "remote"
> > || [target_info gdb_protocol] == "extended-remote"} {
> > unsupported "using [target_info gdb_protocol] protocol"
> > - return -1
> > + return
> > }
> >
> > standard_testfile
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> > { debug }] } {
> > - return -1
> > + return
> > }
> >
> > # Insert the watchpoint, it should default to a h/w watchpoint.
> > diff --git a/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
> > b/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
> > index 46f81f28c2d4..a53e14bf33d0 100644
> > --- a/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-attach-see-vdso.exp
> > @@ -28,7 +28,7 @@ if {![istarget "i386-*-*"]} {
> >
> > # The kernel VDSO is used for the syscalls returns only on i386 (not
> x86_64).
> > if { [build_executable "failed to prepare" $testfile $srcfile $options] } {
> > - return -1
> > + return
> > }
> >
> > # Don't tell GDB which executable we're debugging.
> > diff --git a/gdb/testsuite/gdb.arch/i386-avx512.exp
> > b/gdb/testsuite/gdb.arch/i386-avx512.exp
> > index f1a0d59ccd89..c79563366dc8 100644
> > --- a/gdb/testsuite/gdb.arch/i386-avx512.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-avx512.exp
> > @@ -28,11 +28,11 @@ set comp_flags "-mavx512f -I${srcdir}/../nat"
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> > [list debug nowarnings additional_flags=${comp_flags}]] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > set supports_avx512 0
> > diff --git a/gdb/testsuite/gdb.arch/i386-biarch-core.exp
> > b/gdb/testsuite/gdb.arch/i386-biarch-core.exp
> > index 95b1a3e29cb0..a9102559e5b5 100644
> > --- a/gdb/testsuite/gdb.arch/i386-biarch-core.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-biarch-core.exp
> > @@ -40,13 +40,13 @@ set address 0x400078 set corefile
> [decompress_bz2
> > $corebz2file] if { $corefile == "" } {
> > untested "failed bzip2"
> > - return -1
> > + return
> > }
> >
> > file stat ${corefile} corestat
> > if {$corestat(size) != 102400} {
> > untested "bzip2 produces invalid result"
> > - return -1
> > + return
> > }
> >
> > set corefile [gdb_remote_download host $corefile] diff --git
> > a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> > b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> > index d2fcf0a311f9..ef4d0370de89 100644
> > --- a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
> > @@ -29,7 +29,7 @@ set additional_flags
> > [gdb_target_symbol_prefix_flags] # fragments.
> > if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}"
> > executable [list $additional_flags]] != "" } {
> > untested "failed to compile"
> > - return -1
> > + return
> > }
> >
> >
> > diff --git a/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
> > b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
> > index 11a9f0331928..a340182c1d88 100644
> > --- a/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-cfi-notcurrent.exp
> > @@ -22,11 +22,11 @@ set testfile "i386-cfi-notcurrent"
> > set srcfile ${testfile}.S
> >
> > if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {nodebug}]}
> {
> > - return -1
> > + return
> > }
> >
> > if {![runto f]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "backtrace" "#0 \[^\r\n\]* f \[^\r\n\]*\r\n#1 \[^\r\n\]* g
> > \[^\r\n\]*\r\n#2 \[^\r\n\]* main \[^\r\n\]*"
> > diff --git a/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
> > b/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
> > index 8c7061ecd78e..5ea8d8f543af 100644
> > --- a/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-disp-step-self-call.exp
> > @@ -25,7 +25,7 @@ set opts {debug nopie} standard_testfile .S
> > -alarm.c
> >
> > if { [prepare_for_testing "failed to prepare" $testfile "$srcfile
> > $srcfile2" $opts] } {
> > - return -1
> > + return
> > }
> >
> > gdb_test "set displaced-stepping on" ""
> > diff --git a/gdb/testsuite/gdb.arch/i386-disp-step.exp
> > b/gdb/testsuite/gdb.arch/i386-disp-step.exp
> > index b593651ad45c..ba8931e8ff19 100644
> > --- a/gdb/testsuite/gdb.arch/i386-disp-step.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-disp-step.exp
> > @@ -27,7 +27,7 @@ lappend opts debug
> > lappend opts nopie
> >
> > if { [prepare_for_testing "failed to prepare" $testfile $srcfile $opts] } {
> > - return -1
> > + return
> > }
> >
> > gdb_test "set displaced-stepping on" ""
> > diff --git a/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
> > b/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
> > index 058eefdb0051..d0c9209f62c3 100644
> > --- a/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-dr3-watch.exp
> > @@ -24,11 +24,11 @@ require {is_any_target "i?86-*-*" "x86_64-*-*"}
> > standard_testfile
> >
> > if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}
> > {debug $additional_flags}]} {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test_no_output "set breakpoint always-inserted on"
> > diff --git a/gdb/testsuite/gdb.arch/i386-float.exp
> > b/gdb/testsuite/gdb.arch/i386-float.exp
> > index 23db5f843c2c..e1e8af45f056 100644
> > --- a/gdb/testsuite/gdb.arch/i386-float.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-float.exp
> > @@ -26,7 +26,7 @@ standard_testfile .S set additional_flags
> > [gdb_target_symbol_prefix_flags_asm]
> >
> > if { [prepare_for_testing "failed to prepare" $testfile $srcfile
> > [list debug nopie $additional_flags]] } {
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > diff --git a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
> > b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
> > index c7e019829e75..458a902fb974 100644
> > --- a/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp
> > @@ -35,7 +35,7 @@ set additional_flags
> > [gdb_target_symbol_prefix_flags]
> >
> > if { [gdb_compile "${srcdir}/${subdir}/${srcfilec}
> > ${srcdir}/${subdir}/${srcfileasm}" "${binfile}" executable [list debug
> > $additional_flags]] != "" } {
> > untested "failed to compile"
> > - return -1
> > + return
> > }
> >
> > # Get things started.
> > @@ -67,7 +67,7 @@ gdb_test_multiple "backtrace" "" {
> > }
> > }
> > if { $gate_n == "" } {
> > - return -1
> > + return
> > }
> >
> > # Check we see the inserted `DW_CFA_GNU_negative_offset_extended' CFI.
> > diff --git a/gdb/testsuite/gdb.arch/i386-permbkpt.exp
> > b/gdb/testsuite/gdb.arch/i386-permbkpt.exp
> > index f365597e052e..58ab263688a1 100644
> > --- a/gdb/testsuite/gdb.arch/i386-permbkpt.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-permbkpt.exp
> > @@ -27,7 +27,7 @@ set additional_flags
> > [gdb_target_symbol_prefix_flags_asm]
> >
> > if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}"
> > executable [list debug $additional_flags]] != "" } {
> > untested "failed to compile"
> > - return -1
> > + return
> > }
> >
> > clean_restart ${::testfile}
> > diff --git a/gdb/testsuite/gdb.arch/i386-pkru.exp
> > b/gdb/testsuite/gdb.arch/i386-pkru.exp
> > index 94cf2101e18b..b9b0b99b0de3 100644
> > --- a/gdb/testsuite/gdb.arch/i386-pkru.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-pkru.exp
> > @@ -31,11 +31,11 @@ set comp_flags "-I${srcdir}/../nat/"
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> > [list debug additional_flags=${comp_flags}]] } {
> > untested "failed to compile x86 PKEYS test."
> > - return -1
> > + return
> > }
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > set supports_pkru 0
> > diff --git a/gdb/testsuite/gdb.arch/i386-prologue.exp
> > b/gdb/testsuite/gdb.arch/i386-prologue.exp
> > index 03a32ba9c3f9..c02858efe4c3 100644
> > --- a/gdb/testsuite/gdb.arch/i386-prologue.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-prologue.exp
> > @@ -34,7 +34,7 @@ set additional_flags
> > [gdb_target_symbol_prefix_flags] # fragments.
> > if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}"
> > executable [list $additional_flags]] != "" } {
> > untested "failed to compile"
> > - return -1
> > + return
> > }
> >
> >
> > diff --git a/gdb/testsuite/gdb.arch/i386-signal.exp
> > b/gdb/testsuite/gdb.arch/i386-signal.exp
> > index 9e7976b5a275..35096076d6f4 100644
> > --- a/gdb/testsuite/gdb.arch/i386-signal.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-signal.exp
> > @@ -27,7 +27,7 @@ lappend opts additional_flags=-
> > DIS_AMD64_REGS_TARGET=[is_amd64_regs_target]
> > if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
> > executable $opts] != "" } {
> > untested "failed to compile"
> > - return -1
> > + return
> > }
> >
> > clean_restart $::testfile
> > diff --git a/gdb/testsuite/gdb.arch/i386-size-overlap.exp
> > b/gdb/testsuite/gdb.arch/i386-size-overlap.exp
> > index ccc1d56e6dbc..7991dc9cfc8a 100644
> > --- a/gdb/testsuite/gdb.arch/i386-size-overlap.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-size-overlap.exp
> > @@ -27,7 +27,7 @@ set additional_flags
> > [gdb_target_symbol_prefix_flags] if { [gdb_compile
> "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
> > executable [list debug $additional_flags]] != "" } {
> > untested "failed to compile"
> > - return -1
> > + return
> > }
> >
> > clean_restart $::testfile
> > diff --git a/gdb/testsuite/gdb.arch/i386-size.exp
> > b/gdb/testsuite/gdb.arch/i386-size.exp
> > index 0b2b2a3c3bda..723a96a3673f 100644
> > --- a/gdb/testsuite/gdb.arch/i386-size.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-size.exp
> > @@ -32,7 +32,7 @@ set additional_flags
> > [gdb_target_symbol_prefix_flags] if { [gdb_compile
> "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
> > executable [list debug $additional_flags]] != "" } {
> > untested "i386-size"
> > - return -1
> > + return
> > }
> >
> > clean_restart $::testfile
> > diff --git a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
> > b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
> > index 60b83b525fd5..8732279fc28a 100644
> > --- a/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-sse-stack-align.exp
> > @@ -29,13 +29,13 @@ if {[info exists COMPILE]} {
> >
> > if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}"
> > executable $opts] != "" } {
> > unsupported "failed to compile"
> > - return -1
> > + return
> > }
> >
> > clean_restart $executable
> >
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > set args ""
> > diff --git a/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
> > b/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
> > index 21beeb400054..63b3ef17adb2 100644
> > --- a/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-stap-eval-lang-ada.exp
> > @@ -19,13 +19,13 @@ standard_testfile ".S"
> > require is_x86_like_target
> >
> > if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
> > - return -1
> > + return
> > }
> >
> > gdb_test_no_output "set language ada"
> >
> > if { ![runto "-pstap bar"] } {
> > - return -1
> > + return
> > }
> >
> > gdb_test "print \$_probe_arg0" " = 40" \ diff --git
> > a/gdb/testsuite/gdb.arch/i386-unwind.exp
> > b/gdb/testsuite/gdb.arch/i386- unwind.exp index
> > 8f522308fe46..7d816aa2ec5c 100644
> > --- a/gdb/testsuite/gdb.arch/i386-unwind.exp
> > +++ b/gdb/testsuite/gdb.arch/i386-unwind.exp
> > @@ -30,7 +30,7 @@ set additional_flags
> > [gdb_target_symbol_prefix_flags]
> >
> > if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}"
> > executable [list debug $additional_flags]] != "" } {
> > untested "failed to compile"
> > - return -1
> > + return
> > }
> >
> > clean_restart $::testfile
> > diff --git a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
> > b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
> > index e206c07cefef..7c746c12e294 100644
> > --- a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
> > +++ b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.exp
> > @@ -20,7 +20,7 @@ set srcfile ${testfile}.S set binfile
> > ${objdir}/${subdir}/${testfile} if { [gdb_compile
> > "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
> > untested "failed to compile"
> > - return -1
> > + return
> > }
> >
> > clean_restart
> > @@ -28,7 +28,7 @@ gdb_load $binfile
> >
> > # We need to start the inferior to place the breakpoints in the memory at
> all.
> > if {![runto_main]} {
> > - return -1
> > + return
> > }
> >
> > # The default "auto" mode removes all the breakpoints when we stop
> > (and not @@ -55,7 +55,7 @@ gdb_test_multiple "b bundle" $test { }
> >
> > if {![info exists bpt2address]} {
> > - return -1
> > + return
> > }
> >
> > gdb_test "b *($bpt2address + 1)" "Breakpoint \[0-9\] at .*" "slot 1
> > breakpoint placed"
> > diff --git a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
> > b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
> > index cebea7c3b620..08d4849bae20 100644
> > --- a/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
> > +++ b/gdb/testsuite/gdb.arch/x86-avx512bf16.exp
> > @@ -23,11 +23,11 @@ require allow_avx512bf16_tests standard_testfile
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> > - return -1
> > + return
> > }
> >
> > if { ![runto_main] } {
> > - return -1
> > + return
> > }
> >
> > # Test xmm
> > diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
> > b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
> > index 4b2e3e547e88..6adff2155313 100644
> > --- a/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
> > +++ b/gdb/testsuite/gdb.arch/x86-avx512fp16-abi.exp
> > @@ -21,11 +21,11 @@ standard_testfile
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
> > {debug additional_flags="-mavx512fp16"}] } {
> > - return -1
> > + return
> > }
> >
> > if { ![runto_main] } {
> > - return -1
> > + return
> > }
> >
> > gdb_test "p square(2.2)" "= 4\\.8359"
> > diff --git a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
> > b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
> > index 2d3ab6814c35..e99ec13f7d0e 100644
> > --- a/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
> > +++ b/gdb/testsuite/gdb.arch/x86-avx512fp16.exp
> > @@ -20,11 +20,11 @@ require allow_avx512fp16_tests standard_testfile
> >
> > if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
> > - return -1
> > + return
> > }
> >
> > if { ![runto_main] } {
> > - return -1
> > + return
> > }
> >
> > # Test xmm.
>
> In other areas of this series, you fix the "return 0" lines, too.
> But it seems for this area that there are some "return 0" lines missing, for
> instance in i386-avx.exp.
> Would you mind creating a separate patch ?
> Or you can also merge it in this one, both is fine for me if you mention that in
> the commit message.
>
> Besides that, I checked this patch and it looks good to me.
>
> But I would avoid "intel" in the commit message, since x86, amd64, i386 is
> not Intel‑only.
>
> What about simply writing it out: "x86, amd64, i386" ?
>
> Christina
I just reread your series' cover letter more carefully and saw that you mentioned that
you did not fix all return cases, especially the ones for "1" or "0".
I can of course also take care of this with a separate patch.
Thanks again for working on this.
Christina
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: [PATCH 04/36] GDB: testsuite: intel: Don't return -1 from top-level (manual)
2026-04-28 16:39 ` Schimpe, Christina
@ 2026-04-28 21:48 ` Thiago Jung Bauermann
0 siblings, 0 replies; 41+ messages in thread
From: Thiago Jung Bauermann @ 2026-04-28 21:48 UTC (permalink / raw)
To: Schimpe, Christina; +Cc: gdb-patches
Hello Christina,
Thank you for your quick review!
"Schimpe, Christina" <christina.schimpe@intel.com> writes:
> Hi Thiago,
>
> For this patch I have the same comment about the commit message for the "intel" part.
I agree with that comment. I'll adopt your suggestion for v2.
>> diff --git a/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
>> b/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
>> index e4daecb590dd..266c658eae86 100644
>> --- a/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
>> +++ b/gdb/testsuite/gdb.arch/amd64-shadow-stack-cmds.exp
>> @@ -29,7 +29,7 @@ proc restart_and_run_infcall_call2 {} {
>> global binfile
>> clean_restart ${::testfile}
>> if { ![runto_main] } {
>> - return -1
>> + return
>> }
>
> I believe for this specific proc the correct behaviour would be to examine the return
> value and then terminate the test (with a return).
> But the current behaviour is that the test continues in case run_to_main fails.
> Since this is a bug introduced by me, I think you could omit this from this patch.
> I can take care of this separately.
>
> The same issue is in aarch64-gcs-return.exp.😊
Good point that makes sense. I'll leave these changes out from v2.
Thanks for noticing it.
>> set inside_infcall_str "The program being debugged stopped while in a
>> function called from GDB"
>> gdb_breakpoint [ gdb_get_line_number "break call2" ] @@ -44,12 +44,12
>> @@ save_vars { ::env(GLIBC_TUNABLES) } {
>>
>> if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
>> {debug additional_flags="-fcf-protection=return"}] } {
>> - return -1
>> + return
>> }
>>
>> clean_restart ${::testfile}
>> if { ![runto_main] } {
>> - return -1
>> + return
>> }
>>
>> with_test_prefix "test inferior call and continue" { @@ -85,7 +85,7 @@
>> save_vars { ::env(GLIBC_TUNABLES) } {
>>
>> clean_restart ${::testfile}
>> if { ![runto_main] } {
>> - return -1
>> + return
>> }
>>
>> set call1_line [ gdb_get_line_number "break call1" ] @@ -122,7 +122,7
>> @@ save_vars { ::env(GLIBC_TUNABLES) } {
>>
>> clean_restart ${::testfile}
>> if { ![runto_main] } {
>> - return -1
>> + return
>> }
>>
>> with_test_prefix "test return from past frame" { diff --git
>> a/gdb/testsuite/gdb.arch/core-file-pid0.exp b/gdb/testsuite/gdb.arch/core-
>> file-pid0.exp
>> index 8f4f88bcdb6a..3f389a705480 100644
>> --- a/gdb/testsuite/gdb.arch/core-file-pid0.exp
>> +++ b/gdb/testsuite/gdb.arch/core-file-pid0.exp
>> @@ -28,7 +28,7 @@ if {[istarget "x86_64-*-linux*"]} {
>> set cf_size 8757248
>> } else {
>> unsupported "no pre-generated core file for this target"
>> - return -1
>> + return
>> }
>>
>> # Decompress the core file.
>> @@ -36,14 +36,14 @@ set corebz2file ${srcdir}/${subdir}/${cf_name} set
>> corefile [decompress_bz2 $corebz2file] if { $corefile eq "" } {
>> untested "failed to bunzip2 the core file"
>> - return -1
>> + return
>> }
>>
>> # Check the size of the decompressed core file. Just for sanity.
>> file stat ${corefile} corestat
>> if { $corestat(size) != ${cf_size} } {
>> untested "uncompressed core file is the wrong size"
>> - return -1
>> + return
>> }
>>
>> # Copy over the corefile if we are remote testing.
>> diff --git a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
>> b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
>> index ef4d0370de89..9805f5626348 100644
>> --- a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
>> +++ b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp
>> @@ -40,7 +40,7 @@ clean_restart $::testfile #
>>
>> if {![runto_main]} {
>> - return -1
>> + return
>> }
>>
>> set function "standard"
>> @@ -53,8 +53,8 @@ set retcode [gdb_test_multiple "disassemble $function"
>> "disassemble function '$f }]
>>
>> if {$retcode != 0} {
>> - fail "disassemble failed, skipping entire test."
>> - return -1
>> + fail "disassemble failed, skipping entire test."
>> + return
>> }
>>
>> gdb_breakpoint "*$address_bp"
>
> I looked at a few more changes in this series and saw similar issues for the proc return values.
> I guess each return which is inside a proc must be examined individually to find
> out what the correct behaviour should be... what do you think?
Ah, yes that makes sense. Thank you for catching that.
I will make a v2 which only includes top-level return statements
(including the ones within save_vars, with_test_prefix and such). That
should be easier to review. I will also include the "return 0" fixes you
mentioned in the other patch.
--
Thiago
^ permalink raw reply [flat|nested] 41+ messages in thread
end of thread, other threads:[~2026-04-28 21:48 UTC | newest]
Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-27 6:34 [PATCH 00/36] GDB: testsuite: Fix top-level returns Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 01/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 02/36] GDB: testsuite: aarch64, arm: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 03/36] GDB: testsuite: intel: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-28 15:54 ` Schimpe, Christina
2026-04-28 16:42 ` Schimpe, Christina
2026-04-27 6:34 ` [PATCH 04/36] GDB: testsuite: intel: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-28 16:39 ` Schimpe, Christina
2026-04-28 21:48 ` Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 05/36] GDB: testsuite: powerpc: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 06/36] GDB: testsuite: powerpc: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 07/36] GDB: testsuite: riscv: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 08/36] GDB: testsuite: riscv: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 09/36] GDB: testsuite: s390: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 10/36] GDB: testsuite: sparc: " Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 11/36] GDB: testsuite: Don't return -1 from top-level in tests of various arches Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 12/36] GDB: testsuite: Don't return -1 from top-level in multi-arch tests Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 13/36] GDB: testsuite: base: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 14/36] GDB: testsuite: base: Don't return 0 " Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 15/36] GDB: testsuite: base: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 16/36] GDB: testsuite: C++: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 17/36] GDB: testsuite: C++: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 18/36] GDB: testsuite: DWARF: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 19/36] GDB: testsuite: DWARF: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 20/36] GDB: testsuite: GDB: Don't return -1 from top-level Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 21/36] GDB: testsuite: Guile: " Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 22/36] GDB: testsuite: Python: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 23/36] GDB: testsuite: Python: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 24/36] GDB: testsuite: linespec: Don't return -1 from top-level Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 25/36] GDB: testsuite: MI: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 26/36] GDB: testsuite: MI: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 27/36] GDB: testsuite: reverse: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 28/36] GDB: testsuite: reverse: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 29/36] GDB: testsuite: server: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 30/36] GDB: testsuite: server: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 31/36] GDB: testsuite: threads: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 32/36] GDB: testsuite: threads: Don't return 0 " Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 33/36] GDB: testsuite: threads: Don't return -1 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 34/36] GDB: testsuite: TUI: Don't return -1 from top-level (sed) Thiago Jung Bauermann
2026-04-27 6:34 ` [PATCH 35/36] GDB: testsuite: TUI: Don't return 0 from top-level (manual) Thiago Jung Bauermann
2026-04-27 6:35 ` [PATCH 36/36] GDB: testsuite: XML: Don't return -1 nor 0 from top-level Thiago Jung Bauermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox