From: Tom Tromey Date: Thu, 12 Feb 2026 02:42:21 +0000 (-0700) Subject: Fix regression in gdb.ada/mi_exc_cond.exp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65f5e3d727e539ae3a017faf79ff45a821147e5d;p=thirdparty%2Fbinutils-gdb.git Fix regression in gdb.ada/mi_exc_cond.exp 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 --- diff --git a/gdb/testsuite/gdb.ada/mi_ex_cond.exp b/gdb/testsuite/gdb.ada/mi_ex_cond.exp index cfaf0577840..b901ebdd5c5 100644 --- a/gdb/testsuite/gdb.ada/mi_ex_cond.exp +++ b/gdb/testsuite/gdb.ada/mi_ex_cond.exp @@ -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