From 8b9041206f334835dae5a66801a0a7c8936a0714 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 5 Sep 2024 11:57:03 -0600 Subject: Allow multiple locations in homonym.exp With some forthcoming changes to GNAT, the two Get_Value functions in this test case will end up with the same name (with the current GNAT, one ends up with a "__2" suffix). This change will cause one test to set multiple breakpoints; this patch changes the test to work with either version of the compiler. --- gdb/testsuite/gdb.ada/homonym.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.ada/homonym.exp b/gdb/testsuite/gdb.ada/homonym.exp index 91a4e62..2fef3c6 100644 --- a/gdb/testsuite/gdb.ada/homonym.exp +++ b/gdb/testsuite/gdb.ada/homonym.exp @@ -38,7 +38,7 @@ gdb_test "break homonym.adb:Get_Value" \ "set breakpoint at homonym.adb:Get_Value" gdb_test "break " \ - "Breakpoint \[0-9\]+ at $hex: file .*homonym\\.adb, line $decimal\\." \ + ".*Breakpoint \[0-9\]+ at $hex: (file .*homonym\\.adb, line $decimal\\.|\\. .2 locations.)" \ "set breakpoint at " delete_breakpoints -- cgit v1.1