aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-04-04 18:19:54 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-04-14 22:16:16 +0100
commit5be45917f49846f4ce58d8b63473e96dff7d4e0f (patch)
tree169a6966e7df4063833e42d2c5baf3b70caf86bd
parentacdf60711d44d20608873bec0376688c9a80e281 (diff)
downloadbinutils-5be45917f49846f4ce58d8b63473e96dff7d4e0f.zip
binutils-5be45917f49846f4ce58d8b63473e96dff7d4e0f.tar.gz
binutils-5be45917f49846f4ce58d8b63473e96dff7d4e0f.tar.bz2
gdb/testsuite: avoid {"} pattern in lib/mi-support.exp
Commit: commit c569a946f6925d3f210c3eaf74dcda56843350ef Date: Fri Mar 24 10:45:37 2023 +0100 [gdb/testsuite] Fix unbalanced quotes in mi_expect_stop argument Introduced the use of {"} in mi-support.exp. There is absolutely nothing wrong with this in any way. However, this is causing my editor to get the syntax highlighting of this file wrong after this point. Maybe the real answer is to use a better editor, or fix my current editor.... but I'm hoping I can instead take the lazy approach of just changing {"} to "\"", which is handled fine, and means exactly the same as far as I understand it. There should be no change in what is tested after this commit. Reviewed-By: Tom Tromey <tom@tromey.com>
-rw-r--r--gdb/testsuite/lib/mi-support.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index 1841816..52c188d 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -1271,7 +1271,7 @@ proc mi_expect_stop { reason func args file line extra test } {
set r ""
if { $reason != "" } {
- if { [regexp {"} $reason] } {
+ if { [regexp "\"" $reason] } {
set r "reason=$reason,"
} else {
set r "reason=\"$reason\","