diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2015-10-02 13:12:56 -0700 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2015-10-02 13:12:56 -0700 |
commit | 06e635ef635f61c5f5c3b9ff16d4c813e3db2452 (patch) | |
tree | 04bf5fb9bda4b8bfa4b658198c23d9ee7377cb4d /gdb/testsuite/gdb.dwarf2/staticvirtual.exp | |
parent | 3ebe65c0ff9f8f76c9971b1cc078273298f0c693 (diff) | |
download | gdb-06e635ef635f61c5f5c3b9ff16d4c813e3db2452.zip gdb-06e635ef635f61c5f5c3b9ff16d4c813e3db2452.tar.gz gdb-06e635ef635f61c5f5c3b9ff16d4c813e3db2452.tar.bz2 |
Fix gdb.dwarf2/staticvirtual.exp regexp.
2015-10-02 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.dwarf2/staticvirtual.exp: Generalize regexp so it can match
whether or not address 0x1000 is mapped on the target.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/staticvirtual.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/staticvirtual.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/staticvirtual.exp b/gdb/testsuite/gdb.dwarf2/staticvirtual.exp index 06d46e1..dd85b7e 100644 --- a/gdb/testsuite/gdb.dwarf2/staticvirtual.exp +++ b/gdb/testsuite/gdb.dwarf2/staticvirtual.exp @@ -51,4 +51,9 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} \ } # gdb/18021: The test below would cause GDB to crash. -gdb_test "p S::~S" "0x1000" +# Depending on whether the target maps memory at address 0x1000, +# on success this may either print something like +# $1 = {void (void)} 0x1000 <.*> +# or +# Cannot access memory at address 0x1000 +gdb_test "p S::~S" "0x1000.*" |