aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2018-06-12 15:02:10 +0200
committerTom de Vries <tdevries@suse.de>2018-06-14 12:06:10 +0200
commit70ee000084aa4fdfc00bd5284a024b65023dad35 (patch)
tree7ed1c75e9b92a3fe33bd7c50f81a30ec79ce79fa /gdb
parent11f4b608e6977e7800fbe5625c542be8cf7e241b (diff)
downloadgdb-70ee000084aa4fdfc00bd5284a024b65023dad35.zip
gdb-70ee000084aa4fdfc00bd5284a024b65023dad35.tar.gz
gdb-70ee000084aa4fdfc00bd5284a024b65023dad35.tar.bz2
[gdb] Allow function arguments in bp print match in selftest_setup
2018-06-14 Tom de Vries <tdevries@suse.de> * lib/selftest-support.exp (selftest_setup): Allow function arguments in matching of breakpoint printing.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/lib/selftest-support.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 6ce35f8..723fa29 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2018-06-14 Tom de Vries <tdevries@suse.de>
+
+ * lib/selftest-support.exp (selftest_setup): Allow function arguments in
+ matching of breakpoint printing.
+
2018-06-13 Tom de Vries <tdevries@suse.de>
PR testsuite/23269
diff --git a/gdb/testsuite/lib/selftest-support.exp b/gdb/testsuite/lib/selftest-support.exp
index f7169e0..0542861 100644
--- a/gdb/testsuite/lib/selftest-support.exp
+++ b/gdb/testsuite/lib/selftest-support.exp
@@ -88,10 +88,10 @@ proc selftest_setup { executable function } {
set description "run until breakpoint at $function"
gdb_test_multiple "run $INTERNAL_GDBFLAGS" "$description" {
- -re "Starting program.*Breakpoint \[0-9\]+,.*$function \\(\\).* at .*main.c:.*$gdb_prompt $" {
+ -re "Starting program.*Breakpoint \[0-9\]+,.*$function \\(.*\\).* at .*main.c:.*$gdb_prompt $" {
pass "$description"
}
- -re "Starting program.*Breakpoint \[0-9\]+,.*$function \\(\\).*$gdb_prompt $" {
+ -re "Starting program.*Breakpoint \[0-9\]+,.*$function \\(.*\\).*$gdb_prompt $" {
xfail "$description (line numbers scrambled?)"
}
-re "Starting program.*Breakpoint \[0-9\]+,.* at .*main.c:.*$function.*$gdb_prompt $" {