]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix regression in gdb.ada/mi_exc_cond.exp
authorTom Tromey <tom@tromey.com>
Thu, 12 Feb 2026 02:42:21 +0000 (19:42 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 12 Feb 2026 16:33:36 +0000 (09:33 -0700)
Tom de Vries reported a regression due to a recent change in
gdb.ada/mi_exc_cond.exp.  This patch should fix it.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33895
Approved-By: Tom de Vries <tdevries@suse.de>
gdb/testsuite/gdb.ada/mi_ex_cond.exp

index cfaf0577840a5d2cf956df613705faceba914502..b901ebdd5c599199767d24dd469a9c46f9b795e4 100644 (file)
@@ -38,7 +38,7 @@ if {[mi_clean_restart $::testfile]} {
 # catchpoint that uses both conditions and exception name.
 
 mi_gdb_test "-catch-exception -c \"the_test_index = 2\" -e constraint_error" \
-    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`constraint_error' Ada exception\",cond=\"the_test_index = 2\",.*}" \
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`constraint_error' Ada exception\",(.*,)?cond=\"the_test_index = 2\",.*}" \
     "catch C_E if the_test_index = 2"
 
 # It is important that we start the program's execution after having