Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 5/6] [gdb/testsuite] Reformat gdb.cp/classes.exp
Date: Fri,  6 Nov 2026 23:34:49 +0100	[thread overview]
Message-ID: <20261106223450.1554600-6-tdevries@suse.de> (raw)
In-Reply-To: <20261106223450.1554600-1-tdevries@suse.de>

Reformat test-case gdb.cp/classes.exp using emacs auto-indent.

Handle run-away formatting by escaping curly braces.
---
 gdb/testsuite/gdb.cp/classes.exp | 45 +++++++++++++++++---------------
 1 file changed, 24 insertions(+), 21 deletions(-)

diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp
index d2fb7c0c14c..84fd575ec3a 100644
--- a/gdb/testsuite/gdb.cp/classes.exp
+++ b/gdb/testsuite/gdb.cp/classes.exp
@@ -513,27 +513,30 @@ proc test_enums {} {
 
     # ptype on the enum member
 
-    set re1 [multi_line \
-	"type = enum ClassWithEnum::PrivEnum (: unsigned (int|short|char) )?{" \
-	"    ?(ClassWithEnum::)?red = 0," \
-	"    (ClassWithEnum::)?green = 1," \
-	"    (ClassWithEnum::)?blue = 2," \
-	"    (ClassWithEnum::)?yellow = 42" \
-	"?}$nl$gdb_prompt $"]
-    set re2 [multi_line \
-	"type = enum PrivEnum {" \
-	"    ?(ClassWithEnum::)?red = 0," \
-	"    (ClassWithEnum::)?green = 1," \
-	"    (ClassWithEnum::)?blue = 2," \
-	"    (ClassWithEnum::)?yellow = 42" \
-	"?}$nl$gdb_prompt $"]
-    set re3 [multi_line \
-	"type = enum {" \
-	"    ?red = 0," \
-	"    green = 1," \
-	"    blue = 2," \
-	"    yellow = 42" \
-	"?}$nl$gdb_prompt $"]
+    set re1 \
+	[multi_line \
+	     "type = enum ClassWithEnum::PrivEnum (: unsigned (int|short|char) )?\{" \
+	     "    ?(ClassWithEnum::)?red = 0," \
+	     "    (ClassWithEnum::)?green = 1," \
+	     "    (ClassWithEnum::)?blue = 2," \
+	     "    (ClassWithEnum::)?yellow = 42" \
+	     "?\}$nl$gdb_prompt $"]
+    set re2 \
+	[multi_line \
+	     "type = enum PrivEnum \{" \
+	     "    ?(ClassWithEnum::)?red = 0," \
+	     "    (ClassWithEnum::)?green = 1," \
+	     "    (ClassWithEnum::)?blue = 2," \
+	     "    (ClassWithEnum::)?yellow = 42" \
+	     "?\}$nl$gdb_prompt $"]
+    set re3 \
+	[multi_line \
+	     "type = enum \{" \
+	     "    ?red = 0," \
+	     "    green = 1," \
+	     "    blue = 2," \
+	     "    yellow = 42" \
+	     "?\}$nl$gdb_prompt $"]
     gdb_test_multiple "ptype obj_with_enum.priv_enum" "ptype obj_with_enum.priv_enum" {
 	-re $re1 {
 	    pass "ptype obj_with_enum.priv_enum"
-- 
2.51.0


  parent reply	other threads:[~2026-11-06 22:37 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 ` [pushed 3/6] [gdb/testsuite] Update regexp in gdb.base/default.exp Tom de Vries
2026-11-06 22:34 ` [pushed 4/6] [gdb/testsuite] Update "Interpreter unrecognized" regexp Tom de Vries
2026-11-06 22:34 ` Tom de Vries [this message]
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-6-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