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.
"set breakpoint at homonym.adb:Get_Value"
gdb_test "break <homonym__get_value>" \
- "Breakpoint \[0-9\]+ at $hex: file .*homonym\\.adb, line $decimal\\." \
+ ".*Breakpoint \[0-9\]+ at $hex: (file .*homonym\\.adb, line $decimal\\.|<homonym__get_value>\\. .2 locations.)" \
"set breakpoint at <homonym__get_value>"
delete_breakpoints