aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/task_bp.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-08-28 07:33:46 -0600
committerTom Tromey <tromey@adacore.com>2024-08-30 09:11:12 -0600
commitbcae3bb6509e1111c2859c6b24306aefecdd2570 (patch)
tree7f0b48a5156e09bff89dca63acc6c10f64bc9265 /gdb/testsuite/gdb.ada/task_bp.exp
parent67e30b15212adc1502b898a1ca224fdf65dc110d (diff)
downloadbinutils-bcae3bb6509e1111c2859c6b24306aefecdd2570.zip
binutils-bcae3bb6509e1111c2859c6b24306aefecdd2570.tar.gz
binutils-bcae3bb6509e1111c2859c6b24306aefecdd2570.tar.bz2
Fix regexp quoting in gdb.ada test cases
I noticed that some gdb.ada tests used regular expressions like: "Continuing\..*$inferior_exited_re.*" \ Here, the "\." should either be "." or "\\." -- "\." is not really meaningful. This patch fixes all the cases of this I could find in gdb.ada. In one test (fun_renaming.exp), using "\\." would result in failures, and here I rewrote the tests to use -wrap. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/testsuite/gdb.ada/task_bp.exp')
-rw-r--r--gdb/testsuite/gdb.ada/task_bp.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/task_bp.exp b/gdb/testsuite/gdb.ada/task_bp.exp
index cf6251e..4b32a3d 100644
--- a/gdb/testsuite/gdb.ada/task_bp.exp
+++ b/gdb/testsuite/gdb.ada/task_bp.exp
@@ -37,7 +37,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
proc test_bp { loc msg } {
gdb_test "break $loc" \
- "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: file .*pck.adb, line \[0-9\]+\." \
+ "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: file .*pck.adb, line \[0-9\]+\\." \
"break $loc - $msg"
gdb_run_cmd