aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/gdb-utils.exp
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2017-06-13 15:20:25 +0200
committerAndreas Arnez <arnez@linux.vnet.ibm.com>2017-06-13 15:20:25 +0200
commit0567c9861e113a573cc905002a59cb1bc3d78450 (patch)
tree56f275a2ac62cabf8f7d4786257fdea239a573ed /gdb/testsuite/lib/gdb-utils.exp
parent10bbbc1d790836122c417fe4fef7233604bb3982 (diff)
downloadgdb-0567c9861e113a573cc905002a59cb1bc3d78450.zip
gdb-0567c9861e113a573cc905002a59cb1bc3d78450.tar.gz
gdb-0567c9861e113a573cc905002a59cb1bc3d78450.tar.bz2
Add test for modifiable DWARF locations
This adds a test for read/write access to variables with various types of DWARF locations. It uses register- and memory locations and composite locations with register- and memory pieces. Since the new test calls gdb_test_no_output with commands that contain braces, it is necessary for string_to_regexp to quote braces as well. This was not done before. gdb/testsuite/ChangeLog: * gdb.dwarf2/var-access.c: New file. * gdb.dwarf2/var-access.exp: New test. * lib/gdb-utils.exp (string_to_regexp): Quote braces as well.
Diffstat (limited to 'gdb/testsuite/lib/gdb-utils.exp')
-rw-r--r--gdb/testsuite/lib/gdb-utils.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb-utils.exp b/gdb/testsuite/lib/gdb-utils.exp
index ff1b24a..37abb14 100644
--- a/gdb/testsuite/lib/gdb-utils.exp
+++ b/gdb/testsuite/lib/gdb-utils.exp
@@ -34,6 +34,6 @@ proc gdb_init_commands {} {
proc string_to_regexp {str} {
set result $str
- regsub -all {[]*+.|()^$\[\\]} $str {\\&} result
+ regsub -all {[]*+.|(){}^$\[\\]} $str {\\&} result
return $result
}