From: Kevin Buettner <kevinb@redhat.com>
To: Tom de Vries <tdevries@suse.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/testsuite] Fix scopes check in gdb.dap/rust-slices.exp
Date: Sat, 20 Jul 2024 17:30:49 -0700 [thread overview]
Message-ID: <20240720173049.7503e57d@f40-zbm-amd> (raw)
In-Reply-To: <20240718124132.23642-1-tdevries@suse.de>
On Thu, 18 Jul 2024 14:41:32 +0200
Tom de Vries <tdevries@suse.de> wrote:
> When running test-case gdb.dap/rust-slices.exp on aarch64-linux
> (debian 12/bookworm), I run into:
> ...
> {"request_seq": 6, "type": "response", "command": "scopes", "body": {"scopes": [{"variablesReference": 1, "name": "Locals", "presentationHint": "locals", "expensive": false, "namedVariables": 3, "line": 28, "source": {"name": "rust-slices.rs", "path": "/home/linux/gdb/binutils-gdb.git/gdb/testsuite/gdb.dap/rust-slices.rs"}}, {"variablesReference": 2, "name": "Registers", "presentationHint": "registers", "expensive": false, "namedVariables": 261, "line": 28, "source": {"name": "rust-slices.rs", "path": "/home/linux/gdb/binutils-gdb.git/gdb/testsuite/gdb.dap/rust-slices.rs"}}]}, "success": true, "seq": 20}PASS: gdb.dap/rust-slices.exp: get scopes success
> FAIL: gdb.dap/rust-slices.exp: three scopes
> PASS: gdb.dap/rust-slices.exp: scope is locals
> PASS: gdb.dap/rust-slices.exp: locals presentation hint
> PASS: gdb.dap/rust-slices.exp: three vars in scope
> ...
>
> The test-case expects three scopes due to a rust compiler issue:
> ...
> # There are three scopes because an artificial symbol ends up in the
> # DWARF. See https://github.com/rust-lang/rust/issues/125126.
> gdb_assert {[llength $scopes] == 3} "three scopes"
> ...
> but it seems that the version used here (rustc 1.63.0, llvm 14.0.6) doesn't
> have this issue.
>
> Fix this by allowing two or three scopes, and changing the test name to
> "two scopes".
>
> Tested on aarch64-linux.
>
> PR testsuite/31983
> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31983
LGTM.
Approved-by: Kevin Buettner <kevinb@redhat.com>
prev parent reply other threads:[~2024-07-21 0:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-18 12:41 Tom de Vries
2024-07-21 0:30 ` Kevin Buettner [this message]
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=20240720173049.7503e57d@f40-zbm-amd \
--to=kevinb@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/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