From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iSdbE2cE72n/4z0AWB0awg (envelope-from ) for ; Mon, 27 Apr 2026 02:38:31 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=jUp+Hhgt; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 458571E0CA; Mon, 27 Apr 2026 02:38:31 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id DCC261E0B1 for ; Mon, 27 Apr 2026 02:38:23 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 780854B99F43 for ; Mon, 27 Apr 2026 06:38:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 780854B99F43 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=jUp+Hhgt Received: from mail-dl1-x1235.google.com (mail-dl1-x1235.google.com [IPv6:2607:f8b0:4864:20::1235]) by sourceware.org (Postfix) with ESMTPS id 4B7E24BAE7CC for ; Mon, 27 Apr 2026 06:37:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4B7E24BAE7CC Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4B7E24BAE7CC Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1235 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271823; cv=none; b=ZMV05UFYhrWTXI1cMASLbbgHej0eiHkxoteglolrRqlqfPKFD6RgVhRTiIpZG3UaKzolkrRKkkFCll50kElnI85P/JTbRvSyZ4TudA3iOt6rJ8wlms5BEysuDOV9ldk6a7mtwwfS/AHgV1zuMFnDXk1S2icHtNKbdV46yxGH33c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777271823; c=relaxed/simple; bh=L/OFg350RrISAz+vl1Fo3MbKKPdl1IetsKnYJONkSvQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WPkeaFAVJc7wliYA5JekJ3ef4T+HwrtkJcddX9cKD+vtfwnJTOyzLjyPAD/K5dbXgKNkLlGQFDAYdSMjdfOi7V6ZckNW+tKsE3QGB82pd4xsIJBp0qSdabXfyvWyZLjGsiXq98DaXkWImHWb2tEYApZPyoc3ZBwtgtbfDK4evck= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B7E24BAE7CC Received: by mail-dl1-x1235.google.com with SMTP id a92af1059eb24-12c88e5f4aeso4115726c88.0 for ; Sun, 26 Apr 2026 23:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777271822; x=1777876622; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=6t5EFbR86I5yGHVq8B54mJjuLU6YrFucSiFAkieZuZc=; b=jUp+Hhgt8yn1A3agBOSwUGoiMF6gCqSi+kR08OhMjfFqOPxAXkw0Im+YxoP0FMPMB1 E5c966kAH2ZQxLnRUvC4Mj5cwSRsiDt3YA09yBW3M8bve5mXfBPAnBYT0XPbp4lIDNn/ lmcv6JoObPLKWrXdazWCtFw1nlWDgxPuwEGND5bbEo/ycFuluVCvA4sC4wZKD2v2uC/X VAL+5yAmzEKEsICzZVx9G5sT1ES/AOu5k20N7AUZCQ5fc58k7XAXGFjnTeT+zFbKTB6q DSIL4r0G1yUmbgLffyBmU9GslQLu+MswR7ivkoftGbvkfrrbHsvvIOW6j3IY8eKjnIwu 0Hyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777271822; x=1777876622; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=6t5EFbR86I5yGHVq8B54mJjuLU6YrFucSiFAkieZuZc=; b=A4rMg7T8d1NPDEU/Ua2e8GExBt7Jqw0MLjtu+hge7X/ejldksqjz3cwm7wOgcFwnfp JPL59I2Dv6co+Lv4XMrc9JlhwiCFC3V2IocRSCCr4KoD4ZvFPf5GXWiJmk5Kv6Fo8eFv F1YJIHhCmIDH1LBT4YadaMZYfHG6VhWuNXybTY22NQs6JArxkqi1AZXURLu+2MJnrxNP HY9foWjULdzliTtuHs1Qx4R5VYBEBqkzrOaWp54CvOCsOFLxBgmL4E4XYbeHpI/KNBoW dzAAqRYaVw3wWvpizeWAboPmggljmD2KTk/NFXdC3wJUvuPCgCahXKcTq+hxjHXxbSHp /cEg== X-Gm-Message-State: AOJu0YwszVR+g6k/NOAf5q9jtHY5msgcvjdNyeXF/2qc2ZXpg8C3NVTp gzbe/TPvm2hIpCNn1gBLAJB9xSteAIj2dyvqSJ9zjoLVk42AfVdKUlsKtugrLNUeifJ1BJUKJus S5F0M X-Gm-Gg: AeBDietORit8j4q9aA0YqCrPuNATdfxugHja7INDtQmsaLQVlF9p29+SXCizeuqzEa0 y7aD+pDcUW2/GV2E3fayX9JNeEFUOSxbWSu97ZSejwzwzIzC3cFIG02KA4veVREMPvYubNpqna1 rSHsZLdO2GztD/HfvivEwrENPyfK6A03ynHwpbrCE2RbQ5x87nRO10tTLvYBcOpS6nSDwKEam4k n8/W/dmU1VJ6YOa9Sc4uN4Tt7nWY1ygUoZe3O73RiYxi1qxxYVj0gPths4oK8gMYLW4tW817T9I mLtiDm7o9w5SNLsHAbk5gGsT3nleTZojh+p27pVgaZJOu5AQaxGWHz0eOE2KXLNN8ZtcW/V3rNJ NHU8TtfZMaoV4NFov5Q6VicMoD98fXeFa/FOmdCnE4Ysyo67YMxT6TIndIB1jqfQEk/HPlgQbrd bw+tSOlW8VskZ0UoQmmYT6fK2NYP/Mpv29OnrYyzbmSK/RYChnPKxWTuo= X-Received: by 2002:a05:701b:221c:b0:12d:b8e5:5e2 with SMTP id a92af1059eb24-12db8e50a4amr5112012c88.23.1777271821506; Sun, 26 Apr 2026 23:37:01 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:33bc:f32e:9aa5:b915]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12dbe78e12fsm22635767c88.15.2026.04.26.23.37.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Apr 2026 23:37:01 -0700 (PDT) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: [PATCH 31/36] GDB: testsuite: threads: Don't return -1 from top-level (sed) Date: Mon, 27 Apr 2026 03:34:55 -0300 Message-ID: <20260427063500.3847618-32-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260427063500.3847618-1-thiago.bauermann@linaro.org> References: <20260427063500.3847618-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org 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}