From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 3/6] [gdb/testsuite] Update regexp in gdb.base/default.exp
Date: Fri, 6 Nov 2026 23:34:47 +0100 [thread overview]
Message-ID: <20261106223450.1554600-4-tdevries@suse.de> (raw)
In-Reply-To: <20261106223450.1554600-1-tdevries@suse.de>
Update regexp "You can't do that when your target is `None'" to use
"None" instead.
---
gdb/testsuite/gdb.base/default.exp | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index 5660ce6171e..da1e79bcb5e 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -42,8 +42,9 @@ if {!$use_gdb_stub} {
gdb_test_multiple "attach" "attach" {
-re "Argument required .(process-id|program) to attach.*$gdb_prompt $"\
{ pass "attach" }
- -re "You can't do that when your target is `None'.*$gdb_prompt $"\
- { pass "attach" }
+ -re -wrap {You can't do that when your target is "None".*} {
+ pass "attach"
+ }
-re "You can't do that without a process to debug.*$gdb_prompt $"\
{ pass "attach" }
-re "Don't know how to attach. Try \"help target\"..*$gdb_prompt $"\
@@ -489,7 +490,7 @@ gdb_test "list" "No symbol table is loaded. Use the \"file\" command.*"
# The ``takes a file name'' case is for vxgdb.
# The ``Use the "file" command'' case is for newer GDB versions which try
# to deduce the filename from the exec file.
-gdb_test "load" "You can't do that when your target is `None'.*|The load command takes a file name.*|Must specify at least a file name with the load command.*|.*Use the .file. or .exec-file. command.*"
+gdb_test "load" {You can't do that when your target is "None".*|The load command takes a file name.*|Must specify at least a file name with the load command.*|.*Use the .file. or .exec-file. command.*}
#test next "n" abbreviation
gdb_test "n" "The program is not being run." "next \"n\" abbreviation"
#test next
@@ -531,8 +532,9 @@ if {$use_gdb_stub} {
# Only extended-remote supports "run".
} else {
gdb_test_multiple "r" "run \"r\" abbreviation" {
- -re "Starting program: .*You can't do that when your target is `None'.*$gdb_prompt $"\
- { pass "run \"r\" abbreviation" }
+ -re -wrap {Starting program: .*You can't do that when your target is "None".*} {
+ pass "run \"r\" abbreviation"
+ }
-re "Starting program: .*No executable file specified.*Use the \"file\" or \"exec-file\" command.*$gdb_prompt $"\
{ pass "run \"r\" abbreviation" }
-re "Starting program: .*No executable specified, use .target exec.\\..*$gdb_prompt $"\
@@ -553,8 +555,9 @@ if {$use_gdb_stub} {
# Only extended-remote supports "run".
} else {
gdb_test_multiple "run" "run" {
- -re "Starting program:.*You can't do that when your target is `None'.*$gdb_prompt $"\
- { pass "run" }
+ -re -wrap {Starting program:.*You can't do that when your target is "None".*} {
+ pass "run"
+ }
-re "Starting program: .*No executable file specified.*Use the \"file\" or \"exec-file\" command.*$gdb_prompt $"\
{ pass "run" }
-re "Starting program: .*No executable specified, use .target exec.\\..*$gdb_prompt $"\
--
2.51.0
next prev parent reply other threads:[~2026-11-06 22:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 22:34 [pushed 0/6] [gdb/testsuite] Some testsuite fixes Tom de Vries
2026-11-06 22:34 ` [pushed 1/6] [gdb/testsuite] Fix regexp in gdb.base/solib-overlap.exp Tom de Vries
2026-11-06 22:34 ` [pushed 2/6] [gdb/testsuite] Cleanup "Attaching to program" regexps Tom de Vries
2026-11-06 22:34 ` Tom de Vries [this message]
2026-11-06 22:34 ` [pushed 4/6] [gdb/testsuite] Update "Interpreter unrecognized" regexp Tom de Vries
2026-11-06 22:34 ` [pushed 5/6] [gdb/testsuite] Reformat gdb.cp/classes.exp Tom de Vries
2026-11-06 22:34 ` [pushed 6/6] [gdb/testsuite] Update "error in expression, near" regexp 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=20261106223450.1554600-4-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