From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 4/4] [gdb/ada] Fix error message in ada_funcall_operation::evaluate
Date: Fri, 6 Nov 2026 13:58:29 +0100 [thread overview]
Message-ID: <20261106125829.1450659-5-tdevries@suse.de> (raw)
In-Reply-To: <20261106125829.1450659-1-tdevries@suse.de>
In ada_funcall_operation::evaluate, we have a stray single quote in this error
message:
...
error (_("cannot subscript or call something of type \"%s\"'"),
...
This is fallout from recent commit b32f06001cf ("Change `...'-style quoting in
gdb").
Fix this, and update a related xfail pattern in test-case
gdb.ada/arrayptr.exp.
---
gdb/ada-lang.c | 2 +-
gdb/testsuite/gdb.ada/arrayptr.exp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 7b0b999f346..30083e8c41d 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -11291,7 +11291,7 @@ ada_funcall_operation::evaluate (struct type *expect_type,
type = ada_check_typedef (type->target_type ());
break;
default:
- error (_("cannot subscript or call something of type \"%s\"'"),
+ error (_("cannot subscript or call something of type \"%s\""),
ada_type_name (callee->type ()));
break;
}
diff --git a/gdb/testsuite/gdb.ada/arrayptr.exp b/gdb/testsuite/gdb.ada/arrayptr.exp
index c46cb4c0a16..8af71ffe4d7 100644
--- a/gdb/testsuite/gdb.ada/arrayptr.exp
+++ b/gdb/testsuite/gdb.ada/arrayptr.exp
@@ -74,7 +74,7 @@ foreach_gnat_encoding scenario flags {all minimal} {
}
set xfail_cannot_subscript_re \
- "cannot subscript or call something of type `foo__packed_array_ptr'"
+ {cannot subscript or call something of type "foo__packed_array_ptr"}
gdb_test_multiple "print pa_ptr(3)" "" {
-re -wrap " = 30" {
--
2.51.0
next prev parent reply other threads:[~2026-11-06 12:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 12:58 [pushed 0/4] [gdb/testsuite] Handle updated quoting style in some test-cases Tom de Vries
2026-11-06 12:58 ` [pushed 1/4] [gdb/testsuite] Avoid "with bad program name" in gdb.base/corefile.exp Tom de Vries
2026-11-06 12:58 ` [pushed 2/4] [gdb/testsuite] Fix regexps " Tom de Vries
2026-11-06 13:45 ` Tom de Vries
2026-11-06 12:58 ` [pushed 3/4] [gdb/testsuite] Handle updated quoting style in some test-cases Tom de Vries
2026-11-06 12:58 ` Tom de Vries [this message]
2026-11-06 14:33 ` [pushed 0/4] " Tom Tromey
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=20261106125829.1450659-5-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/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