Add test for modifiable DWARF locations
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 13 Jun 2017 13:20:25 +0000 (15:20 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 13 Jun 2017 13:20:25 +0000 (15:20 +0200)
commit0567c9861e113a573cc905002a59cb1bc3d78450
tree56f275a2ac62cabf8f7d4786257fdea239a573ed
parent10bbbc1d790836122c417fe4fef7233604bb3982
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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/var-access.c [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/var-access.exp [new file with mode: 0644]
gdb/testsuite/lib/gdb-utils.exp