From: Tom Tromey <tom@tromey.com>
To: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Cc: Andrew Burgess <aburgess@redhat.com>,
Tom Tromey <tom@tromey.com>,
gdb-patches@sourceware.org, Simon Marchi <simark@simark.ca>
Subject: Re: [PATCH] Skip gdb.dap/pause.exp on Solaris [PR34548]
Date: Thu, 27 Aug 2026 09:42:41 -0600 [thread overview]
Message-ID: <87qzjja7ta.fsf@tromey.com> (raw)
In-Reply-To: <yddv78yehnu.fsf@CeBiTec.Uni-Bielefeld.DE> (Rainer Orth's message of "Tue, 25 Aug 2026 10:19:33 +0200")
>>>>> "Rainer" == Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
Rainer> Right: some of them already do their own checks for async support:
Rainer> gdb.base/async.exp
Rainer> gdb.base/bg-exec-sigint-bp-cond.exp
Rainer> gdb.base/interrupt-noterm.exp
Rainer> but in those cases, async commands are a crucial part of the tests and I
Rainer> couldn't easily use the new supports_target_async there.
I think it would be fine to stick
require supports_target_async
At the top of each of these files, and simplify some of the tests to
just assumes async execution will work.
However that can also be comfortably done in a separate patch as well.
Rainer> +# Return 1 if target supports asynchronous execution, otherwise return 0.
Rainer> +gdb_caching_proc supports_target_async {} {
Rainer> + global srcdir subdir gdb_prompt
Rainer> +
Rainer> + set me "supports_target_async"
Rainer> +
Rainer> + set src { int main() { return 0; } }
Rainer> + if {![gdb_simple_compile $me $src executable ""]} {
Rainer> + return 0
Rainer> + }
Rainer> +
Rainer> + gdb_exit
Rainer> + gdb_start
Rainer> + gdb_reinitialize_dir $srcdir/$subdir
I think these three lines can be replaced with "clean_restart".
Rainer> + if { ![runto_main] } {
Rainer> + return 0
This branch doesn't gdb_exit but falling through does.
Likewise this return doesn't delete the file.
So maybe reworking this to fall through to the cleanup & final return
would be better.
thanks,
Tom
next prev parent reply other threads:[~2026-08-27 15:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 14:18 Rainer Orth
2026-08-21 14:27 ` Tom Tromey
2026-08-22 20:25 ` Rainer Orth
2026-08-24 9:42 ` Andrew Burgess
2026-08-25 8:19 ` Rainer Orth
2026-08-25 8:22 ` Rainer Orth
2026-08-27 15:42 ` Tom Tromey [this message]
2026-08-28 8:49 ` [PATCH v2] Require async support for DAP tests [PR34548] Rainer Orth
2026-08-27 18:59 ` [PATCH] Skip gdb.dap/pauseR.exp on Solaris [PR34548] Andrew Burgess
2026-08-28 8:52 ` Rainer Orth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87qzjja7ta.fsf@tromey.com \
--to=tom@tromey.com \
--cc=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=ro@CeBiTec.Uni-Bielefeld.DE \
--cc=simark@simark.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox