[Bug testsuite/33551] [gdb/testsuite] Formalize regexp style
tromey at sourceware dot org
sourceware-bugzilla@sourceware.org
Sat Oct 18 18:36:17 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33551
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Created attachment 16427
--> https://sourceware.org/bugzilla/attachment.cgi?id=16427&action=edit
quotemeta patch
Here's an implementation of quotemeta in Tcl.
To see how it looks, this rust test from simple.exp:
gdb_test "print a" " = \\(\\)"
Can be rewritten
gdb_test "print a" [quotemeta "$@DECIMAL = ()"]
Note that the new test is "better" in that it matches the
history variable as well, something typically left out
because it's a pain to quote.
Offhand I don't recall what predefines are used in AdaCore
(can't look until later) but this patch includes a few that
I know are in there and that are obviously handy.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list