From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/testsuite] Fix gdb.base/local-env.exp on remote host
Date: Fri, 19 Dec 2025 10:40:57 +0100 [thread overview]
Message-ID: <deea1af8-550d-43a4-bdf7-f2a5a1c42ba1@suse.de> (raw)
In-Reply-To: <877bujmxap.fsf@tromey.com>
On 12/18/25 7:58 PM, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
>
> Tom> This doesn't work with remote host, so declare the test unsupported. Likewise
> Tom> in gdb.base/environ.exp.
>
> Tom> -gdb_assert {$saw_env == 1} "show environment displayed variable"
> Tom> +set test "show environment displayed variable"
> Tom> +if {[is_remote host]} {
> Tom> + unsupported $test
> Tom> +} else {
> Tom> + gdb_assert {$saw_env == 1} $test
>
> I've been under the impression we usually use unsupported to indicate
> that an entire .exp is being skipped,
Those uses indeed do exist.
> and for individual tests we simply
> don't invoke them.
>
> However I guess I don't really know. Do we have other cases like this?
Those uses also exist.
I grepped for unsupported in gdb.base, and the first two hits are like this.
In access-mem-running.exp, a proc test is run with non-stop and
all-stop, and this code:
...
# If debugging with target remote, check whether the all-stop
variant
# of the RSP is being used. If so, we can't run the background
tests.
if {!$non_stop
&& [target_info exists gdb_protocol]
&& ([target_info gdb_protocol] == "remote"
|| [target_info gdb_protocol] == "extended-remote")} {
if {![is_target_non_stop]} {
unsupported "can't issue commands while target is running"
return 0
}
}
...
aborts the proc in one of those cases.
Then in annota1.exp we have:
...
if {[target_info exists gdb,nosignals]} {
unsupported "send SIGUSR1"
unsupported "backtrace @ signal handler"
} else {
...
This one is from 2004.
Thanks,
- Tom
next prev parent reply other threads:[~2025-12-19 9:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 15:42 Tom de Vries
2025-12-18 18:58 ` Tom Tromey
2025-12-19 9:40 ` Tom de Vries [this message]
2026-01-03 15:11 ` Tom de Vries
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=deea1af8-550d-43a4-bdf7-f2a5a1c42ba1@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
/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