aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-09-05 11:57:03 -0600
committerTom Tromey <tromey@adacore.com>2025-03-06 14:17:17 -0700
commit8b9041206f334835dae5a66801a0a7c8936a0714 (patch)
tree402bcc544b31aa085f6ca6bd53abf7fb7d09efe0
parentfb77dfe48b5e40a5ed06f8482cd808a13e136db2 (diff)
downloadbinutils-8b9041206f334835dae5a66801a0a7c8936a0714.zip
binutils-8b9041206f334835dae5a66801a0a7c8936a0714.tar.gz
binutils-8b9041206f334835dae5a66801a0a7c8936a0714.tar.bz2
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.
-rw-r--r--gdb/testsuite/gdb.ada/homonym.exp2
1 files changed, 1 insertions, 1 deletions
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 <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